ignore-value: remove deprecated ignore_ptr function
[gnulib.git] / ChangeLog
1 2012-01-10  Jim Meyering  <meyering@redhat.com>
2
3         ignore-value: remove deprecated ignore_ptr function
4         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5         * NEWS: Note this.
6
7 2012-01-09  Jim Meyering  <meyering@redhat.com>
8
9         test-init.sh: avoid a subshell
10         * tests/test-init.sh: Remove protective subshell.
11         Suggested by Bernhard Voelker.  While a subshell is normally
12         required to protect against older shells (Solaris, FreeBSD) that
13         warn about a missing program before performing redirection, the
14         shell-selection tests performed by init.sh probably exclude any
15         offending shell.
16
17 2012-01-08  Bruno Haible  <bruno@clisp.org>
18
19         setlocale tests: Avoid test failure on Solaris 11 2011-11.
20         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
21         variable.
22
23 2012-01-08  Bruno Haible  <bruno@clisp.org>
24
25         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
26         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
28         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
29         macro.
30         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
31         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
32         * lib/spawn_faction_addopen.c: Add workaround implementation if
33         HAVE_WORKING_POSIX_SPAWN.
34         * modules/spawn (Makefile): Substitute
35         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
36         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
37         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
38         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39         (Depends-on): Update conditions.
40         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
41         the Solaris 11 bug.
42
43 2012-01-08  Bruno Haible  <bruno@clisp.org>
44
45         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
46         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
47         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
48         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
49         macro.
50         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
51         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
52         * lib/spawn_faction_adddup2.c: Add workaround implementation if
53         HAVE_WORKING_POSIX_SPAWN.
54         * modules/spawn (Makefile): Substitute
55         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
56         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
57         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
58         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
59         (Depends-on): Update conditions.
60         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
61         the Solaris 11 bug.
62
63 2012-01-08  Bruno Haible  <bruno@clisp.org>
64
65         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
66         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
67         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
68         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
69         HAVE_WORKING_POSIX_SPAWN.
70         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
71         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
72         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
73         * lib/spawn_faction_addclose.c: Add workaround implementation if
74         HAVE_WORKING_POSIX_SPAWN.
75         * modules/spawn (Makefile): Substitute
76         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
77         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
78         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
79         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
80         (Depends-on): Update conditions.
81         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
82         the Solaris 11 bug.
83
84 2012-01-08  Bruno Haible  <bruno@clisp.org>
85
86         doc: Update for Solaris 11 2011-11.
87         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
88         * m4/printf.m4: Update comments.
89
90 2012-01-08  Bruno Haible  <bruno@clisp.org>
91
92         mktime: Avoid compilation error on Solaris 11.
93         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
94
95 2012-01-08  Bruno Haible  <bruno@clisp.org>
96
97         doc: Small fix.
98         * doc/posix-headers/nl_types.texi: Correct platforms list.
99
100 2012-01-08  Simon Josefsson  <simon@josefsson.org>
101
102         Add lgpl-3.0 module.
103         * MODULES.html.sh (Support for building documentation): Add
104         lgpl-3.0.
105         * modules/lgpl-3.0: New file.
106
107 2012-01-08  Jim Meyering  <meyering@redhat.com>
108
109         select.c: indent with spaces, not TABs
110         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
111
112 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
113
114         quotearg: do not use grave accent for left quote
115         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
116         locale_quoting_style.
117         (quotearg_buffer_restyled): Fix example.
118         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
119
120 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
121
122         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
123         Most programs do not have translation catalogs for English and much
124         less separate catalogs for British and American English.  Drop the
125         suggestion to translators about these two, and provide it
126         automatically for Unicode locales.  Like most programs, even those
127         using American English, we use single quotation marks.  This conflicts
128         with the American typographic convention, but works better when you
129         cite the entire error message within double quotes.  It also tries not
130         to clash with established practice and with what non-gnulib programs
131         will usually do.
132         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
133         using an UTF-8 or GB-18030 locale.  The list of other locales with
134         quotes was provided by Bruno Haible.
135         (quotearg_buffer_restyled): Adjust instructions to translators.
136         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
137         text, since this would be wrong when using Unicode.
138         * modules/quotearg: Depend on c-strcaseeq.
139
140 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
141
142         quotearg: fix Wikipedia link
143         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
144
145 2012-01-07  Simon Josefsson  <simon@josefsson.org>
146
147         Fix for mingw with MSVC9.
148         * m4/ld-version-script.m4: Check that compiler rejects version
149         scripts with syntax errors.  Reported by Bruno Haible
150         <bruno@clisp.org>.
151
152 2012-01-06  Bruno Haible  <bruno@clisp.org>
153
154         Talk about "native Windows API", not "Woe32".
155         * lib/accept4.c: Update comments to mention native Windows.
156         * lib/execute.c: Likewise.
157         * lib/fatal-signal.c: Likewise.
158         * lib/localcharset.c: Likewise.
159         * lib/nanosleep.c: Likewise.
160         * lib/nl_langinfo.c: Likewise.
161         * lib/pclose.c: Likewise.
162         * lib/pipe-filter-gi.c: Likewise.
163         * lib/pipe-filter-ii.c: Likewise.
164         * lib/pipe.c: Likewise.
165         * lib/pipe2.c: Likewise.
166         * lib/popen.c: Likewise.
167         * lib/progreloc.c: Likewise.
168         * lib/relocatable.c: Likewise.
169         * lib/sigaction.c: Likewise.
170         * lib/sigprocmask.c: Likewise.
171         * lib/spawn-pipe.h: Likewise.
172         * lib/spawn-pipe.c: Likewise.
173         * lib/spawni.c: Likewise.
174         * lib/stat-time.h: Likewise.
175         * lib/w32spawn.h: Likewise.
176         * tests/test-isatty.c: Likewise.
177         * lib/config.charset: More comments.
178         * doc/gnulib-intro.texi: Mention native Windows.
179         * doc/posix-functions/_Exit_C99.texi: Likewise.
180         * doc/posix-headers/fcntl.texi: Likewise.
181
182 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
183
184         argp: Avoid crash if translator uses % characters in a translation.
185         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
186         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
187
188 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
189
190         doc: C11 and C++11 are now official
191         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
192         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
193         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
194         * modules/stdalign:
195         Replace references to draft C1X to C11, and to draft C++0X to C++11.
196
197 2012-01-06  Bruno Haible  <bruno@clisp.org>
198
199         uc-is-grapheme-break tests: Tweak.
200         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
201         message.
202
203 2012-01-06  Bruno Haible  <bruno@clisp.org>
204
205         test-init.sh: correct the test for diff -u
206         * tests/test-init.sh: Also redirect stdout to /dev/null.
207
208 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
209
210         Use ', not `, for quoting output.
211         * build-aux/announce-gen (usage, sizes, print_news_deltas)
212         (print_changelog_deltas, get_tool_versions, main program):
213         * build-aux/git-version-gen:
214         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
215         * build-aux/move-if-change (help):
216         * build-aux/useless-if-before-free (usage, main program):
217         * check-module (parse_module_file, usage)
218         (find_included_lib_files, check_module):
219         * lib/argmatch.c (main) [TEST]:
220         * lib/argp-help.c (_help):
221         * lib/getopt1.c (main) [TEST]:
222         * lib/git-merge-changelog.c (usage):
223         * lib/xstrtol-error.c (xstrtol_error):
224         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
225         * m4/argz.m4 (gl_FUNC_ARGZ):
226         * m4/bison.m4 (gl_BISON):
227         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
228         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
229         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
230         * m4/fpending.m4 (gl_PREREQ_FPENDING):
231         * m4/gc-random.m4 (gl_GC_RANDOM):
232         * m4/intl.m4 (gt_CHECK_DECL):
233         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
234         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
235         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
236         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
237         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
238         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
239         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
240         * tests/test-dirname.c (main):
241         * tests/test-getpass.c (main):
242         * tests/test-iconvme.c (main):
243         * tests/test-parse-datetime.c (LOG):
244         * tests/test-xstrtoimax.sh:
245         * tests/test-xstrtol.sh:
246         * tests/test-xstrtoll.sh:
247         * tests/test-xstrtoumax.sh:
248         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
249         * top/GNUmakefile (abort-due-to-no-makefile):
250         Quote 'like this', not `like this', as per the recent change to
251         the GNU coding standards.
252
253 2012-01-05  Bruno Haible  <bruno@clisp.org>
254
255         strtoimax: Don't force a replacement on systems where intmax_t is int.
256         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
257         'intmax_t' is not larger than 'int'.
258         Reported by Pádraig Brady <P@draigBrady.com>.
259
260 2012-01-05  Bruno Haible  <bruno@clisp.org>
261
262         doc: Mention NetBSD bugs.
263         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
264         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
265
266 2012-01-05  Bruno Haible  <bruno@clisp.org>
267
268         strtoumax tests: Enhance tests.
269         * tests/test-strtoumax.c (main): Add tests for large values.
270
271 2012-01-05  Bruno Haible  <bruno@clisp.org>
272
273         strtoimax: Work around AIX 5.1 bug.
274         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
275         definition.
276         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
277         Set HAVE_STRTOIMAX.
278         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
279         REPLACE_STRTOIMAX.
280         * modules/inttypes-incomplete (Makefile.am): Substitute
281         REPLACE_STRTOIMAX.
282         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
283         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
284         (Depends-on): Update conditions.
285         * tests/test-strtoimax.c (main): Add tests for large values.
286         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
287
288 2012-01-05  Bruno Haible  <bruno@clisp.org>
289
290         inttypes: Modernize.
291         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
292         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
293         (Makefile.am): Update inttypes.h rule.
294
295 2012-01-05  Jim Meyering  <meyering@redhat.com>
296
297         init.sh: don't waste a subshell just to redirect stderr
298         * tests/init.sh: In testing for diff -u and diff -c, use a
299         stderr-redirecting exec inside `...` rather than a subshell.
300
301         test-init.sh: avoid failure on HP-UX 11.00
302         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
303         resolves to diff -c or cmp.  Reported by Bruno Haible.
304
305 2012-01-05  Bruno Haible  <bruno@clisp.org>
306
307         Tests for module 'strtoull'.
308         * modules/strtoull-tests: New file.
309         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
310
311 2012-01-05  Bruno Haible  <bruno@clisp.org>
312
313         Tests for module 'strtoll'.
314         * modules/strtoll-tests: New file.
315         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
316
317 2012-01-05  Bruno Haible  <bruno@clisp.org>
318
319         Tests for module 'strtoul'.
320         * modules/strtoul-tests: New file.
321         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
322
323 2012-01-05  Bruno Haible  <bruno@clisp.org>
324
325         Tests for module 'strtol'.
326         * modules/strtol-tests: New file.
327         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
328
329 2012-01-04  Jim Meyering  <meyering@redhat.com>
330
331         test-init.sh: accommodate Solaris 5.10's different diff -u output
332         * tests/test-init.sh: Also exempt @@ lines from the comparison
333         of diff output, since Solaris 5.10 and GNU diff formats differ.
334         Reported by Stefano Lattarini.
335
336 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
337
338         test-posixtm: don't assume signed integer wraparound
339         * tests/test-posixtm.c (main): Don't assume wraparound semantics
340         after signed integer overflow.  Inspired by (though it may not
341         fix) Bruno Haible's bug report in
342         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
343
344         Spell out "Windows 9x" and "Windows XP".
345         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
346         "Windows 9x" and "WinXP" with "Windows XP".
347
348 2012-01-04  Jim Meyering  <meyering@redhat.com>
349
350         test-vc-list-files-cvs.sh: remove obsolete comment
351         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
352         double exit.  Now that's all encapsulated via skip_ and Exit.
353
354 2012-01-04  Bruno Haible  <bruno@clisp.org>
355
356         Talk about "native Windows API", not "Win32".
357         * lib/classpath.c: Update comments to mention native Windows.
358         * lib/csharpexec.c: Likewise.
359         * lib/dup2.c: Likewise.
360         * lib/error.c: Likewise.
361         * lib/fcntl.c: Likewise.
362         * lib/filename.h: Likewise.
363         * lib/findprog.c: Likewise.
364         * lib/get-rusage-as.c: Likewise.
365         * lib/get-rusage-data.c: Likewise.
366         * lib/getpagesize.c: Likewise.
367         * lib/javaexec.c: Likewise.
368         * lib/msvc-inval.c: Likewise.
369         * lib/msvc-nothrow.c: Likewise.
370         * lib/nanosleep.c: Likewise.
371         * lib/nonblocking.c: Likewise.
372         * lib/printf-parse.c: Likewise.
373         * lib/setlocale.c: Likewise.
374         * lib/sigaction.c: Likewise.
375         * lib/strerror_r.c: Likewise.
376         * lib/tmpdir.c: Likewise.
377         * lib/vasnprintf.c: Likewise.
378         * lib/w32spawn.h: Likewise.
379         * lib/waitpid.c: Likewise.
380         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
381         * m4/locale-ar.m4: Likewise.
382         * m4/locale-fr.m4: Likewise.
383         * m4/locale-ja.m4: Likewise.
384         * m4/locale-tr.m4: Likewise.
385         * m4/locale-zh.m4: Likewise.
386         * m4/printf.m4: Likewise.
387         * tests/test-cloexec.c: Likewise.
388         * tests/test-copy-acl.sh: Likewise.
389         * tests/test-copy-file.sh: Likewise.
390         * tests/test-file-has-acl.sh: Likewise.
391         * tests/test-set-mode-acl.sh: Likewise.
392         * tests/test-dup-safer.c: Likewise.
393         * tests/test-dup2.c: Likewise.
394         * tests/test-dup3.c: Likewise.
395         * tests/test-fcntl.c: Likewise.
396         * tests/test-nonblocking-pipe.h: Likewise.
397         * tests/test-nonblocking-socket.h: Likewise.
398         * tests/test-pipe.c: Likewise.
399         * tests/test-pipe2.c: Likewise.
400         * tests/test-spawn-pipe-child.c: Likewise.
401         * doc/acl-resources.txt: Likewise.
402         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
403         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
404         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
405         * lib/localcharset.c: Update comments to mention native Windows.
406         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
407         * lib/localename.c: Likewise.
408         * lib/progreloc.c: Likewise.
409         * lib/relocatable.c: Likewise.
410         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
411         (windows_compute_revents): Renamed from win32_compute_revents.
412         (windows_compute_revents_socket): Renamed from
413         win32_compute_revents_socket.
414         * lib/select.c: Update comments to mention native Windows.
415         (windows_poll_handle): Renamed from win32_poll_handle.
416         * m4/threadlib.m4: Update comments to mention native Windows.
417         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
418         --enable-threads=windows instead of --enable-threads=win32. Set
419         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
420         * lib/glthread/lock.h: Update comments to mention native Windows.
421         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
422         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
423         USE_WIN32_THREADS.
424         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
425         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
426         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
427         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
428         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
429         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
430         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
431         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
432         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
433         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
434         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
435         * tests/test-tls.c: Likewise.
436         Rationale:
437         Microsoft renamed the "Win32 API" to "Windows API", as it is available
438         on both 32-bit and 64-bit Windows systems.
439         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
440         line of distinction is between "native Windows" on one side and Unix/
441         POSIX systems on the other side. More details in
442         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
443         Suggested by Paul Eggert.
444
445 2012-01-03  Bruno Haible  <bruno@clisp.org>
446
447         isatty: Support for MSVC 9.
448         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
449         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
450         (_isatty_nothrow): New function.
451         (isatty): Use it instead of _isatty.
452         (IsConsoleHandle): Add comment, from Paolo Bonzini.
453         * lib/poll.c (IsConsoleHandle): Likewise.
454         * lib/select.c (IsConsoleHandle): Likewise.
455         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
456         (gl_PREREQ_ISATTY): New macro.
457         * modules/isatty (Depends-on): Add msvc-inval.
458         (configure.ac): Invoke gl_PREREQ_ISATTY.
459
460 2012-01-03  Jim Meyering  <meyering@redhat.com>
461
462         maint.mk: remove temporary transition aid from over 1.5 years ago
463         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
464         purpose was to aid in the transition (avoiding silent malfunction)
465         from that old name to the new _sc_search_regexp.  This shim was
466         added by commit 219c504b.
467
468         init.sh: do not try to accommodate compare arguments starting with "-"
469         * tests/init.sh (compare_dev_null_): Do not try to accommodate
470         compare arguments that start with "-".  Besides, we do not worry
471         about this when invoking diff or cmp; why start now with sed?
472         Using "--" to separate options from argument would trigger sed
473         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
474         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
475
476 2012-01-02  Bruno Haible  <bruno@clisp.org>
477
478         Enhance tests for module 'isatty'.
479         * modules/isatty-tests (Depends-on): Add pipe-posix.
480         * tests/test-isatty.c: Include <fcntl.h>.
481         (DEV_NULL): New macro.
482         (main): Test the resut of isatty() also on regular files, pipes, and
483         /dev/null.
484
485         New module 'isatty'.
486         * lib/unistd.in.h (isatty): New declaration.
487         * lib/isatty.c: New file, based on an idea of
488         Bastien Roucariès <roucaries.bastien@gmail.com>.
489         * m4/isatty.m4: New file.
490         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
491         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
492         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
493         REPLACE_ISATTY.
494         * modules/isatty: New file.
495         * doc/posix-functions/isatty.texi: Mention the new module.
496         Suggested by Paolo Bonzini.
497
498 2012-01-02  Bruno Haible  <bruno@clisp.org>
499
500         canonicalize: Tweak 2011-12-29 commit.
501         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
502         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
503
504 2012-01-02  Jim Meyering  <meyering@redhat.com>
505
506         gitlog-to-changelog: describe input syntax in --help output
507         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
508
509         gitlog-to-changelog: fix typo in --help: show backslash before email @
510         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
511         in sources, but not in actual output.
512
513 2011-12-30  Jim Meyering  <meyering@redhat.com>
514
515         gitlog-to-changelog: don't malfunction when name contains %-directive
516         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
517         in a name string cause trouble.  E.g., with a user name of "%s",
518         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
519
520 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
521
522         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
523         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
524         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
525         the "  (tiny change)" notation that is appended to the standard
526         ChangeLog "date  name  email" header line.
527
528 2012-01-01  Jim Meyering  <meyering@redhat.com>
529
530         test-framework-sh: init.sh: fix "make dist" failure
531         When using gnulib-tool's --with-tests option and any module that
532         depends on test-framework-sh, "make dist" would fail due to the
533         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
534         in the gltests directory, and not in the gllib/ directory.
535         One way to work around that is to move the EXTRA_DIST += init.sh
536         from the primary module to the -tests one:
537         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
538         * modules/test-framework-sh (Makefile.am): ...not here.
539         Reported by Tom G. Christensen in
540         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
541
542         version-etc: update copyright year reported by --version
543         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
544
545 2011-12-31  Pádraig Brady  <P@draigBrady.com>
546
547         canonicalize: only stat() if required
548         * lib/canonicalize.c (canonicalize_filename_mode):
549         Avoid calling l?stat() when both CAN_MISSING,
550         and CAN_NOLINKS are set, as we neither need
551         to resolve symlinks or test component existence.
552
553 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
554
555         doc: cover st_ino issues once; add OpenVMS etc.
556         * doc/posix-functions/stat.texi (stat):
557         * doc/posix-functions/lstat.texi (lstat):
558         * doc/posix-functions/fstatat.texi (fstatat):
559         * doc/posix-functions/fstat.texi (fstat):
560         Move general 'struct stat' stuff to sys_stat.texi,
561         leaving behind a pointer.
562         * doc/posix-headers/sys_stat.texi (sys/stat.h):
563         Merge duplicate info about 'struct stat' problems into here.
564         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
565         and suggest partial workarounds.
566
567         same-inode: port to OpenVMS
568         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
569         three st_ino values.
570
571 2011-12-30  Pádraig Brady  <P@draigBrady.com>
572
573         canonicalize: fix references to stat() and lstat()
574         * lib/canonicalize.c (canonicalize_filename_mode):
575         Ensure references always resolve to a replacement
576         function if required (even via a macro).
577
578 2011-12-30  Jim Meyering  <meyering@redhat.com>
579
580         gitlog-to-changelog: remove a little duplication
581         * build-aux/gitlog-to-changelog (main): Grep @lines once,
582         rather than twice.
583
584 2011-12-29  Pádraig Brady  <P@draigBrady.com>
585
586         canonicalize: add support for not resolving symlinks
587         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
588         indicate we don't want to follow symlinks.  Also
589         provide CAN_MODE_MASK to aid setting these existing
590         mutually exclusive values.
591         * lib/canonicalize.c (canonicalize_filename_mode):
592         Extract the flags from can_mode parameter, which
593         are currently just used to select between stat()
594         and lstat().  Also ensure that mutually exclusive
595         values are flagged immediately as invalid.
596         * tests/test-canonicalize.c: Verify symlinks are
597         not followed, and that invalid flag combinations
598         are diagnosed.
599
600 2011-12-25  Jim Meyering  <meyering@redhat.com>
601
602         gitlog-to-changelog: do not clump multi-paragraph entries
603         Identical header lines (date,name,email+coauthors) are suppressed,
604         thus putting all entries with those same characteristics under
605         a single header.  However, when a log entry consists of two or
606         more paragraphs, it may not be clear where it starts and ends.
607         This change makes it so that such an entry is always separated
608         from others by a header line, even when that header would
609         otherwise be suppressed.
610         * build-aux/gitlog-to-changelog: Implement the above.
611         Inspired by a related request from Stefano Lattarini in
612         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
613
614 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
615
616         announce-gen: fix `cmd' typo in diagnostic
617         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
618         diagnostic: a missing '$' meant that the command was not output.
619
620 2011-12-23  Jim Meyering  <meyering@redhat.com>
621
622         test-framework-sh: distribute init.sh
623         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
624         Otherwise, "make -C gnulib-tests check" (at least in grep) would
625         fail due to the lack of init.sh.
626
627         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
628         * modules/atexit-tests: Rather than listing tests/init.sh,
629         now that there's a module for it, simply depend on that new module.
630         * modules/closein-tests: Likewise.
631         * modules/exclude-tests: Likewise.
632         * modules/getcwd-tests: Likewise.
633         * modules/perror-tests: Likewise.
634         * modules/pread-tests: Likewise.
635         * modules/pwrite-tests: Likewise.
636         * modules/vc-list-files-tests: Likewise.
637         * modules/verify-tests: Likewise.
638         * modules/xalloc-die-tests: Likewise.
639         * modules/xstrtoimax-tests: Likewise.
640         * modules/xstrtol-tests: Likewise.
641         * modules/xstrtoll-tests: Likewise.
642         * modules/xstrtoumax-tests: Likewise.
643         * modules/yesno-tests: Likewise.
644
645 2011-12-22  Jim Meyering  <meyering@redhat.com>
646
647         test-framework-sh: add minimal tests of init.sh's compare function
648         * modules/test-framework-sh-tests: New file.
649         * tests/test-init.sh: New file.
650
651         test-framework-sh: new module
652         * modules/test-framework-sh: New file.
653         * MODULES.html.sh (Support for maintaining and releasing projects):
654         List it.
655
656         init.sh: do not emit simulated diff output to stderr
657         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
658
659 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
660
661         .gitignore: ignore gnulib.dvi and regex.info
662         * doc/.gitignore:add gnulib.dvi and regex.info
663
664 2011-12-22  Jim Meyering  <meyering@redhat.com>
665
666         init.sh: correct previous change
667         * tests/init.sh (compare): My previous change was wrong.
668         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
669
670         init.sh: avoid unwarranted test failure when using "set -e"
671         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
672         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
673         a use like "compare exp out" would get evoke an unconditional failure.
674
675 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
676
677         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
678         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
679         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
680         autoreconf that did not.
681         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
682         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
683
684 2011-12-17  Jim Meyering  <meyering@redhat.com>
685
686         bootstrap: remove some now-unneeded code
687         This script arose back when gnulib-tool was young.
688         Since then, it has seen improvements that render much of this
689         script unnecessary.  In particular, it can now make symlinks
690         to the files it uses.  Also, I no longer see as much value in
691         marking files as read-only via comments.
692         If you relied on the symlink-creation feature of the preceding
693         version of this script, you can get most of that functionality
694         by adding the --symlink option to the definition of
695         gnulib_tool_option_extras in your bootstrap.conf file.
696         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
697         Run autopoint and libtoolize *before* gnulib-tool.
698         After it, run an abbreviated autoreconf, rather than a loop around
699         all tools.
700         (slirp, bt_mark_as_generated): Remove functions.
701
702 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
703
704         ftoastr: fix typo
705         * lib/ftoastr.h: Fix misspelling in comment.
706
707 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
708
709         * top/README-release: fix punctuation.
710
711 2011-12-17  Jim Meyering  <meyering@redhat.com>
712
713         bootstrap: correct the recent buildreq change
714         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
715         had no effect.
716         * build-aux/bootstrap (buildreq): Bracket each search term with
717         "*...*", so that the shell "case" statement works as intended.
718         Add comments.
719
720 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
721
722         build: let bootstrap resort to wget when downloading .po files
723         * build-aux/bootstrap (download_po_files): Fallback to wget when
724         downloading the .po files via rsync fails.  This is necessary to
725         bootstrap from behind a strict firewall.
726
727 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
728
729         stdint: don't assume C++11 when compiling with g++
730         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
732         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
733         work also in C++ before C++11, as that improperly inhibits
734         generating a substitute stdint.h for that case.
735
736 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
737
738         alloca: protect comment from gnulib-tool
739         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
740         that gnulib-tool doesn't think it's a license, and munge it to
741         say "GCC version 3".
742
743 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
744
745         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
746         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
747         $(abs_top_builddir) instead of $(top_builddir).
748
749 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
750
751         strftime-tests: also test nanoseconds
752         * tests/test-strftime.c (T): Add a test of %N.
753
754 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
755
756         inttypes, stdint: add C++11 support
757         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
758         when including inttypes.h and stdint.h.  Support this change to
759         the standard.
760         * doc/posix-headers/inttypes.texi (inttypes.h):
761         * doc/posix-headers/stdint.texi (stdint.h): Document this.
762         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
763         Define if not defined already, for the benefit of pre-C++11 hosts.
764         Define the standard format macros (e.g., PRId8) always.
765         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
766         Likewise, if __cpluspus.  Define the standard constant and limit
767         macros (e.g., INT8_C, INT8_MAX) always.
768         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
769         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
770         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
771         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
772         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
773         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
774         Likewise.
775
776 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
777
778         nonblocking tests: Fix test failure on Linux/PPC.
779         Suggested by Prerna Saxena in
780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
781         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
782         Set to 1100000.
783
784 2011-12-12  Jim Meyering  <meyering@redhat.com>
785
786         argmatch: don't hard-code `' when listing valid option arguments
787         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
788         use the quote function to add quotes.  Use fputs rather than
789         fprintf for the format string with no format directive.
790
791 2011-12-07  Eric Blake  <eblake@redhat.com>
792
793         bootstrap: detect tools required by gnulib-tool
794         * build-aux/bootstrap (buildreq): Provide minimum implicit
795         dependencies.
796         * DEPENDENCIES: Mention patch as a prereq.
797
798 2011-12-04  Bruno Haible  <bruno@clisp.org>
799
800         sethostname: Port to Windows platforms.
801         * lib/sethostname.c: Provide an alternate implementation for Windows
802         platforms.
803         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
804         (main): Skip the test if sethostname() fails with EPERM. On Windows
805         platforms, don't check the result of gethostname().
806
807 2011-12-04  Bruno Haible  <bruno@clisp.org>
808             Jim Meyering  <meyering@redhat.com>
809
810         tests: Avoid spurious error message on platforms without mktemp program.
811         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
812
813 2011-12-04  Bruno Haible  <bruno@clisp.org>
814
815         sethostname: Fix documentation.
816         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
817         "not fixed" section.
818
819 2011-12-03  Bruno Haible  <bruno@clisp.org>
820
821         gnulib-tool: Verify that the License field is present and non-empty.
822         * gnulib-tool (func_get_license_raw): New function, extracted from
823         func_get_license.
824         (func_get_license): Use it. Warn if the module is not a test module and
825         has no license.
826         Suggested by Jim Meyering.
827
828 2011-12-03  Bruno Haible  <bruno@clisp.org>
829
830         sethostname tests: Fix link error on mingw.
831         * tests/test-sethostname1.c: New file, extracted from
832         tests/test-sethostname.c.
833         * tests/test-sethostname2.c: New file, extracted from
834         tests/test-sethostname.c.
835         * tests/test-sethostname.c: Remove file.
836         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
837         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
838         (Depends-on): Add gethostname.
839         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
840         Link the latter with $(GETHOSTNAME_LIB).
841
842         sethostname tests: Fix compilation error on mingw.
843         * tests/test-sethostname.c: Don't include <sys/types.h>.
844         (geteuid): Use a dummy value without uid_t.
845         * modules/sethostname-tests (Depends-on): Remove sys_types.
846
847         sethostname tests: Avoid a gcc warning.
848         * tests/test-sethostname.c (main): Remove an unused variable.
849
850         Tweak last commit.
851         * modules/sethostname-tests (Files): Sort by decreasing importance.
852         (configure.ac): Check for geteuid.
853         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
854         the test when there's nothing to test. Drop an unnecessary cast.
855         Improve an error message. Verify that the final sethostname() call
856         succeeds.
857
858 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
859
860         Add a test suite for the sethostname module.
861         * modules/sethostname-tests: New file.  A test program
862         for the sethostname module.
863         * tests/test-sethostname.c: Likewise.
864
865 2011-12-03  Bruno Haible  <bruno@clisp.org>
866
867         Tweak last commit.
868         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
869         Fix preprocessor directives indentation. Fix typos.
870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
871         * modules/unistd (Makefile): Likewise.
872
873 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
874
875         Integrate the sethostname module into unistd.
876         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
877         into the unistd.h header.
878         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
879         preprocessor directives.
880         * modules/unistd: Setup the Makefile substitutions of the
881         SETHOSTNAME preprocessor directives.
882
883 2011-12-03  Bruno Haible  <bruno@clisp.org>
884
885         Tweak last commit.
886         * lib/sethostname.c: Don't include <string.h>.
887         (sethostname): No need to copy the argument string to the stack. Don't
888         call clearerr. Preserve errno when fprintf failed.
889         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
890         Don't invoke AC_REPLACE_FUNCS.
891         * modules/sethostname (Link): Remove empty section.
892         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
893         failure problem.
894
895 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
896
897         New module 'sethostname'.
898         * lib/sethostname.c (sethostname): New file.  Provide sethostname
899         for systems that lack it.
900         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
901         sethostname declaration and function.
902         * modules/sethostname: New file.  Define the sethostname module.
903
904 2011-12-03  Bruno Haible  <bruno@clisp.org>
905
906         Tweak last commit.
907         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
908
909 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
910
911         Split the HOST_NAME_MAX detection into a separate m4 macro.
912         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
913         macro so it can be used by the pending sethostname module.
914
915 2011-12-03  Bruno Haible  <bruno@clisp.org>
916
917         Fix module descriptions syntax.
918         * modules/argv-iter (License): Fix syntax.
919         * modules/di-set (License): Likewise.
920         * modules/ino-map (License): Likewise.
921         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
922
923 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
924
925         stdalign: port to Clang 3.0
926         Problem reported by Simon Josefsson in
927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
928         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
929         which has <stdalign.h> but which does not define alignof.
930         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
931
932 2011-12-01  Eric Blake  <eblake@redhat.com>
933
934         mktempd: silence dd usage
935         * build-aux/mktempd (rand_bytes): Silence dd.
936
937 2011-11-30  Simon Josefsson  <simon@josefsson.org>
938
939         manywarnings: Don't mention gcc version in docstring.
940         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
941         Jim Meyering <meyering@redhat.com>.
942
943 2011-11-30  Jim Meyering  <meyering@redhat.com>
944
945         hash: mark a few floating point constants with "f" suffix
946         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
947         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
948         floating point constants with "f", since they're destined to be
949         saved/used as "float"s.
950
951 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
952
953         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
954         * tests/test-float.c (test_long_double): Correct and re-enable the
955         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
956
957 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
958
959         Avoid subtracting two pointers that don't point into the same block.
960         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
961         only pointers into the same memory block are subtracted. We cannot
962         assume that sizeof (ptrdiff_t) == sizeof (void *).
963
964 2011-11-29  Eric Blake  <eblake@redhat.com>
965
966         maint.mk: add syntax check for use of compare from init.sh
967         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
968         moved here from coreutils.
969
970         manywarnings: drop -Wunsuffixed-float-constants
971         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
972         '1.0D', which is the only way to silence this warning for 'double'.
973
974 2011-11-29  Jim Meyering  <meyering@redhat.com>
975
976         hash: mark compute_bucket_size with the pure attribute
977         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
978
979         quotearg, propername: correct pragma guard expression
980         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
981         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
982
983 2011-11-28  Jim Meyering  <meyering@redhat.com>
984
985         propername: do not mark proper_name with the const attribute
986         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
987         since it examines data pointed to by its parameter.
988         * lib/propername.c (proper_name): Instead, add a pragma to suppress
989         the suggestion from -Wsuggest-attribute=const.
990
991         propername: mark one more function as const
992         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
993
994 2011-11-27  Jim Meyering  <meyering@redhat.com>
995
996         mark functions with const and pure attributes
997
998         Mark functions per suggestions from gcc-4.6 when using these options:
999         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1000         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1001         Follow these guidelines: when possible, apply the attribute to
1002         an extern declaration, not to its definition.  Apply it to the
1003         definition only when the definition is static.
1004         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1005         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1006         * lib/base64.h (isbase64): Likewise.
1007         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1008         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1009         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1010         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1011         (c_tolower, c_toupper): Likewise.
1012         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1013         * lib/chdir-long.c (find_non_slash): Likewise.
1014         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1015         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1016         * lib/file-type.h (file_type): Likewise.
1017         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1018         * lib/filevercmp.c (verrevcmp): Likewise.
1019         * lib/freadahead.h (freadahead): Likewise.
1020         * lib/fts.c (fts_maxarglen): Likewise.
1021         * lib/hash-pjw.h (hash_pjw): Likewise.
1022         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1023         * lib/hash.c (is_prime, next_prime): Likewise.
1024         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1025         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1026         (hash_table_ok, hash_get_first, hash_string): Likewise.
1027         (compute_bucket_size): Likewise.
1028         * lib/i-ring.h (i_ring_empty): Likewise.
1029         * lib/isnan.c (isnanl): Likewise.
1030         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1031         * lib/memcasecmp.h (memcasecmp): Likewise.
1032         * lib/memchr2.h (memchr2): Likewise.
1033         * lib/memcmp2.h (memcmp2): Likewise.
1034         * lib/parse-datetime.y (lookup_zone): Likewise.
1035         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1036         [!WINDOWS_SOCKETS]: Likewise.
1037         * lib/strnlen1.h (strnlen1): Likewise.
1038         * lib/uniwidth.in.h (uc_width): Likewise.
1039         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1040         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1041         (quoting_options_from_style): Add a comment.
1042         * lib/propername.h (proper_name): Add a comment.
1043
1044 2011-11-27  Bruno Haible  <bruno@clisp.org>
1045
1046         Remove unused macros from !_LIBC code in glibc-borrowed files.
1047         * lib/fnmatch.c (STRCOLL): Remove macro.
1048         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1049         * lib/glob.c (__stat, __readdir64): Remove macros.
1050         * lib/tempname.c (__open64, __xstat64): Remove macros.
1051         Suggested by Paul Eggert.
1052
1053 2011-11-27  Bruno Haible  <bruno@clisp.org>
1054
1055         getcwd: Fix link error on MSVC 9.
1056         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1057
1058 2011-11-27  Bruno Haible  <bruno@clisp.org>
1059
1060         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1061         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1062         HAVE_OPENDIR is 0.
1063         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1064         HAVE_CLOSEDIR is 0.
1065         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1066         is 0.
1067         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1068
1069 2011-11-27  Bruno Haible  <bruno@clisp.org>
1070
1071         getcwd: Fix bug from 2011-08-17.
1072         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1073         platforms that need it.
1074         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1075         code of 4 to be a failure, not a success. This ensures that
1076         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1077
1078 2011-11-27  Bruno Haible  <bruno@clisp.org>
1079
1080         binary-io tests: Avoid test failure on mingw when libtool is used.
1081         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1082         Don't verify the size of t-bin-out1.tmp here.
1083         * tests/test-binary-io.sh: Verify it here.
1084         Reported by Simon Josefsson.
1085
1086 2011-11-26  Bruno Haible  <bruno@clisp.org>
1087
1088         Fix conflict between two instantiations of module 'unistd'.
1089         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1090         ${include_guard_prefix} also in the autoconf snippet.
1091         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1093         GNULIB_UNISTD_H_GETOPT.
1094         * modules/getopt-posix (configure.ac): Set the
1095         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1096         * modules/getopt-gnu (configure.ac): Likewise.
1097         * modules/unistd (Makefile.am): Change the substitution value of
1098         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1099         Reported by Simon Josefsson.
1100
1101 2011-11-25  Bruno Haible  <bruno@clisp.org>
1102
1103         pagealign_alloc: Doc and comments.
1104         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1105         module.
1106         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1107
1108 2011-11-25  Jim Meyering  <meyering@redhat.com>
1109
1110         test-update-copyright.sh: avoid false-positive failure
1111         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1112         around false positive failure on Cygwin/Windows.  The latter was
1113         matching erroneously-created files with names like
1114         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1115
1116 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1117
1118         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1119         * m4/valgrind-tests.m4: Check that the parameters that will be
1120         used works, not just a subset of them.  Reported by Bruno Haible
1121         <bruno@clisp.org>.
1122
1123 2011-11-24  Jim Meyering  <meyering@redhat.com>
1124
1125         test-stdalign.c: comment out long double tests
1126         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1127         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1128         error: '_Alignas' specifiers cannot reduce alignment of \
1129         'static_longdouble_alignas'.
1130
1131 2011-11-22  Jim Meyering  <meyering@redhat.com>
1132
1133         init.sh: make "compare /dev/null FILE" output more readable
1134         * tests/init.sh (compare_): Document the preferred order of arguments.
1135         (emit_diff_u_header_): New function.
1136         (compare_dev_null_): Emit a simulated diff, rather than just the
1137         contents of the unexpected file.  Suggestion from Bruno Haible.
1138
1139 2011-11-21  Jim Meyering  <meyering@redhat.com>
1140             Eric Blake  <eblake@redhat.com>
1141
1142         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1143         * tests/init.sh: Make our compare function slightly more portable.
1144         Reported by Bruno Haible in
1145         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1146
1147 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1148
1149         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1150         before using it, in code that ends up in config.h.
1151
1152 2011-11-20  Bruno Haible  <bruno@clisp.org>
1153
1154         getcwd: Work around getcwd bug on AIX 5..7.
1155         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1156         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1157         Use a different value for gl_cv_func_getcwd_path_max. Move the
1158         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1159         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1160         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1161         Define HAVE_MINIMALLY_WORKING_GETCWD.
1162         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1163         where it is not even minimally working, that is, on AIX.
1164         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1165         m4/getcwd-path-max.m4.
1166         (main): Update exit code computation.
1167         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1168         getcwd does not handle long file names.
1169
1170 2011-11-20  Bruno Haible  <bruno@clisp.org>
1171
1172         getcwd: Fix bug from 2009-09-10.
1173         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1174         like "no".
1175
1176 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1177
1178         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1179
1180 2011-11-20  Bruno Haible  <bruno@clisp.org>
1181
1182         fma tests: Avoid shadowing local variables.
1183         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1184         expected.
1185
1186 2011-11-20  Bruno Haible  <bruno@clisp.org>
1187
1188         copysignf tests: Fix.
1189         * tests/test-copysignf.c: Fix signature check.
1190
1191 2011-11-20  Bruno Haible  <bruno@clisp.org>
1192
1193         fma: Remove unused code.
1194         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1195         unused macros.
1196
1197 2011-11-20  Bruno Haible  <bruno@clisp.org>
1198
1199         sethostname: Fix doc about AIX.
1200         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1201         sethostname; it has it.
1202
1203         sethostname: Mention more portability problems.
1204         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1205         problem.
1206         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1207
1208 2011-11-19  Bruno Haible  <bruno@clisp.org>
1209
1210         Depend on module fcntl-h when AT_FDCWD is used.
1211         * modules/utimens (Depends-on): Add fcntl-h.
1212         * modules/areadlinkat (Depends-on): Likewise.
1213         * modules/areadlinkat-with-size (Depends-on): Likewise.
1214         * modules/faccessat (Depends-on): Likewise.
1215         * modules/fchmodat (Depends-on): Likewise.
1216         * modules/fchownat (Depends-on): Likewise.
1217         * modules/getcwd (Depends-on): Likewise.
1218         * modules/mkdirat (Depends-on): Likewise.
1219         * modules/mkfifoat (Depends-on): Likewise.
1220         * modules/readlinkat (Depends-on): Likewise.
1221         * modules/symlinkat (Depends-on): Likewise.
1222         * modules/dup2-tests (Depends-on): Likewise.
1223         * modules/fdutimensat-tests (Depends-on): Likewise.
1224         * modules/futimens-tests (Depends-on): Likewise.
1225
1226 2011-11-19  Bruno Haible  <bruno@clisp.org>
1227
1228         euidaccess: Update a comment.
1229         * lib/euidaccess.c: Update comment about platforms with faccessat.
1230
1231 2011-11-19  Bruno Haible  <bruno@clisp.org>
1232
1233         openat: Fix file list.
1234         * modules/openat (Files): Remove lib/at-func.c.
1235
1236 2011-11-19  Bruno Haible  <bruno@clisp.org>
1237
1238         fstatat: Simplify.
1239         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1240         gnulib should define rpl_fstatat, there is a
1241         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1242
1243 2011-11-19  Bruno Haible  <bruno@clisp.org>
1244
1245         Ensure 'inline' can be used in tests/test-utimens-common.h.
1246         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1247         * modules/futimens-tests (configure.ac): Likewise.
1248         * modules/utimens-tests (configure.ac): Likewise.
1249         * modules/utimensat-tests (configure.ac): Likewise.
1250
1251 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1252
1253         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1254         not hash_insert0.
1255         (hash_insert_if_absent): Doc fix.
1256
1257 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1258
1259         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1260
1261 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1262
1263         test-getcwd: disambiguate exit status
1264         * tests/test-getcwd.c (test_long_name): Return 0..7.
1265         (main): Exit with an unambiguous exit status.  The old
1266         code yielded a mysterious mixture of two failure codes.
1267
1268         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1269         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1270         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1271         rpl_fstatat or fstatat.  This should fix the other problem
1272         reported by Kai Habel in
1273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1274         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1276         and I reproduced it on a Solaris 8 host we still have in production.
1277
1278 2011-11-18  Jim Meyering  <meyering@redhat.com>
1279
1280         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1281         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1282         Add a sentence to the comment.
1283         (hash_insert0): New function that simply calls hash_insert_if_absent.
1284         * lib/hash.h (hash_insert_if_absent): Declare it.
1285         (hash_insert0): Add deprecation attribute.
1286         (_GL_ATTRIBUTE_DEPRECATED): Define.
1287         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1288         not hash_insert0.
1289         * NEWS: Mention it, even though it's not really an incompatible change.
1290
1291 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1292
1293         openat: avoid compilation failure due to lack of <errno.h> inclusion
1294         * lib/openat.c: Include <errno.h>.
1295
1296 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1297
1298         * modules/getcwd (Depends-on): Add fdopendir.
1299         This fixes one of the two problems reported by Kai Habel in
1300         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1301
1302         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1303         stdalign problem reported by Ian Beckwith in
1304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1305         * modules/crypto/gc-arcfour (Depends-on):
1306         Depend conditionally on crypto/arcfour.
1307         * modules/crypto/gc-arctwo (Depends-on):
1308         Depend conditionally on crypto/arctwo.
1309         * modules/crypto/gc-des (Depends-on):
1310         Depend conditionally on crypto/des.
1311         * modules/crypto/gc-hmac-md5 (Depends-on):
1312         Depend conditionally on crypto/hmac-md5.
1313         * modules/crypto/gc-hmac-sha1 (Depends-on):
1314         Depend conditionally on crypto/hmac-sha1.
1315         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1316         * modules/crypto/gc-md4 (Depends-on):
1317         Depend conditionally on crypto/md4.
1318         * modules/crypto/gc-md5 (Depends-on):
1319         Depend conditionally on crypto/md5.
1320         * modules/crypto/gc-rijndael (Depends-on):
1321         Depend conditionally on crypto/rijndael.
1322         * modules/crypto/gc-sha1 (Depends-on):
1323         Depend conditionally on crypto/sha1.
1324         * modules/crypto/gc-arcfour:
1325         * modules/crypto/gc-arctwo:
1326         * modules/crypto/gc-des:
1327         * modules/crypto/gc-hmac-md5:
1328         * modules/crypto/gc-hmac-sha1:
1329         * modules/crypto/gc-md2:
1330         * modules/crypto/gc-md4:
1331         * modules/crypto/gc-md5:
1332         * modules/crypto/gc-rijndael:
1333         * modules/crypto/gc-sha1:
1334         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1335         now that the conditional dependencies do the work for us.
1336
1337 2011-11-17  Jim Meyering  <meyering@redhat.com>
1338
1339         tests: factor st_ctime-comparison out of two headers
1340         * tests/test-utimens-common.h (ctime_compare): Define.
1341         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1342         * tests/test-lutimens.h (test_lutimens): Likewise.
1343         * tests/test-utimens.h (test_utimens): Likewise.
1344
1345         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1346         Invoke the test program via an init.sh-using wrapper.
1347         * tests/test-getcwd.sh: New file.
1348         * modules/getcwd-tests (Files): Add it.
1349         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1350
1351 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1352
1353         gitlog-to-changelog: support multi-author commits.
1354         The FSF cares about keeping track of all authors of patches to its
1355         projects, but Git doesn't provide obvious support for multi-author
1356         changesets. Consensus seems to be forming around the use of extra
1357         Signed-off-by inspired lines in the log message formatted as
1358         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1359         multi-author commits between version control systems.
1360         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1361         log message and output in standard ChangeLog multi-author format.
1362         Reported by Peter Rosin <peda@lysator.liu.se>
1363
1364 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1365             Bruno Haible  <bruno@clisp.org>
1366
1367         Fix some modules' file list.
1368         * modules/fstatat (Files): Add m4/lstat.m4.
1369         * modules/openat (Files): Likewise.
1370         * modules/unlinkat (Files): Likewise.
1371
1372 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1373
1374         maint.mk: fix tight-scope.mk generation in VPATH builds.
1375         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1376         reference with $(srcdir) so that the file is found correctly even
1377         when running `make syntax-check' in a VPATH build.
1378
1379 2011-11-13  Bruno Haible  <bruno@clisp.org>
1380             Jim Meyering  <meyering@redhat.com>
1381
1382         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1383         * tests/init.sh (compare): Remove "No differences encountered" or
1384         synonymous output from the 'diff' program.
1385
1386 2011-11-13  Bruno Haible  <bruno@clisp.org>
1387
1388         Makefile: Tweak indentation.
1389         * Makefile: Use tab as first character in every line that contains rule
1390         commands.
1391
1392 2011-11-13  Bruno Haible  <bruno@clisp.org>
1393
1394         Syntax check for copyright statements.
1395         * check-copyright: New file.
1396         * Makefile (sc_check_copyright): New rule.
1397
1398 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1399
1400         * build-aux/git-version-gen: Add --prefix to configure the tag
1401         match string.
1402
1403 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1404
1405         * build-aux/git-version-gen: Add --help and --version.
1406
1407 2011-11-12  Jim Meyering  <meyering@redhat.com>
1408
1409         revamp the other test-exclude?.sh scripts to use init.sh, too
1410         * tests/test-exclude1.sh: Use init.sh.
1411         * tests/test-exclude2.sh: Likewise.
1412         * tests/test-exclude3.sh: Likewise.
1413         * tests/test-exclude4.sh: Likewise.
1414         * tests/test-exclude5.sh: Likewise.
1415         * tests/test-exclude6.sh: Likewise.
1416         * tests/test-exclude7.sh: Likewise.
1417         * tests/test-exclude8.sh: Likewise.
1418         * modules/exclude-tests (Files): List init.sh.
1419
1420         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1421         These shell scripts ignored failure of the binary test-exclude,
1422         so making the latter return 77 didn't cause them to be skipped.
1423         * tests/test-exclude5.sh: Exit with test-exclude's error status
1424         when that program fails.  Revamp to use init.sh.
1425         * tests/test-exclude2.sh: Likewise.
1426
1427         test-exclude: fix a typo
1428         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1429
1430 2011-11-11  Bruno Haible  <bruno@clisp.org>
1431
1432         obstack: Fix compilation error on MSVC 9.
1433         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1434
1435 2011-11-11  Jim Meyering  <meyering@redhat.com>
1436
1437         test-exclude: skip tests rather than failing on deficient systems
1438         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1439         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1440         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1441         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1442
1443 2011-11-10  Bruno Haible  <bruno@clisp.org>
1444
1445         ptsname_r test: Avoid gcc warning on glibc systems.
1446         * tests/test-ptsname_r.c (null_ptr): New function.
1447         (test_errors): Use it.
1448
1449 2011-11-10  Bruno Haible  <bruno@clisp.org>
1450
1451         ptsname_r: Avoid compilation error on OSF/1 5.1.
1452         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1454         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1455         function is not declared or incompatibly declared.
1456         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1457         * modules/ptsname_r (Depends-on, configure.ac): Update.
1458         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1459
1460 2011-11-10  Bruno Haible  <bruno@clisp.org>
1461
1462         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1463         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1464         When cross-compiling, guess yes on all platforms except AIX.
1465         Reported by Ludovic Courtès <ludo@gnu.org>.
1466
1467 2011-11-09  Bruno Haible  <bruno@clisp.org>
1468
1469         ptsname_r tests: Fix bugs.
1470         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1471         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1472
1473 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1474
1475         fstatat: work with cross-compilation
1476         Problem reported by Ludovic Courtès in
1477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1478         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1479         "cross-compiling" and assume the bug is present.  Replace
1480         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1481         an inverted sense, to be more conservative about our assumptions.
1482         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1483
1484 2011-11-09  Bruno Haible  <bruno@clisp.org>
1485
1486         Improve MODULES.html output.
1487         * modules/mkfifoat (Description): Use the word "function".
1488         * modules/readlinkat (Description): Likewise.
1489         * modules/symlinkat (Description): Likewise.
1490
1491 2011-11-09  Eric Blake  <eblake@redhat.com>
1492
1493         ptsname_r-tests: new test module
1494         * modules/ptsname_r-tests: New module.
1495         * tests/test-ptsname_r.c: New file.
1496
1497         ptsname_r: new module
1498         * modules/ptsname_r: New module.
1499         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1500         * lib/ptsname.c (__ptsname_r): Split...
1501         * lib/ptsname_r.c: ...into new file.
1502         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1503         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1504         * modules/stdlib (Makefile.am): Substitute witnesses.
1505         * lib/stdlib.in.h (ptsname_r): Declare it.
1506         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1507         * MODULES.html.sh (Misc): Likewise.
1508         * modules/ptsname (Depends-on): Alter dependency.
1509         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1510
1511 2011-11-09  Jim Meyering  <meyering@redhat.com>
1512
1513         announce-gen: be more concise when there's only one URL+tarball
1514         * build-aux/announce-gen (get_tool_versions): When you distribute
1515         only one type of tarball, combine the first two "Here are..."
1516         sections and make the key-checking grammar independent of
1517         how many tarballs there are.
1518
1519 2011-11-09  Eric Blake  <eblake@redhat.com>
1520
1521         openpty: provide a stub on mingw
1522         * lib/pty.in.h (includes): Provide forward declarations.
1523         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1524
1525         raise: fix mingw handling of SIGPIPE
1526         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1527
1528 2011-11-08  Bruno Haible  <bruno@clisp.org>
1529
1530         More conditional dependencies.
1531         * modules/faccessat (Depends-on): Add conditions.
1532         * modules/fchmodat (Depends-on): Likewise.
1533         * modules/fchownat (Depends-on): Likewise.
1534         * modules/fstatat (Depends-on): Likewise.
1535         * modules/mkfifoat (Depends-on): Likewise.
1536         * modules/readlinkat (Depends-on): Likewise.
1537         * modules/symlinkat (Depends-on): Likewise.
1538         * modules/unlinkat (Depends-on): Likewise.
1539         * modules/utimensat (Depends-on): Likewise.
1540         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1541         * modules/linkat (Depends-on): Refine the conditions.
1542         * modules/renameat (Depends-on): Likewise.
1543
1544 2011-11-08  Bruno Haible  <bruno@clisp.org>
1545
1546         faccessat: Move AC_LIBOBJ invocation to module description.
1547         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1548         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1549         invocation from here...
1550         * modules/faccessat (configure.ac): ... to here. Invoke
1551         gl_PREREQ_FACCESSAT.
1552
1553 2011-11-08  Bruno Haible  <bruno@clisp.org>
1554
1555         faccessat: Simplify autoconf macro.
1556         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1557         gl_FUNC_EUIDACCESS.
1558
1559 2011-11-08  Bruno Haible  <bruno@clisp.org>
1560
1561         renameat: Fix dependencies.
1562         * modules/renameat (Depends-on): Add stdbool.
1563
1564 2011-11-08  Bruno Haible  <bruno@clisp.org>
1565
1566         mkfifoat: Fix module description.
1567         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1568         not gl_UNISTD_MODULE_INDICATOR.
1569
1570 2011-11-08  Bruno Haible  <bruno@clisp.org>
1571
1572         fstatat: Remove unused dependency.
1573         * modules/fstatat (Depends-on): Remove fstat.
1574
1575 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1576
1577         GNUmakefile: behave when Makefile is missing.
1578         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1579
1580 2011-11-08  Bruno Haible  <bruno@clisp.org>
1581
1582         openat: Conditionalize dependencies.
1583         * lib/openat.c: Reduce the scope of some #includes.
1584         * modules/openat (Depends-on): Add conditions.
1585
1586 2011-11-07  Jim Meyering  <meyering@redhat.com>
1587
1588         maint.mk: extract GPG key ID without using a temporary file
1589         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1590         without using a temporary file.  Based on a suggestion from Werner Koch
1591         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1592
1593 2011-11-07  Eric Blake  <eblake@redhat.com>
1594
1595         grantpt: fix typo
1596         * lib/stdlib.in.h (grantpt): Check correct function.
1597
1598         maint.mk: silence new syntax check
1599         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1600
1601 2011-11-06  Bruno Haible  <bruno@clisp.org>
1602
1603         Doc about floating-point and math API.
1604         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1605         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1606
1607 2011-11-06  Bruno Haible  <bruno@clisp.org>
1608
1609         stdalign tests: Skip the test when compiled by Sun C.
1610         * tests/test-stdalign.c (main): Skip the test on Sun C.
1611
1612 2011-11-06  Bruno Haible  <bruno@clisp.org>
1613
1614         ansi-c++-opt: Complete the 2011-06-05 change.
1615         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1616         does not support namespaces, set the variable to "no", not to ":".
1617
1618 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1619
1620         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1621
1622 2011-11-06  Bruno Haible  <bruno@clisp.org>
1623
1624         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1625         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1626         (minus_zerol) [HP-UX]: New macro.
1627         (unary_minus) [HP-UX]: New function.
1628         (copysignl) [HP-UX]: Use unary_minus function.
1629
1630 2011-11-06  Bruno Haible  <bruno@clisp.org>
1631
1632         ldexp, ldexpf, ldexpl: Enhance tests.
1633         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1634         and tests/test-ldexpl.c.
1635         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1636         LDEXP, MIN_EXP, MAX_EXP): New macros.
1637         Include test-ldexp.h.
1638         (main): Just call test_function.
1639         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1640         infinity.h, nan.h.
1641         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1642         MAX_EXP): New macros.
1643         Include test-ldexp.h.
1644         (x, y): Remove variables.
1645         (main): Just call test_function.
1646         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1647         infinity.h, nan.h.
1648         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1649         MAX_EXP): New macros.
1650         Include test-ldexp.h.
1651         (x, y): Remove variables.
1652         (main): Just call test_function.
1653         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1654         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1655         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1656         (Depends-on): Add isnand-nolibm, signbit, float.
1657         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1658         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1659         (Depends-on): Add isnanf-nolibm, signbit, float.
1660
1661 2011-11-06  Bruno Haible  <bruno@clisp.org>
1662
1663         math tests: Cosmetics.
1664         * tests/test-math-c++.cc: Reorder declarations.
1665
1666 2011-11-05  Bruno Haible  <bruno@clisp.org>
1667
1668         fma*: Simplify test.
1669         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1670         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1671
1672         Tests for module 'fmal'.
1673         * modules/fmal-tests: New file.
1674         * tests/test-fmal1.c: New file.
1675         * tests/test-fmal2.c: New file.
1676
1677         New module 'fmal'.
1678         * lib/math.in.h (fmal): New declaration.
1679         * lib/fmal.c: New file.
1680         * m4/fmal.m4: New file.
1681         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1683         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1684         REPLACE_FMAL.
1685         * modules/fmal: New file.
1686         * doc/posix-functions/fmal.texi: Mention the new module and the various
1687         bugs.
1688
1689         Tests for module 'fmaf'.
1690         * modules/fmaf-tests: New file.
1691         * tests/test-fmaf1.c: New file.
1692         * tests/test-fmaf2.c: New file.
1693
1694         New module 'fmaf'.
1695         * lib/math.in.h (fmaf): New declaration.
1696         * lib/fmaf.c: New file.
1697         * m4/fmaf.m4: New file.
1698         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1699         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1700         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1701         REPLACE_FMAF.
1702         * modules/fmaf: New file.
1703         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1704         bugs.
1705
1706         Tests for module 'fma'.
1707         * modules/fma-tests: New file.
1708         * tests/test-fma1.c: New file.
1709         * tests/test-fma1.h: New file.
1710         * tests/test-fma2.c: New file.
1711         * tests/test-fma2.h: New file.
1712
1713         New module 'fma'.
1714         * lib/math.in.h (fma): New declaration.
1715         * lib/fma.c: New file.
1716         * m4/fma.m4: New file.
1717         * m4/fegetround.m4: New file.
1718         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1720         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1721         REPLACE_FMA.
1722         * modules/fma: New file.
1723         * doc/posix-functions/fma.texi: Mention the new module and the various
1724         bugs.
1725
1726         Extend gl_MATHFUNC.
1727         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1728         Support 'void' as argument type.
1729         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1730
1731 2011-11-05  Jim Meyering  <meyering@redhat.com>
1732
1733         maint.mk: also prohibit inclusion of dirent.h without use
1734         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1735
1736 2011-11-05  Bruno Haible  <bruno@clisp.org>
1737
1738         ldexpl tests: Avoid test failure on MSVC 9.
1739         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1740         value. Needed in order to enforce the conversion from a value greater
1741         than LDBL_MAX to Infinity.
1742
1743 2011-11-05  Bruno Haible  <bruno@clisp.org>
1744
1745         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1746         * modules/at-internal: New file, extracted from modules/openat.
1747         * modules/openat-h: New file.
1748         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1749         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1750         * modules/openat (Description): Add reference to POSIX function.
1751         (Files): Remove lib/openat.h, lib/openat-proc.c.
1752         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1753         intprops, unistd.
1754         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1755         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1756         gl_FCNTL_MODULE_INDICATOR.
1757         (Include): Remove unistd.h, openat.h.
1758         * modules/areadlinkat (Files): Add lib/at-func.c.
1759         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1760         openat-die, openat-h, save-cwd.
1761         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1762         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1763         openat-die, openat-h, save-cwd, unistd.
1764         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1765         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1766         openat-h, save-cwd. Remove fcntl-h, openat.
1767         * modules/fchmodat (Files): Remove lib/openat.h.
1768         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1769         openat, stdbool, unistd.
1770         * modules/fchownat (Files): Remove lib/openat.h.
1771         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1772         openat, stdbool, sys_stat.
1773         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1774         lib/openat-proc.c.
1775         (Depends-on): Add at-internal.
1776         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1777         * modules/fstatat (Files): Remove lib/openat.h.
1778         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1779         stdbool, unistd.
1780         * modules/fts (Depends-on): Add openat-h.
1781         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1782         openat.
1783         * modules/mkdirat (Files): Remove lib/openat.h.
1784         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1785         openat, stdbool, sys_stat.
1786         * modules/mkfifoat (Files): Add lib/at-func.c.
1787         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1788         openat-h, save-cwd. Remove fcntl-h, openat.
1789         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1790         * modules/readlinkat (Files): Add lib/at-func.c.
1791         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1792         openat-h, save-cwd. Remove fcntl-h, openat.
1793         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1794         openat.
1795         * modules/selinux-at (Files): Add lib/at-func.c.
1796         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1797         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1798         * modules/symlinkat (Files): Add lib/at-func.c.
1799         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1800         openat-h, save-cwd. Remove fcntl-h, openat.
1801         * modules/unlinkat (Files): Remove lib/openat.h.
1802         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1803         stdbool.
1804         * modules/utimensat (Files): Add lib/at-func.c.
1805         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1806         openat-die, openat-h, save-cwd.
1807         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1808         * modules/fdutimensat-tests (Depends-on): Add openat.
1809         * modules/fstatat-tests (Depends-on): Add openat-h.
1810         * modules/readlinkat-tests (Depends-on): Add openat.
1811         * modules/symlinkat-tests (Depends-on): Add openat.
1812
1813 2011-11-05  Bruno Haible  <bruno@clisp.org>
1814
1815         openat: Include <stdbool.h>.
1816         * lib/openat.c: Include <stdbool.h>.
1817
1818 2011-11-04  Bruno Haible  <bruno@clisp.org>
1819
1820         fchownat, renameat, unlinkat: Fix dependencies.
1821         * modules/fchownat (Depends-on): Add fstatat.
1822         * modules/renameat (Depends-on): Likewise.
1823         * modules/unlinkat (Depends-on): Likewise.
1824
1825 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         openat: remove direct dependency on dirent
1828         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1829         and hasn't been needed ever since fdopendir was split into its own
1830         module on 2009-08-31.
1831         * modules/openat (Depends-on): Remove dirent.
1832
1833 2011-11-04  Bruno Haible  <bruno@clisp.org>
1834
1835         renameat: Optimize code size.
1836         * modules/renameat (configure.ac): Don't compile at-func2.c if
1837         REPLACE_RENAMEAT is 1.
1838
1839 2011-11-04  Bruno Haible  <bruno@clisp.org>
1840
1841         openat tests: Fix file list.
1842         * modules/openat-tests (Files): Add tests/test-open.h.
1843
1844 2011-11-04  Bruno Haible  <bruno@clisp.org>
1845
1846         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1847         * modules/fchmodat (Depends-on): Add openat-die.
1848         * modules/fchownat (Depends-on): Likewise.
1849         * modules/linkat (Depends-on): Likewise.
1850         * modules/renameat (Depends-on): Likewise.
1851         * modules/openat (Depends-on): Add dirent.
1852
1853 2011-11-04  Jim Meyering  <meyering@redhat.com>
1854
1855         at-func*.c: fix comments
1856         * lib/at-func2.c: Correct/improve first-line comment.
1857         * lib/at-func.c: Correct grammar in first-line comment.
1858
1859 2011-11-04  Bruno Haible  <bruno@clisp.org>
1860
1861         New module 'mkdirat', split off from module 'openat'.
1862         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1863         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1864         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1865         * modules/mkdirat: New file, extracted from modules/openat.
1866         * modules/openat (Files): Remove lib/mkdirat.c.
1867         (Depends-on): Remove mkdir.
1868         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1869         (Include): Remove <sys/stat.h>.
1870         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1871         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1872         tests/test-mkdir.h.
1873         (Depends-on): Remove ignore-value.
1874         (Makefile.am): Remove rules for test-mkdirat.
1875         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1876         of module 'openat'.
1877         * NEWS: Mention the change.
1878
1879 2011-11-04  Bruno Haible  <bruno@clisp.org>
1880
1881         closedir: Avoid warning on mingw.
1882         * lib/closedir.c: Include <unistd.h>.
1883
1884 2011-11-04  Bruno Haible  <bruno@clisp.org>
1885
1886         New module 'fstatat', split off from module 'openat'.
1887         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1888         defined.
1889         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1890         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1891         gl_FUNC_FSTATAT.
1892         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1893         * modules/fstatat: New file, extracted from modules/openat.
1894         * modules/openat (Files): Remove lib/fstatat.c.
1895         (Depends-on): Remove lstat.
1896         (configure.ac): Remove AC_LIBOBJ of fstatat.
1897         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1898         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1899         tests/test-lstat.h, tests/test-stat.h.
1900         (Depends-on): Remove getcwd-lgpl.
1901         (Makefile.am): Remove rules for test-fstatat.
1902         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1903         of module 'openat'.
1904         * NEWS: Mention the change.
1905         * modules/getcwd (Depends-on): Add fstatat.
1906         * modules/linkat (Depends-on): Likewise.
1907         * modules/mkfifoat-tests (Depends-on): Likewise.
1908         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1909
1910 2011-11-03  Bruno Haible  <bruno@clisp.org>
1911
1912         New module 'unlinkat', split off from module 'openat'.
1913         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1914         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1915         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1916         * modules/unlinkat: New file, extracted from modules/openat. Correct
1917         the dependency conditions.
1918         * modules/openat (Files): Remove lib/unlinkat.c.
1919         (Depends-on): Remove rmdir, unlink.
1920         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1921         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1922         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1923         tests/test-rmdir.h, tests/test-unlink.h.
1924         (Depends-on): Remove unlinkdir.
1925         (Makefile.am): Remove rules for test-unlinkat.
1926         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1927         of module 'openat'.
1928         * NEWS: Mention the change.
1929         * modules/linkat-tests (Depends-on): Add unlinkat.
1930         * modules/mkfifoat-tests (Depends-on): Likewise.
1931         * modules/readlinkat-tests (Depends-on): Likewise.
1932
1933 2011-11-02  Bruno Haible  <bruno@clisp.org>
1934
1935         New module 'fchmodat', split off from module 'openat'.
1936         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1937         defined.
1938         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1939         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1940         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1941         * modules/fchmodat: New file, extracted from modules/openat.
1942         * modules/openat (Files): Remove lib/fchmodat.c.
1943         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1944         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1945         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1946         (Makefile.am): Remove rules for test-fchmodat.
1947         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1948         of module 'openat'.
1949         * NEWS: Mention the change.
1950
1951 2011-11-02  Jim Meyering  <meyering@redhat.com>
1952
1953         putenv: indent #definition of "environ" to placate cppi
1954         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1955
1956         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1957         Git logs are often treated as immutable, because editing them
1958         changes the SHA1 checksums of all descendants.  Thus, errors in
1959         git logs tend to stay there forever.  However, when we generate
1960         a ChangeLog file -- typically for distribution -- from that git log,
1961         we can actually make corrections in the generated file.  The key
1962         lies in recording in machine-readable/applicable form the desired
1963         corrections.  See --help for description and an example.
1964         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1965         (usage): Describe it; alphabetize option descriptions.
1966         (main): Honor the new option, carefully.
1967
1968 2011-11-01  Jim Meyering  <meyering@redhat.com>
1969
1970         gitlog-to-changelog: avoid an infloop
1971         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1972         that ends up being empty.
1973
1974 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1975
1976         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1977         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1978         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1979         contains (possibly-quoted) backslashes.  This should avoid
1980         all-too-common shell bugs if COMPLICATED contains backslashes in
1981         the "wrong" places.  Reported by David Evans in
1982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1983         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1984         because we want ASCII ranges.  Is there some reason we don't use
1985         the C locale everywhere in this script?
1986         (func_module, top level): Avoid unwanted pathname expansion when
1987         $repo_url_prefix or $repo_url_suffix_repl contain shell
1988         metacharacters like '?' and '*'.
1989
1990 2011-11-01  Bruno Haible  <bruno@clisp.org>
1991
1992         fchownat: Improve description.
1993         * modules/fchownat (Description): Add link to function.
1994
1995 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1996
1997         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1998         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2000         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2001
2002 2011-11-01  Bruno Haible  <bruno@clisp.org>
2003
2004         alignof: Avoid collision with stdalign module.
2005         * lib/alignof.h (alignof): Remove macro.
2006         * NEWS: Mention the change.
2007         Reported by Paul Eggert.
2008
2009 2011-11-01  Bruno Haible  <bruno@clisp.org>
2010
2011         New module 'fchownat', split off from module 'openat'.
2012         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2013         defined.
2014         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2015         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2016         invoke gl_FUNC_FCHOWNAT.
2017         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2018         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2019         * modules/fchownat: New file, extracted from modules/openat.
2020         * modules/openat (Files): Remove lib/fchownat.c.
2021         (Depends-on): Remove lchown.
2022         (configure.ac): Remove AC_LIBOBJ of fchownat.
2023         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2024         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2025         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2026         (Depends-on): Remove mgetgroups, usleep, stat-time.
2027         (configure.ac): Remove test for getegid.
2028         (Makefile.am): Remove rules for test-fchownat.
2029         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2030         of module 'openat'.
2031         * NEWS: Mention the change.
2032
2033 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2034
2035         stdalign: port better to MSVC and to Sun C 5.11
2036         This fixes some of the problems reported by Bruno Haible in
2037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2038         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2039         shortcomings of MSVC and of Sun C 5.11.
2040         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2041         around __declspec arg.
2042         * modules/stdalign-tests (Files): Add tests/macros.h.
2043         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2044         Include macros.h, for ASSERT.
2045         (DECLARE_ALIGNED): Remove.
2046         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2047         to catch bug), and to 1 if not (simplifies the rest of the code).
2048         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2049         (CHECK_AUTO): Remove.
2050         (CHECK_ALIGNED): Check only the alignment of the static vars,
2051         since auto var alignment isn't supported by Sun C 5.11.
2052         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2053         ASSERT failures are easier to diagnose.
2054
2055 2011-10-31  Bruno Haible  <bruno@clisp.org>
2056
2057         doc about some IRIX 5.3 problems.
2058         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2059         on IRIX 5.3.
2060         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2061         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2062         5.3.
2063         * doc/posix-functions/grantpt.texi: Likewise.
2064         * doc/posix-functions/unlockpt.texi: Likewise.
2065         * doc/posix-functions/lgamma.texi: Likewise.
2066         * doc/posix-functions/nextafter.texi: Likewise.
2067         * doc/posix-functions/remainder.texi: Likewise.
2068         * doc/posix-functions/select.texi: Mention misplaced declaration on
2069         IRIX 5.3.
2070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2071
2072 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2073
2074         gitlog-to-changelog: fix git-log invocation.
2075         git-log mishandles date strings before 1970-01-01 UTC, and there is
2076         no use to specify --since=1970-01-01 by default anyway.
2077         * build-aux/gitlog-to-changelog: By default, when no --since option
2078         was given, do not specify explicit --since option to git-log.
2079
2080 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2081
2082         gitlog-to-changelog: new option --append-dot.
2083         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2084         first non-blank line of each commit message terminated with a dot.
2085
2086 2011-10-30  Bruno Haible  <bruno@clisp.org>
2087
2088         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2089         * lib/ffsl.h: Include <config.h>.
2090         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2091
2092 2011-10-30  Jim Meyering  <meyering@redhat.com>
2093
2094         GNUmakefile: reenable "make syntax-check" for most projects
2095         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2096         build-aux variable", "syntax-check" would do nothing but succeed with
2097         the "No version control files detected..." diagnostic (unless you
2098         happened to override _build-aux via cfg.mk).
2099         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2100         to precede inclusion of maint.mk.  Otherwise, these variables would
2101         be used undefined in any project that does not override the default.
2102
2103 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2104
2105         gitlog-to-changelog: treat a message with only blank lines as empty.
2106         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2107         trailing blank lines before the code that issues a warning about an
2108         empty commit message.
2109
2110 2011-10-30  Jim Meyering  <meyering@redhat.com>
2111
2112         test-parse-datetime.c: avoid new DST-related false positive test failure
2113         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2114         based on the time/date we'll convert, not the current time.
2115         Otherwise, the moment we cross a DST boundary like today's in
2116         Europe, (CEST to CET), that offset ends up being one hour off.
2117
2118 2011-10-27  Bruno Haible  <bruno@clisp.org>
2119
2120         fstat: Tweak documentation.
2121         * modules/fstat (Description): More precise description.
2122
2123 2011-10-27  Bruno Haible  <bruno@clisp.org>
2124
2125         Update documentation regarding 'largefile' module.
2126         * doc/posix-functions/fstat.texi: Tweak wording.
2127         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2128         problems with huge directories and/or small ino_t types.
2129         * doc/posix-functions/readdir.texi: Likewise.
2130         * doc/posix-functions/rewinddir.texi: Likewise.
2131
2132 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2133
2134         maint.mk: don't maintain a second build-aux variable.
2135         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2136         depends on GNUmakefile, which already maintains a cfg.mk
2137         overridable $(_build-aux) for projects with a non-standard
2138         build-aux directory location, although without the $(srcdir)
2139         prefix.  Use that variable consistently instead of introducing a
2140         second one.  Adjust all call sites.
2141
2142 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2143
2144         Add stdalign module and use it in other modules.
2145         This is based on a previous proposal by Bruno Haible
2146         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2147
2148         stdalign: new module
2149         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2150         * modules/stdalign: New files.
2151         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2152         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2153
2154         stdalign-tests: new module
2155         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2156
2157         argp: use stdalign
2158         * lib/argp-parse.c: Include <stdalign.h>.
2159         (alignof): Remove.
2160         * modules/argp (Depends-on): Add stdalign.
2161
2162         crypto libraries: use stdalign
2163         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2164         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2165         Do not include <stdlib.h> twice, in md4.c.
2166         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2167         because we are accessing a pointer's bit-pattern, not a size.
2168         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2169         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2170         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2171         * modules/crypto/sha512: Likewise.
2172
2173         sys_socket: use stdalign, not alignof
2174         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2175         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2176
2177 2011-10-27  Bruno Haible  <bruno@clisp.org>
2178
2179         raise test: Avoid a test failure on Linux/MIPS.
2180         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2181         because 99 is a valid signal on Linux/MIPS.
2182
2183 2011-10-27  Bruno Haible  <bruno@clisp.org>
2184
2185         nonblocking tests: Fix test failure on Linux/MIPS.
2186         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2187         Set to 270000.
2188
2189 2011-10-27  Bruno Haible  <bruno@clisp.org>
2190
2191         utimensat: Work around problem on Linux/hppa.
2192         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2193         values.
2194         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2195
2196 2011-10-25  Jim Meyering  <meyering@redhat.com>
2197
2198         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2199         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2200         after symbols like NULL, size_t, etc.
2201         Reported by Alfred M. Szmidt.
2202
2203         maint.mk: exempt ENODATA from a syntax-check rule
2204         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2205         from the sc_prohibit_always-defined_macros syntax-check rule.
2206         Add a comment.  See this for more details:
2207         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2208
2209 2011-10-23  Jim Meyering  <meyering@redhat.com>
2210
2211         fts: close parent dir FD before returning from post-traversal fts_read
2212         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2213         unlink A, even though an FD open on A remained.  This is suboptimal
2214         (holding a file descriptor open longer than needed), but otherwise not
2215         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2216         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2217         that represents a real problem: it causes the removal of A to fail
2218         with e.g., "rm: cannot remove `A': Device or resource busy"
2219
2220         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2221         directory file descriptors.  After completing the final, FTS_DP,
2222         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2223         cache, but then proceeded to add a new FD to it via the subsequent
2224         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2225         final file descriptor would be closed only via fts_close's call to
2226         fd_ring_clear.  Now, it is usually closed earlier, via the final
2227         FTS_DP-returning fts_read call.
2228         * lib/fts.c (restore_initial_cwd): New function, converted from
2229         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2230         Update callers.
2231         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2232         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2233
2234 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2235             Bruno Haible  <bruno@clisp.org>
2236             Jim Meyering  <jim@meyering.net>
2237
2238         readme-release: improve safety of release prep instructions.
2239         * README-release: Don't git pull all branches when only master
2240         is needed for the release process.
2241         Run make maintainer-clean before changing trees and merging.
2242         Don't try to run ./configure right after git pull in case files
2243         that influence the bootstrap process have changed, move the
2244         ./configure step to after running ./bootstrap.
2245         Don't bootstrap "one last time"... it's the first time!
2246
2247 2011-10-22  Bruno Haible  <bruno@clisp.org>
2248
2249         errno, strerror-override: Support for MSVC 10.
2250         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2251         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2252         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2253         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2254         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2255         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2256         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2257         Assign values compatible with MSVC 10.
2258         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2259         New macros.
2260         (GNULIB_defined_EWINSOCK): New macro.
2261         * lib/strerror-override.c (strerror_override): Update accordingly.
2262         * lib/strerror-override.h: Likewise.
2263         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2264         longer equal to the corresponding errno value.
2265         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2266
2267 2011-10-22  Bruno Haible  <bruno@clisp.org>
2268
2269         perror: Recognize when test program crashes.
2270         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2271         strerror, set gl_cv_func_perror_works to no.
2272         Reported by Daniel Richard G. <skunk@iskunk.org>.
2273
2274         perror: Fix indentation.
2275         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2276
2277 2011-10-22  Bruno Haible  <bruno@clisp.org>
2278
2279         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2280         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2281         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2282         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2283         functions, not as a macro.
2284         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2285         macros.
2286         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2287         absence of macro.
2288         Suggested by Eric Blake.
2289         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2290
2291 2011-10-21  Bruno Haible  <bruno@clisp.org>
2292
2293         relocatable-prog-wrapper: Don't leave object files behind.
2294         * build-aux/install-reloc: Re-synchronize list of .o files to be
2295         removed with list of compilation units.
2296
2297 2011-10-20  Bruno Haible  <bruno@clisp.org>
2298
2299         openpty, posix_openpt: Remove code duplication.
2300         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2301         * lib/openpty.c: Include <stdlib.h>.
2302         (openpty): Use posix_openpt on all platforms except IRIX.
2303         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2304
2305 2011-10-20  Bruno Haible  <bruno@clisp.org>
2306
2307         unlockpt: Detect invalid argument.
2308         * lib/unlockpt.c: Include <fcntl.h>.
2309         (unlockpt): Check whether fd is valid, using fcntl().
2310         * modules/unlockpt (Depends-on): Add fcntl-h.
2311
2312 2011-10-20  Bruno Haible  <bruno@clisp.org>
2313
2314         openpty: Avoid compilation error on AIX 6.1.
2315         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2316
2317 2011-10-20  Bruno Haible  <bruno@clisp.org>
2318
2319         posix_openpt: Support for OpenBSD.
2320         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2321         (posix_openpt) [OpenBSD]: New code.
2322         * lib/grantpt.c: Include <fcntl.h>.
2323         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2324         * modules/grantpt (Depends-on): Add fcntl-h.
2325
2326 2011-10-20  Bruno Haible  <bruno@clisp.org>
2327
2328         posix_openpt test: Coding style.
2329         * tests/test-posix_openpt.c: Use GNU coding style.
2330
2331 2011-10-20  Bruno Haible  <bruno@clisp.org>
2332
2333         grantpt: Support --avoid=pt_chown.
2334         * modules/grantpt (Files): Add lib/pty-private.h.
2335
2336 2011-10-20  Bruno Haible  <bruno@clisp.org>
2337
2338         posix_openpt: Fix autoconf macro.
2339         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2340         unneeded check for _getpty.
2341
2342 2011-10-20  Bruno Haible  <bruno@clisp.org>
2343
2344         openpty: Update comments.
2345         * lib/openpty.c: Add comments about Minix.
2346
2347 2011-10-19  Eric Blake  <eblake@redhat.com>
2348
2349         openpty: relax license
2350         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2351
2352         pt_chown: use configmake to simplify build
2353         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2354
2355         ptsname and others: relax license
2356         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2357         * modules/unlockpt (License): Likewise.
2358         * modules/pt_chown (License): Likewise.
2359         * modules/ptsname (License): Likewise.
2360         * modules/ttyname_r (License): Likewise.
2361
2362 2011-10-19  Jim Meyering  <meyering@redhat.com>
2363
2364         posix_openpt: remove spurious #endif
2365         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2366
2367 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2368
2369         maint.mk: Respect $(build_aux) in web-manual rule.
2370         * top/maint.mk (web-manual): Find gen-announce script in user's
2371         $(build_aux) directory instead of hard-coding 'build-aux'.
2372
2373 2011-10-19  Bruno Haible  <bruno@clisp.org>
2374
2375         posix_openpt: Fix compilation error.
2376         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2377         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2378         Mention the openpty module as an alternative.
2379
2380 2011-10-19  Bruno Haible  <bruno@clisp.org>
2381
2382         Support for old NeXTstep 3.3 frexp().
2383         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2384         execution time of the test to 5 seconds.
2385         Reported by Daniel Richard G. <skunk@iskunk.org>.
2386
2387 2011-10-19  Bruno Haible  <bruno@clisp.org>
2388
2389         Support for old NeXTstep 3.3 sed.
2390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2391         part, use /.../, not \|...|. Escape periods in the header file name.
2392         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2393         Reported by Daniel Richard G. <skunk@iskunk.org>.
2394
2395 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2396
2397         Support for old NeXTstep 3.3 gcc.
2398         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2399         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2400         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2401         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2402         * lib/regex.h (_Restrict_arr_): Likewise.
2403         * lib/regex_internal.h (re_token_t): Likewise.
2404         * lib/regexec.c (check_node_accept_bytes): Likewise.
2405         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2406
2407 2011-10-18  Eric Blake  <eblake@redhat.com>
2408
2409         posix_openpt: new module
2410         * modules/posix_openpt: New module.
2411         * m4/posix_openpt.m4: New file.
2412         * lib/posix_openpt.c: Likewise.
2413         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2414         (gl_STDLIB_H_DEFAULTS): Set defaults.
2415         * modules/stdlib (Makefile.am): Substitute macros.
2416         * lib/stdlib.in.h (posix_openpt): Declare.
2417         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2418         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2419         * modules/posix_openpt-tests: New test module.
2420         * tests/test-posix_openpt.c: New test.
2421
2422 2011-10-15  Bruno Haible  <bruno@clisp.org>
2423
2424         xstrtoll: Fix compilation failure.
2425         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2426         from lib/strtol.c.
2427         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2428         some platforms.
2429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2430
2431 2011-10-15  Bruno Haible  <bruno@clisp.org>
2432
2433         vasnprintf: Optimize bit search operation.
2434         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2436         gl_DOUBLE_EXPONENT_LOCATION.
2437         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2438         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2439         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2440         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2441         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2442         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2443         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2444         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2445         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2446
2447 2011-10-15  Bruno Haible  <bruno@clisp.org>
2448
2449         vasnprintf: Fix comments.
2450         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2451
2452 2011-10-14  Bruno Haible  <bruno@clisp.org>
2453
2454         Tests for module 'integer_length_ll'.
2455         * modules/integer_length_ll-tests: New file.
2456         * tests/test-integer_length_ll.c: New file.
2457
2458         New module 'integer_length_ll'.
2459         * lib/integer_length_ll.c: New file.
2460         * modules/integer_length_ll: New file.
2461
2462 2011-10-14  Bruno Haible  <bruno@clisp.org>
2463
2464         Tests for module 'integer_length_l'.
2465         * modules/integer_length_l-tests: New file.
2466         * tests/test-integer_length_l.c: New file.
2467
2468         New module 'integer_length_l'.
2469         * lib/integer_length_l.c: New file.
2470         * modules/integer_length_l: New file.
2471
2472 2011-10-14  Bruno Haible  <bruno@clisp.org>
2473
2474         Tests for module 'integer_length'.
2475         * modules/integer_length-tests: New file.
2476         * tests/test-integer_length.c: New file.
2477
2478         New module 'integer_length'.
2479         * lib/integer_length.h: New file.
2480         * lib/integer_length.c: New file.
2481         * modules/integer_length: New file.
2482
2483 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2484
2485         popen: Fix dependency conditions.
2486         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2487
2488 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2489
2490         perror: Fix autoconf test.
2491         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2492         <stdlib.h> and <string.h>.
2493
2494 2011-10-14  Bruno Haible  <bruno@clisp.org>
2495
2496         ffsl: Optimize on 64-bit platforms.
2497         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2498         unrolling.
2499
2500 2011-10-13  Bruno Haible  <bruno@clisp.org>
2501
2502         ffsl: Optimize on 32-bit platforms.
2503         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2504         use ffs() without a loop.
2505
2506         ffsl, ffsll: Optimize for GCC.
2507         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2508         * lib/ffsl.c (GCC_BUILTIN): New macro.
2509         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2510
2511 2011-10-13  Bruno Haible  <bruno@clisp.org>
2512
2513         ffs, bcopy, memset: Support symbol renaming via config.h.
2514         * lib/ffs.c: Include <config.h>.
2515         * lib/bcopy.c: Likewise.
2516         * lib/memset.c: Likewise.
2517
2518 2011-10-10  Bruno Haible  <bruno@clisp.org>
2519
2520         atanl: Simplify for platforms where 'long double' == 'double'.
2521         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2522         alternative implementation.
2523         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2524         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2525         * modules/atanl (Depends-on): Add atan. Update conditions.
2526
2527 2011-10-10  Bruno Haible  <bruno@clisp.org>
2528
2529         acosl: Simplify for platforms where 'long double' == 'double'.
2530         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2531         alternative implementation.
2532         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2533         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2534         * modules/acosl (Depends-on): Add acos. Update conditions.
2535
2536 2011-10-10  Bruno Haible  <bruno@clisp.org>
2537
2538         asinl: Simplify for platforms where 'long double' == 'double'.
2539         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2540         alternative implementation.
2541         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2542         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2543         * modules/asinl (Depends-on): Add asin. Update conditions.
2544
2545 2011-10-10  Bruno Haible  <bruno@clisp.org>
2546
2547         tanl: Simplify for platforms where 'long double' == 'double'.
2548         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2549         implementation.
2550         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2551         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2552         * modules/tanl (Depends-on): Add tan. Update conditions.
2553         (configure.ac): Don't compile trigl.c if
2554         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2555
2556 2011-10-10  Bruno Haible  <bruno@clisp.org>
2557
2558         cosl: Simplify for platforms where 'long double' == 'double'.
2559         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2560         implementation.
2561         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2562         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2563         * modules/cosl (Depends-on): Add cos. Update conditions.
2564         (configure.ac): Don't compile sincosl.c and trigl.c if
2565         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2566
2567 2011-10-10  Bruno Haible  <bruno@clisp.org>
2568
2569         sinl: Simplify for platforms where 'long double' == 'double'.
2570         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2571         implementation.
2572         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2573         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2574         * modules/sinl (Depends-on): Add sin. Update conditions.
2575         (configure.ac): Don't compile sincosl.c and trigl.c if
2576         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2577
2578 2011-10-10  Bruno Haible  <bruno@clisp.org>
2579
2580         logl: Simplify for platforms where 'long double' == 'double'.
2581         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2582         implementation.
2583         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2584         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2585         * modules/logl (Depends-on): Add log. Update conditions.
2586
2587 2011-10-10  Bruno Haible  <bruno@clisp.org>
2588
2589         expl: Simplify for platforms where 'long double' == 'double'.
2590         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2591         implementation.
2592         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2593         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2594         * modules/expl (Depends-on): Add exp. Update conditions.
2595
2596 2011-10-10  Bruno Haible  <bruno@clisp.org>
2597
2598         sqrtl: Simplify for platforms where 'long double' == 'double'.
2599         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2600         alternative implementation.
2601         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2602         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2603         * modules/sqrtl (Depends-on): Update conditions.
2604
2605 2011-10-10  Bruno Haible  <bruno@clisp.org>
2606
2607         ldexpl: Simplify for platforms where 'long double' == 'double'.
2608         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2609         alternative implementation.
2610         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2611         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2612         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2613
2614 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2615
2616         ffsll: set correct witness
2617         * modules/ffsll (configure.ac): Fix typo.
2618
2619 2011-10-10  Bruno Haible  <bruno@clisp.org>
2620
2621         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2622         * lib/printf-frexpl.c: Include <config.h>.
2623         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2624         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2625         second time.
2626         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2627         gl_LONG_DOUBLE_VS_DOUBLE.
2628         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2629         conditions.
2630
2631 2011-10-10  Bruno Haible  <bruno@clisp.org>
2632
2633         frexpl: Simplify for platforms where 'long double' == 'double'.
2634         * lib/frexpl.c: Include <config.h>.
2635         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2636         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2637         time.
2638         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2639         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2640         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2641         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2642         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2643         conditions.
2644
2645 2011-10-10  Jim Meyering  <meyering@redhat.com>
2646
2647         test-renameat: don't leave behind a temporary file
2648         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2649           ERROR: files left in build directory after distclean:
2650           ./gltests/test-renameat.too
2651           make[1]: *** [distcleancheck] Error 1
2652         Reported by Tom G. Christensen.
2653
2654 2011-10-09  Bruno Haible  <bruno@clisp.org>
2655
2656         rint: Determine RINT_LIBM correctly on AIX 7.
2657         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2658         directly, not only through a function pointer. Also accept an optional
2659         4th argument with extra code.
2660         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2661         rintf() call by gcc when optimizing.
2662
2663         mathfunc.m4: Refactor.
2664         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2665         m4 variable.
2666
2667 2011-10-09  Bruno Haible  <bruno@clisp.org>
2668
2669         rintl: Simplify for platforms where 'long double' == 'double'.
2670         * lib/rintl.c: Include <config.h>.
2671         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2672         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2673         time.
2674         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2675         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2676         * modules/rintl (Depends-on): Add rint. Update conditions.
2677
2678 2011-10-09  Bruno Haible  <bruno@clisp.org>
2679
2680         roundl: Simplify for platforms where 'long double' == 'double'.
2681         * lib/roundl.c: Include <config.h>.
2682         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2683         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2684         time.
2685         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2686         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2687         * modules/roundl (Depends-on): Add round. Update conditions.
2688
2689 2011-10-09  Bruno Haible  <bruno@clisp.org>
2690
2691         truncl: Simplify for platforms where 'long double' == 'double'.
2692         * lib/truncl.c: Include <config.h>.
2693         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2694         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2695         time.
2696         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2697         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2698         * modules/truncl (Depends-on): Add trunc. Update conditions.
2699
2700 2011-10-09  Bruno Haible  <bruno@clisp.org>
2701
2702         ceill: Simplify for platforms where 'long double' == 'double'.
2703         * lib/ceill.c: Include <config.h>.
2704         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2705         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2706         time.
2707         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2708         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2709         * modules/ceill (Depends-on): Add ceil. Update conditions.
2710
2711 2011-10-09  Bruno Haible  <bruno@clisp.org>
2712
2713         floorl: Simplify for platforms where 'long double' == 'double'.
2714         * lib/floorl.c: Include <config.h>.
2715         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2716         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2717         time.
2718         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2719         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2720         * modules/floorl (Depends-on): Add floor. Update conditions.
2721
2722 2011-10-09  Bruno Haible  <bruno@clisp.org>
2723
2724         rint: Fix ordering constraints.
2725         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2726         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2727         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2728
2729 2011-10-09  Bruno Haible  <bruno@clisp.org>
2730
2731         copysignl: Simplify for platforms where 'long double' == 'double'.
2732         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2733         alternative.
2734         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2735         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2736         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2737
2738 2011-10-09  Bruno Haible  <bruno@clisp.org>
2739
2740         Tests for module 'rintl'.
2741         * modules/rintl-tests: New file.
2742         * tests/test-rintl.c: New file.
2743
2744         New module 'rintl'.
2745         * lib/math.in.h (rintl): New declaration.
2746         * lib/rintl.c: New file.
2747         * m4/rintl.m4: New file.
2748         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2750         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2751         * modules/rintl: New file.
2752         * tests/test-math-c++.cc: Check the declaration of rintl.
2753         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2754         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2755         * doc/posix-functions/rintl.texi: Mention the new module.
2756
2757 2011-10-09  Bruno Haible  <bruno@clisp.org>
2758
2759         Tests for module 'rintf'.
2760         * modules/rintf-tests: New file.
2761         * tests/test-rintf.c: New file.
2762
2763         New module 'rintf'.
2764         * lib/math.in.h (rintf): New declaration.
2765         * lib/rintf.c: New file.
2766         * m4/rintf.m4: New file.
2767         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2769         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2770         * modules/rintf: New file.
2771         * tests/test-math-c++.cc: Check the declaration of rintf.
2772         * doc/posix-functions/rintf.texi: Mention the new module.
2773
2774 2011-10-09  Bruno Haible  <bruno@clisp.org>
2775
2776         rint: Support for MSVC.
2777         * lib/math.in.h (rint): New declaration.
2778         * lib/rint.c: New file.
2779         * m4/rint.m4: New file.
2780         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2782         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2783         * modules/rint (Description): Fix.
2784         (Files): Add lib/rint.c, m4/rint.m4.
2785         (Depends-on): Add math.
2786         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2787         gl_MATH_MODULE_INDICATOR.
2788         * tests/test-math-c++.cc: Check the declaration of rint.
2789         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2790         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2791         * doc/posix-functions/rint.texi: Mention the replacement provided by
2792         the module.
2793
2794         rint tests: More tests.
2795         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2796         minus-zero.h, infinity.h, nan.h.
2797         (main): Skip the test if the current rounding mode is not standard. Add
2798         tests for negative numbers, minus zero, infinity, NaN.
2799         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2800         tests/nan.h.
2801         (Depends-on): Add isnand-nolibm.
2802
2803 2011-10-09  Bruno Haible  <bruno@clisp.org>
2804
2805         Tests for module 'copysignl'.
2806         * modules/copysignl-tests: New file.
2807         * tests/test-copysignl.c: New file.
2808
2809         New module 'copysignl'.
2810         * lib/math.in.h (copysignl): New declaration.
2811         * lib/copysignl.c: New file.
2812         * m4/copysignl.m4: New file.
2813         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2815         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2816         HAVE_COPYSIGNL.
2817         * modules/copysignl: New file.
2818         * tests/test-math-c++.cc: Check the declaration of copysignl.
2819         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2820         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2821         * doc/posix-functions/copysignl.texi: Mention the new module.
2822
2823 2011-10-09  Bruno Haible  <bruno@clisp.org>
2824
2825         Tests for module 'copysignf'.
2826         * modules/copysignf-tests: New file.
2827         * tests/test-copysignf.c: New file.
2828
2829         New module 'copysignf'.
2830         * lib/math.in.h (copysignf): New declaration.
2831         * lib/copysignf.c: New file.
2832         * m4/copysignf.m4: New file.
2833         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2835         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2836         HAVE_COPYSIGNF.
2837         * modules/copysignf: New file.
2838         * tests/test-math-c++.cc: Check the declaration of copysignf.
2839         * doc/posix-functions/copysignf.texi: Mention the new module.
2840
2841 2011-10-09  Bruno Haible  <bruno@clisp.org>
2842
2843         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2844         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2845         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2846         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2847         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2848         gl_SIGNAL_H_DEFAULTS.
2849
2850 2011-10-09  Bruno Haible  <bruno@clisp.org>
2851
2852         poll: Make macro safer.
2853         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2854         ac_cv_header_poll_h is not set.
2855
2856 2011-10-09  Bruno Haible  <bruno@clisp.org>
2857
2858         copysign: Provide replacement.
2859         * lib/math.in.h (copysign): New declaration.
2860         * lib/copysign.c: New file.
2861         * m4/copysign.m4: New file.
2862         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2864         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2865         HAVE_COPYSIGN.
2866         * modules/copysign (Description): Clarify.
2867         (Files): Add lib/copysign.c, m4/copysign.m4.
2868         (Depends-on): Add math, signbit.
2869         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2870         gl_MATH_MODULE_INDICATOR.
2871         * tests/test-math-c++.cc: Check the declaration of copysign.
2872         * doc/posix-functions/copysign.texi: Mention the effects of the module
2873         on Minix and MSVC.
2874
2875 2011-10-09  Bruno Haible  <bruno@clisp.org>
2876
2877         isinf: Ensure macro on AIX 5.1.
2878         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2879         macro.
2880         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2881
2882 2011-10-09  Bruno Haible  <bruno@clisp.org>
2883
2884         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2885         * modules/snprintf-posix-tests (configure.ac): Require
2886         gl_LONG_DOUBLE_VS_DOUBLE.
2887         * modules/sprintf-posix-tests (configure.ac): Likewise.
2888         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2889         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2890         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2891         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2892         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2893         tests on platforms where 'long double' is the same as 'double'.
2894         * tests/test-sprintf-posix.h (test_function): Likewise.
2895         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2896         * tests/test-vasprintf-posix.c (test_function): Likewise.
2897
2898         *printf: Fix for platforms where 'long double' == 'double'.
2899         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2900         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2901         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2902         * modules/fprintf-posix (Files): Likewise.
2903         * modules/obstack-printf-posix (Files): Likewise.
2904         * modules/snprintf-posix (Files): Likewise.
2905         * modules/sprintf-posix (Files): Likewise.
2906         * modules/vasnprintf (Files): Likewise.
2907         * modules/vasnprintf-posix (Files): Likewise.
2908         * modules/vasprintf-posix (Files): Likewise.
2909         * modules/vdprintf-posix (Files): Likewise.
2910         * modules/vfprintf-posix (Files): Likewise.
2911         * modules/vsnprintf-posix (Files): Likewise.
2912         * modules/vsprintf-posix (Files): Likewise.
2913         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2914         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2915         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2916         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2917         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2918         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2919         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2920
2921         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2922         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2923         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2924         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2925         'long double'.
2926         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2927
2928         isinf: Fix for platforms where 'long double' == 'double'.
2929         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2930         Don't blindly assume 80-bit 'long double'.
2931
2932         isfinite: Fix for platforms where 'long double' == 'double'.
2933         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2934         Don't blindly assume 80-bit 'long double'.
2935
2936         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2937         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2938         * modules/isfinite-tests (configure.ac): Require
2939         gl_LONG_DOUBLE_VS_DOUBLE.
2940         * modules/isinf-tests (configure.ac): Likewise.
2941         * modules/isnan-tests (configure.ac): Likewise.
2942         * modules/isnanl-tests (configure.ac): Likewise.
2943         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2944         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2945         tests on platforms where 'long double' is the same as 'double'.
2946         * tests/test-isinf.c (test_isinfl): Likewise.
2947         * tests/test-isnan.c (test_long_double): Likewise.
2948         * tests/test-isnanl.h (main): Likewise.
2949
2950 2011-10-08  Bruno Haible  <bruno@clisp.org>
2951
2952         Tests for module 'tanhf'.
2953         * modules/tanhf-tests: New file.
2954         * tests/test-tanhf.c: New file.
2955
2956         New module 'tanhf'.
2957         * lib/math.in.h (tanhf): New declaration.
2958         * lib/tanhf.c: New file.
2959         * m4/tanhf.m4: New file.
2960         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2962         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2963         * modules/tanhf: New file.
2964         * tests/test-math-c++.cc: Check the declaration of tanhf.
2965         * doc/posix-functions/tanhf.texi: Mention the new module.
2966
2967         tanh: Use a .m4 file.
2968         * m4/tanh.m4: New file.
2969         * modules/tanh (Files): Add it.
2970         (configure.ac): Just invoke gl_FUNC_TANH.
2971
2972 2011-10-08  Bruno Haible  <bruno@clisp.org>
2973
2974         Tests for module 'coshf'.
2975         * modules/coshf-tests: New file.
2976         * tests/test-coshf.c: New file.
2977
2978         New module 'coshf'.
2979         * lib/math.in.h (coshf): New declaration.
2980         * lib/coshf.c: New file.
2981         * m4/coshf.m4: New file.
2982         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2984         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2985         * modules/coshf: New file.
2986         * tests/test-math-c++.cc: Check the declaration of coshf.
2987         * doc/posix-functions/coshf.texi: Mention the new module.
2988
2989         cosh: Use a .m4 file.
2990         * m4/cosh.m4: New file.
2991         * modules/cosh (Files): Add it.
2992         (configure.ac): Just invoke gl_FUNC_COSH.
2993
2994 2011-10-08  Bruno Haible  <bruno@clisp.org>
2995
2996         Tests for module 'sinhf'.
2997         * modules/sinhf-tests: New file.
2998         * tests/test-sinhf.c: New file.
2999
3000         New module 'sinhf'.
3001         * lib/math.in.h (sinhf): New declaration.
3002         * lib/sinhf.c: New file.
3003         * m4/sinhf.m4: New file.
3004         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3006         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3007         * modules/sinhf: New file.
3008         * tests/test-math-c++.cc: Check the declaration of sinhf.
3009         * doc/posix-functions/sinhf.texi: Mention the new module.
3010
3011         sinh: Use a .m4 file.
3012         * m4/sinh.m4: New file.
3013         * modules/sinh (Files): Add it.
3014         (configure.ac): Just invoke gl_FUNC_SINH.
3015
3016 2011-10-08  Bruno Haible  <bruno@clisp.org>
3017
3018         Tests for module 'atan2f'.
3019         * modules/atan2f-tests: New file.
3020         * tests/test-atan2f.c: New file.
3021
3022         New module 'atan2f'.
3023         * lib/math.in.h (atan2f): New declaration.
3024         * lib/atan2f.c: New file.
3025         * m4/atan2f.m4: New file.
3026         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3028         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3029         * modules/atan2f: New file.
3030         * tests/test-math-c++.cc: Check the declaration of atan2f.
3031         * doc/posix-functions/atan2f.texi: Mention the new module.
3032
3033         atan2: Use a .m4 file.
3034         * m4/atan2.m4: New file.
3035         * modules/atan2 (Files): Add it.
3036         (configure.ac): Just invoke gl_FUNC_ATAN2.
3037
3038 2011-10-08  Bruno Haible  <bruno@clisp.org>
3039
3040         Tests for module 'atanf'.
3041         * modules/atanf-tests: New file.
3042         * tests/test-atanf.c: New file.
3043
3044         New module 'atanf'.
3045         * lib/math.in.h (atanf): New declaration.
3046         * lib/atanf.c: New file.
3047         * m4/atanf.m4: New file.
3048         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3050         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3051         * modules/atanf: New file.
3052         * tests/test-math-c++.cc: Check the declaration of atanf.
3053         * doc/posix-functions/atanf.texi: Mention the new module.
3054
3055         atan: Use a .m4 file.
3056         * m4/atan.m4: New file.
3057         * modules/atan (Files): Add it.
3058         (configure.ac): Just invoke gl_FUNC_ATAN.
3059
3060 2011-10-08  Bruno Haible  <bruno@clisp.org>
3061
3062         Tests for module 'acosf'.
3063         * modules/acosf-tests: New file.
3064         * tests/test-acosf.c: New file.
3065
3066         New module 'acosf'.
3067         * lib/math.in.h (acosf): New declaration.
3068         * lib/acosf.c: New file.
3069         * m4/acosf.m4: New file.
3070         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3072         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3073         * modules/acosf: New file.
3074         * tests/test-math-c++.cc: Check the declaration of acosf.
3075         * doc/posix-functions/acosf.texi: Mention the new module.
3076
3077         acos: Use a .m4 file.
3078         * m4/acos.m4: New file.
3079         * modules/acos (Files): Add it.
3080         (configure.ac): Just invoke gl_FUNC_ACOS.
3081
3082 2011-10-08  Bruno Haible  <bruno@clisp.org>
3083
3084         Tests for module 'asinf'.
3085         * modules/asinf-tests: New file.
3086         * tests/test-asinf.c: New file.
3087
3088         New module 'asinf'.
3089         * lib/math.in.h (asinf): New declaration.
3090         * lib/asinf.c: New file.
3091         * m4/asinf.m4: New file.
3092         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3094         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3095         * modules/asinf: New file.
3096         * tests/test-math-c++.cc: Check the declaration of asinf.
3097         * doc/posix-functions/asinf.texi: Mention the new module.
3098
3099         asin: Use a .m4 file.
3100         * m4/asin.m4: New file.
3101         * modules/asin (Files): Add it.
3102         (configure.ac): Just invoke gl_FUNC_ASIN.
3103
3104 2011-10-08  Bruno Haible  <bruno@clisp.org>
3105
3106         Tests for module 'tanf'.
3107         * modules/tanf-tests: New file.
3108         * tests/test-tanf.c: New file.
3109
3110         New module 'tanf'.
3111         * lib/math.in.h (tanf): New declaration.
3112         * lib/tanf.c: New file.
3113         * m4/tanf.m4: New file.
3114         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3116         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3117         * modules/tanf: New file.
3118         * tests/test-math-c++.cc: Check the declaration of tanf.
3119         * doc/posix-functions/tanf.texi: Mention the new module.
3120
3121         tan: Use a .m4 file.
3122         * m4/tan.m4: New file.
3123         * modules/tan (Files): Add it.
3124         (configure.ac): Just invoke gl_FUNC_TAN.
3125
3126 2011-10-08  Bruno Haible  <bruno@clisp.org>
3127
3128         Tests for module 'cosf'.
3129         * modules/cosf-tests: New file.
3130         * tests/test-cosf.c: New file.
3131
3132         New module 'cosf'.
3133         * lib/math.in.h (cosf): New declaration.
3134         * lib/cosf.c: New file.
3135         * m4/cosf.m4: New file.
3136         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3138         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3139         * modules/cosf: New file.
3140         * tests/test-math-c++.cc: Check the declaration of cosf.
3141         * doc/posix-functions/cosf.texi: Mention the new module.
3142
3143         cos: Use a .m4 file.
3144         * m4/cos.m4: New file.
3145         * modules/cos (Files): Add it.
3146         (configure.ac): Just invoke gl_FUNC_COS.
3147
3148 2011-10-08  Bruno Haible  <bruno@clisp.org>
3149
3150         Tests for module 'sinf'.
3151         * modules/sinf-tests: New file.
3152         * tests/test-sinf.c: New file.
3153
3154         New module 'sinf'.
3155         * lib/math.in.h (sinf): New declaration.
3156         * lib/sinf.c: New file.
3157         * m4/sinf.m4: New file.
3158         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3160         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3161         * modules/sinf: New file.
3162         * tests/test-math-c++.cc: Check the declaration of sinf.
3163         * doc/posix-functions/sinf.texi: Mention the new module.
3164
3165         sin: Use a .m4 file.
3166         * m4/sin.m4: New file.
3167         * modules/sin (Files): Add it.
3168         (configure.ac): Just invoke gl_FUNC_SIN.
3169
3170 2011-10-08  Bruno Haible  <bruno@clisp.org>
3171
3172         Tests for module 'powf'.
3173         * modules/powf-tests: New file.
3174         * tests/test-powf.c: New file.
3175
3176         New module 'powf'.
3177         * lib/math.in.h (powf): New declaration.
3178         * lib/powf.c: New file.
3179         * m4/powf.m4: New file.
3180         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3182         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3183         * modules/powf: New file.
3184         * tests/test-math-c++.cc: Check the declaration of powf.
3185         * doc/posix-functions/powf.texi: Mention the new module.
3186
3187         pow: Use a .m4 file.
3188         * m4/pow.m4: New file.
3189         * modules/pow (Files): Add it.
3190         (configure.ac): Just invoke gl_FUNC_POW.
3191
3192 2011-10-08  Bruno Haible  <bruno@clisp.org>
3193
3194         Tests for module 'log10f'.
3195         * modules/log10f-tests: New file.
3196         * tests/test-log10f.c: New file.
3197
3198         New module 'log10f'.
3199         * lib/math.in.h (log10f): New declaration.
3200         * lib/log10f.c: New file.
3201         * m4/log10f.m4: New file.
3202         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3204         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3205         * modules/log10f: New file.
3206         * tests/test-math-c++.cc: Check the declaration of log10f.
3207         * doc/posix-functions/log10f.texi: Mention the new module.
3208
3209         log10: Use a .m4 file.
3210         * m4/log10.m4: New file.
3211         * modules/log10 (Files): Add it.
3212         (configure.ac): Just invoke gl_FUNC_LOG10.
3213
3214 2011-10-08  Bruno Haible  <bruno@clisp.org>
3215
3216         Tests for module 'logf'.
3217         * modules/logf-tests: New file.
3218         * tests/test-logf.c: New file.
3219
3220         New module 'logf'.
3221         * lib/math.in.h (logf): New declaration.
3222         * lib/logf.c: New file.
3223         * m4/logf.m4: New file.
3224         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3226         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3227         * modules/logf: New file.
3228         * tests/test-math-c++.cc: Check the declaration of logf.
3229         * doc/posix-functions/logf.texi: Mention the new module.
3230
3231         log: Use a .m4 file.
3232         * m4/log.m4: New file.
3233         * modules/log (Files): Add it.
3234         (configure.ac): Just invoke gl_FUNC_LOG.
3235
3236 2011-10-08  Bruno Haible  <bruno@clisp.org>
3237
3238         Tests for module 'expf'.
3239         * modules/expf-tests: New file.
3240         * tests/test-expf.c: New file.
3241
3242         New module 'expf'.
3243         * lib/math.in.h (expf): New declaration.
3244         * lib/expf.c: New file.
3245         * m4/expf.m4: New file.
3246         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3248         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3249         * modules/expf: New file.
3250         * tests/test-math-c++.cc: Check the declaration of expf.
3251         * doc/posix-functions/expf.texi: Mention the new module.
3252
3253         exp: Use a .m4 file.
3254         * m4/exp.m4: New file.
3255         * modules/exp (Files): Add it.
3256         (configure.ac): Just invoke gl_FUNC_EXP.
3257
3258 2011-10-08  Bruno Haible  <bruno@clisp.org>
3259
3260         Tests for module 'sqrtf'.
3261         * modules/sqrtf-tests: New file.
3262         * tests/test-sqrtf.c: New file.
3263
3264         New module 'sqrtf'.
3265         * lib/math.in.h (sqrtf): New declaration.
3266         * lib/sqrtf.c: New file.
3267         * m4/sqrtf.m4: New file.
3268         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3270         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3271         * modules/sqrtf: New file.
3272         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3273         * doc/posix-functions/sqrtf.texi: Mention the new module.
3274
3275 2011-10-08  Bruno Haible  <bruno@clisp.org>
3276
3277         Tests: Avoid link failures w.r.t. libintl.
3278         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3279         $(LIBINTL).
3280         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3281         $(LIBINTL).
3282         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3283         against $(LIBINTL).
3284         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3285         $(LIBINTL).
3286         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3287         $(LIBINTL).
3288         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3289
3290 2011-10-08  Bruno Haible  <bruno@clisp.org>
3291
3292         pow tests: Defeat compiler optimizations.
3293         * tests/test-pow.c (main): Assign arguments to x and y before use.
3294
3295 2011-10-08  Bruno Haible  <bruno@clisp.org>
3296
3297         gnulib-tool: Improve last commit.
3298         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3299         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3300         ignore dependencies that are not among the modules list.
3301
3302 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3303
3304         gnulib-tool: don't follow dependencies to avoided modules
3305         This fixes a bug that is related to the previous one.
3306         * gnulib-tool (func_modules_transitive_closure)
3307         (func_emit_autoconf_snippets):
3308         Check whether a dependency is acceptable before using it.
3309         (--extract-dependencies): Report an error if --avoid is also used,
3310         since this combination of options is not yet supported.
3311
3312         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3313         Problem reported by Peter Dyballa in
3314         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3315         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3316         when echoing "$condition".
3317
3318 2011-10-07  Bruno Haible  <bruno@clisp.org>
3319
3320         Fix documentation about math functions on MacOS X.
3321         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3322         MacOS X 10.5.
3323         * doc/posix-functions/fdim.texi: Likewise.
3324         * doc/posix-functions/feclearexcept.texi: Likewise.
3325         * doc/posix-functions/fegetenv.texi: Likewise.
3326         * doc/posix-functions/fegetround.texi: Likewise.
3327         * doc/posix-functions/feholdexcept.texi: Likewise.
3328         * doc/posix-functions/feraiseexcept.texi: Likewise.
3329         * doc/posix-functions/fesetenv.texi: Likewise.
3330         * doc/posix-functions/fesetround.texi: Likewise.
3331         * doc/posix-functions/fetestexcept.texi: Likewise.
3332         * doc/posix-functions/feupdateenv.texi: Likewise.
3333         * doc/posix-functions/fmax.texi: Likewise.
3334         * doc/posix-functions/fmin.texi: Likewise.
3335         * doc/posix-functions/log2.texi: Likewise.
3336         * doc/posix-functions/modff.texi: Likewise.
3337         * doc/posix-functions/nan.texi: Likewise.
3338         * doc/posix-functions/nanf.texi: Likewise.
3339         * doc/posix-functions/nextafterf.texi: Likewise.
3340         * doc/posix-functions/remquo.texi: Likewise.
3341
3342 2011-10-07  Bruno Haible  <bruno@clisp.org>
3343
3344         modff: Drop assumption about library that defines modff.
3345         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3346         AC_CHECK_FUNCS.
3347         * modules/modff (Files): Add m4/mathfunc.m4.
3348
3349 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3350
3351         raise tests: Avoid a GCC warning.
3352         * tests/test-raise.c (handler): Use _Noreturn.
3353
3354 2011-10-07  Bruno Haible  <bruno@clisp.org>
3355
3356         Tests for module 'ldexpf'.
3357         * modules/ldexpf-tests: New file.
3358         * tests/test-ldexpf.c: New file.
3359
3360         New module 'ldexpf'.
3361         * lib/math.in.h (ldexpf): New declaration.
3362         * lib/ldexpf.c: New file.
3363         * m4/ldexpf.m4: New file.
3364         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3366         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3367         * modules/ldexpf: New file.
3368         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3369         * doc/posix-functions/ldexpf.texi: Mention the new module.
3370
3371 2011-10-06  Bruno Haible  <bruno@clisp.org>
3372
3373         frexpf: Work around problems on IRIX and mingw.
3374         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3376         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3377         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3378         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3379         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3380         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3381
3382 2011-10-06  Bruno Haible  <bruno@clisp.org>
3383
3384         fabsf: Drop assumption about library that defines fabsf.
3385         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3386         AC_CHECK_FUNCS.
3387         * modules/fabsf (Files): Add m4/mathfunc.m4.
3388
3389 2011-10-06  Bruno Haible  <bruno@clisp.org>
3390
3391         frexpf: Drop assumption about library that defines frexpf.
3392         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3393         'int *', 'float *', 'long double *', 'float', 'long double'.
3394         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3395         AC_CHECK_FUNCS.
3396         * modules/frexpf (Files): Add m4/mathfunc.m4.
3397
3398         Tests for module 'frexpf'.
3399         * modules/frexpf-tests: New file.
3400         * tests/test-frexpf.c: New file.
3401
3402         New module 'frexpf'.
3403         * lib/math.in.h (frexpf): New declaration.
3404         * lib/frexpf.c: New file.
3405         * m4/frexpf.m4: New file.
3406         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3408         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3409         * modules/frexpf: New file.
3410         * tests/test-math-c++.cc: Check the declaration of frexpf.
3411         * doc/posix-functions/frexpf.texi: Mention the new module.
3412
3413 2011-10-06  Bruno Haible  <bruno@clisp.org>
3414
3415         math: Sort function declarations of math.in.h.
3416         * lib/math.in.h (frexp, logb): Move declarations.
3417
3418 2011-10-05  Bruno Haible  <bruno@clisp.org>
3419
3420         Tests for module 'modff'.
3421         * modules/modff-tests: New file.
3422         * tests/test-modff.c: New file.
3423
3424         New module 'modff'.
3425         * lib/math.in.h (modff): New declaration.
3426         * lib/modff.c: New file.
3427         * m4/modff.m4: New file.
3428         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3430         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3431         * modules/modff: New file.
3432         * tests/test-math-c++.cc: Check the declaration of modff.
3433         * doc/posix-functions/modff.texi: Mention the new module.
3434
3435         modf tests: Make test sharper.
3436         * tests/test-modf.c (main): Strengthen upper bound.
3437
3438         modf: Use a .m4 file.
3439         * m4/modf.m4: New file.
3440         * modules/modf (Files): Add it.
3441         (configure.ac): Just invoke gl_FUNC_MODF.
3442
3443 2011-10-05  Bruno Haible  <bruno@clisp.org>
3444
3445         Tests for module 'fmodf'.
3446         * modules/fmodf-tests: New file.
3447         * tests/test-fmodf.c: New file.
3448
3449         New module 'fmodf'.
3450         * lib/math.in.h (fmodf): New declaration.
3451         * lib/fmodf.c: New file.
3452         * m4/fmodf.m4: New file.
3453         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3455         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3456         * modules/fmodf: New file.
3457         * tests/test-math-c++.cc: Check the declaration of fmodf.
3458         * doc/posix-functions/fmodf.texi: Mention the new module.
3459
3460         fmod: Use a .m4 file.
3461         * m4/fmod.m4: New file.
3462         * modules/fmod (Files): Add it.
3463         (configure.ac): Just invoke gl_FUNC_FMOD.
3464
3465 2011-10-05  Bruno Haible  <bruno@clisp.org>
3466
3467         Tests for module 'fabsf'.
3468         * modules/fabsf-tests: New file.
3469         * tests/test-fabsf.c: New file.
3470
3471         New module 'fabsf'.
3472         * lib/math.in.h (fabsf): New declaration.
3473         * lib/fabsf.c: New file.
3474         * m4/fabsf.m4: New file.
3475         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3477         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3478         * modules/fabsf: New file.
3479         * tests/test-math-c++.cc: Check the declaration of fabsf.
3480         * doc/posix-functions/fabsf.texi: Mention the new module.
3481
3482         fabs: Use a .m4 file.
3483         * m4/fabs.m4: New file.
3484         * modules/fabs (Files): Add it.
3485         (configure.ac): Just invoke gl_FUNC_FABS.
3486
3487 2011-10-05  Jim Meyering  <meyering@redhat.com>
3488
3489         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3490         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3491         ls -lL regression introduced in coreutils-8.12, it does so at the
3492         cost of an additional stat call in the common case.  Besides, now
3493         that the kernel change that prompted commit 95f7c57f has been reverted
3494         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3495         we have no use for commit 95f7c57f, "file-has-acl: use
3496         acl_extended_file_nofollow if available".
3497
3498 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3499
3500         file-has-acl: revert unintended change in behavior of ls -L
3501         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3502         derived from...
3503         (file_has_acl): ...code here.  Call it.
3504         This problem was introduced with 2011-07-22 commit 95f7c57f,
3505         "file-has-acl: use acl_extended_file_nofollow if available".
3506         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3507
3508 2011-10-03  Bruno Haible  <bruno@clisp.org>
3509
3510         poll: Avoid link errors on MSVC.
3511         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3512         * modules/poll (Depends-on): Add sockets.
3513         (Link): New section.
3514         * NEWS: Mention the change.
3515         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3516         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3517         $(LIB_POLL) instead of $(LIBSOCKET).
3518
3519 2011-10-03  Bruno Haible  <bruno@clisp.org>
3520
3521         sys_select tests: Fix link error on MSVC 9.
3522         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3523         with $(LIB_SELECT) instead of $(LIBSOCKET).
3524
3525 2011-10-03  Bruno Haible  <bruno@clisp.org>
3526
3527         sys_select: Fix compilation error on mingw.
3528         * lib/sys_select.in.h: On native Windows, include <io.h>.
3529
3530 2011-10-03  Bruno Haible  <bruno@clisp.org>
3531
3532         wmemset: Support for MSVC.
3533         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3534         whether wmemset() exists.
3535
3536 2011-10-03  Bruno Haible  <bruno@clisp.org>
3537
3538         wmemmove: Support for MSVC.
3539         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3540         whether wmemmove() exists.
3541
3542 2011-10-03  Bruno Haible  <bruno@clisp.org>
3543
3544         wmemcpy: Support for MSVC.
3545         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3546         whether wmemcpy() exists.
3547
3548 2011-10-03  Bruno Haible  <bruno@clisp.org>
3549
3550         wmemcmp: Support for MSVC.
3551         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3552         whether wmemcmp() exists.
3553
3554 2011-10-03  Bruno Haible  <bruno@clisp.org>
3555
3556         wmemchr: Support for MSVC.
3557         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3558         whether wmemchr() exists.
3559
3560 2011-10-03  Bruno Haible  <bruno@clisp.org>
3561
3562         glthread/*, strsignal: Support for MSVC.
3563         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3564         including <winsock.h> on MSVC 9.
3565         * lib/glthread/lock.h: Likewise.
3566         * lib/glthread/thread.h: Likewise.
3567         * lib/glthread/tls.h: Likewise.
3568         * lib/glthread/yield.h: Likewise.
3569         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3570         if HAVE_UNISTD_H is false.
3571         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3572
3573 2011-10-03  Bruno Haible  <bruno@clisp.org>
3574
3575         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3576         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3577         Set to 100000.
3578
3579 2011-10-03  Bruno Haible  <bruno@clisp.org>
3580
3581         acl: Fix specification.
3582         * lib/file-has-acl.c (file_has_acl): Fix specification.
3583
3584 2011-10-03  Bruno Haible  <bruno@clisp.org>
3585
3586         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3587         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3588         (compute_curr_prefix, shared_library_fullname,
3589         find_shared_library_fullname, get_shared_library_fullname, relocate):
3590         Use it together with PIC && INSTALLDIR.
3591         Reported by <jojelino@gmail.com>
3592         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3593
3594 2011-10-01  Jim Meyering  <meyering@redhat.com>
3595
3596         maint.mk: adjust a release-related rule not to require use of gzip
3597         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3598         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3599         projects that build only .tar.xz files.  Also fix an erroneous test.
3600
3601         test-linkat: don't leave behind a temporary file
3602         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3603         Otherwise, coreutils' "make distcheck" would fail with this:
3604           Only in /c/cu/tests/torture/coreutils/test/\
3605             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3606           make[2]: *** [my-distcheck] Error 1
3607
3608         float, math: add omitted file
3609         * lib/itold.c: Add file, required for yesterday's float change.
3610
3611 2011-10-01  Bruno Haible  <bruno@clisp.org>
3612
3613         isinf: Fix for OpenBSD/x86.
3614         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3615         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3616         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3617
3618 2011-10-01  Bruno Haible  <bruno@clisp.org>
3619
3620         isfinite: Fix syntax error in configure test.
3621         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3622
3623         isfinite: Fix typo.
3624         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3625         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3626
3627 2011-10-01  Bruno Haible  <bruno@clisp.org>
3628
3629         nonblocking tests: Fix test failure on Linux/IA-64.
3630         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3631         Set to 270000.
3632
3633 2011-10-01  Bruno Haible  <bruno@clisp.org>
3634
3635         mkfifoat tests: Fix a test failure on mingw.
3636         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3637         with error ENOSYS.
3638
3639 2011-09-30  Bruno Haible  <bruno@clisp.org>
3640
3641         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3642         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3643         'long double'. Set REPLACE_ITOLD.
3644         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3645         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3646         * lib/itold.c: New file.
3647         * modules/float (Files): Add lib/itold.c.
3648         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3649         (Makefile.am): Substitute REPLACE_ITOLD.
3650         * modules/math (Depends-on): Add float.
3651         (Makefile.am): Substitute REPLACE_ITOLD.
3652         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3653         * doc/posix-headers/math.texi: Likewise.
3654         * doc/posix-functions/logl.texi: Likewise.
3655
3656 2011-09-30  Bruno Haible  <bruno@clisp.org>
3657
3658         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3659         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3660         Set to 140000.
3661
3662 2011-09-30  Bruno Haible  <bruno@clisp.org>
3663
3664         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3665         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3666         invocation, say "right after AC_PROG_CC_STDC", not "right after
3667         AC_PROG_CC".
3668         Reported by Gary V. Vaughan <gary@gnu.org>.
3669
3670 2011-09-30  Bruno Haible  <bruno@clisp.org>
3671
3672         Centralize C99 requirement.
3673         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3674         * modules/stdarg (configure.ac-early): Invoke it instead of
3675         AC_PROG_CC_STDC.
3676         Reported by Gary V. Vaughan and Paul Eggert.
3677
3678 2011-09-29  Bruno Haible  <bruno@clisp.org>
3679
3680         float: Fix LDBL_MAX value on Linux/PowerPC.
3681         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3682         on Linux/PowerPC.
3683         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3684         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3685         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3686         platform.
3687         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3688
3689 2011-09-29  Bruno Haible  <bruno@clisp.org>
3690
3691         doc: Improve doc about gl_EARLY.
3692         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3693         AC_PROG_CC_STDC invocation.
3694         Reported by Gary V. Vaughan <gary@gnu.org>.
3695
3696 2011-09-28  Bruno Haible  <bruno@clisp.org>
3697
3698         fgetc, fputc, fread, fwrite tests: Fix link error.
3699         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3700         on non-MSVC platforms.
3701         * tests/test-fputc.c (main): Likewise.
3702         * tests/test-fread.c (main): Likewise.
3703         * tests/test-fwrite.c (main): Likewise.
3704         Reported by Jim Meyering.
3705
3706 2011-09-27  Bruno Haible  <bruno@clisp.org>
3707
3708         fputc, fwrite tests: Avoid test failure on MSVC.
3709         * tests/test-fgetc.c: Include msvc-inval.h.
3710         (main): Invoke gl_msvc_inval_ensure_handler.
3711         * tests/test-fputc.c: Include msvc-inval.h.
3712         (main): Invoke gl_msvc_inval_ensure_handler.
3713         * tests/test-fread.c: Include msvc-inval.h.
3714         (main): Invoke gl_msvc_inval_ensure_handler.
3715         * tests/test-fwrite.c: Include msvc-inval.h.
3716         (main): Invoke gl_msvc_inval_ensure_handler.
3717         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3718         * modules/fputc-tests (Depends-on): Likewise.
3719         * modules/fread-tests (Depends-on): Likewise.
3720         * modules/fwrite-tests (Depends-on): Likewise.
3721
3722 2011-09-27  Bruno Haible  <bruno@clisp.org>
3723
3724         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3725         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3726         (raise): Remove older, duplicated declaration.
3727         (_gl_raise_SIGPIPE): New declaration.
3728         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3729         (rpl_raise): Remove function.
3730         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3731         a gnulib-defined SIGPIPE here.
3732         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3733         'sigprocmask' has detected missing signal-blocking and the module
3734         'sigpipe' is enabled.
3735         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3736
3737 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3738
3739         base64-tests: avoid memory leak
3740         * tests/test-base64.c (main): Plug memory leak.
3741
3742         base32: new module
3743         * modules/base32: New module.
3744         * lib/base32.c: New file.
3745         * lib/base32.h: Likewise.
3746         * m4/base32.m4: Likewise.
3747         * modules/base32-tests: New test.
3748         * tests/test-base32.c: Likewise.
3749         * MODULES.html.sh (Misc): Mention it.
3750
3751 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3752
3753         gnulib: use more-standard license notice wording
3754         * gnulib-tool (func_emit_copyright_notice): When emitting a
3755         license notice into a file, use the standard wording as suggested
3756         by the current information for GNU maintainers, except say "file"
3757         rather than "program".  The new wording gives a license version
3758         number, which addresses an issue raised by Glenn Morris in
3759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3760         * m4/onceonly.m4: Use that same wording here, too.
3761
3762         dup2: minor simplification
3763         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3764         as lib/dup2.c no longer uses 'inline'.
3765
3766 2011-09-25  Bruno Haible  <bruno@clisp.org>
3767
3768         strings: Fix compilation error on MSVC.
3769         * lib/strings.in.h: Include <stddef.h> for size_t.
3770
3771 2011-09-25  Bruno Haible  <bruno@clisp.org>
3772
3773         fflush et al.: Document limitation on MSVC.
3774         * doc/posix-functions/fflush.texi: Document possible crash in handling
3775         mode other than DEFAULT_HANDLING.
3776         * doc/posix-functions/fgetc.texi: Likewise.
3777         * doc/posix-functions/fputc.texi: Likewise.
3778         * doc/posix-functions/fread.texi: Likewise.
3779         * doc/posix-functions/fwrite.texi: Likewise.
3780
3781 2011-09-25  Bruno Haible  <bruno@clisp.org>
3782
3783         msvc-inval: Allow three invalid parameter handling modes.
3784         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3785         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3786         macros.
3787         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3788         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3789         SANE_LIBRARY_HANDLING as a no-op.
3790         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3791         <stdlib.h>.
3792         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3793
3794 2011-09-25  Bruno Haible  <bruno@clisp.org>
3795
3796         msvc-inval: Make handler multithread-safe.
3797         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3798         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3799         declarations.
3800         (gl_msvc_inval_current): New declaration.
3801         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3802         Operate on the structure returned by gl_msvc_inval_current().
3803         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3804         Remove varaiables.
3805         (tls_index, tls_initialized): New variables.
3806         (not_per_thread): New variable.
3807         (gl_msvc_inval_current): New function.
3808         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3809         returned by gl_msvc_inval_current().
3810
3811 2011-09-25  Bruno Haible  <bruno@clisp.org>
3812
3813         msvc-inval: Install handler globally.
3814         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3815         !_MSC_VER.
3816         (gl_msvc_invalid_parameter_handler): Remove declaration.
3817         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3818         declarations.
3819         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3820         Install the handler globally, don't uninstall it.
3821         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3822         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3823         currently valid, call RaiseException instead.
3824         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3825         for !_MSC_VER.
3826
3827 2011-09-25  Bruno Haible  <bruno@clisp.org>
3828
3829         strerror_r-posix: Fix for MSVC 9.
3830         * lib/strerror_r.c (local_snprintf): New function.
3831         (snprintf): Define to local_snprintf, not to _snprintf.
3832
3833 2011-09-25  Bruno Haible  <bruno@clisp.org>
3834
3835         ftruncate: Support for MSVC 9.
3836         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3837         (chsize_nothrow): New function.
3838         (chsize): Redefine as a macro.
3839         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3840         * modules/ftruncate (Depends-on): Add msvc-inval.
3841
3842 2011-09-25  Bruno Haible  <bruno@clisp.org>
3843
3844         New module 'fstat'.
3845         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3846         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3847         * lib/fchdir.c (rpl_fstat): Remove function.
3848         * m4/fstat.m4: New file.
3849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3850         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3851         declared.
3852         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3853         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3854         * modules/fstat: New file.
3855         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3856         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3857         is set.
3858         * doc/posix-functions/fstat.texi: Mention the new module and the
3859         problem on MSVC.
3860         * NEWS: Mention the change.
3861         * modules/acl (Depends-on): Add fstat.
3862         * modules/chdir-safer (Depends-on): Likewise.
3863         * modules/chown (Depends-on): Likewise.
3864         * modules/copy-file (Depends-on): Likewise.
3865         * modules/fchdir (Depends-on): Likewise.
3866         * modules/fdopendir (Depends-on): Likewise.
3867         * modules/fopen (Depends-on): Likewise.
3868         * modules/fts (Depends-on): Likewise.
3869         * modules/getcwd (Depends-on): Likewise.
3870         * modules/isapipe (Depends-on): Likewise.
3871         * modules/linkat (Depends-on): Likewise.
3872         * modules/lseek (Depends-on): Likewise.
3873         * modules/mkdir-p (Depends-on): Likewise.
3874         * modules/open (Depends-on): Likewise.
3875         * modules/openat (Depends-on): Likewise.
3876         * modules/read-file (Depends-on): Likewise.
3877         * modules/renameat (Depends-on): Likewise.
3878         * modules/utimens (Depends-on): Likewise.
3879
3880 2011-09-25  Bruno Haible  <bruno@clisp.org>
3881
3882         linkat: Fix compilation on MSVC 9.
3883         * lib/linkat.c: Don't include <stdint.h>.
3884
3885 2011-09-25  Bruno Haible  <bruno@clisp.org>
3886
3887         fclose: Support for MSVC 9.
3888         * lib/fclose.c: Include msvc-inval.h.
3889         (fclose_nothrow): New function.
3890         (rpl_fclose): Use it.
3891         * modules/fclose (Depends-on): Add msvc-inval.
3892         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3893
3894 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3895
3896         dup2: minor simplifications
3897         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3898         that it's a performance win.
3899         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3900         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3901
3902 2011-09-24  Jim Meyering  <meyering@redhat.com>
3903
3904         test-futimens: avoid a warning from gcc -Wshadow
3905         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3906         to avoid a shadowing warning.
3907
3908 2011-09-24  Bruno Haible  <bruno@clisp.org>
3909
3910         fdopen: Support for MSVC 9.
3911         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3912         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3913         * lib/fdopen.c: Include msvc-inval.h.
3914         (fdopen_nothrow): New function.
3915         (rpl_fdopen): Use it.
3916         * modules/fdopen (Depends-on): Add msvc-inval.
3917         * modules/fclose-tests (Depends-on): Add fdopen.
3918         * modules/fflush-tests (Depends-on): Likewise.
3919         * modules/fgetc-tests (Depends-on): Likewise.
3920         * modules/fputc-tests (Depends-on): Likewise.
3921         * modules/fread-tests (Depends-on): Likewise.
3922         * modules/freopen-tests (Depends-on): Likewise.
3923         * modules/fseeko-tests (Depends-on): Likewise.
3924         * modules/ftello-tests (Depends-on): Likewise.
3925         * modules/fwrite-tests  (Depends-on): Likewise.
3926         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3927
3928 2011-09-24  Bruno Haible  <bruno@clisp.org>
3929
3930         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3931         * modules/fgetc-tests (Depends-on): Add unistd.
3932         * modules/fputc-tests (Depends-on): Likewise.
3933         * modules/fread-tests (Depends-on): Likewise.
3934         * modules/fwrite-tests (Depends-on): Likewise.
3935
3936 2011-09-24  Bruno Haible  <bruno@clisp.org>
3937
3938         dup: Simplify autoconf test.
3939         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3940         on gl_MSVC_INVAL's result.
3941
3942 2011-09-24  Bruno Haible  <bruno@clisp.org>
3943
3944         Tests for function fwrite().
3945         * modules/fwrite-tests: New file.
3946         * tests/test-fwrite.c: New file.
3947         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3948
3949         Tests for function fread().
3950         * modules/fread-tests: New file.
3951         * tests/test-fread.c: New file.
3952         * modules/stdio-tests (Depends-on): Add fread-tests.
3953
3954         Activate fputc tests.
3955         * modules/stdio-tests (Depends-on): Add fputc-tests.
3956
3957         Enhance fgetc, fputc tests.
3958         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3959         * tests/test-fputc.c (main): Likewise.
3960
3961 2011-09-24  Bruno Haible  <bruno@clisp.org>
3962
3963         write: Support for MSVC 9.
3964         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3965         is not 1.
3966         * lib/write.c (write_nothrow): New function.
3967         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3968         not 1. Use write_nothrow.
3969         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3970         invalid parameter handler.
3971         (gl_PREREQ_WRITE): New macro.
3972         * modules/write (Depends-on): Add msvc-inval.
3973         (configure.ac): Invoke gl_PREREQ_WRITE.
3974         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3975
3976 2011-09-24  Bruno Haible  <bruno@clisp.org>
3977
3978         read: Fix last commit.
3979         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3980
3981 2011-09-24  Bruno Haible  <bruno@clisp.org>
3982
3983         dup2: Fix last commit.
3984         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3985         (rpl_dup2): Disable fcntl workaround on native Windows.
3986
3987         sigprocmask: Make code safer.
3988         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3989         section that changes macro definitions for this compilation unit.
3990
3991 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3992
3993         dup2: clarify by coalescing Windows-specific material
3994         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3995         "msvc-nothrow.h"' to the Windows-specific section, so that the
3996         Emacs source need not contain these include files.
3997         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3998         Windows-specific fixes into this function rather than just the
3999         nothrow fix, as this shortens and clarifies the code.  Always
4000         define as a function, as that's a bit cleaner than having it be
4001         sometimes a function and sometimes a macro.
4002         (rpl_dup2): Move the Windows-specific stuff out of here and into
4003         ms_windows_dup2.  Don't protect the Haiku-related fix with
4004         "#if !defined __linux__", as the same code also works around
4005         a Linux kernel bug, and it doesn't add any system calls on any
4006         platform.  Add comment about FreeBSD 6.1.
4007
4008         sigprocmask: move #include directive
4009         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4010         Windows-specific section, so that the Emacs source need not
4011         contain msvc-inval.h.
4012
4013 2011-09-23  Bruno Haible  <bruno@clisp.org>
4014
4015         read: Support for MSVC 9.
4016         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4017         is not 1.
4018         * lib/read.c (read_nothrow): New function.
4019         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4020         read_nothrow.
4021         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4022         invalid parameter handler.
4023         (gl_PREREQ_READ): New macro.
4024         * modules/read (Depends-on): Add msvc-inval.
4025         (configure.ac): Invoke gl_PREREQ_READ.
4026         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4027
4028 2011-09-23  Bruno Haible  <bruno@clisp.org>
4029
4030         close: Support for MSVC 9.
4031         * lib/close.c: Include <errno.h>, msvc-inval.h.
4032         (close_nothrow): New function.
4033         (rpl_close): Use it.
4034         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4035         invalid parameter handler.
4036         * modules/close (Depends-on): Add msvc-inval.
4037         * modules/dup2-tests (Depends-on): Add close.
4038         * modules/dup3-tests (Depends-on): Likewise.
4039         * modules/fcntl-tests (Depends-on): Likewise.
4040         * modules/spawn-pipe-tests (Depends-on): Likewise.
4041         * modules/unistd-safer-tests (Depends-on): Likewise.
4042         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4043
4044 2011-09-23  Bruno Haible  <bruno@clisp.org>
4045
4046         New module 'dup'.
4047         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4048         Allow replacement.
4049         * lib/dup.c: New file.
4050         * lib/fchdir.c (rpl_dup): Remove function.
4051         * m4/dup.m4: New file.
4052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4053         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4054         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4055         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4056         * modules/dup: New file.
4057         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4058         'dup' module is in use.
4059         * modules/fdopendir (Depends-on): Add dup.
4060         * modules/fdutimensat-tests (Depends-on): Likewise.
4061         * modules/fts (Depends-on): Likewise.
4062         * modules/futimens-tests (Depends-on): Likewise.
4063         * modules/posix_spawnp-tests (Depends-on): Likewise.
4064         * modules/unistd-safer-tests (Depends-on): Likewise.
4065         * modules/utimens-tests (Depends-on): Likewise.
4066         * doc/posix-functions/dup.texi: Mention the new module and the problem
4067         on MSVC.
4068
4069 2011-09-23  Bruno Haible  <bruno@clisp.org>
4070
4071         getdtablesize: Support for MSVC 9.
4072         * lib/getdtablesize.c: Include msvc-inval.h.
4073         (_setmaxstdio_nothrow): New function.
4074         (_setmaxstdio): Redefine it.
4075         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4076         * modules/getdtablesize (Depends-on): Add msvc-inval.
4077         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4078
4079 2011-09-23  Bruno Haible  <bruno@clisp.org>
4080
4081         signal-h: Rename from signal.
4082         * modules/signal-h: Renamed from modules/signal.
4083         * modules/pthread_sigmask (Depends-on): Update.
4084         * modules/raise (Depends-on): Likewise.
4085         * modules/sigaction (Depends-on): Likewise.
4086         * modules/sigpipe (Depends-on): Likewise.
4087         * modules/sigprocmask (Depends-on): Likewise.
4088         * modules/sys_select (Depends-on): Likewise.
4089         * modules/signal-h-tests: Renamed from modules/signal-tests.
4090         (Files, Depends-on, Makefile.am): Update.
4091         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4092         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4093         (Files, Makefile.am): Update.
4094         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4095         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4096         * modules/signal: New placeholder file.
4097         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4098         * doc/posix-headers/signal.texi: Update.
4099         * NEWS: Mention the change.
4100
4101 2011-09-23  Bruno Haible  <bruno@clisp.org>
4102
4103         sigprocmask: Avoid crashes through signal() on MSVC 9.
4104         * lib/sigprocmask.c: Include msvc-inval.h.
4105         (signal_nothrow): New function.
4106         (signal): Redefine it.
4107         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4108         * modules/sigprocmask (Depends-on): Add msvc-inval.
4109         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4110
4111 2011-09-23  Bruno Haible  <bruno@clisp.org>
4112
4113         Tests for module 'raise'.
4114         * modules/raise-tests: New file.
4115         * tests/test-raise.c: New file.
4116
4117         raise: Support for MSVC.
4118         * lib/signal.in.h (raise): New declaration.
4119         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4120         for native Windows platforms.
4121         * m4/raise.m4: New file.
4122         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4123         HAVE_RAISE, REPLACE_RAISE.
4124         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4125         REPLACE_RAISE.
4126         * modules/raise (Status, Notice): Remove fields.
4127         (Files): Add m4/raise.m4.
4128         (Depends-on): Add signal, msvc-inval.
4129         (configure.ac): Use the common idioms.
4130         (Maintainer): Add me.
4131         * tests/test-signal-c++.cc: Check the signature of raise.
4132         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4133
4134 2011-09-23  Bruno Haible  <bruno@clisp.org>
4135
4136         pipe2: Fix compilation on pre-C99 compilers.
4137         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4138
4139 2011-09-23  Bruno Haible  <bruno@clisp.org>
4140
4141         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4142         * lib/msvc-nothrow.h: New file.
4143         * lib/msvc-nothrow.c: New file.
4144         * m4/msvc-nothrow.m4: New file.
4145         * modules/msvc-nothrow: New file.
4146         * lib/dup2.c: Include msvc-nothrow.h.
4147         (rpl_dup2): No need to protect _get_osfhandle call here.
4148         * lib/accept4.c: Include msvc-nothrow.h.
4149         * lib/error.c: Likewise.
4150         * lib/fcntl.c: Likewise.
4151         * lib/lseek.c: Likewise.
4152         * lib/nonblocking.c: Likewise.
4153         * lib/poll.c: Likewise.
4154         * lib/read.c: Likewise.
4155         * lib/select.c: Likewise.
4156         * lib/sockets.h: Likewise.
4157         * lib/sockets.c: Likewise.
4158         * lib/stdio-read.c: Likewise.
4159         * lib/stdio-write.c: Likewise.
4160         * lib/write.c: Likewise.
4161         * lib/w32sock.h: Likewise.
4162         * lib/w32spawn.h: Likewise.
4163         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4164         * lib/fsync.c: Likewise.
4165         * lib/isapipe.c: Likewise.
4166         * modules/dup2 (Depends-on): Add msvc-nothrow.
4167         * modules/accept4 (Depends-on): Likewise.
4168         * modules/error (Depends-on): Likewise.
4169         * modules/fcntl (Depends-on): Likewise.
4170         * modules/lseek (Depends-on): Likewise.
4171         * modules/nonblocking (Depends-on): Likewise.
4172         * modules/poll (Depends-on): Likewise.
4173         * modules/read (Depends-on): Likewise.
4174         * modules/select (Depends-on): Likewise.
4175         * modules/sockets (Depends-on): Likewise.
4176         * modules/sigpipe (Depends-on): Likewise.
4177         * modules/write (Depends-on): Likewise.
4178         * modules/accept (Depends-on): Likewise.
4179         * modules/bind (Depends-on): Likewise.
4180         * modules/connect (Depends-on): Likewise.
4181         * modules/gethostname (Depends-on): Likewise.
4182         * modules/getpeername (Depends-on): Likewise.
4183         * modules/getsockname (Depends-on): Likewise.
4184         * modules/getsockopt (Depends-on): Likewise.
4185         * modules/ioctl (Depends-on): Likewise.
4186         * modules/listen (Depends-on): Likewise.
4187         * modules/recv (Depends-on): Likewise.
4188         * modules/recvfrom (Depends-on): Likewise.
4189         * modules/send (Depends-on): Likewise.
4190         * modules/sendto (Depends-on): Likewise.
4191         * modules/setsockopt (Depends-on): Likewise.
4192         * modules/shutdown (Depends-on): Likewise.
4193         * modules/socket (Depends-on): Likewise.
4194         * modules/execute (Depends-on): Likewise.
4195         * modules/spawn-pipe (Depends-on): Likewise.
4196         * modules/flock (Depends-on): Likewise.
4197         * modules/fsync (Depends-on): Likewise.
4198         * modules/isapipe (Depends-on): Likewise.
4199         * tests/test-cloexec.c: Include msvc-nothrow.h.
4200         * tests/test-dup-safer.c: Likewise.
4201         * tests/test-dup2.c: Likewise.
4202         * tests/test-dup3.c: Likewise.
4203         * tests/test-fcntl.c: Likewise.
4204         * tests/test-pipe.c: Likewise.
4205         * tests/test-pipe2.c: Likewise.
4206         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4207         * modules/unistd-safer-tests (Depends-on): Likewise.
4208         * modules/dup2-tests (Depends-on): Likewise.
4209         * modules/dup3-tests (Depends-on): Likewise.
4210         * modules/fcntl-tests (Depends-on): Likewise.
4211         * modules/pipe-posix-tests (Depends-on): Likewise.
4212         * modules/pipe2-tests (Depends-on): Likewise.
4213
4214 2011-09-23  Bruno Haible  <bruno@clisp.org>
4215
4216         dup2: Make code more maintainable.
4217         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4218         (rpl_dup2): Use it.
4219         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4220         * modules/dup2 (configure.ac): Invoke it.
4221         Reported by Paul Eggert.
4222
4223 2011-09-23  Bruno Haible  <bruno@clisp.org>
4224
4225         msvc-inval: Fix compilation error.
4226         * lib/msvc-inval.h: Include <excpt.h>.
4227
4228 2011-09-23  Bruno Haible  <bruno@clisp.org>
4229
4230         mkdir: Tweak for MSVC 9.
4231         * lib/sys_stat.in.h: Update comments.
4232         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4233
4234         Tests for module 'chdir'.
4235         * modules/chdir-tests: New file.
4236         * tests/test-chdir.c: New file.
4237
4238         New module 'chdir'.
4239         * modules/chdir: New file.
4240         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4241         (chdir): New declaration.
4242         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4243         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4244         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4245         * tests/test-unistd-c++.cc: Check signature of chdir.
4246         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4247         * modules/chdir-long (Depends-on): Add chdir.
4248         * modules/fchdir (Depends-on): Likewise.
4249         * modules/rename (Depends-on): Likewise.
4250         * modules/savewd (Depends-on): Likewise.
4251
4252         rmdir: Support for mingw, MSVC 9.
4253         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4254         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4255
4256         getcwd: Tweak for MSVC 9.
4257         * lib/unistd.in.h: Update comments.
4258         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4259
4260 2011-09-22  Bruno Haible  <bruno@clisp.org>
4261
4262         strerror_r-posix: Avoid a link error on MSVC.
4263         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4264         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4265
4266 2011-09-22  Bruno Haible  <bruno@clisp.org>
4267
4268         select: Avoid link errors on MSVC.
4269         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4270         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4271         * modules/pselect (Link): Likewise.
4272         * NEWS: Mention the change.
4273         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4274         test-select-stdin against $(LIB_SELECT).
4275         * modules/pselect-tests (Makefile.am): Link test-pselect against
4276         $(LIB_SELECT).
4277
4278 2011-09-22  Bruno Haible  <bruno@clisp.org>
4279
4280         select: Avoid compilation error on MSVC.
4281         * lib/select.c: Don't include <stdbool.h>.
4282
4283 2011-09-21  Bruno Haible  <bruno@clisp.org>
4284
4285         Consolidate all uses of PATH_MAX in *.m4 files.
4286         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4287         macros.
4288         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4289         and gl_PATHMAX_SNIPPET.
4290         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4291         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4292         * modules/chdir-long (Files): Add m4/pathmax.m4.
4293         * modules/getcwd (Files): Likewise.
4294
4295 2011-09-21  Bruno Haible  <bruno@clisp.org>
4296
4297         ftruncate: Un-deprecate, concentrate on Win32 support.
4298         * modules/ftruncate (Status, Notice): Remove sections.
4299         (Depends-on): Add largefile.
4300         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4301         non-mingw platforms.
4302         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4303         include <io.h>.
4304         * modules/perror-tests (Depends-on): Add ftruncate.
4305         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4306         'ftruncate' module.
4307
4308 2011-09-21  Bruno Haible  <bruno@clisp.org>
4309
4310         Add dependencies to new dirent related modules.
4311         * modules/opendir (Depends-on): Add closedir.
4312         * modules/getcwd (Depends-on): Add opendir, closedir.
4313         * modules/dirent-safer-tests (Depends-on): Likewise.
4314         * modules/fdopendir-tests (Depends-on): Likewise.
4315         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4316         * modules/renameat-tests (Depends-on): Likewise.
4317
4318 2011-09-21  Bruno Haible  <bruno@clisp.org>
4319
4320         opendir: Avoid compilation error on mingw.
4321         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4322         * modules/opendir (Depends-on): Add unistd.
4323
4324 2011-09-21  Bruno Haible  <bruno@clisp.org>
4325
4326         ftruncate tests: Avoid a test failure on mingw.
4327         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4328
4329 2011-09-21  Bruno Haible  <bruno@clisp.org>
4330
4331         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4332         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4333         native Windows.
4334
4335 2011-09-21  Bruno Haible  <bruno@clisp.org>
4336
4337         New module 'fdopen'.
4338         * lib/stdio.in.h (fdopen): New declaration.
4339         * lib/fdopen.c: New file.
4340         * m4/fdopen.m4: New file.
4341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4342         REPLACE_FDOPEN.
4343         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4344         REPLACE_FDOPEN.
4345         * modules/fdopen: New file.
4346         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4347         * tests/test-stdio-c++.cc: Check signature of fdopen.
4348         * doc/posix-functions/fdopen.texi: Mention the new module.
4349
4350 2011-09-21  Bruno Haible  <bruno@clisp.org>
4351
4352         unlockpt tests: Avoid test failure on NetBSD 5.1.
4353         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4354         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4355
4356 2011-09-21  Bruno Haible  <bruno@clisp.org>
4357
4358         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4359         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4360         * tests/test-getlogin_r.c (main): Likewise.
4361
4362 2011-09-20  Bruno Haible  <bruno@clisp.org>
4363
4364         time tests: Don't require pid_t.
4365         * doc/posix-headers/time.texi: Revert last change.
4366         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4367         * tests/test-time.c: Comment out the check for pid_t.
4368
4369 2011-09-20  Bruno Haible  <bruno@clisp.org>
4370
4371         fsync tests: Avoid a test failure on mingw.
4372         * tests/test-fsync.c (main): Allow a failure with EIO.
4373
4374 2011-09-20  Bruno Haible  <bruno@clisp.org>
4375
4376         euidaccess: Update comments.
4377         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4378
4379 2011-09-20  Bruno Haible  <bruno@clisp.org>
4380
4381         Ensure EBADF returns for socket functions on mingw.
4382         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4383         descriptor is invalid.
4384         * lib/bind.c (rpl_bind): Likewise.
4385         * lib/connect.c (rpl_connect): Likewise.
4386         * lib/getpeername.c (rpl_getpeername): Likewise.
4387         * lib/getsockname.c (rpl_getsockname): Likewise.
4388         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4389         * lib/listen.c (rpl_listen): Likewise.
4390         * lib/recv.c (rpl_recv): Likewise.
4391         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4392         * lib/send.c (rpl_send): Likewise.
4393         * lib/sendto.c (rpl_sendto): Likewise.
4394         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4395         * lib/shutdown.c (rpl_shutdown): Likewise.
4396
4397 2011-09-20  Bruno Haible  <bruno@clisp.org>
4398
4399         select tests: EBADF tests.
4400         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4401         test_bad_fd): New functions.
4402         (test_function): Invoke also test_bad_fd.
4403
4404 2011-09-20  Bruno Haible  <bruno@clisp.org>
4405
4406         Tests for module 'posix_spawn_file_actions_addopen.
4407         * modules/posix_spawn_file_actions_addopen-tests: New file.
4408         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4409
4410         Tests for module 'posix_spawn_file_actions_adddup2'.
4411         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4412         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4413
4414         Tests for module 'posix_spawn_file_actions_addclose'.
4415         * modules/posix_spawn_file_actions_addclose-tests: New file.
4416         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4417
4418 2011-09-20  Bruno Haible  <bruno@clisp.org>
4419
4420         Tests for module 'unlockpt'.
4421         * modules/unlockpt-tests: New file.
4422         * tests/test-unlockpt.c: New file.
4423         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4424
4425         Tests for module 'grantpt'.
4426         * modules/grantpt-tests: New file.
4427         * tests/test-grantpt.c: New file.
4428         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4429
4430 2011-09-20  Bruno Haible  <bruno@clisp.org>
4431
4432         freopen tests: EBADF tests.
4433         * tests/test-freopen.c: Include errno.h, unistd.h.
4434         (main): Add tests for EBADF, commented out for the moment.
4435
4436         fclose tests: EBADF tests.
4437         * tests/test-fclose.c (main): Add tests for EBADF.
4438
4439         fflush tests: EBADF tests.
4440         * tests/test-fflush.c: Include errno.h, macros.h.
4441         (main): Add tests for EBADF.
4442
4443         ftello tests: EBADF tests.
4444         * tests/test-ftello4.sh: New file.
4445         * tests/test-ftello4.c: New file.
4446         * modules/ftello-tests (Files): Add them.
4447         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4448
4449         fseeko tests: EBADF tests.
4450         * tests/test-fseeko4.sh: New file.
4451         * tests/test-fseeko4.c: New file.
4452         * modules/fseeko-tests (Files): Add them.
4453         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4454
4455         Tests for function fputc().
4456         * modules/fputc-tests: New file.
4457         * tests/test-fputc.c: New file.
4458         * modules/stdio-tests (Depends-on): Add fputc-tests.
4459
4460         Tests for function fgetc().
4461         * modules/fgetc-tests: New file.
4462         * tests/test-fgetc.c: New file.
4463         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4464
4465         Tests for function fdopen().
4466         * modules/fdopen-tests: New file.
4467         * tests/test-fdopen.c: New file.
4468         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4469
4470         Tests for module 'vdprintf'.
4471         * modules/vdprintf-tests: New file.
4472         * tests/test-vdprintf.c: New file.
4473
4474         Tests for module 'dprintf'.
4475         * modules/dprintf-tests: New file.
4476         * tests/test-dprintf.c: New file.
4477
4478 2011-09-20  Bruno Haible  <bruno@clisp.org>
4479
4480         Tests for module 'ioctl'.
4481         * modules/ioctl-tests: New file.
4482         * tests/test-ioctl.c: New file.
4483
4484 2011-09-20  Bruno Haible  <bruno@clisp.org>
4485
4486         fcntl tests: EBADF tests.
4487         * tests/test-fcntl.c (main): Add more tests for EBADF.
4488
4489 2011-09-20  Bruno Haible  <bruno@clisp.org>
4490
4491         utimensat tests: EBADF tests.
4492         * tests/test-utimensat.c (main): Add tests for EBADF.
4493
4494         renameat tests: EBADF tests.
4495         * tests/test-renameat.c (main): Add tests for EBADF.
4496
4497         mkfifoat tests: EBADF tests.
4498         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4499
4500         readlinkat tests: EBADF tests.
4501         * tests/test-readlinkat.c (main): Add tests for EBADF.
4502
4503         symlinkat tests: EBADF tests.
4504         * tests/test-symlinkat.c (main): Add tests for EBADF.
4505
4506         linkat tests: EBADF tests.
4507         * tests/test-linkat.c (main): Add tests for EBADF.
4508
4509         Tests for module 'faccessat'.
4510         * modules/faccessat-tests: New file.
4511         * tests/test-faccessat.c: New file.
4512
4513         fdopendir tests: EBADF tests.
4514         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4515
4516         openat tests: EBADF tests.
4517         * tests/test-fchownat.c (main): Add tests for EBADF.
4518         * tests/test-fstatat.c (main): Likewise.
4519         * tests/test-mkdirat.c (main): Likewise.
4520         * tests/test-openat.c (main): Likewise.
4521         * tests/test-unlinkat.c (main): Likewise.
4522         * tests/test-fchmodat.c: New file.
4523         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4524         (Makefile.am): Also run 'test-fchmodat'.
4525
4526 2011-09-20  Bruno Haible  <bruno@clisp.org>
4527
4528         utimens, futimens, fdutimensat tests: EBADF tests.
4529         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4530
4531         Tests for function fstat().
4532         * modules/fstat-tests: New file.
4533         * tests/test-fstat.c: New file.
4534         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4535
4536 2011-09-20  Bruno Haible  <bruno@clisp.org>
4537
4538         test-ttyname_r tests: EBADF tests.
4539         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4540
4541         Tests for module 'isatty'.
4542         * modules/isatty-tests: New file.
4543         * tests/test-isatty.c: New file.
4544
4545         Tests for module 'write'.
4546         * modules/write-tests: New file.
4547         * tests/test-write.c: New file.
4548
4549         Tests for module 'read'.
4550         * modules/read-tests: New file.
4551         * tests/test-read.c: New file.
4552
4553         pwrite tests: EBADF tests.
4554         * tests/test-pwrite.c (main): Add tests for EBADF.
4555
4556         pread tests: EBADF tests.
4557         * tests/test-pread.c (main): Add tests for EBADF.
4558
4559         lseek tests: EBADF tests.
4560         * tests/test-lseek.c (main): Add more tests for EBADF.
4561
4562         Tests for module 'ftruncate'.
4563         * modules/ftruncate-tests: New file.
4564         * tests/test-ftruncate.sh: New file.
4565         * tests/test-ftruncate.c: New file.
4566
4567         fsync tests: EBADF tests.
4568         * tests/test-fsync.c (main): Add more tests for EBADF.
4569
4570         fdatasync tests: EBADF tests.
4571         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4572
4573         Tests for module 'fchown'.
4574         * modules/fchown-tests: New file.
4575         * tests/test-fchown.c: New file.
4576
4577         Tests for module 'fchmod'.
4578         * modules/fchmod-tests: New file.
4579         * tests/test-fchmod.c: New file.
4580
4581         fchdir tests: EBADF tests.
4582         * tests/test-fchdir.c (main): Add more tests for EBADF.
4583
4584         dup2 tests: EBADF tests.
4585         * tests/test-dup2.c (main): Add more tests for EBADF.
4586
4587         Tests for module 'dup'.
4588         * modules/dup-tests: New file.
4589         * tests/test-dup.c: New file.
4590
4591         Tests for module 'close'.
4592         * modules/close-tests: New file.
4593         * tests/test-close.c: New file.
4594
4595 2011-09-20  Bruno Haible  <bruno@clisp.org>
4596
4597         Tests for module 'shutdown'.
4598         * modules/shutdown-tests: New file.
4599         * tests/test-shutdown.c: New file.
4600
4601         Tests for module 'setsockopt'.
4602         * modules/setsockopt-tests: New file.
4603         * tests/test-setsockopt.c: New file.
4604
4605         Tests for module 'sendto'.
4606         * modules/sendto-tests: New file.
4607         * tests/test-sendto.c: New file.
4608
4609         Tests for module 'send'.
4610         * modules/send-tests: New file.
4611         * tests/test-send.c: New file.
4612
4613         Tests for module 'recvfrom'.
4614         * modules/recvfrom-tests: New file.
4615         * tests/test-recvfrom.c: New file.
4616
4617         Tests for module 'recv'.
4618         * modules/recv-tests: New file.
4619         * tests/test-recv.c: New file.
4620
4621         Tests for module 'listen'.
4622         * modules/listen-tests: New file.
4623         * tests/test-listen.c: New file.
4624
4625         Tests for module 'getsockopt'.
4626         * modules/getsockopt-tests: New file.
4627         * tests/test-getsockopt.c: New file.
4628
4629         Tests for module 'getsockname'.
4630         * modules/getsockname-tests: New file.
4631         * tests/test-getsockname.c: New file.
4632
4633         Tests for module 'getpeername'.
4634         * modules/getpeername-tests: New file.
4635         * tests/test-getpeername.c: New file.
4636
4637         Tests for module 'connect'.
4638         * modules/connect-tests: New file.
4639         * tests/test-connect.c: New file.
4640
4641         Tests for module 'bind'.
4642         * modules/bind-tests: New file.
4643         * tests/test-bind.c: New file.
4644
4645         accept4 tests: Fix for native Windows.
4646         * tests/test-accept4.c: Include sockets.h.
4647         (main): Invoke gl_sockets_startup.
4648         * modules/accept4-tests (Depends-on): Add sockets.
4649
4650         accept tests: Fix for native Windows.
4651         * tests/test-accept.c: Include sockets.h.
4652         (main): Invoke gl_sockets_startup.
4653         * modules/accept-tests (Depends-on): Add sockets.
4654
4655 2011-09-19  Bruno Haible  <bruno@clisp.org>
4656
4657         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4658         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4659         do...while(0).
4660         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4661         Suggested by Paul Eggert.
4662
4663 2011-09-19  Bruno Haible  <bruno@clisp.org>
4664
4665         sched: Ensure pid_t is defined.
4666         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4667         not define pid_t.
4668         * lib/sched.in.h: Include <sys/types.h>.
4669         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4671
4672 2011-09-19  Bruno Haible  <bruno@clisp.org>
4673
4674         msvc-inval: Ensure the entire expansion is a single statement.
4675         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4676         of braces.
4677
4678 2011-09-19  Jim Meyering  <meyering@redhat.com>
4679
4680         tests: use printf, not echo in init.sh's warn_ function
4681         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4682         misbehave when given strings containing a backslash or starting
4683         with e.g., -n.  James Youngman suggested setting IFS.
4684
4685 2011-09-19  Eric Blake  <eblake@redhat.com>
4686
4687         futimens: enhance test
4688         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4689         closed non-negative fd.
4690
4691         date: accept 'hence' as opposite of 'ago'
4692         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4693         * tests/test-parse-datetime.c (main): Enhance test.
4694         Suggested by Jesse Wilson.
4695
4696 2011-09-19  Jim Meyering  <meyering@redhat.com>
4697
4698         getcwd: don't fail in a deep directory on a system without openat
4699         Before this change, getcwd would fail when called from a directory
4700         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4701         the non-openat implementation used "..", "../..", "../../..", etc.
4702         to access ancestor directories.  With too many, that string would
4703         be longer than PATH_MAX.
4704         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4705         using gnulib's openat replacement.
4706         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4707         we're using the replacement function.
4708
4709 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4710
4711         maint.mk: avoid warnings from perl about missing files
4712         * top/maint.mk (def_sym_regex): Ignore files listed in
4713         $(gl_other_headers_) that do not exist, say because a project
4714         does not use a corresponding module.
4715
4716 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4717
4718         stat: use pathmax.h only if needed
4719         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4720         This is better for Emacs, which does not have a mingw port and
4721         therefore can avoid the pathmax module.
4722
4723         utimens: remove dependency on dup2
4724         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4725         to work around the Linux kernel bug.
4726         * modules/utimens (Depends-on): Remove dup2.
4727
4728 2011-09-18  Bruno Haible  <bruno@clisp.org>
4729
4730         inet_ntop, inet_pton: Look for it also in libresolv.
4731         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4732         libnsl, search for it in libresolv.
4733         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4734         Needed on Solaris 7.
4735
4736 2011-09-18  Bruno Haible  <bruno@clisp.org>
4737
4738         accept, accept4 tests: Avoid link error on Solaris.
4739         * modules/accept-tests (Makefile.am): Link test-accept against
4740         $(LIBSOCKET).
4741         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4742         $(LIBSOCKET).
4743
4744         accept4: Avoid link error on Solaris.
4745         * modules/accept4 (Link): New section.
4746
4747         socket functions: Avoid link errors on Solaris.
4748         * modules/accept (Depends-on): Add socketlib.
4749         (Link): New section.
4750         * modules/bind (Depends-on): Add socketlib.
4751         (Link): New section.
4752         * modules/connect (Depends-on): Add socketlib.
4753         (Link): New section.
4754         * modules/getpeername (Depends-on): Add socketlib.
4755         (Link): New section.
4756         * modules/getsockname (Depends-on): Add socketlib.
4757         (Link): New section.
4758         * modules/getsockopt (Depends-on): Add socketlib.
4759         (Link): New section.
4760         * modules/listen (Depends-on): Add socketlib.
4761         (Link): New section.
4762         * modules/recv (Depends-on): Add socketlib.
4763         (Link): New section.
4764         * modules/recvfrom (Depends-on): Add socketlib.
4765         (Link): New section.
4766         * modules/send (Depends-on): Add socketlib.
4767         (Link): New section.
4768         * modules/sendto (Depends-on): Add socketlib.
4769         (Link): New section.
4770         * modules/setsockopt (Depends-on): Add socketlib.
4771         (Link): New section.
4772         * modules/shutdown (Depends-on): Add socketlib.
4773         (Link): New section.
4774         * modules/socket (Depends-on): Add socketlib.
4775         (Link): New section.
4776
4777 2011-09-18  Bruno Haible  <bruno@clisp.org>
4778
4779         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4780         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4781         than 5 seconds.
4782         * modules/ptsname-tests (configure.ac): Test for alarm.
4783
4784 2011-09-18  Bruno Haible  <bruno@clisp.org>
4785
4786         posix_spawn_file_actions_add*: Fix module dependencies.
4787         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4788         posix_spawn_file_actions_init.
4789         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4790         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4791
4792 2011-09-18  Bruno Haible  <bruno@clisp.org>
4793
4794         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4795         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4796         * tests/test-renameat.c (main): Likewise.
4797
4798 2011-09-18  Bruno Haible  <bruno@clisp.org>
4799
4800         Tests for module 'accept4'.
4801         * modules/accept4-tests: New file.
4802         * tests/test-accept4.c: New file.
4803
4804 2011-09-18  Bruno Haible  <bruno@clisp.org>
4805
4806         Tests for module 'accept'.
4807         * modules/accept-tests: New file.
4808         * tests/test-accept.c: New file.
4809
4810 2011-09-18  Bruno Haible  <bruno@clisp.org>
4811
4812         dup2: Support for MSVC.
4813         * lib/dup2.c: Include msvc-inval.h.
4814         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4815         _get_osfhandle calls.
4816         * modules/dup2 (Depends-on): Add msvc-inval.
4817         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4818
4819         New module 'msvc-inval'.
4820         * lib/msvc-inval.h: New file.
4821         * lib/msvc-inval.c: New file.
4822         * m4/msvc-inval.m4: New file.
4823         * modules/msvc-inval: New file.
4824
4825 2011-09-17  Bruno Haible  <bruno@clisp.org>
4826
4827         Tests for module 'pclose'.
4828         * modules/pclose-tests: New file.
4829
4830         New module 'pclose'.
4831         * lib/stdio.in.h (pclose): New declaration.
4832         * lib/pclose.c: New file.
4833         * m4/pclose.m4: New file.
4834         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4835         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4836         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4837         * modules/pclose: New file.
4838         * modules/popen-tests (Depends-on): Add pclose.
4839         * modules/popen-safer-tests (Depends-on): Likewise.
4840         * doc/posix-functions/pclose.texi: Mention the new module.
4841
4842 2011-09-17  Bruno Haible  <bruno@clisp.org>
4843
4844         popen: Support for MSVC.
4845         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4846         * lib/popen.c (popen): Provide alternate definition for native Windows.
4847         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4849         * modules/popen (Depends-on, configure.ac): Update condition.
4850         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4851         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4852         fixed.
4853
4854 2011-09-17  Bruno Haible  <bruno@clisp.org>
4855
4856         isnanl, isnand, isnanf: Work around MSVC bug.
4857         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4858
4859 2011-09-17  Bruno Haible  <bruno@clisp.org>
4860
4861         sys_socket tests: Fix recent mistake.
4862         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4863
4864 2011-09-17  Bruno Haible  <bruno@clisp.org>
4865
4866         putenv: Support for MSVC.
4867         * modules/putenv (Depends-on): Add environ.
4868         * lib/putenv.c (environ): Disable declaration.
4869         * lib/unistd.in.h: Update comment.
4870
4871 2011-09-17  Bruno Haible  <bruno@clisp.org>
4872
4873         math: Avoid macro redefinition warnings on MSVC.
4874         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4875         Undefine before redefining.
4876
4877 2011-09-17  Bruno Haible  <bruno@clisp.org>
4878
4879         doc: Mention functions which are declared as macros.
4880         * doc/posix-functions/*[fl].texi: Mention that some functions are
4881         defined as macros with arguments only.
4882
4883 2011-09-17  Bruno Haible  <bruno@clisp.org>
4884
4885         Add dependencies to new dirent related modules.
4886         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4887         * modules/fts (Depends-on): Likewise.
4888         * modules/glob (Depends-on): Likewise.
4889         * modules/savedir (Depends-on): Likewise.
4890         * modules/scandir (Depends-on): Likewise.
4891         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4892         * modules/fdopendir (Depends-on): Add opendir.
4893
4894 2011-09-17  Bruno Haible  <bruno@clisp.org>
4895
4896         inet_pton: Support for MSVC on Windows Vista or newer.
4897         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4898         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4899         HAVE_DECL_INET_PTON is defined.
4900         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4901         On platforms with <winsock2.h>, test whether inet_pton is declared in
4902         <ws2tcpip.h>. If so, arrange to replace it.
4903         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4904         REPLACE_INET_PTON.
4905         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4906         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4907         (Depends-on, configure.ac): Update condition.
4908         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4909
4910 2011-09-17  Bruno Haible  <bruno@clisp.org>
4911
4912         inet_ntop: Support for MSVC on Windows Vista or newer.
4913         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4914         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4915         HAVE_DECL_INET_NTOP is defined.
4916         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4917         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4918         <ws2tcpip.h>. If so, arrange to replace it.
4919         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4920         REPLACE_INET_NTOP.
4921         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4922         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4923         (Depends-on, configure.ac): Update condition.
4924         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4925
4926 2011-09-16  Eric Blake  <eblake@redhat.com>
4927
4928         test-fsync: yet another enhancement
4929         * tests/test-fsync.c (main): Also test behavior on read-only text
4930         file.
4931
4932 2011-09-16  Bruno Haible  <bruno@clisp.org>
4933
4934         Enhance fsync, fdatasync tests.
4935         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4936         * tests/test-fdatasync.c (main): Likewise.
4937
4938 2011-09-16  Bruno Haible  <bruno@clisp.org>
4939
4940         Support for MSVC compiler: Ensure mode_t gets defined.
4941         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4942         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4944         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4945         * tests/test-fcntl-h.c: Check that mode_t is defined.
4946         * tests/test-sys_stat.c: Likewise.
4947         * tests/test-sys_types.c: Likewise.
4948         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4949         * doc/posix-headers/sys_stat.texi: Likewise.
4950         * doc/posix-headers/sys_types.texi: Likewise.
4951
4952 2011-09-16  Bruno Haible  <bruno@clisp.org>
4953
4954         sys_stat: Support for MSVC.
4955         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4956         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4957         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4958         MSVC.
4959
4960 2011-09-16  Bruno Haible  <bruno@clisp.org>
4961
4962         Support for MSVC compiler: Ensure off_t gets defined.
4963         * lib/unistd.in.h: Include <sys/types.h>.
4964         * tests/test-fcntl-h.c: Check that off_t is defined.
4965         * tests/test-sys_stat.c: Likewise.
4966         * tests/test-sys_types.c: Likewise.
4967
4968 2011-09-16  Eric Blake  <eblake@redhat.com>
4969
4970         fdatasync: port to Solaris
4971         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4972         * modules/fdatasync (Link): Document it.
4973         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4974
4975         fdatasync: port to MacOS X 10.7
4976         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4977         declared.
4978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4979         * modules/unistd (Makefile.am): Substitute it.
4980         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4981         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4982
4983         fdatasync: minor improvements
4984         * modules/fdatasync (Depends-on): Add condition for fsync.
4985         * lib/fdatasync.c (fdatasync): Add comment.
4986         * tests/test-unistd-c++.cc: Test fdatasync.
4987
4988         unistd: update refs to newer POSIX
4989         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4990         Suggested by Bruno Haible.
4991
4992         fdatasync: new module
4993         * modules/fsync (Description): Document difference to fdatasync.
4994         * modules/fdatasync: New module.
4995         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4996         * lib/fdatasync.c (fdatasync): Likewise.
4997         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4998         defaults.
4999         * modules/unistd (Makefile.am): Set witnesses.
5000         * lib/unistd.in.h (fdatasync): Declare.
5001         * MODULES.html.sh: Document it.
5002         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5003         * modules/fdatasync-tests: New test.
5004         * tests/test-fdatasync.c: Likewise.
5005
5006 2011-09-16  Eric Blake  <eblake@redhat.com>
5007
5008         test-fsync: enhance tests
5009         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5010         * tests/test-fsync.c (main): Enhance test.
5011
5012 2011-09-15  Bruno Haible  <bruno@clisp.org>
5013
5014         Support for MSVC compiler: Ensure ssize_t gets defined.
5015         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5016         * doc/posix-headers/stdio.texi: Likewise.
5017         * modules/stdio (Depends-on): Add ssize_t.
5018         * modules/sys_socket (Depends-on): Likewise.
5019         * modules/sys_types (Depends-on): Likewise.
5020         * modules/sys_uio (Depends-on): Likewise.
5021         * modules/unistd (Depends-on): Likewise.
5022         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5023         * tests/test-sys_types.c: Check that ssize_t is defined.
5024
5025 2011-09-14  Bruno Haible  <bruno@clisp.org>
5026
5027         Avoid using #, the m4 comment starter character, near brackets.
5028         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5029         delimiter character in sed expressions.
5030         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5031         Suggested by Eric Blake.
5032
5033         Properly quote AC_CHECK_DECLS' 4th argument.
5034         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5035         argument.
5036         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5037         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5038         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5039         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5040         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5041         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5042         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5043         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5044         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5045         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5046         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5047         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5048         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5049         * m4/isinf.m4 (gl_ISINF): Likewise.
5050         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5051         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5053         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5054         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5055         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5056         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5057         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5058         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5059         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5060         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5061         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5063         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5064         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5065         Reported by Eric Blake.
5066
5067         Properly quote AC_CHECK_DECL's 4th argument.
5068         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5069         argument.
5070         * m4/argp.m4 (gl_ARGP): Likewise.
5071         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5072         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5073         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5074         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5075         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5076         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5077         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5078         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5079         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5080         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5081         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5082         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5083         Reported by Eric Blake.
5084
5085 2011-09-14  Eric Blake  <eblake@redhat.com>
5086
5087         opendir: avoid compile warning
5088         * lib/opendir.c (includes): Always include errno.h.
5089         Reported by Tatsuro MATSUOKA.
5090
5091 2011-09-14  Jim Meyering  <meyering@redhat.com>
5092
5093         maint.mk: sc_tight_scope: propagate failure from sub-make
5094         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5095         Reported by Martin von Gagern.
5096
5097 2011-09-13  Bruno Haible  <bruno@clisp.org>
5098
5099         tempname: Support for MSVC.
5100         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5101         MSVC.
5102         * modules/tempname (Depends-on): Add fcntl-h.
5103
5104 2011-09-13  Bruno Haible  <bruno@clisp.org>
5105
5106         sys_time: Support for MSVC.
5107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5108         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5109         include <winsock2.h>.
5110         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5111         function declarations that collide with POSIX.
5112         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5113         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5114
5115 2011-09-13  Bruno Haible  <bruno@clisp.org>
5116
5117         stat: Support for MSVC.
5118         * lib/stat.c: Include pathmax.h.
5119         * modules/stat (Depends-on): Add pathmax.
5120
5121         pathmax: Support for native Windows.
5122         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5123
5124 2011-09-12  Bruno Haible  <bruno@clisp.org>
5125
5126         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5127         * lib/dirent.in.h (struct dirent): New type.
5128         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5129         DT_WHT): New macros.
5130         (DIR): New type.
5131         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5132         (readdir, rewinddir): New declarations.
5133         * lib/dirent-private.h: New file.
5134         * lib/opendir.c: New file.
5135         * lib/readdir.c: New file.
5136         * lib/rewinddir.c: New file.
5137         * lib/closedir.c: New file.
5138         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5139         * m4/opendir.m4: New file.
5140         * m4/readdir.m4: New file.
5141         * m4/rewinddir.m4: New file.
5142         * m4/closedir.m4: New file.
5143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5144         REPLACE_CLOSEDIR here.
5145         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5146         readdir, rewinddir are declared.
5147         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5148         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5149         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5150         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5151         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5152         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5153         * modules/opendir: New file.
5154         * modules/readdir: New file.
5155         * modules/rewinddir: New file.
5156         * modules/closedir: New file.
5157         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5158         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5159         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5160         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5161         * NEWS: Mention the 'fchdir' change.
5162
5163 2011-09-11  Bruno Haible  <bruno@clisp.org>
5164
5165         asm-underscore.m4: Support for MSVC.
5166         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5167         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5168
5169 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5170
5171         Doc about crypt functions.
5172         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5173         needing for _GNU_SOURCE to get crypt.
5174         * doc/posix-functions/encrypt.texi: Likewise.
5175         * doc/posix-functions/setkey.texi: Likewise.
5176
5177 2011-09-11  Bruno Haible  <bruno@clisp.org>
5178
5179         doc: Update regarding MSVC 9.
5180         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5181         tested".
5182         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5183         * doc/posix-headers/*.texi: Likewise.
5184         * doc/pastposix-functions/*.texi: Likewise.
5185         * doc/glibc-functions/*.texi: Likewise.
5186         * doc/glibc-headers/*.texi: Likewise.
5187
5188 2011-09-11  Bruno Haible  <bruno@clisp.org>
5189
5190         unistd et al.: Don't assume <unistd.h> exists.
5191         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5192         does not exist.
5193         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5194         exist. But include <stdlib.h>.
5195         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5196         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5197         symlink() does not exist.
5198         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5199         include <io.h> instead.
5200         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5201         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5202         include <direct.h> instead.
5203         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5204         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5205         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5206         <io.h> instead.
5207         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5208         correctly if the system does not have hard links.
5209         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5210         <direct.h> instead.
5211         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5212         it when looking for function declarations.
5213         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5214         <direct.h> and <io.h> instead.
5215         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5216
5217 2011-09-11  Bruno Haible  <bruno@clisp.org>
5218
5219         strcase: Support for MSVC.
5220         * modules/strcase (Status, Notice): Remove obsoletion mark.
5221         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5222         * doc/posix-functions/strncasecmp.texi: Likewise.
5223
5224         strings: Don't assume <strings.h> exists.
5225         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5226         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5227         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5228         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5229
5230 2011-09-11  Bruno Haible  <bruno@clisp.org>
5231
5232         dirent: Don't assume <dirent.h> exists.
5233         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5234         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5235         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5236         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5237
5238 2011-09-11  Bruno Haible  <bruno@clisp.org>
5239
5240         Fix wint_t on MSVC.
5241         * lib/wchar.in.h (wint_t): On MSVC, override it.
5242         * lib/wctype.in.h (wint_t): Likewise.
5243         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5244         MSVC.
5245         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5246         * doc/posix-headers/wctype.texi: Likewise.
5247
5248 2011-09-11  Bruno Haible  <bruno@clisp.org>
5249
5250         sys_types: Fix typo.
5251         * lib/sys_types.in.h: Fix typo in comment.
5252         Reported by Paul Eggert.
5253
5254         Support for MSVC compiler: Ensure size_t gets defined.
5255         * modules/strings (Depends-on): Add 'sys_types'.
5256         * modules/sys_uio (Depends-on): Likewise.
5257         * lib/sys_uio.in.h: Update comment.
5258
5259         C++ tests for module 'sys_types'.
5260         * modules/sys_types-c++-tests: New file.
5261         * tests/test-sys_types-c++.cc: New file.
5262
5263         Tests for module 'sys_types'.
5264         * modules/sys_types-tests: New file.
5265         * tests/test-sys_types.c: New file.
5266
5267         New module 'sys_types'.
5268         * lib/sys_types.in.h: New file.
5269         * m4/sys_types_h.m4: New file.
5270         * modules/sys_types: New file.
5271         * doc/posix-headers/sys_types.texi: Mention the new module and the
5272         size_t problem on MSVC 9.
5273
5274 2011-09-11  Bruno Haible  <bruno@clisp.org>
5275
5276         Support for MSVC compiler: Avoid division by a literal 0.
5277         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5278         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5279         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5280         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5281         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5282         * tests/infinity.h: New file.
5283         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5284         on MSVC.
5285         * tests/test-ceilf1.c: Include infinity.h.
5286         (main): Use Infinityf.
5287         * tests/test-ceil1.c: Include infinity.h.
5288         (main): Use Infinityd.
5289         * tests/test-ceill.c: Include infinity.h.
5290         (main): Use Infinityl.
5291         * tests/test-dprintf-posix.c: Include infinity.h.
5292         (test_function): Use Infinityd.
5293         * tests/test-floorf1.c: Include infinity.h.
5294         (main): Use Infinityf.
5295         * tests/test-floor1.c: Include infinity.h.
5296         (main): Use Infinityd.
5297         * tests/test-floorl.c: Include infinity.h.
5298         (main): Use Infinityl.
5299         * tests/test-fprintf-posix.c: Include infinity.h.
5300         (test_function): Use Infinityd.
5301         * tests/test-frexp.c: Include infinity.h.
5302         (main): Use Infinityd.
5303         * tests/test-frexpl.c: Include infinity.h.
5304         (main): Use Infinityl.
5305         * tests/test-isfinite.c: Include infinity.h.
5306         (test_isfinitef): Use Infinityf.
5307         (test_isfinited): Use Infinityd.
5308         (test_isfinitel): Use Infinityl.
5309         * tests/test-isinf.c: Include infinity.h.
5310         (test_isinff): Use Infinityf.
5311         (test_isinfd): Use Infinityd.
5312         (test_isinfl): Use Infinityl.
5313         * tests/test-isnan.c: Include infinity.h.
5314         (test_float): Use Infinityf.
5315         (test_double): Use Infinityd.
5316         (test_long_double): Use Infinityl.
5317         * tests/test-isnanf.h: Include infinity.h.
5318         (main): Use Infinityf.
5319         * tests/test-isnand.h: Include infinity.h.
5320         (main): Use Infinityd.
5321         * tests/test-isnanl.h: Include infinity.h.
5322         (main): Use Infinityl.
5323         * tests/test-ldexpl.c: Include infinity.h.
5324         (main): Use Infinityl.
5325         * tests/test-printf-posix.h: Include infinity.h.
5326         (test_function): Use Infinityd.
5327         * tests/test-roundf1.c: Include infinity.h.
5328         (main): Use Infinityf.
5329         * tests/test-round1.c: Include infinity.h.
5330         (main): Use Infinityd.
5331         * tests/test-roundl.c: Include infinity.h.
5332         (main): Use Infinityl.
5333         * tests/test-signbit.c: Include infinity.h.
5334         (test_signbitf): Use Infinityf.
5335         (test_signbitd): Use Infinityd.
5336         (test_signbitl): Use Infinityl.
5337         * tests/test-snprintf-posix.h: Include infinity.h.
5338         (test_function): Use Infinityd, Infinityl.
5339         * tests/test-sprintf-posix.h: Include infinity.h.
5340         (test_function): Use Infinityd, Infinityl.
5341         * tests/test-truncf1.c: Include infinity.h.
5342         (main): Use Infinityf.
5343         * tests/test-trunc1.c: Include infinity.h.
5344         (main): Use Infinityd.
5345         * tests/test-truncl.c: Include infinity.h.
5346         (main): Use Infinityl.
5347         * tests/test-vasnprintf-posix.c: Include infinity.h.
5348         (test_function): Use Infinityd, Infinityl.
5349         * tests/test-vasprintf-posix.c: Include infinity.h.
5350         (test_function): Use Infinityd, Infinityl.
5351         * modules/ceilf-tests (Files): Add tests/infinity.h.
5352         * modules/ceil-tests (Files): Likewise.
5353         * modules/ceill-tests (Files): Likewise.
5354         * modules/dprintf-posix-tests (Files): Likewise.
5355         * modules/floorf-tests (Files): Likewise.
5356         * modules/floor-tests (Files): Likewise.
5357         * modules/floorl-tests (Files): Likewise.
5358         * modules/fprintf-posix-tests (Files): Likewise.
5359         * modules/frexp-tests (Files): Likewise.
5360         * modules/frexp-nolibm-tests (Files): Likewise.
5361         * modules/frexpl-tests (Files): Likewise.
5362         * modules/frexpl-nolibm-tests (Files): Likewise.
5363         * modules/isfinite-tests (Files): Likewise.
5364         * modules/isinf-tests (Files): Likewise.
5365         * modules/isnan-tests (Files): Likewise.
5366         * modules/isnanf-tests (Files): Likewise.
5367         * modules/isnanf-nolibm-tests (Files): Likewise.
5368         * modules/isnand-tests (Files): Likewise.
5369         * modules/isnand-nolibm-tests (Files): Likewise.
5370         * modules/isnanl-tests (Files): Likewise.
5371         * modules/isnanl-nolibm-tests (Files): Likewise.
5372         * modules/ldexpl-tests (Files): Likewise.
5373         * modules/printf-posix-tests (Files): Likewise.
5374         * modules/roundf-tests (Files): Likewise.
5375         * modules/round-tests (Files): Likewise.
5376         * modules/roundl-tests (Files): Likewise.
5377         * modules/signbit-tests (Files): Likewise.
5378         * modules/snprintf-posix-tests (Files): Likewise.
5379         * modules/sprintf-posix-tests (Files): Likewise.
5380         * modules/truncf-tests (Files): Likewise.
5381         * modules/trunc-tests (Files): Likewise.
5382         * modules/truncl-tests (Files): Likewise.
5383         * modules/vasnprintf-posix-tests (Files): Likewise.
5384         * modules/vasprintf-posix-tests (Files): Likewise.
5385         * modules/vdprintf-posix-tests (Files): Likewise.
5386         * modules/vfprintf-posix-tests (Files): Likewise.
5387         * modules/vprintf-posix-tests (Files): Likewise.
5388         * modules/vsnprintf-posix-tests (Files): Likewise.
5389         * modules/vsprintf-posix-tests (Files): Likewise.
5390         * modules/xprintf-posix-tests (Files): Likewise.
5391
5392 2011-09-11  Bruno Haible  <bruno@clisp.org>
5393
5394         Ensure pid_t gets defined.
5395         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5396         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5397         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5398         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5399         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5400         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5401         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5402         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5403         * tests/test-fcntl-h.c: Check that pid_t is defined.
5404         * tests/test-sched.c: Likewise.
5405         * tests/test-termios.c: Likewise.
5406         * tests/test-time.c: Likewise.
5407         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5408         * doc/posix-headers/signal.texi: Likewise.
5409         * doc/posix-headers/sys_types.texi: Likewise.
5410         * doc/posix-headers/time.texi: Likewise.
5411
5412 2011-09-11  Bruno Haible  <bruno@clisp.org>
5413
5414         acl: Fix compilation on Solaris 10 (older version).
5415         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5416         of ACE_EVERYONE.
5417         * lib/set-mode-acl.c (qset_acl): Likewise.
5418         Reported by Christian Jullien <eligis@orange.fr>.
5419
5420 2011-09-10  Bruno Haible  <bruno@clisp.org>
5421
5422         iconv, unsetenv: Add support for MSVC compiler.
5423         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5424         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5425
5426 2011-09-10  Bruno Haible  <bruno@clisp.org>
5427
5428         *printf: Add support for MSVC compiler.
5429         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5430         handles the exception caused by the %n directive. When cross-compiling,
5431         guess no on native Windows.
5432         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5433         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5434         emulate it through vsnprintf.
5435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5436         * doc/posix-functions/dprintf.texi: Update documentation regarding
5437         MSVC 9.
5438         * doc/posix-functions/fprintf.texi: Likewise.
5439         * doc/posix-functions/printf.texi: Likewise.
5440         * doc/posix-functions/snprintf.texi: Likewise.
5441         * doc/posix-functions/sprintf.texi: Likewise.
5442         * doc/posix-functions/swprintf.texi: Likewise.
5443         * doc/posix-functions/vdprintf.texi: Likewise.
5444         * doc/posix-functions/vfprintf.texi: Likewise.
5445         * doc/posix-functions/vprintf.texi: Likewise.
5446         * doc/posix-functions/vsnprintf.texi: Likewise.
5447         * doc/posix-functions/vsprintf.texi: Likewise.
5448         * doc/glibc-functions/asprintf.texi: Likewise.
5449         * doc/glibc-functions/obstack_printf.texi: Likewise.
5450         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5451         * doc/glibc-functions/vasprintf.texi: Likewise.
5452
5453 2011-09-10  Bruno Haible  <bruno@clisp.org>
5454
5455         nocrash: Add support for native Windows.
5456         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5457
5458 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5459             Bruno Haible  <bruno@clisp.org>
5460
5461         absolute-header, include-next: Add support for MSVC compiler.
5462         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5463         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5464         directory separator in #line directives.
5465         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5466         recognize also backslash as directory separator in #line directives.
5467
5468 2011-09-08  Jim Meyering  <meyering@redhat.com>
5469
5470         maint.mk: mark the post-release commit log with "maint: " prefix
5471         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5472         one-line commit-log summary.
5473
5474 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5475             Bruno Haible  <bruno@clisp.org>
5476
5477         Doc about crypt functions.
5478         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5479         systems.
5480         * doc/posix-functions/encrypt.texi: Likewise.
5481         * doc/posix-functions/setkey.texi: Likewise.
5482
5483 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5484
5485         * lib/gc.h: Fix copyright header.
5486
5487 2011-09-07  Bruno Haible  <bruno@clisp.org>
5488
5489         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5490         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5491         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5492
5493 2011-09-07  Bruno Haible  <bruno@clisp.org>
5494
5495         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5496         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5497         * lib/freopen.c: Likewise.
5498         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5499         * lib/lstat.c: Likewise.
5500         * lib/stat.c: Likewise.
5501         * lib/open.c: Use different syntax for include of <fcntl.h>.
5502         * lib/openat.c: Include fcntl.h again, explicitly.
5503
5504 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5505
5506         parse-datetime: document the newly accepted format
5507         * doc/parse-datetime.texi (Combined date and time of day items):
5508         New section.
5509
5510 2011-09-06  Bruno Haible  <bruno@clisp.org>
5511
5512         acl: Fix a test failure on newer Solaris 10 with ZFS.
5513         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5514         ENOSYS as no ACL.
5515         Reported by Jim Meyering.
5516
5517 2011-09-06  Bruno Haible  <bruno@clisp.org>
5518
5519         acl: Update for AIX >= 5.3 with NFS.
5520         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5521         ENOSYS as no ACL.
5522
5523         acl: Fix a test failure on AIX >= 5.3 with NFS.
5524         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5525         as no ACL.
5526
5527 2011-09-06  Bruno Haible  <bruno@clisp.org>
5528
5529         acl: Fix a test failure on IRIX 6.5 with NFS.
5530         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5531         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5532         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5533         * lib/copy-acl.c (qcopy_acl): Likewise.
5534
5535 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5536
5537         openat: port to AIX 7.1 with large files
5538         AIX 7.1 does a "#define openat open64at" if large files are in use,
5539         so we can't simply #undef openat.  Use the orig_openat trick (similar
5540         to orig_open in lib/open.c) to work around the problem.  Problem
5541         reported by Kevin Brott for GNU tar, in the thread containing
5542         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5543         * lib/openat.c (__need_system_fcntl_h): Define first.
5544         Include <fcntl.h> and <sys/types.h> before undefining.
5545         (orig_openat) [HAVE_OPENAT]: New inline function.
5546         (openat) [HAVE_OPENAT]: Do not undef.
5547         (rpl_openat): Use orig_openat, not openat.
5548
5549 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5550             Bruno Haible  <bruno@clisp.org>
5551
5552         acl: Avoid errors on NonStop Kernel.
5553         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5554         ENOTSUP errors.
5555
5556 2011-09-05  Bruno Haible  <bruno@clisp.org>
5557
5558         acl: Clean up Solaris code.
5559         * lib/acl-internal.h: Remove no-op #if.
5560         * lib/file-has-acl.c: Likewise.
5561         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5562         * lib/copy-acl.c (qcopy_acl): Likewise.
5563
5564 2011-09-05  Bruno Haible  <bruno@clisp.org>
5565
5566         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5567         binaries built on the original Solaris 10.
5568         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5569         trivial.
5570
5571 2011-09-05  Bruno Haible  <bruno@clisp.org>
5572
5573         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5574         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5575         10.
5576         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5577         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5578         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5579         instead of acl_get, facl_get, acl_set, facl_set.
5580
5581 2011-09-05  Bruno Haible  <bruno@clisp.org>
5582
5583         copy-file: Try unit tests on more file systems.
5584         * tests/test-copy-file-1.sh: New file.
5585         * tests/test-copy-file-2.sh: New file.
5586         * modules/copy-file-tests (Files): Add them.
5587         (Makefile.am): Add them to TESTS.
5588
5589         acl: Try unit tests on more file systems.
5590         * tests/test-file-has-acl-1.sh: New file.
5591         * tests/test-file-has-acl-2.sh: New file.
5592         * tests/test-set-mode-acl-1.sh: New file.
5593         * tests/test-set-mode-acl-2.sh: New file.
5594         * tests/test-copy-acl-1.sh: New file.
5595         * tests/test-copy-acl-2.sh: New file.
5596         * modules/acl-tests (Files): Add them.
5597         (Makefile.am): Add them to TESTS.
5598
5599 2011-09-04  Bruno Haible  <bruno@clisp.org>
5600
5601         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5602         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5603         10.
5604         (OLD_ALLOW, OLD_DENY): New macros.
5605         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5606         ACE_ACCESS_ALLOWED_ACE_TYPE.
5607         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5608         ACE_ACCESS_DENIED_ACE_TYPE.
5609         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5610         (NEW_ACE_EXECUTE): Fix value.
5611         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5612         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5613         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5614         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5615         NEW_ACE_SYNCHRONIZE): New macros.
5616         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5617         instead of acl_fromtext, acl_set, facl_set.
5618         Fixes a coreutils/tests/cp/perm failure.
5619
5620 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5621
5622         openat: test for fstatat (..., 0) bug
5623         Further testing with tar suggests that fstatat (..., 0)
5624         does not work in general, on AIX 7.1; see
5625         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5626         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5627         replacement fstatat (which is what older AIX releases were using
5628         anyway).
5629         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5630         use is now changed to orig_fstatat.  This was probably the right
5631         thing to do anyway.
5632         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5633         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5634         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5635         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5636         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5637         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5638         if the bug is found.
5639
5640         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5641         This tests for another fstatat bug on AIX 7.1:
5642         fstatat (AT_FDCWD, ..., 0) does not work.  See
5643         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5644         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5645         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5646         (rpl_fstatat): Adjust so that it works around either (or both)
5647         bugs if present.
5648         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5649
5650 2011-09-03  Karl Berry  <karl@gnu.org>
5651
5652         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5653         in index entries.
5654
5655 2011-09-02  Bruno Haible  <bruno@clisp.org>
5656
5657         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5658         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5659         values of AR, ARFLAGS, RANLIB.
5660         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5661
5662 2011-09-02  Bruno Haible  <bruno@clisp.org>
5663
5664         Find 'ar' program that fits with --host argument.
5665         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5666
5667 2011-09-02  Bruno Haible  <bruno@clisp.org>
5668
5669         tests: init.sh: Support any non-GNU diff.
5670         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5671         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5672         Solaris 8.
5673
5674 2011-09-02  Bruno Haible  <bruno@clisp.org>
5675
5676         tests: init.sh: work also with any non-GNU diff that supports -u
5677         * tests/init.sh: Relax check for diff -u support.
5678         Rather than checking for GNU diff via --version, simply check
5679         for support for -u itself.  Useful at least on OpenBSD 4.9,
5680         AIX 7.1, IRIX 6.5, and Solaris 10.
5681
5682 2011-09-01  Bruno Haible  <bruno@clisp.org>
5683
5684         strtoimax, strtoumax: Document problem on HP-UX 11.
5685         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5686         * doc/posix-functions/strtoumax.texi: Likewise.
5687
5688 2011-09-01  Bruno Haible  <bruno@clisp.org>
5689
5690         strtoumax: Avoid link error on OSF/1 with DTK cc.
5691         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5692         defined as a function.
5693         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5694         strtoumax is defined, not whether it is declared.
5695
5696 2011-09-01  Bruno Haible  <bruno@clisp.org>
5697
5698         strtoimax: Avoid link error on OSF/1 with DTK cc.
5699         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5700         defined as a function.
5701         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5702         strtoimax is defined, not whether it is declared.
5703
5704 2011-09-01  Bruno Haible  <bruno@clisp.org>
5705
5706         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5707         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5708         as a function.
5709         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5710         whether it is declared.
5711
5712 2011-09-01  Bruno Haible  <bruno@clisp.org>
5713
5714         imaxabs: Avoid link error on OSF/1 with DTK cc.
5715         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5716         as a function.
5717         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5718         whether it is declared.
5719
5720 2011-09-01  Bruno Haible  <bruno@clisp.org>
5721
5722         Tests for module 'strtoumax'.
5723         * modules/strtoumax-tests: New file.
5724         * tests/test-strtoumax.c: New file.
5725
5726         Tests for module 'strtoimax'.
5727         * modules/strtoimax-tests: New file.
5728         * tests/test-strtoimax.c: New file.
5729
5730         Tests for module 'imaxdiv'.
5731         * modules/imaxdiv-tests: New file.
5732         * tests/test-imaxdiv.c: New file.
5733
5734         Tests for module 'imaxabs'.
5735         * modules/imaxabs-tests: New file.
5736         * tests/test-imaxabs.c: New file.
5737
5738 2011-09-01  Bruno Haible  <bruno@clisp.org>
5739
5740         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5741         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5742         pthread_create.
5743
5744 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5745
5746         openat: work around AIX 7.1 fstatat issue
5747         This should fix the problem that was not properly fixed
5748         in the previous change, dated 2011-08-30.
5749         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5750         __need_system_stat_h defined.
5751         (orig_fstatat) [HAVE_FSTATAT]: New function.
5752         (rpl_fstatat): Go back to the old way of doing things,
5753         except call orig_fstatat instead of fstatat.
5754         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5755         Remove unnecessary check whether fstatat fills in st_size etc.
5756
5757 2011-09-01  Bruno Haible  <bruno@clisp.org>
5758
5759         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5760         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5761         just include the system's header.
5762
5763 2011-08-31  Jim Meyering  <meyering@redhat.com>
5764
5765         tests: avoid spurious assertion failure in test-float.c on ppc64
5766         * tests/test-float.c (test_long_double): Comment out an assertion,
5767         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5768         with gcc-4.4.4.
5769
5770         maint: indent with spaces, not TABs
5771         I need to get in the habit of running gnulib's "make check".
5772         Both of these would have been caught.
5773         * m4/largefile.m4: Indent with spaces, not TABs.
5774         * lib/parse-datetime.y (iso_8601_time): Likewise.
5775         Spotted by Pádraig Brady.
5776
5777         test-parse-datetime.c: accommodate a relatively strict gcc warning
5778         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5779         to avoid a warning from gcc's -Werror=missing-declarations.
5780         Insert a few spaces-before-funcall-parenthesis.
5781
5782 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5783
5784         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5785         The parser now accepts ISO 8601 date-time strings with "T" as the
5786         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5787         with a space between the date and time strings.  Now it also parses
5788         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5789         variants like "2004-02-29T16:21:42.333-07:00"
5790         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5791         of day representation using the 'T' separator character.
5792         * doc/parse-datetime.texi (General date syntax): replace use of
5793         deprecated --iso-8601 option with --rfc-3339 in example of date
5794         command output formats that can be parsed.
5795         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5796         lib/parse-datetime.y.
5797         (gmt_offset): New function.
5798         (main): Add additional test cases to validate ISO8601 extended
5799         date and time of day parsing.
5800
5801 2011-08-31  Bruno Haible  <bruno@clisp.org>
5802
5803         freopen: Documentation.
5804         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5805         name.
5806         Reported by Claudio Bley <claudio.bley@gmail.com>.
5807
5808 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5809
5810         freopen: Don't crash if the filename argument is NULL.
5811         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5812         NULL.
5813
5814 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5815
5816         openat: work around AIX 7.1 fstatat bug
5817         Problem reported by Kevin Brott for GNU tar, in the thread containing
5818         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5819         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5820         FSTATAT_ST_SIZE_ETC_BROKEN.
5821         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5822         rpl_fstatat.
5823         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5824         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5825         AC_CHECK_FUNCS_ONCE for fstatat.
5826         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5827         fchmodat, mkdirat, openat and unlinkat.
5828
5829 2011-08-30  Bruno Haible  <bruno@clisp.org>
5830
5831         Avoid endless recursions if config.h includes some header files.
5832         * lib/fopen.c (__need_FILE): Define already before including config.h.
5833         * lib/freopen.c (__need_FILE): Likewise.
5834         * lib/open.c (__need_system_fcntl_h): Likewise.
5835         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5836         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5837         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5838
5839 2011-08-25  Karl Berry  <karl@gnu.org>
5840
5841         * config/srclist.txt (ylwrap): new try.
5842         * build-aux/ylwrap: new file.
5843
5844 2011-08-23  Bruno Haible  <bruno@clisp.org>
5845
5846         tmpdir: Use a good default directory on native Windows.
5847         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5848         (P_tmpdir): Default to _P_tmpdir on native Windows.
5849         (path_search): On native Windows, try the value returned by GetTempPath
5850         before trying P_tmpdir.
5851         * modules/tmpdir (Depends-on): Add pathmax.
5852         Suggested by John Darrington <john@darrington.wattle.id.au>.
5853
5854 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5855
5856         doc: fix typo in README-release
5857         * top/README-release: Capitalize first word of a sentence.
5858
5859 2011-08-19  Jim Meyering  <meyering@redhat.com>
5860
5861         fts: do not exhaust memory when processing million-entry directories
5862         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5863         directory would require about 256*N bytes of memory.  Thus, it was
5864         easy to construct a directory too large to be processed by any of
5865         those tools.  With this change, fts' maximum memory utilization is
5866         now limited to around 30MB.
5867         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5868         (fts_read): When we've processed the final entry (i.e., when
5869         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5870         using the parent entry to read any remaining entries.  Dispatch
5871         depending on what fts_build returns:
5872         - NULL+stop, aka failure: stop
5873         - NULL otherwise: move up in the dir hierarchy
5874         - non-NULL: handle this new entry
5875         (fts_build): Declare and use new local, continue_readdir.
5876         Prepare to be called from fts_read, when the entries
5877         from a partially-read directory have just been exhausted.
5878         In that case, we'll skip the opendir and instead use the parent's
5879         fts_dirp and derive dir_fd from that.
5880         Finally, in the readdir loop, if we read max_entries entries,
5881         exit the loop ensuring *not* to call closedir.  This is required
5882         so that fts_dirp can be reused on a subsequent call.
5883         Prompted by Ben England's report of memory exhaustion in find
5884         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5885
5886         maint: fts: move decl of `dp' down into while loop; split a long line
5887         * lib/fts.c (fts_build): No semantic change.
5888
5889         fts: add/use new struct member, fts_dirp
5890         We are about to use this to manage any directory with
5891         too many entries to read all of them into memory at once.
5892         To do that, we'll need to save the DIR* pointer in each
5893         affected FTSENT struct.
5894         * lib/fts_.h: Include <dirent.h>.
5895         (struct FTSENT) [fts_dirp]: New member.
5896         * lib/fts.c (closedir_and_clear): Define.
5897         Use it in place of closedir so that we are sure to
5898         clear the new fts_dirp member when done with it.
5899         (fts_alloc): Initialize the new member.
5900         (fts_lfree): Free, if needed.
5901
5902         maint: fts: give __opendir2 a new parameter and rename
5903         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5904         than surreptitiously using sole caller's "dir_fd".
5905         (fts_opendir): Rename from __opendir2.
5906
5907         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5908         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5909
5910         maint: fts.c: correct off-by-one indentation
5911         * lib/fts.c (fts_build): Correct indentation, change style
5912         of a couple of block comments, and bracing style.
5913
5914         maint: fts.c: move __opendir2 #define "up" out of function body
5915         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5916
5917         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5918         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5919         out for a long time and besides was useful only on BSD systems.
5920
5921 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5922
5923         regex: port to Stratus OpenVOS
5924         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5925         define to empty, rather than attempting nonportable optimizations.
5926         Problem reported by Paul Green in:
5927         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5928         and fix suggested by Eric Blake in:
5929         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5930
5931 2011-08-17  Eric Blake  <eblake@redhat.com>
5932
5933         getcwd: fix test failures on mingw
5934         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5935         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5936         test if long directory cannot be created, and allow mingw errno.
5937
5938         getcwd-lgpl: fix m4 to match relaxed test for BSD
5939         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5940         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5941         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5942         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5943         signature problem.
5944
5945         getcwd: fix compilation on mingw64
5946         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5947         getcwd.
5948         Reported by Marc-André Lureau.
5949
5950         pipe2: silence compiler warning
5951         * lib/pipe2.c (pipe2): Hide label if it is not used.
5952
5953 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5954
5955         relocatable-prog: fix link error
5956         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5957         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5958         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5959         into modules/relocatable-lib without noticing that
5960         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5961         also needs to build relocatable.c.
5962
5963 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5964
5965         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5967         shell code: it contained a 'break' that was not in a loop.
5968         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5969         via a shell-language loop; this may have been true in old Autoconf
5970         versions, but it's not true in Autoconf 2.68.  I found this bug
5971         when testing coreutils git on Solaris 8, whose shell complains
5972         about the syntax error.
5973
5974 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5975
5976         * lib/base64.c: Fix comment to reference RFC 4648.
5977         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5978         <gvtulder@gmail.com>.
5979
5980 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5983
5984         po/Makefile.in.in: fix make -q problem
5985         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5986         rule, since there's no file named 'check-macro-version' and its
5987         use as a file breaks make -q.
5988         (all): Don't depend on check-macro-version.
5989         (CHECK_MACRO_VERSION): New macro.
5990         (stamp-po): Use it.
5991
5992         configmake: fix make -q problem
5993         * modules/configmake (configmake.h): Update configmake.h's time stamp
5994         even if the file does not change.  Otherwise, 'make -q' fails.
5995         Problem reported by Simon Josefsson in
5996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5997
5998 2011-08-11  Jim Meyering  <meyering@redhat.com>
5999
6000         git-version-gen: correct the advice in a comment
6001         * build-aux/git-version-gen: Correct comment.
6002         Don't recommend to list .tarball-version in .gitignore.
6003
6004 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6005
6006         base64: fix off-by-one buffer size bug
6007         Problem and (trivial) fix reported by Gijs van Tulder in
6008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6009         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6010         * tests/test-base64.c (main): Catch the bug.
6011
6012 2011-08-10  Eric Blake  <eblake@redhat.com>
6013
6014         closein: correct comments
6015         * lib/closein.c (close_stdin): Improve comments.
6016
6017 2011-08-09  Bruno Haible  <bruno@clisp.org>
6018
6019         More tests for 'fseeko'.
6020         * tests/test-fseeko3.c: New file, from Eric Blake.
6021         * tests/test-fseeko3.sh: New file.
6022         * modules/fseeko-tests (Files): Add them.
6023         (TESTS): Add test-fseeko3.sh.
6024         (check_PROGRAMS): Add test-fseeko3.
6025
6026 2011-08-09  Eric Blake  <eblake@redhat.com>
6027
6028         fseeko: remove unneeded hack
6029         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6030
6031         fseeko: fix bug on glibc
6032         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6033         Reported by John W. Eaton.
6034
6035 2011-08-08  Bruno Haible  <bruno@clisp.org>
6036
6037         unictype/base: Fix interoperability with preinstalled libunistring.
6038         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6039         Reported by Simon Josefsson.
6040
6041 2011-08-08  Bruno Haible  <bruno@clisp.org>
6042
6043         iswblank: Detect declaration correctly.
6044         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6045         AC_CHECK_DECLS invocation.
6046
6047 2011-08-08  Bruno Haible  <bruno@clisp.org>
6048
6049         tcgetsid: Detect declaration correctly.
6050         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6051         AC_CHECK_DECLS invocation.
6052         Reported by Simon Josefsson.
6053
6054 2011-08-08  Eric Blake  <eblake@redhat.com>
6055
6056         largefile: fix typo that regressed large file support
6057         * modules/largefile (configure.ac-early): Fix section name.
6058
6059 2011-08-06  Karl Berry  <karl@gnu.org>
6060
6061         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6062         a separate module.
6063
6064 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6065
6066         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6067         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6068         get prototype for free.
6069
6070 2011-08-04  Bruno Haible  <bruno@clisp.org>
6071
6072         Tests for module 'pathmax'.
6073         * modules/pathmax-tests: New file.
6074         * tests/test-pathmax.c: New file.
6075
6076         canonicalize-lgpl: Support larger filenames on the Hurd.
6077         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6078         Reported by Paul Eggert.
6079
6080         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6081         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6082         * lib/chdir-long.h: Include pathmax.h.
6083         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6084         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6085         (PATH_MAX): Remove code that is done by pathmax.h.
6086         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6087         * lib/tmpfile.c: Add a comment.
6088         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6089         * modules/chdir-long (Depends-on): Add pathmax.
6090         * modules/getcwd (Depends-on): Add pathmax.
6091         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6092         is not defined.
6093         * doc/posix-headers/limits.texi: Mention the pathmax module.
6094         * NEWS: Mention the change.
6095
6096 2011-08-02  Bruno Haible  <bruno@clisp.org>
6097
6098         pthread_sigmask: Actually use results of gl_THREADLIB.
6099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6100         gl_THREADLIB, not gl_[]THREADLIB.
6101         Reported by Eric Blake.
6102
6103 2011-08-02  Jim Meyering  <meyering@redhat.com>
6104
6105         maint.mk: relax the default _gl_TS_function_match regexp
6106         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6107         space between function name and "(" in an "extern" declaration.
6108         That would fail to match a decl with no space there: extern void foo();
6109
6110 2011-07-31  Iain Nicol  <iain@thenicols.net>
6111
6112         git-version-gen: document that EXTRA_DIST must include .version
6113         * build-aux/git-version-gen: In the how-to-use comment, document
6114         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6115         will fail when run from an unpacked distribution tarball.
6116
6117 2011-08-01  Bruno Haible  <bruno@clisp.org>
6118
6119         wctype-h: Fix last change.
6120         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6121         REPLACE_TOWLOWER to 0.
6122         Reported by Sam Steingold <sds@gnu.org>.
6123
6124 2011-07-31  Bruno Haible  <bruno@clisp.org>
6125
6126         frexpl: Update autoconf test.
6127         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6128         according to changes of 2011-06-20.
6129
6130 2011-07-31  Bruno Haible  <bruno@clisp.org>
6131
6132         sys_utsname: Add support for Minix.
6133         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6134         <sys/utsname.h>.
6135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6136         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6137
6138 2011-07-31  Bruno Haible  <bruno@clisp.org>
6139
6140         strings: Add support for Minix.
6141         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6142         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6143         * doc/posix-headers/strings.texi: Document the Minix problem.
6144
6145 2011-07-31  Bruno Haible  <bruno@clisp.org>
6146
6147         wctype-h: Add support for Minix.
6148         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6149         REPLACE_TOWLOWER.
6150         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6151         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6152         REPLACE_ISWCNTRL.
6153
6154 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6155
6156         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6157         This is a performance improvement for 64-bit hosts: it causes the
6158         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6159
6160 2011-07-31  Bruno Haible  <bruno@clisp.org>
6161
6162         stdioext: Add support for Minix.
6163         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6164         * lib/fpurge.c (fpurge): Likewise.
6165         * lib/freadahead.c (freadahead): Likewise.
6166         * lib/freadable.c (freadable): Likewise.
6167         * lib/freading.c (freading): Likewise.
6168         * lib/freadptr.c (freadptr): Likewise.
6169         * lib/freadseek.c (freadptrinc): Likewise.
6170         * lib/fseeko.c (rpl_fseeko): Likewise.
6171         * lib/fseterr.c (fseterr): Likewise.
6172         * lib/fwritable.c (fwritable): Likewise.
6173         * lib/fwriting.c (fwriting): Likewise.
6174         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6175         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6176
6177 2011-07-31  Bruno Haible  <bruno@clisp.org>
6178
6179         errno: Port to Minix.
6180         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6181         ECONNABORTED are defined.
6182         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6183         GNULIB_defined_ECONNABORTED): New macros.
6184         * lib/strerror-override.h (strerror_override): Test also
6185         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6186         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6187         ECONNABORTED.
6188         * doc/posix-headers/errno.texi: Mention the Minix problem.
6189
6190 2011-07-31  Bruno Haible  <bruno@clisp.org>
6191
6192         Work around declaration collisions on Minix.
6193         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6194         defined, set REPLACE_MBSINIT.
6195         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6196         defined, set REPLACE_MBRTOWC.
6197         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6198         set REPLACE_MBRLEN.
6199         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6200         defined, set REPLACE_MBSRTOWCS.
6201         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6202         defined, set REPLACE_WCRTOMB.
6203         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6204         defined, set REPLACE_WCSRTOMBS.
6205
6206 2011-07-31  Bruno Haible  <bruno@clisp.org>
6207
6208         Add support for Minix with ACK compiler.
6209         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6210         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6211         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6212
6213 2011-07-31  Bruno Haible  <bruno@clisp.org>
6214
6215         Documentation about Minix.
6216         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6217         * doc/glibc-headers/*.texi: Likewise.
6218         * doc/posix-functions/*.texi: Likewise.
6219         * doc/glibc-functions/*.texi: Likewise.
6220
6221 2011-07-31  Bruno Haible  <bruno@clisp.org>
6222
6223         snippet/warn-on-use: Fix indentation.
6224         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6225
6226 2011-07-25  Jim Meyering  <meyering@redhat.com>
6227
6228         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6229         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6230         commands.
6231
6232 2011-07-27  Jim Meyering  <meyering@redhat.com>
6233
6234         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6235         * top/maint.mk (gl_extract_significant_defines_): Now that
6236         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6237         gnulib/lib/signal.in.h, and now that we recommend to
6238         define-if-undefined those two symbols in application code,
6239         we must filter them out of the "significant" list.
6240         This avoids a "make syntax-check" failure in coreutils.
6241
6242 2011-07-26  Eric Blake  <eblake@redhat.com>
6243
6244         warnings: add comments about previous patch
6245         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6246         * m4/include_next.m4: Likewise.
6247         * m4/warn-on-use.m4: Likewise.
6248         * m4/warnings.m4: Likewise, and simplify use.
6249         Suggested by Stefano Lattarini.
6250
6251         include-next, warnings: support older autoconf
6252         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6253         AS_VAR_PUSHDEF in a way that works with older autoconf.
6254         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6255         Reported by Daniel P. Berrange.
6256
6257 2011-07-25  Bruno Haible  <bruno@clisp.org>
6258
6259         fseek, ftell: Fix doc.
6260         * doc/posix-functions/fseek.texi: Reword statement about
6261         AC_SYS_LARGEFILE.
6262         * doc/posix-functions/ftell.texi: Likewise.
6263
6264 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6265             Bruno Haible  <bruno@clisp.org>
6266
6267         Add dependencies to the 'largefile' module.
6268         * modules/fopen (Depends-on): Add 'largefile'.
6269         * modules/freopen (Depends-on): Likewise.
6270         * modules/fseeko (Depends-on): Likewise.
6271         * modules/ftello (Depends-on): Likewise.
6272         * modules/glob (Depends-on): Likewise.
6273         * modules/lseek (Depends-on): Likewise.
6274         * modules/lstat (Depends-on): Likewise.
6275         * modules/mkostemp (Depends-on): Likewise.
6276         * modules/mkostemps (Depends-on): Likewise.
6277         * modules/mkstemp (Depends-on): Likewise.
6278         * modules/mkstemps (Depends-on): Likewise.
6279         * modules/open (Depends-on): Likewise.
6280         * modules/openat (Depends-on): Likewise.
6281         * modules/pread (Depends-on): Likewise.
6282         * modules/pwrite (Depends-on): Likewise.
6283         * modules/scandir (Depends-on): Likewise.
6284         * modules/stat (Depends-on): Likewise.
6285         * modules/tmpfile (Depends-on): Likewise.
6286         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6287         since the containing module now depends on the largefile module.
6288         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6289         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6290         off_t is fixed by gnulib.
6291         * doc/posix-functions/freopen.texi: Likewise.
6292         * doc/posix-functions/fseeko.texi: Likewise.
6293         * doc/posix-functions/fstatat.texi: Likewise.
6294         * doc/posix-functions/ftello.texi: Likewise.
6295         * doc/posix-functions/glob.texi: Likewise.
6296         * doc/posix-functions/lseek.texi: Likewise.
6297         * doc/posix-functions/lstat.texi: Likewise.
6298         * doc/posix-functions/mkstemp.texi: Likewise.
6299         * doc/posix-functions/open.texi: Likewise.
6300         * doc/posix-functions/openat.texi: Likewise.
6301         * doc/posix-functions/pread.texi: Likewise.
6302         * doc/posix-functions/pwrite.texi: Likewise.
6303         * doc/posix-functions/scandir.texi: Likewise.
6304         * doc/posix-functions/stat.texi: Likewise.
6305         * doc/posix-functions/tmpfile.texi: Likewise.
6306         * doc/glibc-functions/mkostemp.texi: Likewise.
6307         * doc/glibc-functions/mkostemps.texi: Likewise.
6308         * doc/glibc-functions/mkstemps.texi: Likewise.
6309
6310 2011-07-25  Bruno Haible  <bruno@clisp.org>
6311
6312         fcntl: Move AC_LIBOBJ invocation to module description.
6313         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6314         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6315
6316         fcntl: Remove call-in from fchdir.m4.
6317         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6319
6320         dup3: Remove potential call-in from fchdir.m4.
6321         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6323
6324         dup2: Move AC_LIBOBJ invocation to module description.
6325         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6326         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6327         Don't invoke AC_LIBOBJ.
6328         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6329
6330         dup2: Remove call-in from fchdir.m4.
6331         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6333
6334         fclose: Move AC_LIBOBJ invocation to module description.
6335         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6336         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6337         to 1.
6338         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6339
6340         fclose: Remove call-in from close.m4.
6341         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6342         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6343
6344         close: Move AC_LIBOBJ invocation to module description.
6345         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6346         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6347         1.
6348         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6349
6350         close: Remove call-in from fchdir.m4.
6351         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6353
6354         open: Move AC_LIBOBJ invocation to module description.
6355         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6356         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6357         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6358
6359         open: Remove call-in from fchdir.m4.
6360         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6362
6363         fchdir: Start to remove gl_REPLACE_* idiom.
6364         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6365         (gl_FUNC_FCHDIR): Invoke it.
6366
6367 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6368
6369         * lib/ftell.c (ftell): Comment out cast.
6370
6371         close: use gl_REPLACE_FCLOSE only if defined
6372         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6373         is defined.  The close module doesn't depend on the fclose module
6374         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6376         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6377
6378 2011-07-24  Jim Meyering  <meyering@redhat.com>
6379
6380         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6381         * tests/test-select.h (test_function): Declare as "static".
6382
6383 2011-07-24  Bruno Haible  <bruno@clisp.org>
6384
6385         doc: Mention the effects of AC_SYS_LARGEFILE.
6386         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6387         on this function.
6388         * doc/posix-functions/aio_error.texi: Likewise.
6389         * doc/posix-functions/aio_fsync.texi: Likewise.
6390         * doc/posix-functions/aio_read.texi: Likewise.
6391         * doc/posix-functions/aio_return.texi: Likewise.
6392         * doc/posix-functions/aio_suspend.texi: Likewise.
6393         * doc/posix-functions/aio_write.texi: Likewise.
6394         * doc/posix-functions/fgetpos.texi: Likewise.
6395         * doc/posix-functions/fopen.texi: Likewise.
6396         * doc/posix-functions/freopen.texi: Likewise.
6397         * doc/posix-functions/fsetpos.texi: Likewise.
6398         * doc/posix-functions/fstatvfs.texi: Likewise.
6399         * doc/posix-functions/ftruncate.texi: Likewise.
6400         * doc/posix-functions/ftw.texi: Likewise.
6401         * doc/posix-functions/getrlimit.texi: Likewise.
6402         * doc/posix-functions/glob.texi: Likewise.
6403         * doc/posix-functions/lio_listio.texi: Likewise.
6404         * doc/posix-functions/lockf.texi: Likewise.
6405         * doc/posix-functions/mkstemp.texi: Likewise.
6406         * doc/posix-functions/mmap.texi: Likewise.
6407         * doc/posix-functions/nftw.texi: Likewise.
6408         * doc/posix-functions/openat.texi: Likewise.
6409         * doc/posix-functions/opendir.texi: Likewise.
6410         * doc/posix-functions/posix_fadvise.texi: Likewise.
6411         * doc/posix-functions/posix_fallocate.texi: Likewise.
6412         * doc/posix-functions/pread.texi: Likewise.
6413         * doc/posix-functions/pwrite.texi: Likewise.
6414         * doc/posix-functions/readdir.texi: Likewise.
6415         * doc/posix-functions/readdir_r.texi: Likewise.
6416         * doc/posix-functions/rewinddir.texi: Likewise.
6417         * doc/posix-functions/scandir.texi: Likewise.
6418         * doc/posix-functions/seekdir.texi: Likewise.
6419         * doc/posix-functions/setrlimit.texi: Likewise.
6420         * doc/posix-functions/statvfs.texi: Likewise.
6421         * doc/posix-functions/telldir.texi: Likewise.
6422         * doc/posix-functions/tmpfile.texi: Likewise.
6423         * doc/posix-functions/truncate.texi: Likewise.
6424         * doc/glibc-functions/fallocate.texi: Likewise.
6425         * doc/glibc-functions/fstatfs.texi: Likewise.
6426         * doc/glibc-functions/fts_children.texi: Likewise.
6427         * doc/glibc-functions/fts_read.texi: Likewise.
6428         * doc/glibc-functions/getdirentries.texi: Likewise.
6429         * doc/glibc-functions/mkostemp.texi: Likewise.
6430         * doc/glibc-functions/mkostemps.texi: Likewise.
6431         * doc/glibc-functions/mkstemps.texi: Likewise.
6432         * doc/glibc-functions/preadv.texi: Likewise.
6433         * doc/glibc-functions/pwritev.texi: Likewise.
6434         * doc/glibc-functions/sendfile.texi: Likewise.
6435         * doc/glibc-functions/statfs.texi: Likewise.
6436
6437 2011-07-24  Bruno Haible  <bruno@clisp.org>
6438
6439         doc: Fix typo.
6440         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6441
6442 2011-07-24  Bruno Haible  <bruno@clisp.org>
6443
6444         doc: Mention fsusage.
6445         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6446
6447 2011-07-24  Bruno Haible  <bruno@clisp.org>
6448
6449         doc: Mention new glibc headers and functions.
6450         * doc/glibc-headers/gshadow.texi: New file.
6451         * doc/glibc-functions/endsgent.texi: New file.
6452         * doc/glibc-functions/fgetsgent.texi: New file.
6453         * doc/glibc-functions/fgetsgent_r.texi: New file.
6454         * doc/glibc-functions/getsgent.texi: New file.
6455         * doc/glibc-functions/getsgent_r.texi: New file.
6456         * doc/glibc-functions/getsgnam.texi: New file.
6457         * doc/glibc-functions/getsgnam_r.texi: New file.
6458         * doc/glibc-functions/putsgent.texi: New file.
6459         * doc/glibc-functions/setsgent.texi: New file.
6460         * doc/glibc-functions/sgetsgent.texi: New file.
6461         * doc/glibc-functions/sgetsgent_r.texi: New file.
6462         * doc/glibc-functions/malloc_info.texi: New file.
6463         * doc/glibc-functions/preadv.texi: New file.
6464         * doc/glibc-functions/pwritev.texi: New file.
6465         * doc/glibc-functions/register_printf_modifier.texi: New file.
6466         * doc/glibc-functions/register_printf_specifier.texi: New file.
6467         * doc/glibc-functions/register_printf_type.texi: New file.
6468         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6469         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6470         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6471         * doc/glibc-functions/pthread_getname_np.texi: New file.
6472         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6473         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6474         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6475         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6476         * doc/glibc-functions/pthread_setname_np.texi: New file.
6477         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6478         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6479         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6480         * doc/glibc-functions/qsort_r.texi: New file.
6481         * doc/glibc-functions/quick_exit.texi: New file.
6482         * doc/glibc-functions/syncfs.texi: New file.
6483         * doc/gnulib.texi: Include them.
6484         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6485         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6486         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6487         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6488         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6489         * doc/glibc-functions/execvpe.texi: Likewise.
6490
6491 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6492
6493         ftell: don't include <unistd.h>
6494         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6495         guaranteed to define off_t, and the ftell module depends on the
6496         stdio module.
6497
6498         ftell: do not assume wraparound signed arithmetic
6499         * lib/ftell.c: Include <limits.h>.
6500         (ftell): Don't assume wraparound signed arithmetic.
6501
6502 2011-07-24  Bruno Haible  <bruno@clisp.org>
6503
6504         close: No longer depend on module 'fclose'.
6505         * modules/close (Depends-on): Remove fclose.
6506         * NEWS: Mention the change.
6507         Suggested by Sam Steingold <sds@gnu.org>.
6508
6509 2011-07-24  Bruno Haible  <bruno@clisp.org>
6510
6511         fsusage: Enable large volume support on AIX >= 5.2.
6512         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6513         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6514         instead of STAT_STATVFS.
6515         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6516
6517         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6518         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6519         f_blocks field only on MacOS X.
6520
6521         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6522         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6523         * modules/fsusage (Depends-on): Add largefile.
6524
6525 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6526
6527         * README: Modernize discussion of signed integers.
6528         Assuming overflow wraparound is no longer safe.
6529         Mention ones' complement and signed magnitude.
6530
6531 2011-07-22  Bruno Haible  <bruno@clisp.org>
6532
6533         select tests, pselect tests: Refactor.
6534         * tests/test-select.h: New file, extracted from tests/test-select.c.
6535         (select_fn): New type.
6536         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6537         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6538         test_pipe): Add my_select argument.
6539         (test_function): Renamed from main. Add my_select argument.
6540         * tests/test-select.c: Move most code to tests/test-select.h. Include
6541         test-select.h.
6542         * modules/select-tests (Files): Add tests/test-select.h.
6543         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6544         (my_select, main): New functions.
6545         * modules/pselect-tests (Files): Add tests/test-select.h,
6546         tests/macros.h, tests/signature.h.
6547         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6548         (configure.ac): Check for <sys/wait.h>.
6549
6550 2011-07-22  Bruno Haible  <bruno@clisp.org>
6551
6552         sys_select tests: Check the signature of FD_*.
6553         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6554         signature tests from here...
6555         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6556         here.
6557         * modules/sys_select-tests (Files): Add tests/signature.h.
6558
6559 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6560
6561         largefile: new module, replacing large-inode
6562         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6563         * MODULES.html.sh: Add largefile, remove large-inode.
6564         * modules/largefile, m4/largefile.m4: New files.
6565         * modules/large-inode, m4/large-inode.m4: Remove.
6566
6567         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6568         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6569         implementations that use only 32 bits to count blocks.
6570         On typical hosts with 1024-byte blocks, this fails with file
6571         systems as small as 4 TiB.  Problem reported by Herb Wartens
6572         <http://debbugs.gnu.org/9140> and this should also fix a similar
6573         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6574
6575         large-inode: New module
6576         * MODULES.html.sh: Add it.
6577         * modules/large-inode, m4/large-inode.m4: New files.
6578
6579         extensions: Enable extensions on MacOS X 10.5 and later.
6580         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6581
6582 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6583
6584         file-has-acl: use acl_extended_file_nofollow if available
6585         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6586         (acl_extended_file): New macro.
6587         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6588         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6589
6590 2011-07-21  Bruno Haible  <bruno@clisp.org>
6591
6592         Declare system functions in a way that works with C++.
6593         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6594         declare fdopendir as extern "C".
6595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6596         declare frexpl as extern "C".
6597         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6598         declare gai_strerror as extern "C".
6599         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6600         programs, declare gai_strerror as extern "C".
6601         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6602         declare getlogin_r as extern "C".
6603         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6604         as extern "C".
6605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6606         declare ldexpl as extern "C".
6607         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6608         as extern "C".
6609         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6610         program, declare getmntinfo as extern "C".
6611         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6612         stpncpy as extern "C".
6613         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6614         program, declare __xpg_strerror_r as extern "C".
6615         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6616         strndup as extern "C".
6617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6618         declare memset and bzero as extern "C".
6619         Reported by Sam Steingold <sds@gnu.org>.
6620
6621 2011-07-12  Jim Meyering  <meyering@redhat.com>
6622
6623         maint.mk: prohibit inclusion of "verify.h" without use
6624         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6625
6626 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6627
6628         timer-time: A new module to check for timer_settime()
6629         * m4/timer_time.m4: Check for the posix function.
6630         * modules/timer-time: Add the new module.
6631         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6632         Mention it.
6633
6634 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6635             Bruno Haible  <bruno@clisp.org>
6636
6637         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6638         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6639         not defined, assume POSIX threads and look for pthread_sigmask in
6640         $LIBS, without changing $CPPFLAGS.
6641
6642 2011-07-19  Bruno Haible  <bruno@clisp.org>
6643
6644         strstr: Update cross-compilation guess.
6645         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6646         CPUs, guess no, in view of glibc
6647         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6648         Suggested by Eric Blake. Reported by Reuben Thomas.
6649
6650 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6651
6652         getopt-gnu: suppress core dumps from detection code
6653         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6654         to suppress core dumps that may well occur on glibc systems.
6655         * modules/getopt-gnu: Depend on nocrash.
6656
6657 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6658
6659         pthread_sigmask: ensure usleep is declared
6660         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6661         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6662
6663 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6664
6665         doc: Document NonStop portability issues.
6666         * doc/posix-functions/sigaction.texi (sigaction):
6667         * doc/posix-headers/signal.texi (signal.h):
6668         Document NonStop.  See Joachim Schmitz in
6669         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6670
6671 2011-07-15  Bruno Haible  <bruno@clisp.org>
6672
6673         ffsl, ffsll: Avoid unportable behaviour.
6674         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6675
6676 2011-07-15  Bruno Haible  <bruno@clisp.org>
6677
6678         ffs: More tests.
6679         * tests/test-ffs.c (NBITS): New macro.
6680         (main): Add more tests.
6681         * tests/test-ffsl.c (NBITS): New macro.
6682         (main): Add more tests.
6683         * tests/test-ffsll.c (NBITS): New macro.
6684         (main): Add more tests.
6685
6686 2011-07-15  Eric Blake  <eblake@redhat.com>
6687
6688         ffsl, ffsll: new modules
6689         * modules/ffsl: New file.
6690         * modules/ffsll: Likewise.
6691         * m4/ffsl.m4: Likewise.
6692         * m4/ffsll.m4: Likewise.
6693         * lib/ffsl.c: Likewise.
6694         * lib/ffsl.h: Likewise.
6695         * lib/ffsll.c: Likewise.
6696         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6697         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6698         * modules/string (Makefile.am): Substitute witnesses.
6699         * lib/strings.in.h (ffsl, ffsll): Declare.
6700         * modules/ffsl-tests: New test file.
6701         * modules/ffsll-tests: Likewise.
6702         * tests/test-ffsl.c: Likewise.
6703         * tests/test-ffsll.c: Likewise.
6704         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6705         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6706         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6707
6708         ffs: fix m4 prerequisite
6709         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6710
6711         ffs: avoid undefined behavior
6712         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6713         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6714         Reported by Bruno Haible.
6715
6716 2011-07-12  Bruno Haible  <bruno@clisp.org>
6717
6718         pthread_sigmask: Rely on module 'threadlib'.
6719         * modules/pthread_sigmask (Depends-on): Add threadlib.
6720         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6721         is defined.
6722
6723 2011-07-12  Bruno Haible  <bruno@clisp.org>
6724
6725         regex: Depend on module 'strcase'.
6726         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6727
6728 2011-07-12  Jim Meyering  <meyering@redhat.com>
6729
6730         warn-on-use: fix typo in file name
6731         * modules/snippet/warn-on-use (Files): Correct file name:
6732         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6733
6734 2011-07-12  Bruno Haible  <bruno@clisp.org>
6735
6736         strings: Document module.
6737         * doc/posix-headers/strings.texi: Mention module 'strings'.
6738
6739 2011-07-12  Bruno Haible  <bruno@clisp.org>
6740
6741         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6742         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6743         (Files, Makefile.am): Update.
6744         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6745         * modules/stdlib (Depends-on): Update.
6746
6747 2011-07-12  Bruno Haible  <bruno@clisp.org>
6748
6749         * NEWS: Mention the changes.
6750
6751         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6752         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6753         (Files, Makefile.am): Update.
6754         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6755         * modules/arpa_inet (Depends-on): Update.
6756         * modules/ctype (Depends-on): Update.
6757         * modules/dirent (Depends-on): Update.
6758         * modules/fcntl-h (Depends-on): Update.
6759         * modules/glob (Depends-on): Update.
6760         * modules/iconv-h (Depends-on): Update.
6761         * modules/inttypes-incomplete (Depends-on): Update.
6762         * modules/langinfo (Depends-on): Update.
6763         * modules/locale (Depends-on): Update.
6764         * modules/math (Depends-on): Update.
6765         * modules/netdb (Depends-on): Update.
6766         * modules/poll-h (Depends-on): Update.
6767         * modules/pty (Depends-on): Update.
6768         * modules/search (Depends-on): Update.
6769         * modules/signal (Depends-on): Update.
6770         * modules/spawn (Depends-on): Update.
6771         * modules/stdio (Depends-on): Update.
6772         * modules/stdlib (Depends-on): Update.
6773         * modules/string (Depends-on): Update.
6774         * modules/strings (Depends-on): Update.
6775         * modules/sys_file (Depends-on): Update.
6776         * modules/sys_ioctl (Depends-on): Update.
6777         * modules/sys_select (Depends-on): Update.
6778         * modules/sys_socket (Depends-on): Update.
6779         * modules/sys_stat (Depends-on): Update.
6780         * modules/sys_time (Depends-on): Update.
6781         * modules/sys_times (Depends-on): Update.
6782         * modules/sys_utsname (Depends-on): Update.
6783         * modules/sys_wait (Depends-on): Update.
6784         * modules/termios (Depends-on): Update.
6785         * modules/time (Depends-on): Update.
6786         * modules/unistd (Depends-on): Update.
6787         * modules/wchar (Depends-on): Update.
6788         * modules/wctype-h (Depends-on): Update.
6789         * MODULES.html.sh (Support for building libraries and executables):
6790         Update.
6791
6792         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6793         * modules/snippet/unused-parameter: Renamed from
6794         modules/unused-parameter.
6795         (Files, Makefile.am): Update.
6796         * build-aux/snippet/unused-parameter.h: Renamed from
6797         build-aux/unused-parameter.h.
6798         * modules/selinux-h (Depends-on): Update.
6799         * modules/unistr/base (Depends-on): Update.
6800         * MODULES.html.sh (Core language properties): Update.
6801
6802         Rename module 'link-warning' to 'snippet/link-warning'.
6803         * modules/snippet/link-warning: Renamed from modules/link-warning.
6804         (Files, Makefile.am): Update.
6805         * build-aux/snippet/link-warning.h: Renamed from
6806         build-aux/link-warning.h.
6807         * MODULES.html.sh (Support for building libraries and executables):
6808         Update.
6809
6810         Rename module 'c++defs' to 'snippet/c++defs'.
6811         * modules/snippet/c++defs: Renamed from modules/c++defs.
6812         (Files, Makefile.am): Update.
6813         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6814         * modules/arpa_inet (Depends-on): Update.
6815         * modules/ctype (Depends-on): Update.
6816         * modules/dirent (Depends-on): Update.
6817         * modules/fcntl-h (Depends-on): Update.
6818         * modules/glob (Depends-on): Update.
6819         * modules/iconv-h (Depends-on): Update.
6820         * modules/langinfo (Depends-on): Update.
6821         * modules/locale (Depends-on): Update.
6822         * modules/math (Depends-on): Update.
6823         * modules/netdb (Depends-on): Update.
6824         * modules/poll-h (Depends-on): Update.
6825         * modules/pty (Depends-on): Update.
6826         * modules/search (Depends-on): Update.
6827         * modules/signal (Depends-on): Update.
6828         * modules/spawn (Depends-on): Update.
6829         * modules/stdio (Depends-on): Update.
6830         * modules/stdlib (Depends-on): Update.
6831         * modules/string (Depends-on): Update.
6832         * modules/strings (Depends-on): Update.
6833         * modules/sys_ioctl (Depends-on): Update.
6834         * modules/sys_select (Depends-on): Update.
6835         * modules/sys_socket (Depends-on): Update.
6836         * modules/sys_stat (Depends-on): Update.
6837         * modules/sys_time (Depends-on): Update.
6838         * modules/sys_wait (Depends-on): Update.
6839         * modules/termios (Depends-on): Update.
6840         * modules/time (Depends-on): Update.
6841         * modules/unistd (Depends-on): Update.
6842         * modules/wchar (Depends-on): Update.
6843         * modules/wctype-h (Depends-on): Update.
6844
6845         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6846         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6847         (Files, Makefile.am): Update.
6848         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6849         * modules/argv-iter (Depends-on): Update.
6850         * modules/arpa_inet (Depends-on): Update.
6851         * modules/dirent (Depends-on): Update.
6852         * modules/fcntl-h (Depends-on): Update.
6853         * modules/fnmatch (Depends-on): Update.
6854         * modules/getopt-posix (Depends-on): Update.
6855         * modules/glob (Depends-on): Update.
6856         * modules/iconv-h (Depends-on): Update.
6857         * modules/inttypes-incomplete (Depends-on): Update.
6858         * modules/locale (Depends-on): Update.
6859         * modules/math (Depends-on): Update.
6860         * modules/netdb (Depends-on): Update.
6861         * modules/search (Depends-on): Update.
6862         * modules/signal (Depends-on): Update.
6863         * modules/spawn (Depends-on): Update.
6864         * modules/stdio (Depends-on): Update.
6865         * modules/stdlib (Depends-on): Update.
6866         * modules/string (Depends-on): Update.
6867         * modules/strings (Depends-on): Update.
6868         * modules/sys_socket (Depends-on): Update.
6869         * modules/sys_stat (Depends-on): Update.
6870         * modules/sys_time (Depends-on): Update.
6871         * modules/sys_times (Depends-on): Update.
6872         * modules/sys_utsname (Depends-on): Update.
6873         * modules/time (Depends-on): Update.
6874         * modules/unistd (Depends-on): Update.
6875         * modules/wchar (Depends-on): Update.
6876         * MODULES.html.sh (Support for building libraries and executables):
6877         Update.
6878
6879 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6880
6881         Improvements on _Noreturn and related modules.
6882
6883         modules/_Exit-tests: test _Noreturn too
6884         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6885         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6886         (main): Use them.
6887
6888         stdnoreturn, stdnoreturn-tests: remove modules
6889         They're not needed here and a bit premature for use elsewhere.  See
6890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6891         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6892         * tests/test-stdnoreturn.c: Remove files.
6893         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6894         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6895         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6896         and using noreturn.
6897         * modules/openat, modules/sigpipe-die, modules/xalloc:
6898         * modules/xmemdup0, modules/xstrtol:
6899         Remove dependency on stdnoreturn.
6900
6901         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6902         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6903         Reparenthesize to avoid GCC warning.
6904         Support Microsoft's syntax.
6905         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6906
6907         _Noreturn-tests: remove module
6908         * modules/_Noreturn-tests: Remove.
6909         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6910         * tests/test-_Noreturn.c: Remove.
6911         * tests/test-stdnoreturn.c: Merge from the old
6912         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6913
6914 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6915
6916         _Noreturn, stdnoreturn, and related modules.
6917
6918         * top/maint.mk: Adjust to new noreturn support.
6919         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6920         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6921
6922         xalloc: use stdnoreturn.h
6923         * lib/xalloc.h: Include <stdnoreturn.h>.
6924         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6925         * modules/xalloc (Depends-on): Add stdnoreturn.
6926
6927         xstrtol: use stdnoreturn.h
6928         * lib/xstrtol.h: Include <stdnoreturn.h>.
6929         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6930         * modules/xstrtol (Depends-on): Add stdnoreturn.
6931
6932         xmemdup0: use stdnoreturn.h
6933         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6934         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6935         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6936
6937         sigpipe-die: use stdnoreturn.h
6938         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6939         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6940         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6941
6942         openat: use stdnoreturn.h
6943         * lib/openat.h: Include <stdnoreturn.h>.
6944         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6945         * modules/openat (Depends-on): Add stdnoreturn.
6946
6947         * lib/openat-die.c (openat_save_fail): Modernize comment.
6948
6949         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6950
6951         * lib/glthread/thread.h: Modernize comment.
6952
6953         obstack: use _Noreturn
6954         * lib/obstack.c (__attribute__): Remove macro.
6955         (print_and_abort): Use _Noreturn.
6956
6957         c-stack: use _Noreturn
6958         * lib/c-stack.c (die, overflow_handler, segv_handler):
6959         Use _Noreturn rather than __attribute__((noreturn)).
6960
6961         argmatch-tests, exclude_tests: use _Noreturn
6962         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6963         Remove.
6964         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6965
6966         stdlib: use _Noreturn
6967         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6968         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6969         * modules/stdlib (Depends-on): Add _Noreturn.
6970         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6971
6972         stdnoreturn-tests: new module
6973         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6974
6975         stdnoreturn: new module
6976         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6977         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6978
6979         _Noreturn-tests: new module
6980         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6981
6982         _Noreturn: new module
6983         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6984         New section, mentioning it.
6985         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6986
6987         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6988
6989 2011-07-11  Eric Blake  <eblake@redhat.com>
6990
6991         ffs: new module
6992         * modules/ffs: New file.
6993         * m4/ffs.m4: Likewise.
6994         * lib/ffs.c: Likewise.
6995         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6996         * modules/strings (Makefile.am): Substitute witness.
6997         (Depends-on): Add c++defs.
6998         * lib/strings.in.h (ffs): Declare.
6999         * modules/ffs-tests: New test file.
7000         * tests/test-ffs.c: Test new module.
7001         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7002         * doc/posix-functions/ffs.texi (ffs): Likewise.
7003
7004         regex: avoid compiler warning
7005         * lib/regex.c (includes): Include <strings.h>, for use of
7006         strcasecmp in regcomp.c.
7007         Reported by Joachim Schmitz.
7008
7009 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7010
7011         stdint: respect system's intmax_t if INTMAX_MAX
7012         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7013         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7014         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7015         long but int64_t is long long, and where we will clash with the
7016         system intmax_t if we override it.  See
7017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7018         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7019         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7020         similarly for UINTMAX_C.
7021
7022 2011-07-08  Bruno Haible  <bruno@clisp.org>
7023
7024         pthread_sigmask tests: Avoid a compiler warning.
7025         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7026         non-zero.
7027
7028         sigprocmask tests: A better way to avoid a compiler warning.
7029         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7030         (main): Complain if system() returns non-zero.
7031         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7032
7033 2011-07-08  Bruno Haible  <bruno@clisp.org>
7034
7035         pthread_sigmask: Work around IRIX bug.
7036         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7037         bug.
7038         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7039         there may be unblocked pending signals.
7040         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7041
7042 2011-07-08  Bruno Haible  <bruno@clisp.org>
7043
7044         pthread_sigmask: Work around Cygwin bug.
7045         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7046         bug.
7047         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7048         the system's pthread_sigmask function.
7049         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7050
7051 2011-07-08  Bruno Haible  <bruno@clisp.org>
7052
7053         pthread_sigmask: Work around bug in single-threaded implementation.
7054         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7055         FreeBSD, HP-UX, Solaris bug.
7056         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7057         * lib/pthread_sigmask.c: Include <stddef.h>.
7058         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7059         the system's pthread_sigmask function.
7060         * modules/pthread_sigmask (configure.ac): Invoke
7061         gl_PREREQ_PTHREAD_SIGMASK.
7062         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7063         HP-UX, Solaris.
7064
7065 2011-07-08  Eric Blake  <eblake@redhat.com>
7066
7067         test-sigprocmask: avoid compiler warning
7068         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7069         * tests/test-sigprocmask.c (main): Use it to silence warning.
7070         Reported by Jim Meyering.
7071
7072         test-snprintf: avoid compiler warning
7073         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7074         * tests/test-vsnprintf.c (main): Likewise.
7075         Reported by Jim Meyering.
7076
7077 2011-07-08  Bruno Haible  <bruno@clisp.org>
7078
7079         Tests for module 'pthread_sigmask'.
7080         * modules/pthread_sigmask-tests: New file.
7081         * tests/test-pthread_sigmask1.c: New file, based on
7082         tests/test-sigprocmask.c.
7083         * tests/test-pthread_sigmask2.c: New file.
7084
7085 2011-07-08  Jim Meyering  <meyering@redhat.com>
7086
7087         test-getopt.h: avoid warning about an unused variable
7088         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7089
7090 2011-07-07  Jim Meyering  <meyering@redhat.com>
7091
7092         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7093         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7094         now that it no longer contains leading TABs.
7095         Remove unused "url=FIXME" statement.
7096
7097 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7098
7099         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7101         When gl_THREADLIB is not in use, assume that the POSIX sematics
7102         are desired.  This is better for Emacs, which uses POSIX semantics
7103         on GNUish and/or POSIXish platforms, and does not use threads at
7104         all otherwise.
7105
7106         pthread_sigmask: fix typo when testing for libraries
7107         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7108         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7109
7110 2011-07-08  Eric Blake  <eblake@redhat.com>
7111
7112         fts: introduce FTS_NOATIME
7113         * lib/fts_.h (FTS_NOATIME): New bit flag.
7114         (FTS_OPTIONMASK): Adjust.
7115         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7116         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7117
7118 2011-07-08  Bruno Haible  <bruno@clisp.org>
7119
7120         Tests for module 'thread'.
7121         * modules/thread-tests: New file.
7122         * tests/test-thread_self.c: New file.
7123         * tests/test-thread_create.cc: New file.
7124
7125 2011-07-08  Bruno Haible  <bruno@clisp.org>
7126
7127         thread: Avoid gcc warnings when using gl_thread_self().
7128         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7129         'void *'.
7130         (gl_thread_self_pointer): Update.
7131
7132 2011-07-07  Bruno Haible  <bruno@clisp.org>
7133
7134         signal-c++-tests: Check declaration of pthread_sigmask.
7135         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7136         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7137         $(LIB_PTHREAD_SIGMASK).
7138
7139 2011-07-07  Bruno Haible  <bruno@clisp.org>
7140
7141         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7142         * lib/signal.in.h (pthread_sigmask): Override if
7143         REPLACE_PTHREAD_SIGMASK is 1.
7144         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7145         REPLACE_PTHREAD_SIGMASK.
7146         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7147         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7148         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7149         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7150         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7151
7152 2011-07-07  Bruno Haible  <bruno@clisp.org>
7153
7154         pthread_sigmask: Ensure declaration in <signal.h>.
7155         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7156         include <pthread.h>.
7157         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7158         problem.
7159
7160 2011-07-07  Bruno Haible  <bruno@clisp.org>
7161
7162         pthread_sigmask: Document the module.
7163         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7164
7165 2011-07-07  Bruno Haible  <bruno@clisp.org>
7166
7167         pthread_sigmask: Follow gnulib conventions.
7168         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7169         gl_PTHREAD_SIGMASK.
7170         * modules/pthread_sigmask (configure.ac): Update.
7171
7172 2011-07-07  Bruno Haible  <bruno@clisp.org>
7173
7174         pthread_sigmask: Make declaration C++ safe.
7175         * lib/signal.in.h: In two special conditions, just do an #include_next.
7176         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7177         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7178         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7179         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7180         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7181         not REPLACE_PTHREAD_MASK.
7182         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7183         not REPLACE_PTHREAD_MASK.
7184         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7185
7186 2011-07-07  Bruno Haible  <bruno@clisp.org>
7187
7188         pthread_sigmask: Fix return value.
7189         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7190         * lib/pthread_sigmask.c: New file.
7191         * modules/pthread_sigmask (Files): Add it.
7192         (configure.ac): Invoke AC_LIBOBJ.
7193
7194 2011-07-07  Eric Blake  <eblake@redhat.com>
7195
7196         getopt: more portable argv creation
7197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7198         const, use char arrays rather than strings.
7199         Suggested by Paul Eggert.
7200
7201 2011-07-07  Bruno Haible  <bruno@clisp.org>
7202
7203         Tests for module 'sigprocmask'.
7204         * modules/sigprocmask-tests: New file.
7205         * tests/test-sigprocmask.c: New file.
7206
7207 2011-07-07  Bruno Haible  <bruno@clisp.org>
7208
7209         float tests: Tweak.
7210         * tests/test-float.c (main): Tweak skip message.
7211
7212 2011-07-07  Eric Blake  <eblake@redhat.com>
7213
7214         getopt: avoid compiler warning during configure
7215         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7216         assigning string literals to non-const pointer.
7217
7218         getopt-gnu: avoid crash in glibc getopt
7219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7220         * tests/test-getopt.h (test_getopt): Enhance test.
7221         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7222         * doc/posix-functions/getopt.texi (getopt): Document it.
7223         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7224         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7225         Likewise.
7226
7227 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7228
7229         getopt: handle W; without long options in getopt [BZ #12922]
7230         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7231         but no long options are defined, just return 'W'.
7232
7233 2011-07-07  Bruno Haible  <bruno@clisp.org>
7234
7235         Avoid literal tabs.
7236         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7237         variable containing a tab instead of a literal tab.
7238         Reported by Jim Meyering.
7239
7240 2011-07-07  Bruno Haible  <bruno@clisp.org>
7241
7242         Comments.
7243         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7244
7245 2011-07-06  Bruno Haible  <bruno@clisp.org>
7246
7247         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7248         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7249         <winsock2.h>.
7250         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7251         lib/sys_socket.in.h.
7252         (close, gethostname): Hide declarations from <winsock2.h>.
7253         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7254         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7255         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7256         (select): Don't override if gnulib's <sys/select.h> was already
7257         included.
7258         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7259         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7260         setsockopt, shutdown, select): Tweak indentation.
7261
7262 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7263
7264         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7265         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7266         in an application that does not use the sys_select module.
7267
7268 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7269
7270         poll: do not return 0 on timeout=-1
7271         * lib/poll.c: Loop with yield if no events occured
7272
7273 2011-07-06  Eric Blake  <eblake@redhat.com>
7274
7275         pthread_sigmask: always replace when not using pthread
7276         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7277         replacement when using some threading other than pthread.  Fix
7278         logic bug.
7279
7280 2011-07-06  Bruno Haible  <bruno@clisp.org>
7281
7282         Comments.
7283         * m4/printf.m4: Update comments about mingw.
7284
7285 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7286
7287         sys_select: define sigset_t more portably
7288         * lib/sys_select.in.h: Always include <sys/types.h>, since
7289         we now need sigset_t and mingw defines it there.
7290         Include <signal.h> before split inclusion guard, to avoid
7291         mishaps on Solaris, whose <signal.h> eventually includes us.
7292         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7293         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7294         which come from ...
7295         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7296         gl_CHECK_TYPE_SIGSET_T.
7297         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7298         does the real work.
7299         * modules/sys_select (Depends-on): Add 'signal'.
7300
7301         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7302         Suggested by Bruno Haible.
7303
7304         pselect: Use pthread_sigmask, not sigprocmask.
7305         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7306         multithreaded apps better than sigprocmask does.
7307         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7308         sigprocmask directly.
7309
7310 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7311
7312         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7313         Don't #undef,  since we don't need any underlying pselect.
7314         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7315         (Depends-on): Add select.
7316         (Link): Add $(LIBSOCKET).
7317         These changes suggested by Bruno Haible.
7318
7319         pselect: document better
7320         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7321         * doc/posix-functions/pselect.texi (pselect): Document new module.
7322
7323         pthread_sigmask: new module
7324         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7325         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7326         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7327         This is done only as a macro; I don't know how well that'll
7328         work for C++.  Move <sys/types.h> include before the include_next,
7329         to avoid mishap on Solaris.
7330         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7331         * modules/signal (Makefile.am): Substitute the check's results.
7332         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7333
7334         test-pselect: new module
7335         * modules/pselect-tests, tests/test-pselect.c: New files.
7336         * tests/test-select.c, tests/test-sys_select-c++.cc:
7337         If TEST_PSELECT is defined, test pselect instead of testing select.
7338
7339         * tests/test-sys_select.c (sigset_t): Test for it, too.
7340         Suggested by Bruno Haible.
7341
7342 2011-07-05  Eric Blake  <eblake@redhat.com>
7343
7344         snprintf: guarantee %1$d, for libintl
7345         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7346         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7347         * doc/posix-functions/snprintf.texi (snprintf): Update.
7348         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7349         * tests/test-snprintf.c (main): Enhance test.
7350         * tests/test-vsnprintf.c (main): Likewise.
7351
7352 2011-07-05  Jim Meyering  <meyering@redhat.com>
7353
7354         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7355         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7356         per Bruno's request, to accommodate this idiom (no space after "#")
7357         even when the function is inside an #if block:
7358         char *
7359         gets (char *s)
7360         #undef gets
7361         {
7362           ...
7363         }
7364
7365 2011-07-04  Jim Meyering  <meyering@redhat.com>
7366
7367         maint: indent with spaces, not TABs, and add a rule to check this
7368         * tests/test-userspec.c: Indent with spaces, not TABs.
7369         * tests/test-argp.c: Likewise.
7370         * tests/test-c-stack2.sh: Likewise.
7371         * tests/test-parse-duration.sh: Likewise
7372         * m4/strtod.m4: Likewise.
7373         * m4/alloca.m4: Likewise.
7374         * m4/pselect.m4: Likewise.
7375         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7376
7377 2011-07-03  Jim Meyering  <meyering@redhat.com>
7378
7379         maint.mk: correct omissions in prohibit_argmatch_without_use check
7380         This rule would mistakenly report that argmatch.h is included without
7381         use even when both the argmatch and invalid_arg macro were used.
7382         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7383         of argmatch and invalid_arg.
7384
7385 2011-07-03  Bruno Haible  <bruno@clisp.org>
7386
7387         Comments about EINTR.
7388         * lib/safe-read.h: Explain the purpose of this module.
7389         * lib/safe-write.h: Likewise.
7390         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7391         module.
7392         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7393         module.
7394         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7395
7396 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7397
7398         xnanosleep: Rewrite to use new dtotimespec module.
7399         It has the conversion code that used to be in xnanosleep.
7400         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7401         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7402         (TIME_T_MAX): Remove.
7403         (xnanosleep): Rewrite in terms of dtotimespec.
7404         * modules/xnanosleep (Depends-on): Add dtotimespec.
7405         Remove intprops, stdbool.
7406
7407         timespec-add, timespec-sub: new modules
7408         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7409         * lib/timespec-add.c, lib/timespec-sub.c:
7410         * modules/timespec-add, modules/timespec-sub: New files.
7411
7412         dtotimespec: new module
7413         * lib/timespec.h (dtotimespec): New decl.
7414         * lib/dtotimespec.c, modules/dtotimespec: New files.
7415
7416         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7417
7418         pselect: new module
7419         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7420         (pselect): New decls.
7421         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7422         since the standard pselect decl uses 'restrict'.
7423         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7424         HAVE_PSELECT, REPLACE_PSELECT.
7425         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7426         HAVE_PSELECT, REPLACE_PSELECT.
7427         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7428
7429         sys_select: don't depend on sys_socket
7430         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7432         This fix works on GNU and GNU-like platforms, but has not been tested
7433         on native Windows.
7434         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7435         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7436         gl_HEADER_SYS_SOCKET.
7437         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7438         gl_PREREQ_SYS_H_WINSOCK2.
7439
7440 2011-06-29  Eric Blake  <eblake@redhat.com>
7441
7442         pipe2: fix C89 compile problem
7443         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7444         Reported by Bruno Haible.
7445
7446         pipe, pipe2: don't corrupt fd on error
7447         * lib/pipe.c (pipe): Leave fd unchanged on error.
7448         * lib/pipe2.c (pipe2): Likewise.
7449         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7450         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7451
7452 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7453
7454         mmap-anon: do not use regular expressions inadvertently
7455         * m4/mmap-anon.m4: Remove trailing period from strings sought
7456         in the output.
7457
7458 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7459
7460         nanosleep: fix integer overflow problem
7461         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7462         arithmetic wraps around on overflow.
7463
7464         nanosleep: simplify carrying
7465         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7466         first call to the underyling nanosleep, not for the last one.
7467         This doesn't fix any bugs, but it simplifies the computation of
7468         the remaining delay.  Found while auditing integer overflow issues.
7469
7470         dup2: remove test for existence of fcntl
7471         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7472         "#if HAVE_FCNTL", in the configure-time test program.
7473         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7474         and therefore speeds up "configure" a bit.  Found while
7475         adding the dup2 module to Emacs.
7476
7477 2011-06-24  Eric Blake  <eblake@redhat.com>
7478
7479         maint.mk: enhance useless header checks
7480         * top/maint.mk (_sc_header_without_use): Check both include
7481         styles.
7482         (sc_prohibit_assert_without_use)
7483         (sc_prohibit_close_stream_without_use)
7484         (sc_prohibit_getopt_without_use)
7485         (sc_prohibit_quotearg_without_use)
7486         (sc_prohibit_quote_without_use)
7487         (sc_prohibit_long_options_without_use)
7488         (sc_prohibit_inttostr_without_use)
7489         (sc_prohibit_ignore_value_without_use)
7490         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7491         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7492         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7493         (sc_prohibit_hash_pjw_without_use)
7494         (sc_prohibit_safe_read_without_use)
7495         (sc_prohibit_argmatch_without_use)
7496         (sc_prohibit_canonicalize_without_use)
7497         (sc_prohibit_root_dev_ino_without_use)
7498         (sc_prohibit_openat_without_use)
7499         (sc_prohibit_c_ctype_without_use)
7500         (sc_prohibit_signal_without_use)
7501         (sc_prohibit_stdio--_without_use)
7502         (sc_prohibit_stdio-safer_without_use)
7503         (sc_prohibit_strings_without_use)
7504         (sc_prohibit_intprops_without_use)
7505         (sc_prohibit_stddef_without_use)
7506         (sc_prohibit_xfreopen_without_use): Update clients.
7507
7508 2011-06-24  Jim Meyering  <meyering@redhat.com>
7509
7510         syntax-check: keep one maint.mk rule in sync with its header
7511         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7512         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7513         I prefer to avoid temporary files here, so use <(...), but that
7514         is not supported by /bin/sh, so...
7515         (SHELL): Define to /bin/bash.
7516
7517 2011-06-24  Eric Blake  <eblake@redhat.com>
7518
7519         maint.mk: update sc_prohibit_intprops_without_use
7520         * top/maint.mk (_intprops_names): Match recent changes.
7521
7522 2011-06-24  Bruno Haible  <bruno@clisp.org>
7523
7524         strerror-override: No-op tweak.
7525         * lib/strerror-override.h (strerror_override): Reorder conditions,
7526         for consistency with lib/strerror-override.c.
7527
7528 2011-06-23  Eric Blake  <eblake@redhat.com>
7529
7530         maint.mk: test further PATH_MAX issues
7531         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7532         (sc_prohibit_path_max_allocation): ...and also test alloca.
7533         Suggested by Jim Meyering.
7534
7535 2011-06-22  Eric Blake  <eblake@redhat.com>
7536
7537         maint.mk: add syntax-check to avoid char[PATH_MAX]
7538         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7539
7540         stat: be robust to PATH_MAX definition
7541         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7542         * modules/stat (Depends-on): Add verify.
7543
7544         link: work around IRIX bug
7545         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7546         * lib/link.c (rpl_link): Work around it.
7547         * tests/test-link.h (test_link): Enhance test.
7548         * doc/posix-functions/link.texi (link): Document the bug.
7549
7550         getopt: silence clang warning
7551         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7552         dereference.
7553         Reported by Gustavo Martin Domato.
7554
7555 2011-06-22  Jim Meyering  <meyering@redhat.com>
7556
7557         bootstrap: do not insert a blank line into each .gitignore file
7558         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7559
7560 2011-06-21  Eric Blake  <eblake@redhat.com>
7561
7562         perror: test for output mismatch
7563         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7564         perror on IRIX.
7565
7566         strerror_r: fix OpenBSD behavior on out-of-range
7567         * lib/strerror_r.c (strerror_r): Always use maximal string.
7568         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7569
7570         strerror_r: fix OpenBSD behavior on 0
7571         * lib/strerror-override.c (strerror_override): Also override 0
7572         when needed.
7573         * lib/strerror-override.h (strerror_override): Likewise.
7574         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7575         earlier.
7576         * lib/strerror_r.c (strerror_r): Likewise.
7577         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7578         behavior...
7579         (gl_FUNC_STRERROR_0): ...into new macro.
7580         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7581         is overridden.
7582         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7583         * modules/strerror-override (Files): Add strerror.m4.
7584         (configure.ac): Also provide override for 0 when needed.
7585         * doc/posix-functions/strerror.texi (strerror): Document this.
7586         * doc/posix-functions/perror.texi (perror): Likewise.
7587
7588         perror: adjust array size
7589         * modules/perror (Depends-on): Add strerror-override.
7590         * lib/perror.c (perror): Use it to avoid magic number.
7591
7592         strerror-override: reduce size
7593         * lib/strerror-override.c (strerror_override): Use fewer lines.
7594
7595 2011-06-20  Bruno Haible  <bruno@clisp.org>
7596
7597         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7598         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7599
7600 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7601
7602         alloca: port to compilers that can optimize like GCC 4.6.0
7603         * lib/alloca.c (find_stack_direction): New signature, taken from
7604         Autoconf git.  This works with GCC 4.6.0.  This code should never
7605         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7606         be used with other compilers that optimize as well as GCC 4.6.0 does.
7607         (alloca): Adjust to new signature.
7608         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7609         New macro, which patches Autoconf in a similar way.
7610
7611         c-stack: stop worrying about stack direction
7612         * lib/c-stack.c (find_stack_direction): Remove.
7613         (segv_handler): Don't worry about stack direction growth, as it's
7614         too much of a pain to configure this correctly, given how compilers
7615         are optimizing-away our stack-growth detection code.  Instead, assume
7616         that any access to just before or just after the stack is OK.
7617         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7618         Don't require AC_FUNC_ALLOCA; no longer needed.
7619
7620 2011-06-20  Eric Blake  <eblake@redhat.com>
7621
7622         test-stat: don't allocate PATH_MAX bytes
7623         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7624         PATH_MAX-sized buffer.
7625         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7626         * modules/stat-tests (Depends-on): Likewise.
7627         * tests/test-fstatat.c (includes): Drop pathmax.h.
7628         * tests/test-stat.c (includes): Likewise.
7629         Reported by Bruno Haible.
7630
7631 2011-06-20  Bruno Haible  <bruno@clisp.org>
7632
7633         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7634         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7635         * lib/float.c: New file.
7636         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7637         REPLACE_FLOAT_LDBL.
7638         * modules/float (Files): Add lib/float.c.
7639         (configure.ac): Invoke AC_LIBOBJ.
7640         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7641
7642 2011-06-20  Bruno Haible  <bruno@clisp.org>
7643
7644         Tests for module 'float'.
7645         * modules/float-tests: New file.
7646         * tests/test-float.c: New file.
7647
7648 2011-06-19  Bruno Haible  <bruno@clisp.org>
7649
7650         isinf: Coding style.
7651         * lib/isinf.c: Use GNU coding style.
7652
7653 2011-06-19  Bruno Haible  <bruno@clisp.org>
7654
7655         linkat test: Avoid test failure on AIX 7.1.
7656         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7657         * tests/test-link.h (test_link): Likewise.
7658
7659 2011-06-19  Bruno Haible  <bruno@clisp.org>
7660
7661         pread test: Avoid test failure on OpenBSD 4.9.
7662         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7663
7664 2011-06-19  Bruno Haible  <bruno@clisp.org>
7665
7666         sprintf-posix: Fix test failure on AIX 7.1.
7667         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7668         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7669         on AIX.
7670         * doc/posix-functions/fprintf.texi: Likewise.
7671         * doc/posix-functions/printf.texi: Likewise.
7672         * doc/posix-functions/snprintf.texi: Likewise.
7673         * doc/posix-functions/sprintf.texi: Likewise.
7674         * doc/posix-functions/vdprintf.texi: Likewise.
7675         * doc/posix-functions/vfprintf.texi: Likewise.
7676         * doc/posix-functions/vprintf.texi: Likewise.
7677         * doc/posix-functions/vsnprintf.texi: Likewise.
7678         * doc/posix-functions/vsprintf.texi: Likewise.
7679
7680 2011-06-19  Bruno Haible  <bruno@clisp.org>
7681
7682         roundl-ieee: Fix test failure on AIX 7.1.
7683         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7684         * doc/posix-functions/roundl.texi: Mention problem with negative
7685         arguments.
7686
7687 2011-06-19  Bruno Haible  <bruno@clisp.org>
7688
7689         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7690         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7691         * doc/posix-functions/round.texi: Mention problem with negative
7692         arguments.
7693         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7694
7695 2011-06-19  Bruno Haible  <bruno@clisp.org>
7696
7697         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7698         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7699         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7700         * doc/posix-functions/roundf.texi: Mention problem with negative
7701         arguments.
7702         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7703
7704 2011-06-19  Bruno Haible  <bruno@clisp.org>
7705
7706         ceilf-ieee: Work around bug on MacOS X 10.5.
7707         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7708
7709         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7710         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7711         IEEE compliant, avoid compiler optimizations.
7712         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7713         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7714         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7715         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7716         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7717         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7718         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7719         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7720         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7721         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7722
7723 2011-06-19  Bruno Haible  <bruno@clisp.org>
7724
7725         ceilf-ieee: Work around bug on AIX 7.1.
7726         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7727         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7728
7729 2011-06-19  Bruno Haible  <bruno@clisp.org>
7730
7731         ceil-ieee: Work around bug on AIX 7.1.
7732         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7733         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7734
7735 2011-06-18  Bruno Haible  <bruno@clisp.org>
7736
7737         fsync test: Avoid test failure on MacOS X and AIX.
7738         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7739         EINVAL.
7740
7741 2011-06-18  Bruno Haible  <bruno@clisp.org>
7742
7743         openat, fdopendir tests: Fix link errors.
7744         * modules/openat-tests (Depends-on): Add progname.
7745         * modules/fdopendir-tests (Depends-on): Likewise.
7746         * tests/test-fchownat.c: Include progname.h.
7747         (main): Call set_program_name.
7748         * tests/test-fstatat.c: Include progname.h.
7749         (main): Call set_program_name.
7750         * tests/test-mkdirat.c: Include progname.h.
7751         (main): Call set_program_name.
7752         * tests/test-openat.c: Include progname.h.
7753         (main): Call set_program_name.
7754         * tests/test-unlinkat.c: Include progname.h.
7755         (main): Call set_program_name.
7756         * tests/test-fdopendir.c: Include progname.h.
7757         (main): Call set_program_name.
7758
7759 2011-06-18  Bruno Haible  <bruno@clisp.org>
7760
7761         Doc update.
7762         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7763         HP-UX.
7764         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7765
7766 2011-06-18  Bruno Haible  <bruno@clisp.org>
7767
7768         getcwd tests: Avoid compilation error on HP-UX 11.31.
7769         * modules/getcwd-tests (Depends-on): Add pathmax.
7770         * tests/test-getcwd.c: Include pathmax.h.
7771
7772 2011-06-18  Bruno Haible  <bruno@clisp.org>
7773
7774         isfinite, isinf: Fix link error on AIX 6 and 7.
7775         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7776         needed, also test the macro with a 'float' argument.
7777         * m4/isinf.m4 (gl_ISINF): Likewise.
7778
7779 2011-06-18  Bruno Haible  <bruno@clisp.org>
7780
7781         getloadavg: Don't clobber LIBS. Regression from previous commit.
7782         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7783         AC_CHECK_LIB from here...
7784         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7785         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7786         gl_func_getloadavg_done.
7787         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7788
7789 2011-06-18  Bruno Haible  <bruno@clisp.org>
7790
7791         clean-temp: Improve documentation.
7792         * lib/clean-temp.h: Explain better how to use this module.
7793         Reported by John Darrington <john@darrington.wattle.id.au>.
7794
7795 2011-06-17  Bruno Haible  <bruno@clisp.org>
7796
7797         pread, pwrite: Avoid cc warning on AIX.
7798         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7799         (pwrite): Likewise.
7800
7801 2011-06-17  Bruno Haible  <bruno@clisp.org>
7802
7803         spawn-pipe tests: Fix link error.
7804         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7805         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7806
7807 2011-06-17  Bruno Haible  <bruno@clisp.org>
7808
7809         Tests: Remove unnecessary dependency.
7810         * modules/canonicalize-tests (Depends-on): Remove progname.
7811         * modules/chown-tests (Depends-on): Likewise.
7812         * modules/dirname-tests (Depends-on): Likewise.
7813         * modules/fdopendir-tests (Depends-on): Likewise.
7814         * modules/fdutimensat-tests (Depends-on): Likewise.
7815         * modules/hash-tests (Depends-on): Likewise.
7816         * modules/lchown-tests (Depends-on): Likewise.
7817         * modules/linkat-tests (Depends-on): Likewise.
7818         * modules/renameat-tests (Depends-on): Likewise.
7819         * modules/spawn-pipe-tests (Depends-on): Likewise.
7820         * modules/utimensat-tests (Depends-on): Likewise.
7821
7822 2011-06-17  Bruno Haible  <bruno@clisp.org>
7823
7824         spawn-pipe tests: Fix link error.
7825         * tests/test-spawn-pipe-child.c: Undefine fflush.
7826
7827 2011-06-17  Bruno Haible  <bruno@clisp.org>
7828
7829         Fix tests link errors.
7830         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7831         * modules/chown-tests (Makefile.am): Don't link test-chown with
7832         LIBINTL.
7833         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7834         LIBINTL.
7835         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7836         LIBINTL.
7837         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7838         LIBINTL.
7839
7840 2011-06-16  Bruno Haible  <bruno@clisp.org>
7841
7842         crypto/gc-sha1: Fix recent regression.
7843         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7844         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7845
7846         crypto/gc-md5: Fix recent regression.
7847         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7848
7849         crypto/gc-md4: Fix recent regression.
7850         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7851         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7852
7853         crypto/gc-arctwo: Fix recent regression.
7854         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7855         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7856
7857         crypto/gc-rijndael: Fix recent regression.
7858         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7859         (configure.ac): Invoke AC_LIBOBJ here.
7860         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7862
7863         crypto/gc-hmac-sha1: Fix recent regression.
7864         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7865         (configure.ac): Invoke AC_LIBOBJ here.
7866         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7867         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7868
7869         crypto/gc-hmac-md5: Fix recent regression.
7870         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7871         (configure.ac): Invoke AC_LIBOBJ here.
7872         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7874
7875         crypto/gc-des: Fix recent regression.
7876         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7877         (configure.ac): Invoke AC_LIBOBJ here.
7878         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7880
7881         crypto/gc-arcfour: Fix recent regression.
7882         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7883         (configure.ac): Invoke AC_LIBOBJ here.
7884         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7886
7887 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7888
7889         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7890         After the 2011-05-21 change, this macro requires
7891         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7892         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7893
7894 2011-06-16  Bruno Haible  <bruno@clisp.org>
7895
7896         fprintftime: Move AC_LIBOBJ invocations to module description.
7897         * m4/fprintftime.m4: Remove file.
7898         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7899         (configure.ac): Remove gl_FPRINTFTIME call.
7900         (Makefile.am): Augment lib_SOURCES.
7901         Reported by Jim Meyering.
7902
7903 2011-06-16  Bruno Haible  <bruno@clisp.org>
7904
7905         tmpfile-safer: Finish 2011-05-23 commit.
7906         * m4/stdio-safer.m4: Really remove file.
7907         Reported by Jim Meyering.
7908
7909 2011-06-16  Bruno Haible  <bruno@clisp.org>
7910
7911         syntax-check: Fix typo.
7912         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7913         printf-posix.m4.
7914         Reported by Jim Meyering.
7915
7916 2011-06-13  Jim Meyering  <meyering@redhat.com>
7917
7918         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7919         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7920
7921 2011-05-23  Bruno Haible  <bruno@clisp.org>
7922
7923         yesno: Move AC_LIBOBJ invocations to module description.
7924         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7925         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7926
7927 2011-05-23  Bruno Haible  <bruno@clisp.org>
7928
7929         xstrtol: Move AC_LIBOBJ invocations to module description.
7930         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7931         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7932
7933 2011-05-23  Bruno Haible  <bruno@clisp.org>
7934
7935         xstrtold: Move AC_LIBOBJ invocations to module description.
7936         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7937         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7938
7939 2011-05-23  Bruno Haible  <bruno@clisp.org>
7940
7941         xstrtod: Move AC_LIBOBJ invocations to module description.
7942         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7943         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7944
7945 2011-05-23  Bruno Haible  <bruno@clisp.org>
7946
7947         xnanosleep: Move AC_LIBOBJ invocations to module description.
7948         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7949         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7950
7951 2011-05-23  Bruno Haible  <bruno@clisp.org>
7952
7953         xgetcwd: Move AC_LIBOBJ invocations to module description.
7954         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7955         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7956
7957 2011-05-23  Bruno Haible  <bruno@clisp.org>
7958
7959         xalloc: Move AC_LIBOBJ invocations to module description.
7960         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7961         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7962
7963 2011-05-23  Bruno Haible  <bruno@clisp.org>
7964
7965         write-any-file: Move AC_LIBOBJ invocations to module description.
7966         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7967         invocation.
7968         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7969
7970 2011-05-23  Bruno Haible  <bruno@clisp.org>
7971
7972         utimens: Move AC_LIBOBJ invocations to module description.
7973         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7974         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7975
7976 2011-05-23  Bruno Haible  <bruno@clisp.org>
7977
7978         utimecmp: Move AC_LIBOBJ invocations to module description.
7979         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7980         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7981
7982 2011-05-23  Bruno Haible  <bruno@clisp.org>
7983
7984         userspec: Move AC_LIBOBJ invocations to module description.
7985         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7986         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7987
7988 2011-05-23  Bruno Haible  <bruno@clisp.org>
7989
7990         unlinkdir: Move AC_LIBOBJ invocations to module description.
7991         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7992         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7993
7994 2011-05-23  Bruno Haible  <bruno@clisp.org>
7995
7996         unistd-safer: Move AC_LIBOBJ invocations to module description.
7997         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7998         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7999
8000 2011-05-23  Bruno Haible  <bruno@clisp.org>
8001
8002         tempname: Move AC_LIBOBJ invocations to module description.
8003         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8004         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8005
8006 2011-05-23  Bruno Haible  <bruno@clisp.org>
8007
8008         strftime: Move AC_LIBOBJ invocations to module description.
8009         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8010         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8011
8012 2011-05-23  Bruno Haible  <bruno@clisp.org>
8013
8014         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8015         * m4/stdlib-safer.m4: Remove file.
8016         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8017         (configure.ac): Remove gl_STDLIB_SAFER call.
8018         (Makefile.am): Augment lib_SOURCES.
8019
8020 2011-05-23  Bruno Haible  <bruno@clisp.org>
8021
8022         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8023         * m4/stdio-safer.m4: Remove file.
8024         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8025         (configure.ac): Remove gl_TMPFILE_SAFER call.
8026         (Makefile.am): Augment lib_SOURCES.
8027
8028 2011-05-23  Bruno Haible  <bruno@clisp.org>
8029
8030         popen-safer: Move AC_LIBOBJ invocations to module description.
8031         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8032         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8033         (configure.ac): Remove gl_POPEN_SAFER call.
8034         (Makefile.am): Augment lib_SOURCES.
8035
8036 2011-05-23  Bruno Haible  <bruno@clisp.org>
8037
8038         freopen-safer: Move AC_LIBOBJ invocations to module description.
8039         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8040         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8041         (configure.ac): Remove gl_FREOPEN_SAFER call.
8042         (Makefile.am): Augment lib_SOURCES.
8043
8044 2011-05-23  Bruno Haible  <bruno@clisp.org>
8045
8046         fopen-safer: Move AC_LIBOBJ invocations to module description.
8047         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8048         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8049         (configure.ac): Remove gl_FOPEN_SAFER call.
8050         (Makefile.am): Augment lib_SOURCES.
8051
8052 2011-05-23  Bruno Haible  <bruno@clisp.org>
8053
8054         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8055         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8056         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8057
8058 2011-05-23  Bruno Haible  <bruno@clisp.org>
8059
8060         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8061         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8062         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8063
8064 2011-05-23  Bruno Haible  <bruno@clisp.org>
8065
8066         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8067         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8068         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8069
8070 2011-05-23  Bruno Haible  <bruno@clisp.org>
8071
8072         settime: Move AC_LIBOBJ invocations to module description.
8073         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8074         * modules/settime (Makefile.am): Augment lib_SOURCES.
8075
8076 2011-05-23  Bruno Haible  <bruno@clisp.org>
8077
8078         savedir: Move AC_LIBOBJ invocations to module description.
8079         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8080         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8081
8082 2011-05-23  Bruno Haible  <bruno@clisp.org>
8083
8084         save-cwd: Move AC_LIBOBJ invocations to module description.
8085         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8086         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8087
8088 2011-05-23  Bruno Haible  <bruno@clisp.org>
8089
8090         same: Move AC_LIBOBJ invocations to module description.
8091         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8092         * modules/same (Makefile.am): Augment lib_SOURCES.
8093
8094 2011-05-23  Bruno Haible  <bruno@clisp.org>
8095
8096         safe-write: Move AC_LIBOBJ invocations to module description.
8097         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8098         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8099         instead of gl_SAFE_WRITE.
8100         (Makefile.am): Augment lib_SOURCES.
8101
8102 2011-05-23  Bruno Haible  <bruno@clisp.org>
8103
8104         safe-read: Move AC_LIBOBJ invocations to module description.
8105         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8106         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8107         of gl_SAFE_READ.
8108         (Makefile.am): Augment lib_SOURCES.
8109
8110 2011-05-23  Bruno Haible  <bruno@clisp.org>
8111
8112         safe-alloc: Move AC_LIBOBJ invocations to module description.
8113         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8114         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8115
8116 2011-05-23  Bruno Haible  <bruno@clisp.org>
8117
8118         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8119         * m4/rijndael.m4: Remove file.
8120         * modules/crypto/rijndael (Files): Remove it.
8121         (configure.ac): Remove gl_RIJNDAEL call.
8122         (Makefile.am): Augment lib_SOURCES.
8123
8124 2011-05-23  Bruno Haible  <bruno@clisp.org>
8125
8126         readtokens: Move AC_LIBOBJ invocations to module description.
8127         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8128         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8129
8130 2011-05-23  Bruno Haible  <bruno@clisp.org>
8131
8132         read-file: Move AC_LIBOBJ invocations to module description.
8133         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8134         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8135         of gl_FUNC_READ_FILE.
8136         (Makefile.am): Augment lib_SOURCES.
8137
8138 2011-05-23  Bruno Haible  <bruno@clisp.org>
8139
8140         quotearg: Move AC_LIBOBJ invocations to module description.
8141         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8142         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8143
8144 2011-05-23  Bruno Haible  <bruno@clisp.org>
8145
8146         quote: Move AC_LIBOBJ invocations to module description.
8147         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8148         * modules/quote (Makefile.am): Augment lib_SOURCES.
8149
8150 2011-05-23  Bruno Haible  <bruno@clisp.org>
8151
8152         posixver: Move AC_LIBOBJ invocations to module description.
8153         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8154         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8155
8156 2011-05-23  Bruno Haible  <bruno@clisp.org>
8157
8158         posixtm: Move AC_LIBOBJ invocations to module description.
8159         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8160         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8161
8162 2011-05-23  Bruno Haible  <bruno@clisp.org>
8163
8164         physmem: Move AC_LIBOBJ invocations to module description.
8165         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8166         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8167
8168 2011-05-23  Bruno Haible  <bruno@clisp.org>
8169
8170         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8171         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8172         invocation.
8173         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8174
8175 2011-05-23  Bruno Haible  <bruno@clisp.org>
8176
8177         mpsort: Move AC_LIBOBJ invocations to module description.
8178         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8179         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8180
8181 2011-05-23  Bruno Haible  <bruno@clisp.org>
8182
8183         modechange: Move AC_LIBOBJ invocations to module description.
8184         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8185         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8186
8187 2011-05-23  Bruno Haible  <bruno@clisp.org>
8188
8189         mkdir-p: Move AC_LIBOBJ invocations to module description.
8190         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8191         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8192
8193 2011-05-23  Bruno Haible  <bruno@clisp.org>
8194
8195         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8196         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8197         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8198
8199 2011-05-23  Bruno Haible  <bruno@clisp.org>
8200
8201         mgetgroups: Move AC_LIBOBJ invocations to module description.
8202         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8203         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8204
8205 2011-05-23  Bruno Haible  <bruno@clisp.org>
8206
8207         memxor: Move AC_LIBOBJ invocations to module description.
8208         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8209         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8210
8211 2011-05-23  Bruno Haible  <bruno@clisp.org>
8212
8213         memcoll: Move AC_LIBOBJ invocations to module description.
8214         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8215         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8216
8217 2011-05-23  Bruno Haible  <bruno@clisp.org>
8218
8219         memcasecmp: Move AC_LIBOBJ invocations to module description.
8220         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8221         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8222
8223 2011-05-23  Bruno Haible  <bruno@clisp.org>
8224
8225         crypto/md5: Move AC_LIBOBJ invocations to module description.
8226         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8227         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8228
8229 2011-05-23  Bruno Haible  <bruno@clisp.org>
8230
8231         crypto/md4: Move AC_LIBOBJ invocations to module description.
8232         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8233         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8234
8235 2011-05-23  Bruno Haible  <bruno@clisp.org>
8236
8237         crypto/md2: Move AC_LIBOBJ invocations to module description.
8238         * m4/md2.m4: Remove file.
8239         * modules/crypto/md2 (Files): Remove it.
8240         (configure.ac): Remove gl_MD2 call.
8241         (Makefile.am): Augment lib_SOURCES.
8242
8243 2011-05-23  Bruno Haible  <bruno@clisp.org>
8244
8245         long-options: Move AC_LIBOBJ invocations to module description.
8246         * m4/long-options.m4: Remove file.
8247         * modules/long-options (Files): Remove it.
8248         (configure.ac): Remove gl_LONG_OPTIONS call.
8249         (Makefile.am): Augment lib_SOURCES.
8250
8251 2011-05-23  Bruno Haible  <bruno@clisp.org>
8252
8253         i-ring: Move AC_LIBOBJ invocations to module description.
8254         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8255         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8256
8257 2011-05-23  Bruno Haible  <bruno@clisp.org>
8258
8259         idcache: Move AC_LIBOBJ invocations to module description.
8260         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8261         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8262
8263 2011-05-23  Bruno Haible  <bruno@clisp.org>
8264
8265         human: Move AC_LIBOBJ invocations to module description.
8266         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8267         * modules/human (Makefile.am): Augment lib_SOURCES.
8268
8269 2011-05-23  Bruno Haible  <bruno@clisp.org>
8270
8271         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8272         * m4/hmac-sha1.m4: Remove file.
8273         * modules/crypto/hmac-sha1 (Files): Remove it.
8274         (configure.ac): Remove gl_HMAC_SHA1 call.
8275         (Makefile.am): Augment lib_SOURCES.
8276
8277 2011-05-23  Bruno Haible  <bruno@clisp.org>
8278
8279         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8280         * m4/hmac-md5.m4: Remove file.
8281         * modules/crypto/hmac-md5 (Files): Remove it.
8282         (configure.ac): Remove gl_HMAC_MD5 call.
8283         (Makefile.am): Augment lib_SOURCES.
8284
8285 2011-05-23  Bruno Haible  <bruno@clisp.org>
8286
8287         hash: Move AC_LIBOBJ invocations to module description.
8288         * m4/hash.m4: Remove file.
8289         * modules/hash (Files): Remove it.
8290         (configure.ac): Remove gl_HASH call.
8291         (Makefile.am): Augment lib_SOURCES.
8292
8293 2011-05-23  Bruno Haible  <bruno@clisp.org>
8294
8295         hard-locale: Move AC_LIBOBJ invocations to module description.
8296         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8297         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8298
8299 2011-05-23  Bruno Haible  <bruno@clisp.org>
8300
8301         getugroups: Move AC_LIBOBJ invocations to module description.
8302         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8303         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8304
8305 2011-05-23  Bruno Haible  <bruno@clisp.org>
8306
8307         gettime: Move AC_LIBOBJ invocations to module description.
8308         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8309         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8310
8311 2011-05-23  Bruno Haible  <bruno@clisp.org>
8312
8313         getndelim2: Move AC_LIBOBJ invocations to module description.
8314         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8315         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8316
8317 2011-05-23  Bruno Haible  <bruno@clisp.org>
8318
8319         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8320         * m4/gc-pbkdf2-sha1.m4: Remove file.
8321         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8322         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8323         (Makefile.am): Augment lib_SOURCES.
8324
8325 2011-05-23  Bruno Haible  <bruno@clisp.org>
8326
8327         fts: Move AC_LIBOBJ invocations to module description.
8328         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8329         * modules/fts (configure.ac): ... to here.
8330
8331 2011-05-23  Bruno Haible  <bruno@clisp.org>
8332
8333         file-type: Move AC_LIBOBJ invocations to module description.
8334         * m4/file-type.m4: Remove file.
8335         * modules/file-type (Files): Remove it.
8336         (configure.ac): Remove gl_FILE_TYPE call.
8337         (Makefile.am): Augment lib_SOURCES.
8338
8339 2011-05-23  Bruno Haible  <bruno@clisp.org>
8340
8341         filenamecat*: Respect rules for use of AC_LIBOBJ.
8342         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8343         Remove AC_LIBOBJ invocation.
8344         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8345         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8346
8347 2011-05-23  Bruno Haible  <bruno@clisp.org>
8348
8349         filemode: Move AC_LIBOBJ invocations to module description.
8350         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8351         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8352
8353 2011-05-23  Bruno Haible  <bruno@clisp.org>
8354
8355         openat-safer: Move AC_LIBOBJ invocations to module description.
8356         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8357         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8358
8359 2011-05-23  Bruno Haible  <bruno@clisp.org>
8360
8361         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8362         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8363         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8364
8365 2011-05-23  Bruno Haible  <bruno@clisp.org>
8366
8367         exclude: Move AC_LIBOBJ invocations to module description.
8368         * m4/exclude.m4: Remove file.
8369         * modules/exclude (Files): Remove it.
8370         (configure.ac): Remove gl_EXCLUDE call.
8371         (Makefile.am): Augment lib_SOURCES.
8372
8373 2011-05-23  Bruno Haible  <bruno@clisp.org>
8374
8375         dirname*: Respect rules for use of AC_LIBOBJ.
8376         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8377         invocations.
8378         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8379         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8380
8381 2011-05-23  Bruno Haible  <bruno@clisp.org>
8382
8383         dirent-safer: Move AC_LIBOBJ invocations to module description.
8384         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8385         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8386
8387 2011-05-23  Bruno Haible  <bruno@clisp.org>
8388
8389         crypto/des: Move AC_LIBOBJ invocations to module description.
8390         * m4/des.m4: Remove file.
8391         * modules/crypto/des (Files): Remove it.
8392         (configure.ac): Remove gl_DES call.
8393         (Makefile.am): Augment lib_SOURCES.
8394
8395 2011-05-23  Bruno Haible  <bruno@clisp.org>
8396
8397         cycle-check: Move AC_LIBOBJ invocations to module description.
8398         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8399         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8400
8401 2011-05-23  Bruno Haible  <bruno@clisp.org>
8402
8403         c-strtold: Move AC_LIBOBJ invocations to module description.
8404         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8405         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8406
8407 2011-05-23  Bruno Haible  <bruno@clisp.org>
8408
8409         c-strtod: Move AC_LIBOBJ invocations to module description.
8410         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8411         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8412
8413 2011-05-23  Bruno Haible  <bruno@clisp.org>
8414
8415         crc: Move AC_LIBOBJ invocations to module description.
8416         * m4/crc.m4: Remove file.
8417         * modules/crc (Files): Remove it.
8418         (configure.ac): Remove gl_CRC call.
8419         (Makefile.am): Augment lib_SOURCES.
8420
8421 2011-05-23  Bruno Haible  <bruno@clisp.org>
8422
8423         close-stream: Move AC_LIBOBJ invocations to module description.
8424         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8425         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8426
8427 2011-05-23  Bruno Haible  <bruno@clisp.org>
8428
8429         closeout: Move AC_LIBOBJ invocations to module description.
8430         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8431         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8432
8433 2011-05-23  Bruno Haible  <bruno@clisp.org>
8434
8435         closein: Move AC_LIBOBJ invocations to module description.
8436         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8437         * modules/closein (Makefile.am): Augment lib_SOURCES.
8438
8439 2011-05-23  Bruno Haible  <bruno@clisp.org>
8440
8441         cloexec: Move AC_LIBOBJ invocations to module description.
8442         * m4/cloexec.m4: Remove file.
8443         * modules/cloexec (Files): Remove it.
8444         (configure.ac): Remove gl_CLOEXEC call.
8445         (Makefile.am): Augment lib_SOURCES.
8446
8447 2011-05-23  Bruno Haible  <bruno@clisp.org>
8448
8449         check-version: Move AC_LIBOBJ invocations to module description.
8450         * m4/check-version.m4: Remove file.
8451         * modules/check-version (Files): Remove it.
8452         (configure.ac): Remove gl_CHECK_VERSION call.
8453         (Makefile.am): Augment lib_SOURCES.
8454
8455 2011-05-23  Bruno Haible  <bruno@clisp.org>
8456
8457         chdir-safer: Move AC_LIBOBJ invocations to module description.
8458         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8459         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8460
8461 2011-05-23  Bruno Haible  <bruno@clisp.org>
8462
8463         canonicalize: Move AC_LIBOBJ invocations to module description.
8464         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8465         AC_LIBOBJ invocation.
8466         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8467
8468 2011-05-23  Bruno Haible  <bruno@clisp.org>
8469
8470         canon-host: Move AC_LIBOBJ invocations to module description.
8471         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8472         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8473         instead of gl_CANON_HOST.
8474         (Makefile.am): Augment lib_SOURCES.
8475
8476 2011-05-23  Bruno Haible  <bruno@clisp.org>
8477
8478         backupfile: Move AC_LIBOBJ invocations to module description.
8479         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8480         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8481
8482 2011-05-23  Bruno Haible  <bruno@clisp.org>
8483
8484         argmatch: Move AC_LIBOBJ invocations to module description.
8485         * m4/argmatch.m4: Remove file.
8486         * modules/argmatch (Files): Remove it.
8487         (configure.ac): Remove gl_ARGMATCH call.
8488         (Makefile.am): Augment lib_SOURCES.
8489
8490 2011-05-23  Bruno Haible  <bruno@clisp.org>
8491
8492         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8493         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8494         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8495
8496 2011-05-23  Bruno Haible  <bruno@clisp.org>
8497
8498         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8499         * m4/arcfour.m4: Remove file.
8500         * modules/crypto/arcfour (Files): Remove it.
8501         (configure.ac): Remove gl_ARCFOUR call.
8502         (Makefile.am): Augment lib_SOURCES.
8503
8504 2011-05-22  Bruno Haible  <bruno@clisp.org>
8505
8506         write: Move AC_LIBOBJ invocations to module description.
8507         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8508         * modules/write (configure.ac): ... to here.
8509
8510 2011-05-22  Bruno Haible  <bruno@clisp.org>
8511
8512         wmemset: Move AC_LIBOBJ invocations to module description.
8513         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8514         here...
8515         * modules/wmemset (configure.ac): ... to here.
8516
8517 2011-05-22  Bruno Haible  <bruno@clisp.org>
8518
8519         wmemmove: Move AC_LIBOBJ invocations to module description.
8520         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8521         here...
8522         * modules/wmemmove (configure.ac): ... to here.
8523
8524 2011-05-22  Bruno Haible  <bruno@clisp.org>
8525
8526         wmemcpy: Move AC_LIBOBJ invocations to module description.
8527         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8528         here...
8529         * modules/wmemcpy (configure.ac): ... to here.
8530
8531 2011-05-22  Bruno Haible  <bruno@clisp.org>
8532
8533         wmemcmp: Move AC_LIBOBJ invocations to module description.
8534         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8535         here...
8536         * modules/wmemcmp (configure.ac): ... to here.
8537
8538 2011-05-22  Bruno Haible  <bruno@clisp.org>
8539
8540         wmemchr: Move AC_LIBOBJ invocations to module description.
8541         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8542         here...
8543         * modules/wmemchr (configure.ac): ... to here.
8544
8545 2011-05-22  Bruno Haible  <bruno@clisp.org>
8546
8547         wcswidth: Move AC_LIBOBJ invocations to module description.
8548         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8549         here...
8550         * modules/wcswidth (configure.ac): ... to here.
8551
8552 2011-05-22  Bruno Haible  <bruno@clisp.org>
8553
8554         wcwidth: Respect rules for use of AC_LIBOBJ.
8555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8556         invocation from here...
8557         * modules/wcwidth (configure.ac): ... to here.
8558         (Depends-on): Update conditions.
8559
8560 2011-05-22  Bruno Haible  <bruno@clisp.org>
8561
8562         wctype: Move AC_LIBOBJ invocations to module description.
8563         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8564         invocation from here...
8565         * modules/wctype (configure.ac): ... to here.
8566         (Depends-on): Update conditions.
8567
8568 2011-05-22  Bruno Haible  <bruno@clisp.org>
8569
8570         wctrans: Move AC_LIBOBJ invocations to module description.
8571         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8572         invocation from here...
8573         * modules/wctrans (configure.ac): ... to here.
8574
8575 2011-05-22  Bruno Haible  <bruno@clisp.org>
8576
8577         wctomb: Move AC_LIBOBJ invocations to module description.
8578         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8579         invocations from here...
8580         * modules/wctomb (configure.ac): ... to here.
8581
8582 2011-05-22  Bruno Haible  <bruno@clisp.org>
8583
8584         wctob: Move AC_LIBOBJ invocations to module description.
8585         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8586         gl_PREREQ_WCTOB invocations from here...
8587         * modules/wctob (configure.ac): ... to here.
8588         (Depends-on): Update conditions.
8589
8590 2011-05-22  Bruno Haible  <bruno@clisp.org>
8591
8592         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8593         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8594         here...
8595         * modules/wcsxfrm (configure.ac): ... to here.
8596
8597 2011-05-22  Bruno Haible  <bruno@clisp.org>
8598
8599         wcstok: Move AC_LIBOBJ invocations to module description.
8600         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8601         * modules/wcstok (configure.ac): ... to here.
8602
8603 2011-05-22  Bruno Haible  <bruno@clisp.org>
8604
8605         wcsstr: Move AC_LIBOBJ invocations to module description.
8606         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8607         * modules/wcsstr (configure.ac): ... to here.
8608
8609 2011-05-22  Bruno Haible  <bruno@clisp.org>
8610
8611         wcsspn: Move AC_LIBOBJ invocations to module description.
8612         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8613         * modules/wcsspn (configure.ac): ... to here.
8614
8615 2011-05-22  Bruno Haible  <bruno@clisp.org>
8616
8617         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8618         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8619         gl_PREREQ_WCSRTOMBS invocations from here...
8620         * modules/wcsrtombs (configure.ac): ... to here.
8621
8622 2011-05-22  Bruno Haible  <bruno@clisp.org>
8623
8624         wcsrchr: Move AC_LIBOBJ invocations to module description.
8625         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8626         here...
8627         * modules/wcsrchr (configure.ac): ... to here.
8628
8629 2011-05-22  Bruno Haible  <bruno@clisp.org>
8630
8631         wcspbrk: Move AC_LIBOBJ invocations to module description.
8632         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8633         here...
8634         * modules/wcspbrk (configure.ac): ... to here.
8635
8636 2011-05-22  Bruno Haible  <bruno@clisp.org>
8637
8638         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8639         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8640         gl_PREREQ_WCSNRTOMBS invocations from here...
8641         * modules/wcsnrtombs (configure.ac): ... to here.
8642
8643 2011-05-22  Bruno Haible  <bruno@clisp.org>
8644
8645         wcsnlen: Move AC_LIBOBJ invocations to module description.
8646         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8647         here...
8648         * modules/wcsnlen (configure.ac): ... to here.
8649
8650 2011-05-22  Bruno Haible  <bruno@clisp.org>
8651
8652         wcsncpy: Move AC_LIBOBJ invocations to module description.
8653         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8654         here...
8655         * modules/wcsncpy (configure.ac): ... to here.
8656
8657 2011-05-22  Bruno Haible  <bruno@clisp.org>
8658
8659         wcsncmp: Move AC_LIBOBJ invocations to module description.
8660         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8661         here...
8662         * modules/wcsncmp (configure.ac): ... to here.
8663
8664 2011-05-22  Bruno Haible  <bruno@clisp.org>
8665
8666         wcsncat: Move AC_LIBOBJ invocations to module description.
8667         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8668         here...
8669         * modules/wcsncat (configure.ac): ... to here.
8670
8671 2011-05-22  Bruno Haible  <bruno@clisp.org>
8672
8673         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8674         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8675         from here...
8676         * modules/wcsncasecmp (configure.ac): ... to here.
8677
8678 2011-05-22  Bruno Haible  <bruno@clisp.org>
8679
8680         wcslen: Move AC_LIBOBJ invocations to module description.
8681         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8682         * modules/wcslen (configure.ac): ... to here.
8683
8684 2011-05-22  Bruno Haible  <bruno@clisp.org>
8685
8686         wcsdup: Move AC_LIBOBJ invocations to module description.
8687         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8688         * modules/wcsdup (configure.ac): ... to here.
8689
8690 2011-05-22  Bruno Haible  <bruno@clisp.org>
8691
8692         wcscspn: Move AC_LIBOBJ invocations to module description.
8693         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8694         here...
8695         * modules/wcscspn (configure.ac): ... to here.
8696
8697 2011-05-22  Bruno Haible  <bruno@clisp.org>
8698
8699         wcscpy: Move AC_LIBOBJ invocations to module description.
8700         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8701         * modules/wcscpy (configure.ac): ... to here.
8702
8703 2011-05-22  Bruno Haible  <bruno@clisp.org>
8704
8705         wcscoll: Move AC_LIBOBJ invocations to module description.
8706         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8707         here...
8708         * modules/wcscoll (configure.ac): ... to here.
8709
8710 2011-05-22  Bruno Haible  <bruno@clisp.org>
8711
8712         wcscmp: Move AC_LIBOBJ invocations to module description.
8713         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8714         * modules/wcscmp (configure.ac): ... to here.
8715
8716 2011-05-22  Bruno Haible  <bruno@clisp.org>
8717
8718         wcschr: Move AC_LIBOBJ invocations to module description.
8719         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8720         * modules/wcschr (configure.ac): ... to here.
8721
8722 2011-05-22  Bruno Haible  <bruno@clisp.org>
8723
8724         wcscat: Move AC_LIBOBJ invocations to module description.
8725         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8726         * modules/wcscat (configure.ac): ... to here.
8727
8728 2011-05-22  Bruno Haible  <bruno@clisp.org>
8729
8730         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8731         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8732         here...
8733         * modules/wcscasecmp (configure.ac): ... to here.
8734
8735 2011-05-22  Bruno Haible  <bruno@clisp.org>
8736
8737         wcrtomb: Move AC_LIBOBJ invocations to module description.
8738         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8739         invocations from here...
8740         * modules/wcrtomb (configure.ac): ... to here.
8741
8742 2011-05-22  Bruno Haible  <bruno@clisp.org>
8743
8744         wcpncpy: Move AC_LIBOBJ invocations to module description.
8745         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8746         here...
8747         * modules/wcpncpy (configure.ac): ... to here.
8748
8749 2011-05-22  Bruno Haible  <bruno@clisp.org>
8750
8751         wcpcpy: Move AC_LIBOBJ invocations to module description.
8752         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8753         * modules/wcpcpy (configure.ac): ... to here.
8754
8755 2011-05-22  Bruno Haible  <bruno@clisp.org>
8756
8757         waitpid: Move AC_LIBOBJ invocations to module description.
8758         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8759         invocation from here...
8760         * modules/waitpid (configure.ac): ... to here.
8761
8762 2011-05-22  Bruno Haible  <bruno@clisp.org>
8763
8764         utimensat: Move AC_LIBOBJ invocations to module description.
8765         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8766         here...
8767         * modules/utimensat (configure.ac): ... to here.
8768
8769 2011-05-22  Bruno Haible  <bruno@clisp.org>
8770
8771         usleep: Move AC_LIBOBJ invocations to module description.
8772         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8773         here...
8774         * modules/usleep (configure.ac): ... to here.
8775
8776 2011-05-22  Bruno Haible  <bruno@clisp.org>
8777
8778         unlockpt: Move AC_LIBOBJ invocations to module description.
8779         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8780         gl_PREREQ_UNLOCKPT invocations from here...
8781         * modules/unlockpt (configure.ac): ... to here.
8782
8783 2011-05-22  Bruno Haible  <bruno@clisp.org>
8784
8785         unlink: Respect rules for use of AC_LIBOBJ.
8786         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8787         * modules/unlink (configure.ac): ... to here.
8788
8789 2011-05-22  Bruno Haible  <bruno@clisp.org>
8790
8791         uname: Move AC_LIBOBJ invocations to module description.
8792         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8793         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8794         here...
8795         * modules/uname (configure.ac): ... to here.
8796
8797 2011-05-22  Bruno Haible  <bruno@clisp.org>
8798
8799         ttyname_r: Move AC_LIBOBJ invocations to module description.
8800         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8801         gl_PREREQ_TTYNAME_R invocations from here...
8802         * modules/ttyname_r (configure.ac): ... to here.
8803
8804 2011-05-22  Bruno Haible  <bruno@clisp.org>
8805
8806         tsearch: Move AC_LIBOBJ invocations to module description.
8807         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8808         invocations from here...
8809         * modules/tsearch (configure.ac): ... to here.
8810
8811 2011-05-22  Bruno Haible  <bruno@clisp.org>
8812
8813         towctrans: Move AC_LIBOBJ invocations to module description.
8814         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8815         AC_LIBOBJ invocation from here...
8816         * modules/towctrans (configure.ac): ... to here.
8817
8818 2011-05-22  Bruno Haible  <bruno@clisp.org>
8819
8820         tmpfile: Move AC_LIBOBJ invocations to module description.
8821         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8822         invocations from here...
8823         * modules/tmpfile (configure.ac): ... to here.
8824
8825 2011-05-22  Bruno Haible  <bruno@clisp.org>
8826
8827         times: Move AC_LIBOBJ invocations to module description.
8828         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8829         * modules/times (configure.ac): ... to here.
8830
8831 2011-05-22  Bruno Haible  <bruno@clisp.org>
8832
8833         time_r: Move AC_LIBOBJ invocations to module description.
8834         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8835         invocations from here...
8836         * modules/time_r (configure.ac): ... to here.
8837
8838 2011-05-22  Bruno Haible  <bruno@clisp.org>
8839
8840         timegm: Move AC_LIBOBJ invocations to module description.
8841         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8842         invocations from here...
8843         * modules/timegm (configure.ac): ... to here.
8844
8845 2011-05-22  Bruno Haible  <bruno@clisp.org>
8846
8847         tcgetsid: Move AC_LIBOBJ invocations to module description.
8848         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8849         and gl_PREREQ_TCGETSID invocations from here...
8850         * modules/tcgetsid (configure.ac): ... to here.
8851         (Depends-on): Update conditions.
8852
8853 2011-05-22  Bruno Haible  <bruno@clisp.org>
8854
8855         symlinkat: Move AC_LIBOBJ invocations to module description.
8856         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8857         here...
8858         * modules/symlinkat (configure.ac): ... to here.
8859
8860 2011-05-22  Bruno Haible  <bruno@clisp.org>
8861
8862         symlink: Move AC_LIBOBJ invocations to module description.
8863         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8864         here...
8865         * modules/symlink (configure.ac): ... to here.
8866
8867 2011-05-22  Bruno Haible  <bruno@clisp.org>
8868
8869         strverscmp: Move AC_LIBOBJ invocations to module description.
8870         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8872         from here...
8873         * modules/strverscmp (configure.ac): ... to here.
8874
8875 2011-05-22  Bruno Haible  <bruno@clisp.org>
8876
8877         strtok_r: Move AC_LIBOBJ invocations to module description.
8878         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8879         and gl_PREREQ_STRTOK_R invocations from here...
8880         * modules/strtok_r (configure.ac): ... to here.
8881         (Depends-on): Update conditions.
8882
8883 2011-05-22  Bruno Haible  <bruno@clisp.org>
8884
8885         strtoumax: Move AC_LIBOBJ invocations to module description.
8886         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8888         from here...
8889         * modules/strtoumax (configure.ac): ... to here.
8890
8891 2011-05-22  Bruno Haible  <bruno@clisp.org>
8892
8893         strtoimax: Move AC_LIBOBJ invocations to module description.
8894         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8896         from here...
8897         * modules/strtoimax (configure.ac): ... to here.
8898
8899 2011-05-22  Bruno Haible  <bruno@clisp.org>
8900
8901         strtoull: Move AC_LIBOBJ invocations to module description.
8902         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8904         from here...
8905         * modules/strtoull (configure.ac): ... to here.
8906
8907 2011-05-22  Bruno Haible  <bruno@clisp.org>
8908
8909         strtoll: Move AC_LIBOBJ invocations to module description.
8910         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8912         here...
8913         * modules/strtoll (configure.ac): ... to here.
8914
8915 2011-05-22  Bruno Haible  <bruno@clisp.org>
8916
8917         strtoul: Move AC_LIBOBJ invocations to module description.
8918         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8919         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8920         * modules/strtoul (configure.ac): ... to here.
8921
8922 2011-05-22  Bruno Haible  <bruno@clisp.org>
8923
8924         strtol: Move AC_LIBOBJ invocations to module description.
8925         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8926         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8927         * modules/strtol (configure.ac): ... to here.
8928
8929 2011-05-22  Bruno Haible  <bruno@clisp.org>
8930
8931         strtod: Move AC_LIBOBJ invocations to module description.
8932         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8933         invocations from here...
8934         * modules/strtod (configure.ac): ... to here.
8935
8936 2011-05-22  Bruno Haible  <bruno@clisp.org>
8937
8938         strstr*: Move AC_LIBOBJ invocations to module description.
8939         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8940         invocations from here...
8941         * modules/strstr-simple (configure.ac): ... to here.
8942         * modules/strstr (configure.ac): ... and here.
8943
8944 2011-05-22  Bruno Haible  <bruno@clisp.org>
8945
8946         strsignal: Move AC_LIBOBJ invocations to module description.
8947         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8948         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8949         * modules/strsignal (configure.ac): ... to here.
8950         (Depends-on): Update conditions.
8951
8952 2011-05-22  Bruno Haible  <bruno@clisp.org>
8953
8954         strsep: Move AC_LIBOBJ invocations to module description.
8955         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8957         here...
8958         * modules/strsep (configure.ac): ... to here.
8959
8960 2011-05-22  Bruno Haible  <bruno@clisp.org>
8961
8962         strptime: Move AC_LIBOBJ invocations to module description.
8963         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8964         gl_PREREQ_STRPTIME invocations from here...
8965         * modules/strptime (configure.ac): ... to here.
8966
8967 2011-05-22  Bruno Haible  <bruno@clisp.org>
8968
8969         strpbrk: Move AC_LIBOBJ invocations to module description.
8970         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8971         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8972         here...
8973         * modules/strpbrk (configure.ac): ... to here.
8974
8975 2011-05-22  Bruno Haible  <bruno@clisp.org>
8976
8977         strnlen: Move AC_LIBOBJ invocations to module description.
8978         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8979         invocations from here...
8980         * modules/strnlen (configure.ac): ... to here.
8981
8982 2011-05-22  Bruno Haible  <bruno@clisp.org>
8983
8984         strndup: Move AC_LIBOBJ invocations to module description.
8985         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8986         invocations from here...
8987         * modules/strndup (configure.ac): ... to here.
8988         (Depends-on): Update conditions.
8989
8990 2011-05-22  Bruno Haible  <bruno@clisp.org>
8991
8992         strncat: Move AC_LIBOBJ invocations to module description.
8993         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8994         invocations from here...
8995         * modules/strncat (configure.ac): ... to here.
8996
8997 2011-05-22  Bruno Haible  <bruno@clisp.org>
8998
8999         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9000         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9001         invocations from here...
9002         * modules/strdup (configure.ac): ... to here.
9003         * modules/strdup-posix (configure.ac): ... and here.
9004
9005 2011-05-22  Bruno Haible  <bruno@clisp.org>
9006
9007         strcspn: Move AC_LIBOBJ invocations to module description.
9008         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9010         here...
9011         * modules/strcspn (configure.ac): ... to here.
9012
9013 2011-05-22  Bruno Haible  <bruno@clisp.org>
9014
9015         strchrnul: Move AC_LIBOBJ invocations to module description.
9016         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9017         gl_PREREQ_STRCHRNUL invocations from here...
9018         * modules/strchrnul (configure.ac): ... to here.
9019
9020 2011-05-22  Bruno Haible  <bruno@clisp.org>
9021
9022         strcasestr*: Move AC_LIBOBJ invocations to module description.
9023         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9024         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9025         * modules/strcasestr-simple (configure.ac): ... to here.
9026         * modules/strcasestr (configure.ac): ... and here.
9027
9028 2011-05-22  Bruno Haible  <bruno@clisp.org>
9029
9030         strcase: Move AC_LIBOBJ invocations to module description.
9031         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9032         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9033         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9034         gl_PREREQ_STRNCASECMP invocations from here...
9035         * modules/strcase (configure.ac): ... to here.
9036
9037 2011-05-22  Bruno Haible  <bruno@clisp.org>
9038
9039         stpncpy: Move AC_LIBOBJ invocations to module description.
9040         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9041         here...
9042         * modules/stpncpy (configure.ac): ... to here.
9043
9044 2011-05-22  Bruno Haible  <bruno@clisp.org>
9045
9046         stpcpy: Move AC_LIBOBJ invocations to module description.
9047         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9048         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9049         here...
9050         * modules/stpcpy (configure.ac): ... to here.
9051
9052 2011-05-21  Bruno Haible  <bruno@clisp.org>
9053
9054         stat: Move AC_LIBOBJ invocations to module description.
9055         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9056         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9057         here...
9058         * modules/stat (configure.ac): ... to here.
9059
9060 2011-05-21  Bruno Haible  <bruno@clisp.org>
9061
9062         sleep: Move AC_LIBOBJ invocations to module description.
9063         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9064         * modules/sleep (configure.ac): ... to here.
9065
9066 2011-05-21  Bruno Haible  <bruno@clisp.org>
9067
9068         signbit: Move AC_LIBOBJ invocations to module description.
9069         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9070         * modules/signbit (configure.ac): ... to here.
9071
9072 2011-05-21  Bruno Haible  <bruno@clisp.org>
9073
9074         sigprocmask: Move AC_LIBOBJ invocations to module description.
9075         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9076         gl_PREREQ_SIGPROMASK invocations from here...
9077         * modules/sigprocmask (configure.ac): ... to here.
9078
9079 2011-05-21  Bruno Haible  <bruno@clisp.org>
9080
9081         sigaction: Move AC_LIBOBJ invocations to module description.
9082         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9083         gl_PREREQ_SIGACTION invocations from here...
9084         * modules/sigaction (configure.ac): ... to here.
9085
9086 2011-05-21  Bruno Haible  <bruno@clisp.org>
9087
9088         sig2str: Move AC_LIBOBJ invocations to module description.
9089         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9091         here...
9092         * modules/sig2str (configure.ac): ... to here.
9093
9094 2011-05-21  Bruno Haible  <bruno@clisp.org>
9095
9096         setlocale: Move AC_LIBOBJ invocations to module description.
9097         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9098         gl_PREREQ_SETLOCALE invocations from here...
9099         * modules/setlocale (configure.ac): ... to here.
9100
9101 2011-05-21  Bruno Haible  <bruno@clisp.org>
9102
9103         unsetenv: Move AC_LIBOBJ invocations to module description.
9104         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9105         and gl_PREREQ_UNSETENV invocations from here...
9106         * modules/unsetenv (configure.ac): ... to here.
9107         (Depends-on): Update.
9108
9109 2011-05-21  Bruno Haible  <bruno@clisp.org>
9110
9111         setenv: Move AC_LIBOBJ invocations to module description.
9112         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9113         here...
9114         * modules/setenv (configure.ac): ... to here.
9115
9116 2011-05-21  Bruno Haible  <bruno@clisp.org>
9117
9118         selinux-h: Move AC_LIBOBJ invocations to module description.
9119         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9120         AC_LIBOBJ invocation from here...
9121         * modules/selinux-h (configure.ac): ... to here.
9122
9123 2011-05-21  Bruno Haible  <bruno@clisp.org>
9124
9125         select: Respect rules for use of AC_LIBOBJ.
9126         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9127         here...
9128         * modules/select (configure.ac): ... to here.
9129
9130 2011-05-21  Bruno Haible  <bruno@clisp.org>
9131
9132         scandir: Move AC_LIBOBJ invocations to module description.
9133         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9134         invocations from here...
9135         * modules/scandir (configure.ac): ... to here.
9136
9137 2011-05-21  Bruno Haible  <bruno@clisp.org>
9138
9139         rpmatch: Move AC_LIBOBJ invocations to module description.
9140         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9142         here...
9143         * modules/rpmatch (configure.ac): ... to here.
9144
9145 2011-05-21  Bruno Haible  <bruno@clisp.org>
9146
9147         rmdir: Respect rules for use of AC_LIBOBJ.
9148         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9149         * modules/rmdir (configure.ac): ... to here.
9150
9151 2011-05-21  Bruno Haible  <bruno@clisp.org>
9152
9153         renameat: Move AC_LIBOBJ invocations to module description.
9154         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9155         here...
9156         * modules/renameat (configure.ac): ... to here.
9157
9158 2011-05-21  Bruno Haible  <bruno@clisp.org>
9159
9160         rename: Respect rules for use of AC_LIBOBJ.
9161         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9162         here...
9163         * modules/rename (configure.ac): ... to here.
9164
9165 2011-05-21  Bruno Haible  <bruno@clisp.org>
9166
9167         remove: Move AC_LIBOBJ invocations to module description.
9168         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9169         here...
9170         * modules/remove (configure.ac): ... to here.
9171
9172 2011-05-21  Bruno Haible  <bruno@clisp.org>
9173
9174         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9175         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9176         macro.
9177         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9178         * modules/relocatable-lib (configure.ac): ... to here.
9179         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9180         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9181
9182 2011-05-21  Bruno Haible  <bruno@clisp.org>
9183
9184         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9185         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9186         here...
9187         * modules/relocatable-prog (configure.ac): ... to here.
9188
9189 2011-05-21  Bruno Haible  <bruno@clisp.org>
9190
9191         regex: Move AC_LIBOBJ invocations to module description.
9192         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9193         invocations from here...
9194         * modules/regex (configure.ac): ... to here.
9195
9196 2011-05-21  Bruno Haible  <bruno@clisp.org>
9197
9198         realloc-*: Move AC_LIBOBJ invocations to module description.
9199         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9200         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9201         AC_LIBOBJ invocations from here...
9202         * modules/realloc-gnu (configure.ac): ... to here.
9203         * modules/realloc-posix (configure.ac): ... and here.
9204
9205 2011-05-21  Bruno Haible  <bruno@clisp.org>
9206
9207         readutmp: Move AC_LIBOBJ invocations to module description.
9208         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9209         * modules/readutmp (configure.ac): ... to here.
9210
9211 2011-05-21  Bruno Haible  <bruno@clisp.org>
9212
9213         readlinkat: Move AC_LIBOBJ invocations to module description.
9214         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9215         here...
9216         * modules/readlinkat (configure.ac): ... to here.
9217
9218 2011-05-21  Bruno Haible  <bruno@clisp.org>
9219
9220         readlink: Move AC_LIBOBJ invocations to module description.
9221         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9222         gl_PREREQ_READLINK invocations from here...
9223         * modules/readlink (configure.ac): ... to here.
9224
9225 2011-05-21  Bruno Haible  <bruno@clisp.org>
9226
9227         readline: Move AC_LIBOBJ invocations to module description.
9228         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9229         gl_PREREQ_READLINE invocations from here...
9230         * modules/readline (configure.ac): ... to here.
9231
9232 2011-05-21  Bruno Haible  <bruno@clisp.org>
9233
9234         read: Move AC_LIBOBJ invocations to module description.
9235         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9236         * modules/read (configure.ac): ... to here.
9237
9238 2011-05-21  Bruno Haible  <bruno@clisp.org>
9239
9240         rawmemchr: Move AC_LIBOBJ invocations to module description.
9241         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9243         from here...
9244         * modules/rawmemchr (configure.ac): ... to here.
9245
9246 2011-05-21  Bruno Haible  <bruno@clisp.org>
9247
9248         random_r: Move AC_LIBOBJ invocations to module description.
9249         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9250         gl_PREREQ_RANDOM_R invocations from here...
9251         * modules/random_r (configure.ac): ... to here.
9252
9253 2011-05-21  Bruno Haible  <bruno@clisp.org>
9254
9255         pwrite: Move AC_LIBOBJ invocations to module description.
9256         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9257         * modules/pwrite (configure.ac): ... to here.
9258
9259 2011-05-21  Bruno Haible  <bruno@clisp.org>
9260
9261         putenv: Move AC_LIBOBJ invocations to module description.
9262         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9263         * modules/putenv (configure.ac): ... to here.
9264
9265 2011-05-21  Bruno Haible  <bruno@clisp.org>
9266
9267         login_tty: Move AC_LIBOBJ invocations to module description.
9268         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9269         * modules/login_tty (configure.ac): ... to here.
9270
9271 2011-05-21  Bruno Haible  <bruno@clisp.org>
9272
9273         openpty: Move AC_LIBOBJ invocations to module description.
9274         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9275         * modules/openpty (configure.ac): ... to here.
9276
9277 2011-05-21  Bruno Haible  <bruno@clisp.org>
9278
9279         forkpty: Move AC_LIBOBJ invocations to module description.
9280         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9281         * modules/forkpty (configure.ac): ... to here.
9282
9283 2011-05-21  Bruno Haible  <bruno@clisp.org>
9284
9285         ptsname: Move AC_LIBOBJ invocations to module description.
9286         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9287         invocations from here...
9288         * modules/ptsname (configure.ac): ... to here.
9289
9290 2011-05-21  Bruno Haible  <bruno@clisp.org>
9291
9292         pread: Move AC_LIBOBJ invocations to module description.
9293         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9294         * modules/pread (configure.ac): ... to here.
9295
9296 2011-05-21  Bruno Haible  <bruno@clisp.org>
9297
9298         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9299         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9300         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9301         * modules/posix_spawn (configure.ac): ... to here.
9302         * modules/posix_spawnp (configure.ac): ... and here.
9303
9304 2011-05-21  Bruno Haible  <bruno@clisp.org>
9305
9306         popen: Move AC_LIBOBJ invocations to module description.
9307         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9308         invocations from here...
9309         * modules/popen (configure.ac): ... to here.
9310
9311 2011-05-21  Bruno Haible  <bruno@clisp.org>
9312
9313         poll: Move AC_LIBOBJ invocations to module description.
9314         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9315         invocations from here...
9316         * modules/poll (configure.ac): ... to here.
9317
9318 2011-05-21  Bruno Haible  <bruno@clisp.org>
9319
9320         pipe-posix: Move AC_LIBOBJ invocations to module description.
9321         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9322         * modules/pipe-posix (configure.ac): ... to here.
9323
9324 2011-05-21  Bruno Haible  <bruno@clisp.org>
9325
9326         openat: Respect rules for use of AC_LIBOBJ.
9327         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9328         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9329         * modules/openat (configure.ac): ... to here.
9330
9331 2011-05-21  Bruno Haible  <bruno@clisp.org>
9332
9333         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9334         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9335         invocation from here...
9336         * modules/obstack-printf (configure.ac): ... to here.
9337         * modules/obstack-printf-posix (configure.ac): ... and here.
9338
9339 2011-05-21  Bruno Haible  <bruno@clisp.org>
9340
9341         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9342         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9343         from here...
9344         * modules/nl_langinfo (configure.ac): ... to here.
9345
9346 2011-05-21  Bruno Haible  <bruno@clisp.org>
9347
9348         nanosleep: Move AC_LIBOBJ invocations to module description.
9349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9350         gl_PREREQ_NANOSLEEP invocations from here...
9351         * modules/nanosleep (configure.ac): ... to here.
9352
9353 2011-05-21  Bruno Haible  <bruno@clisp.org>
9354
9355         mountlist: Move AC_LIBOBJ invocations to module description.
9356         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9357         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9358         * modules/mountlist (configure.ac): ... to here.
9359
9360 2011-05-21  Bruno Haible  <bruno@clisp.org>
9361
9362         mktime: Respect rules for use of AC_LIBOBJ.
9363         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9364         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9365         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9366         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9367         * modules/mktime (configure.ac): ... to here.
9368         * modules/mktime-internal (configure.ac): ... and here.
9369         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9370
9371 2011-05-21  Bruno Haible  <bruno@clisp.org>
9372
9373         mkstemps: Move AC_LIBOBJ invocations to module description.
9374         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9375         here...
9376         * modules/mkstemps (configure.ac): ... to here.
9377
9378 2011-05-21  Bruno Haible  <bruno@clisp.org>
9379
9380         mkstemp: Move AC_LIBOBJ invocations to module description.
9381         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9382         gl_PREREQ_MKSTEMP invocations from here...
9383         * modules/mkstemp (configure.ac): ... to here.
9384
9385 2011-05-21  Bruno Haible  <bruno@clisp.org>
9386
9387         mkostemps: Move AC_LIBOBJ invocations to module description.
9388         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9389         here...
9390         * modules/mkostemps (configure.ac): ... to here.
9391
9392 2011-05-21  Bruno Haible  <bruno@clisp.org>
9393
9394         mkostemp: Move AC_LIBOBJ invocations to module description.
9395         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9396         gl_PREREQ_MKOSTEMP invocations from here...
9397         * modules/mkostemp (configure.ac): ... to here.
9398
9399 2011-05-21  Bruno Haible  <bruno@clisp.org>
9400
9401         mknod: Move AC_LIBOBJ invocations to module description.
9402         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9403         * modules/mknod (configure.ac): ... to here.
9404
9405 2011-05-21  Bruno Haible  <bruno@clisp.org>
9406
9407         mkfifoat: Move AC_LIBOBJ invocations to module description.
9408         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9409         here...
9410         * modules/mkfifoat (configure.ac): ... to here.
9411
9412 2011-05-21  Bruno Haible  <bruno@clisp.org>
9413
9414         mkfifo: Respect rules for use of AC_LIBOBJ.
9415         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9416         here...
9417         * modules/mkfifo (configure.ac): ... to here.
9418
9419 2011-05-21  Bruno Haible  <bruno@clisp.org>
9420
9421         mkdtemp: Move AC_LIBOBJ invocations to module description.
9422         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9423         invocations from here...
9424         * modules/mkdtemp (configure.ac): ... to here.
9425
9426 2011-05-21  Bruno Haible  <bruno@clisp.org>
9427
9428         mkdir: Move AC_LIBOBJ invocations to module description.
9429         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9430         * modules/mkdir (configure.ac): ... to here.
9431
9432 2011-05-21  Bruno Haible  <bruno@clisp.org>
9433
9434         memset: Move AC_LIBOBJ invocations to module description.
9435         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9437         here...
9438         * modules/memset (configure.ac): ... to here.
9439
9440 2011-05-21  Bruno Haible  <bruno@clisp.org>
9441
9442         memrchr: Move AC_LIBOBJ invocations to module description.
9443         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9444         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9445         here...
9446         * modules/memrchr (configure.ac): ... to here.
9447
9448 2011-05-21  Bruno Haible  <bruno@clisp.org>
9449
9450         mempcpy: Move AC_LIBOBJ invocations to module description.
9451         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9453         here...
9454         * modules/mempcpy (configure.ac): ... to here.
9455
9456 2011-05-21  Bruno Haible  <bruno@clisp.org>
9457
9458         memmove: Move AC_LIBOBJ invocations to module description.
9459         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9461         here...
9462         * modules/memmove (configure.ac): ... to here.
9463
9464 2011-05-21  Bruno Haible  <bruno@clisp.org>
9465
9466         memmem*: Move AC_LIBOBJ invocations to module description.
9467         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9468         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9469         here...
9470         (gl_FUNC_MEMMEM): ... and here...
9471         * modules/memmem-simple (configure.ac): ... to here.
9472         * modules/memmem (configure.ac): ... and here.
9473
9474 2011-05-21  Bruno Haible  <bruno@clisp.org>
9475
9476         memcpy: Move AC_LIBOBJ invocations to module description.
9477         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9478         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9479         here...
9480         * modules/memcpy (configure.ac): ... to here.
9481
9482 2011-05-21  Bruno Haible  <bruno@clisp.org>
9483
9484         memcmp: Simplify autoconf macro.
9485         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9486         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9487         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9488
9489 2011-05-21  Bruno Haible  <bruno@clisp.org>
9490
9491         memcmp: Move AC_LIBOBJ invocations to module description.
9492         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9493         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9494         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9495         * modules/memcmp (configure.ac): ... to here.
9496         (Depends-on): Update conditions.
9497
9498 2011-05-21  Bruno Haible  <bruno@clisp.org>
9499
9500         memchr: Respect rules for use of AC_LIBOBJ.
9501         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9502         invocations from here...
9503         * modules/memchr (configure.ac): ... to here.
9504
9505 2011-05-21  Bruno Haible  <bruno@clisp.org>
9506
9507         mbtowc: Move AC_LIBOBJ invocations to module description.
9508         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9509         invocations from here...
9510         * modules/mbtowc (configure.ac): ... to here.
9511
9512 2011-05-21  Bruno Haible  <bruno@clisp.org>
9513
9514         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9515         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9516         gl_PREREQ_MBSRTOWCS invocations from here...
9517         * modules/mbsrtowcs (configure.ac): ... to here.
9518
9519 2011-05-21  Bruno Haible  <bruno@clisp.org>
9520
9521         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9522         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9523         gl_PREREQ_MBSNRTOWCS invocations from here...
9524         * modules/mbsnrtowcs (configure.ac): ... to here.
9525
9526 2011-05-21  Bruno Haible  <bruno@clisp.org>
9527
9528         mbsinit: Move AC_LIBOBJ invocations to module description.
9529         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9530         invocations from here...
9531         * modules/mbsinit (configure.ac): ... to here.
9532
9533 2011-05-21  Bruno Haible  <bruno@clisp.org>
9534
9535         mbrlen: Move AC_LIBOBJ invocations to module description.
9536         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9537         invocations from here...
9538         * modules/mbrlen (configure.ac): ... to here.
9539
9540 2011-05-21  Bruno Haible  <bruno@clisp.org>
9541
9542         mbrtowc: Respect rules for use of AC_LIBOBJ.
9543         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9544         invocations from here...
9545         * modules/mbrtowc (configure.ac): ... to here.
9546
9547 2011-05-21  Bruno Haible  <bruno@clisp.org>
9548
9549         malloc-*: Move AC_LIBOBJ invocations to module description.
9550         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9551         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9552         AC_LIBOBJ invocations from here...
9553         * modules/malloc-gnu (configure.ac): ... to here.
9554         * modules/malloc-posix (configure.ac): ... and here.
9555
9556 2011-05-21  Bruno Haible  <bruno@clisp.org>
9557
9558         lstat, openat: Respect rules for use of AC_LIBOBJ.
9559         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9560         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9561         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9562         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9563         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9564         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9565         here.
9566         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9567
9568 2011-05-21  Bruno Haible  <bruno@clisp.org>
9569
9570         lseek: Move AC_LIBOBJ invocations to module description.
9571         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9572         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9573         * modules/lseek (configure.ac): ... to here.
9574
9575 2011-05-21  Bruno Haible  <bruno@clisp.org>
9576
9577         linkat: Move AC_LIBOBJ invocations to module description.
9578         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9579         here...
9580         * modules/linkat (configure.ac): ... to here.
9581
9582 2011-05-21  Bruno Haible  <bruno@clisp.org>
9583
9584         link: Respect rules for use of AC_LIBOBJ.
9585         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9586         * modules/link (configure.ac): ... to here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         lchown: Move AC_LIBOBJ invocations to module description.
9591         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9592         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9593         * modules/lchown (configure.ac): ... to here.
9594
9595 2011-05-21  Bruno Haible  <bruno@clisp.org>
9596
9597         iswctype: Move AC_LIBOBJ invocations to module description.
9598         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9599         here...
9600         * modules/iswctype (configure.ac): ... to here.
9601
9602 2011-05-21  Bruno Haible  <bruno@clisp.org>
9603
9604         iswblank: Move AC_LIBOBJ invocations to module description.
9605         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9606         here...
9607         * modules/iswblank (configure.ac): ... to here.
9608
9609 2011-05-21  Bruno Haible  <bruno@clisp.org>
9610
9611         atanl: Move AC_LIBOBJ invocations to module description.
9612         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9613         * modules/atanl (configure.ac): ... to here.
9614
9615 2011-05-21  Bruno Haible  <bruno@clisp.org>
9616
9617         acosl: Move AC_LIBOBJ invocations to module description.
9618         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9619         * modules/acosl (configure.ac): ... to here.
9620
9621 2011-05-21  Bruno Haible  <bruno@clisp.org>
9622
9623         asinl: Respect rules for use of AC_LIBOBJ.
9624         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9625         * modules/asinl (configure.ac): ... to here.
9626
9627 2011-05-21  Bruno Haible  <bruno@clisp.org>
9628
9629         tanl: Move AC_LIBOBJ invocations to module description.
9630         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9631         * modules/tanl (configure.ac): ... to here.
9632
9633 2011-05-21  Bruno Haible  <bruno@clisp.org>
9634
9635         cosl: Move AC_LIBOBJ invocations to module description.
9636         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9637         * modules/cosl (configure.ac): ... to here.
9638
9639 2011-05-21  Bruno Haible  <bruno@clisp.org>
9640
9641         sinl: Move AC_LIBOBJ invocations to module description.
9642         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9643         * modules/sinl (configure.ac): ... to here.
9644
9645 2011-05-21  Bruno Haible  <bruno@clisp.org>
9646
9647         logl: Move AC_LIBOBJ invocations to module description.
9648         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9649         * modules/logl (configure.ac): ... to here.
9650
9651 2011-05-21  Bruno Haible  <bruno@clisp.org>
9652
9653         expl: Move AC_LIBOBJ invocations to module description.
9654         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9655         * modules/expl (configure.ac): ... to here.
9656
9657 2011-05-21  Bruno Haible  <bruno@clisp.org>
9658
9659         roundl: Move AC_LIBOBJ invocations to module description.
9660         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9661         * modules/roundl (configure.ac): ... to here.
9662
9663 2011-05-21  Bruno Haible  <bruno@clisp.org>
9664
9665         round: Move AC_LIBOBJ invocations to module description.
9666         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9667         * modules/round (configure.ac): ... to here.
9668
9669 2011-05-21  Bruno Haible  <bruno@clisp.org>
9670
9671         roundf: Move AC_LIBOBJ invocations to module description.
9672         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9673         * modules/roundf (configure.ac): ... to here.
9674
9675 2011-05-21  Bruno Haible  <bruno@clisp.org>
9676
9677         truncl: Move AC_LIBOBJ invocations to module description.
9678         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9679         * modules/truncl (configure.ac): ... to here.
9680
9681 2011-05-21  Bruno Haible  <bruno@clisp.org>
9682
9683         trunc: Move AC_LIBOBJ invocations to module description.
9684         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9685         * modules/trunc (configure.ac): ... to here.
9686
9687 2011-05-21  Bruno Haible  <bruno@clisp.org>
9688
9689         truncf: Move AC_LIBOBJ invocations to module description.
9690         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9691         * modules/truncf (configure.ac): ... to here.
9692
9693 2011-05-21  Bruno Haible  <bruno@clisp.org>
9694
9695         ceill: Move AC_LIBOBJ invocations to module description.
9696         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9697         * modules/ceill (configure.ac): ... to here.
9698
9699 2011-05-21  Bruno Haible  <bruno@clisp.org>
9700
9701         ceil: Move AC_LIBOBJ invocations to module description.
9702         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9703         * modules/ceil (configure.ac): ... to here.
9704
9705 2011-05-21  Bruno Haible  <bruno@clisp.org>
9706
9707         ceilf: Move AC_LIBOBJ invocations to module description.
9708         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9709         * modules/ceilf (configure.ac): ... to here.
9710
9711 2011-05-21  Bruno Haible  <bruno@clisp.org>
9712
9713         floorl: Respect rules for use of AC_LIBOBJ.
9714         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9715         * modules/floorl (configure.ac): ... to here.
9716
9717 2011-05-21  Bruno Haible  <bruno@clisp.org>
9718
9719         floor: Respect rules for use of AC_LIBOBJ.
9720         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9721         * modules/floor (configure.ac): ... to here.
9722
9723 2011-05-21  Bruno Haible  <bruno@clisp.org>
9724
9725         floorf: Move AC_LIBOBJ invocations to module description.
9726         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9727         * modules/floorf (configure.ac): ... to here.
9728
9729 2011-05-20  Bruno Haible  <bruno@clisp.org>
9730
9731         sqrtl: Respect rules for use of AC_LIBOBJ.
9732         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9733         * modules/sqrtl (configure.ac): ... to here.
9734
9735 2011-05-20  Bruno Haible  <bruno@clisp.org>
9736
9737         ldexpl: Respect rules for use of AC_LIBOBJ.
9738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9739         * modules/ldexpl (configure.ac): ... to here.
9740
9741 2011-05-20  Bruno Haible  <bruno@clisp.org>
9742
9743         frexpl*: Respect rules for use of AC_LIBOBJ.
9744         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9745         invocation from here...
9746         * modules/frexpl (configure.ac): ... to here.
9747         * modules/frexpl-nolibm (configure.ac): ... and here.
9748
9749 2011-05-20  Bruno Haible  <bruno@clisp.org>
9750
9751         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9752         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9753         invocation from here...
9754         * modules/frexp (configure.ac): ... to here.
9755         * modules/frexp-nolibm (configure.ac): ... and here.
9756
9757 2011-05-20  Bruno Haible  <bruno@clisp.org>
9758
9759         isnan: Respect rules for use of AC_LIBOBJ.
9760         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9761         invocations here.
9762         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9763         REPLACE_ISNAN.
9764         * modules/isnand (configure.ac): Likewise.
9765         * modules/isnanl (configure.ac): Likewise.
9766
9767 2011-05-20  Bruno Haible  <bruno@clisp.org>
9768
9769         isnanl*: Respect rules for use of AC_LIBOBJ.
9770         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9771         invocation from here...
9772         * modules/isnanl (configure.ac): ... to here.
9773         * modules/isnanl-nolibm (configure.ac): ... and here.
9774
9775 2011-05-20  Bruno Haible  <bruno@clisp.org>
9776
9777         isnand*: Move AC_LIBOBJ invocations to module description.
9778         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9779         invocation from here...
9780         * modules/isnand (configure.ac): ... to here.
9781         * modules/isnand-nolibm (configure.ac): ... and here.
9782
9783 2011-05-20  Bruno Haible  <bruno@clisp.org>
9784
9785         isnanf*: Move AC_LIBOBJ invocations to module description.
9786         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9787         invocation from here...
9788         * modules/isnanf (configure.ac): ... to here.
9789         * modules/isnanf-nolibm (configure.ac): ... and here.
9790
9791 2011-05-20  Bruno Haible  <bruno@clisp.org>
9792
9793         isnan*: Separate the AC_LIBOBJ invocations.
9794         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9795         AC_LIBOBJ invocation.
9796         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9797         here.
9798         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9799         AC_LIBOBJ invocation.
9800         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9801         here.
9802         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9803         AC_LIBOBJ invocation.
9804         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9805         here.
9806         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9807
9808 2011-05-08  Bruno Haible  <bruno@clisp.org>
9809
9810         isinf: Move AC_LIBOBJ invocations to module description.
9811         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9812         * modules/isinf (configure.ac): ... to here.
9813
9814 2011-05-08  Bruno Haible  <bruno@clisp.org>
9815
9816         isfinite: Move AC_LIBOBJ invocations to module description.
9817         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9818         * modules/isfinite (configure.ac): ... to here.
9819
9820 2011-05-08  Bruno Haible  <bruno@clisp.org>
9821
9822         isblank: Move AC_LIBOBJ invocations to module description.
9823         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9824         here...
9825         * modules/isblank (configure.ac): ... to here.
9826
9827 2011-05-08  Bruno Haible  <bruno@clisp.org>
9828
9829         isapipe: Move AC_LIBOBJ invocations to module description.
9830         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9831         gl_PREREQ_ISAPIPE invocations from here...
9832         * modules/isapipe (configure.ac): ... to here.
9833         (Depends-on): Update condition.
9834
9835 2011-05-08  Bruno Haible  <bruno@clisp.org>
9836
9837         ioctl: Move AC_LIBOBJ invocations to module description.
9838         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9839         invocations from here...
9840         * modules/ioctl (configure.ac): ... to here.
9841         (Depends-on): Update condition.
9842
9843 2011-05-08  Bruno Haible  <bruno@clisp.org>
9844
9845         imaxdiv: Move AC_LIBOBJ invocations to module description.
9846         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9847         invocations from here...
9848         * modules/imaxdiv (configure.ac): ... to here.
9849
9850 2011-05-08  Bruno Haible  <bruno@clisp.org>
9851
9852         imaxabs: Move AC_LIBOBJ invocations to module description.
9853         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9854         invocations from here...
9855         * modules/imaxabs (configure.ac): ... to here.
9856
9857 2011-05-08  Bruno Haible  <bruno@clisp.org>
9858
9859         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9861         AC_LIBOBJ invocations from here...
9862         * modules/getaddrinfo (configure.ac): ... to here.
9863         (Depends-on): Add conditions.
9864
9865 2011-05-08  Bruno Haible  <bruno@clisp.org>
9866
9867         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9868         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9869         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9870         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9871         (gl_PREREQ_INET_PTON): ... from here.
9872         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9873         gl_PREREQ_INET_PTON here.
9874         (Depends-on): Update condition.
9875
9876 2011-05-08  Bruno Haible  <bruno@clisp.org>
9877
9878         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9879         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9880         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9881         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9882         (gl_PREREQ_INET_NTOP): ... from here.
9883         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9884         gl_PREREQ_INET_NTOP here.
9885         (Depends-on): Update condition.
9886
9887 2011-05-08  Bruno Haible  <bruno@clisp.org>
9888
9889         iconv_open: Move AC_LIBOBJ invocations to module description.
9890         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9891         AC_LIBOBJ invocations from here...
9892         * modules/iconv_open (configure.ac): ... to here.
9893
9894 2011-05-08  Bruno Haible  <bruno@clisp.org>
9895
9896         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9897         If module 'iconv_open' is among the main modules and module
9898         'iconv_open-utf' is among the tests dependencies, then
9899         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9900         return the special iconv_t values. Therefore iconv() and iconv_close()
9901         must support these special iconv_t values, already in lib, not only in
9902         tests.
9903         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9904         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9905         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9906         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9907         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9908         (Depends-on): Add the dependencies of iconv_open-utf.
9909         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9910         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9911         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9912
9913 2011-05-08  Bruno Haible  <bruno@clisp.org>
9914
9915         group-member: Move AC_LIBOBJ invocations to module description.
9916         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9917         gl_PREREQ_GROUP_MEMBER invocations from here...
9918         * modules/group-member (configure.ac): ... to here.
9919
9920 2011-05-08  Bruno Haible  <bruno@clisp.org>
9921
9922         grantpt: Move AC_LIBOBJ invocations to module description.
9923         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9924         invocations from here...
9925         * modules/grantpt (configure.ac): ... to here.
9926
9927 2011-05-08  Bruno Haible  <bruno@clisp.org>
9928
9929         glob: Move AC_LIBOBJ invocations to module description.
9930         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9931         from here...
9932         * modules/glob (configure.ac): ... to here.
9933
9934 2011-05-08  Bruno Haible  <bruno@clisp.org>
9935
9936         getusershell: Move AC_LIBOBJ invocations to module description.
9937         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9938         Move AC_LIBOBJ invocation from here...
9939         * modules/getusershell (configure.ac): ... to here.
9940         (Depends-on): Update condition.
9941
9942 2011-05-08  Bruno Haible  <bruno@clisp.org>
9943
9944         gettimeofday: Move AC_LIBOBJ invocations to module description.
9945         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9946         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9947         gl_PREREQ_GETTIMEOFDAY invocations from here...
9948         * modules/gettimeofday (configure.ac): ... to here.
9949
9950 2011-05-08  Bruno Haible  <bruno@clisp.org>
9951
9952         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9953         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9954         just gl_FUNC_TZSET.
9955         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9956         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9957         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9958         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9959
9960 2011-05-08  Bruno Haible  <bruno@clisp.org>
9961
9962         getsubopt: Move AC_LIBOBJ invocations to module description.
9963         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9964         gl_PREREQ_GETSUBOPT invocations from here...
9965         * modules/getsubopt (configure.ac): ... to here.
9966
9967 2011-05-08  Bruno Haible  <bruno@clisp.org>
9968
9969         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9970         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9971         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9972         * modules/getpass-gnu (configure.ac): ... to here.
9973
9974 2011-05-08  Bruno Haible  <bruno@clisp.org>
9975
9976         getpass: Move AC_LIBOBJ invocations to module description.
9977         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9978         gl_PREREQ_GETPASS invocations from here...
9979         * modules/getpass (configure.ac): ... to here.
9980
9981 2011-05-08  Bruno Haible  <bruno@clisp.org>
9982
9983         getpagesize: Move AC_LIBOBJ invocations to module description.
9984         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9985         from here...
9986         * modules/getpagesize (configure.ac): ... to here.
9987
9988 2011-05-08  Bruno Haible  <bruno@clisp.org>
9989
9990         getopt: Move AC_LIBOBJ invocations to module description.
9991         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9992         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9993         invocations from here...
9994         * modules/getopt-gnu (configure.ac): ... to here.
9995         * modules/getopt-posix (configure.ac): ... and here.
9996         (Depends-on): Update condition.
9997
9998 2011-05-08  Bruno Haible  <bruno@clisp.org>
9999
10000         getopt, argp: Respect rules for use of AC_LIBOBJ.
10001         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10002         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10003         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10004         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10005
10006 2011-05-08  Bruno Haible  <bruno@clisp.org>
10007
10008         getlogin_r: Move AC_LIBOBJ invocations to module description.
10009         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10010         gl_PREREQ_GETLOGIN_R invocations from here...
10011         * modules/getlogin_r (configure.ac): ... to here.
10012
10013 2011-05-08  Bruno Haible  <bruno@clisp.org>
10014
10015         getlogin: Move AC_LIBOBJ invocations to module description.
10016         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10017         here...
10018         * modules/getlogin (configure.ac): ... to here.
10019
10020 2011-05-08  Bruno Haible  <bruno@clisp.org>
10021
10022         getloadavg: Move AC_LIBOBJ invocations to module description.
10023         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10024         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10025         * modules/getloadavg (configure.ac): ... to here.
10026
10027 2011-05-08  Bruno Haible  <bruno@clisp.org>
10028
10029         gethrxtime: Move AC_LIBOBJ invocations to module description.
10030         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10031         LIB_GETHRXTIME from here...
10032         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10033         invocations from here...
10034         * modules/gethrxtime (configure.ac): ... to here.
10035
10036 2011-05-08  Bruno Haible  <bruno@clisp.org>
10037
10038         gethostname: Move AC_LIBOBJ invocations to module description.
10039         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10040         gl_PREREQ_GETHOSTNAME invocations from here...
10041         * modules/gethostname (configure.ac): ... to here.
10042
10043 2011-05-08  Bruno Haible  <bruno@clisp.org>
10044
10045         getgroups: Move AC_LIBOBJ invocations to module description.
10046         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10047         here...
10048         * modules/getgroups (configure.ac): ... to here.
10049
10050 2011-05-08  Bruno Haible  <bruno@clisp.org>
10051
10052         getdtablesize: Move AC_LIBOBJ invocations to module description.
10053         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10054         invocation from here...
10055         * modules/getdtablesize (configure.ac): ... to here.
10056
10057 2011-05-08  Bruno Haible  <bruno@clisp.org>
10058
10059         getdomainname: Move AC_LIBOBJ invocations to module description.
10060         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10061         gl_PREREQ_GETDOMAINNAME invocations from here...
10062         * modules/getdomainname (configure.ac): ... to here.
10063
10064 2011-05-08  Bruno Haible  <bruno@clisp.org>
10065
10066         getline: Move AC_LIBOBJ invocations to module description.
10067         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10068         invocations from here...
10069         * modules/getline (configure.ac): ... to here.
10070
10071 2011-05-08  Bruno Haible  <bruno@clisp.org>
10072
10073         getline: Simplify.
10074         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10075         It's already handled through the module dependency.
10076
10077 2011-05-08  Bruno Haible  <bruno@clisp.org>
10078
10079         getdelim: Move AC_LIBOBJ invocations to module description.
10080         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10081         and gl_PREREQ_GETDELIM invocations from here...
10082         * modules/getdelim (configure.ac): ... to here.
10083         (Depends-on): Fix condition.
10084
10085 2011-05-08  Bruno Haible  <bruno@clisp.org>
10086
10087         getcwd: Move AC_LIBOBJ invocations to module description.
10088         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10089         invocations from here...
10090         * modules/getcwd (configure.ac): ... to here.
10091
10092 2011-05-08  Bruno Haible  <bruno@clisp.org>
10093
10094         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10095         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10096         here...
10097         * modules/getcwd-lgpl (configure.ac): ... to here.
10098
10099 2011-05-07  Bruno Haible  <bruno@clisp.org>
10100
10101         crypto/gc: Move AC_LIBOBJ invocations to module description.
10102         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10103         * modules/crypto/gc (configure.ac): ... to here.
10104
10105 2011-05-07  Bruno Haible  <bruno@clisp.org>
10106
10107         fwriting: Move AC_LIBOBJ invocations to module description.
10108         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10109         here...
10110         * modules/fwriting (configure.ac): ... to here.
10111
10112 2011-05-07  Bruno Haible  <bruno@clisp.org>
10113
10114         fwritable: Move AC_LIBOBJ invocations to module description.
10115         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10116         here...
10117         * modules/fwritable (configure.ac): ... to here.
10118
10119 2011-05-07  Bruno Haible  <bruno@clisp.org>
10120
10121         futimens: Move AC_LIBOBJ invocations to module description.
10122         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10123         here...
10124         * modules/futimens (configure.ac): ... to here.
10125
10126 2011-05-07  Bruno Haible  <bruno@clisp.org>
10127
10128         ftruncate: Move AC_LIBOBJ invocations to module description.
10129         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10130         gl_PREREQ_FTRUNCATE invocations from here...
10131         * modules/ftruncate (configure.ac): ... to here.
10132
10133 2011-05-07  Bruno Haible  <bruno@clisp.org>
10134
10135         fsync: Move AC_LIBOBJ invocations to module description.
10136         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10137         invocations from here...
10138         * modules/fsync (configure.ac): ... to here.
10139
10140 2011-05-07  Bruno Haible  <bruno@clisp.org>
10141
10142         fsusage: Move AC_LIBOBJ invocations to module description.
10143         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10144         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10145         * modules/fsusage (configure.ac): ... to here.
10146
10147 2011-05-07  Bruno Haible  <bruno@clisp.org>
10148
10149         freopen: Move AC_LIBOBJ invocations to module description.
10150         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10151         invocations from here...
10152         * modules/freopen (configure.ac): ... to here.
10153
10154 2011-05-07  Bruno Haible  <bruno@clisp.org>
10155
10156         free: Move AC_LIBOBJ invocations to module description.
10157         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10158         invocations from here...
10159         * modules/free (configure.ac): ... to here.
10160
10161 2011-05-07  Bruno Haible  <bruno@clisp.org>
10162
10163         freadable: Move AC_LIBOBJ invocations to module description.
10164         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10165         here...
10166         * modules/freadable (configure.ac): ... to here.
10167
10168 2011-05-07  Bruno Haible  <bruno@clisp.org>
10169
10170         fpurge: Move AC_LIBOBJ invocations to module description.
10171         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10172         invocations from here...
10173         * modules/fpurge (configure.ac): ... to here.
10174
10175 2011-05-07  Bruno Haible  <bruno@clisp.org>
10176
10177         fpending: Move AC_LIBOBJ invocations to module description.
10178         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10179         gl_FUNC_FPENDING.
10180         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10181         invocations from here...
10182         * modules/fpending (configure.ac): ... to here.
10183
10184 2011-05-07  Bruno Haible  <bruno@clisp.org>
10185
10186         fopen: Move AC_LIBOBJ invocations to module description.
10187         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10188         invocations from here...
10189         * modules/fopen (configure.ac): ... to here.
10190
10191 2011-05-07  Bruno Haible  <bruno@clisp.org>
10192
10193         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10194         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10195         gl_FUNC_FNMATCH_POSIX.
10196         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10197         invocations from here...
10198         * modules/fnmatch (configure.ac): ... to here.
10199         * modules/fnmatch-gnu (configure.ac): ... and here.
10200
10201 2011-05-07  Bruno Haible  <bruno@clisp.org>
10202
10203         flock: Move AC_LIBOBJ invocations to module description.
10204         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10205         invocations from here...
10206         * modules/flock (configure.ac): ... to here.
10207
10208 2011-05-07  Bruno Haible  <bruno@clisp.org>
10209
10210         fileblocks: Move AC_LIBOBJ invocations to module description.
10211         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10212         gl_PREREQ_FILEBLOCKS invocations from here...
10213         * modules/fileblocks (configure.ac): ... to here.
10214
10215 2011-05-06  Bruno Haible  <bruno@clisp.org>
10216
10217         fflush: Move AC_LIBOBJ invocations to module description.
10218         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10219         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10220         invocations from here...
10221         * modules/fflush (configure.ac): ... to here.
10222
10223 2011-05-06  Bruno Haible  <bruno@clisp.org>
10224
10225         fdopendir: Move AC_LIBOBJ invocations to module description.
10226         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10227         here...
10228         * modules/fdopendir (configure.ac): ... to here.
10229         (Depends-on): Improve conditions.
10230
10231 2011-05-06  Bruno Haible  <bruno@clisp.org>
10232
10233         _Exit: Move AC_LIBOBJ invocations to module description.
10234         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10235         invocations from here...
10236         * modules/_Exit (configure.ac): ... to here.
10237
10238 2011-05-21  Bruno Haible  <bruno@clisp.org>
10239
10240         euidaccess: Respect rules for use of AC_LIBOBJ.
10241         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10243         from here...
10244         * modules/euidaccess (configure.ac): ... to here.
10245
10246 2011-05-06  Bruno Haible  <bruno@clisp.org>
10247
10248         error: Move AC_LIBOBJ invocations to module description.
10249         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10250         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10251         invocations from here...
10252         * modules/error (configure.ac): ... to here.
10253
10254 2011-05-06  Bruno Haible  <bruno@clisp.org>
10255
10256         duplocale: Move AC_LIBOBJ invocations to module description.
10257         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10258         gl_PREREQ_DUPLOCALE invocations from here...
10259         * modules/duplocale (configure.ac): ... to here.
10260
10261 2011-05-05  Bruno Haible  <bruno@clisp.org>
10262
10263         dirfd: Move AC_LIBOBJ invocations to module description.
10264         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10265         gl_FUNC_DIRFD.
10266         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10267         here...
10268         * modules/dirfd (configure.ac): ... to here.
10269         (Depends-on): Fix condition.
10270
10271 2011-05-05  Bruno Haible  <bruno@clisp.org>
10272
10273         chown: Respect rules for use of AC_LIBOBJ.
10274         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10275         * modules/chown (configure.ac): ... to here.
10276
10277 2011-05-05  Bruno Haible  <bruno@clisp.org>
10278
10279         chdir-long: Move AC_LIBOBJ invocations to module description.
10280         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10281         gl_PREREQ_CHDIR_LONG invocations from here...
10282         * modules/chdir-long (configure.ac): ... to here.
10283
10284 2011-05-05  Bruno Haible  <bruno@clisp.org>
10285
10286         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10287         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10288         from here...
10289         * modules/canonicalize-lgpl (configure.ac): ... to here.
10290
10291 2011-05-05  Bruno Haible  <bruno@clisp.org>
10292
10293         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10294         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10295         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10296         REPLACE_CALLOC.
10297         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10298         * modules/calloc-gnu (configure.ac): Likewise.
10299
10300 2011-05-05  Bruno Haible  <bruno@clisp.org>
10301
10302         btowc: Move AC_LIBOBJ invocations to module description.
10303         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10304         invocations from here...
10305         * modules/btowc (configure.ac): ... to here.
10306
10307 2011-05-21  Bruno Haible  <bruno@clisp.org>
10308
10309         atexit: Move AC_LIBOBJ invocations to module description.
10310         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10311         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10312         here...
10313         * modules/atexit (configure.ac): ... to here.
10314
10315 2011-05-05  Bruno Haible  <bruno@clisp.org>
10316
10317         atoll: Move AC_LIBOBJ invocations to module description.
10318         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10319         invocations from here...
10320         * modules/atoll (configure.ac): ... to here.
10321
10322 2011-05-05  Bruno Haible  <bruno@clisp.org>
10323
10324         argz: Move AC_LIBOBJ invocations to module description.
10325         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10326         * modules/argz (configure.ac): ... to here.
10327
10328 2011-05-05  Bruno Haible  <bruno@clisp.org>
10329
10330         alphasort: Move AC_LIBOBJ invocations to module description.
10331         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10332         gl_PREREQ_ALPHASORT invocations from here...
10333         * modules/alphasort (configure.ac): ... to here.
10334
10335 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10336
10337         verify: new macro verify_expr; verify_true deprecated
10338         * NEWS: Mention this.
10339         * doc/verify.texi (Compile-time Assertions): Document this.
10340         * lib/verify.h (verify_true): Deprecate.
10341         (verify_expr): New macro.
10342         * tests/test-verify.c (function): Test verify_expr.
10343
10344 2011-06-14  Jim Meyering  <meyering@redhat.com>
10345
10346         init.sh: give more portable redirection-related advice in a comment
10347         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10348         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10349         for lots of discussion.  Stefano Lattarini suggested the solution
10350         of putting "9>&2" after the command.  Reported by Bruno Haible.
10351
10352 2011-06-13  Bruno Haible  <bruno@clisp.org>
10353
10354         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10355         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10356         'none'.
10357
10358 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10359
10360         ftoastr: use strtof only if HAVE_STRTOF
10361         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10363         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10364         * modules/ftoastr (configure.ac): Check for strtof.
10365
10366 2011-06-13  Bruno Haible  <bruno@clisp.org>
10367
10368         gnulib-tool: Addendum to 2011-06-08 commit.
10369         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10370         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10371
10372 2011-06-13  Bruno Haible  <bruno@clisp.org>
10373
10374         fseeko: Provide a non-inline replacement of fseek().
10375         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10376         * modules/fseeko (Depends-on): Add fseek.
10377         * modules/fseek (License): Change to LGPLv2+.
10378
10379 2011-06-13  Bruno Haible  <bruno@clisp.org>
10380
10381         ftello: Provide a non-inline replacement of ftell().
10382         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10383         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10384         not have ftello() (such as on mingw).
10385         * modules/ftello (Depends-on): Add ftell.
10386         * modules/ftell (License): Change to LGPLv2+.
10387
10388 2011-05-07  Bruno Haible  <bruno@clisp.org>
10389
10390         ftell: Move AC_LIBOBJ invocations to module description.
10391         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10392         * modules/ftell (configure.ac): ... to here.
10393
10394 2011-05-07  Bruno Haible  <bruno@clisp.org>
10395
10396         ftello: Respect rules for use of AC_LIBOBJ.
10397         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10398         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10399         here...
10400         * modules/ftello (configure.ac): ... to here.
10401
10402 2011-05-07  Bruno Haible  <bruno@clisp.org>
10403
10404         fseeko: Simplify.
10405         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10406         (gl_FUNC_FSEEKO): Inline it here.
10407
10408 2011-05-07  Bruno Haible  <bruno@clisp.org>
10409
10410         fseek: Move AC_LIBOBJ invocations to module description.
10411         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10412         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10413         * modules/fseek (configure.ac): ... to here.
10414
10415 2011-05-07  Bruno Haible  <bruno@clisp.org>
10416
10417         fseek: Respect rules for use of AC_LIBOBJ.
10418         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10419         here...
10420         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10421
10422 2011-05-07  Bruno Haible  <bruno@clisp.org>
10423
10424         fseeko: Respect rules for use of AC_LIBOBJ.
10425         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10426         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10427         here...
10428         * modules/fseeko (configure.ac): ... to here.
10429
10430 2011-06-13  Bruno Haible  <bruno@clisp.org>
10431
10432         gnulib-tool: Allow comments in the 'Depends-on' section.
10433         * doc/gnulib.texi (Module description): Mention comment syntax in the
10434         Depends-on section.
10435         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10436
10437 2011-06-13  Bruno Haible  <bruno@clisp.org>
10438
10439         file-set.h: guard __attibute__ use, now that it's not always defined
10440         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10441         versions that support it.  This fixes a coreutils build failure with
10442         the vendor cc on HP-UX 11.31.
10443
10444 2011-06-12  Bruno Haible  <bruno@clisp.org>
10445
10446         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10447         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10448         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10449         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10450         (acl, aclsort): New declarations.
10451         (aclv_nontrivial): New declaration.
10452         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10453         (file_has_acl): Read also the second kind of HP-UX ACLs.
10454         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10455         kind of HP-UX ACLs if the first kind fails.
10456         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10457         second kind of HP-UX ACLs.
10458         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10459         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10460         agree.
10461         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10462         hpuxjfs.
10463         Handle hpuxjfs.
10464         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10465         hpuxjfs.
10466         Handle hpuxjfs.
10467         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10468         (func_test_same_acls): Use both lsacl and getacl.
10469         Handle hpuxjfs.
10470         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10471         (func_test_same_acls): Use both lsacl and getacl.
10472         Handle hpuxjfs.
10473
10474 2011-06-12  Bruno Haible  <bruno@clisp.org>
10475
10476         acl: Complete the 2010-08-10 fix.
10477         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10478         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10479         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10480         explicitly.
10481         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10482         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10483
10484 2011-06-12  Bruno Haible  <bruno@clisp.org>
10485
10486         spawn-pipe tests: Comments.
10487         * tests/test-spawn-pipe-child.c (main): Update comment.
10488         Reported by James Youngman <jay@gnu.org>.
10489
10490 2011-06-11  James Youngman  <jay@gnu.org>
10491
10492         New module 'stat-size'.
10493         * modules/stat-size: New module.  Provides macros for accessing
10494         file size information in instances of struct stat.  Depends on the
10495         fileblocks module because it calls st_blocks.
10496         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10497         * doc/gnulib.texi: Include stat-size.texi.
10498         * doc/stat-size.texi: Documentation for this module.
10499         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10500         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10501         AC_STRUCT_ST_BLOCKS.
10502
10503 2011-06-09  Bruno Haible  <bruno@clisp.org>
10504
10505         thread: Support pthreads-win32.
10506         * lib/glthread/thread.h (gl_thread_self): Define differently on
10507         pthreads-win32.
10508         (gl_null_thread): New declaration.
10509         (gl_thread_self_pointer): New macro.
10510         * lib/glthread/thread.c (gl_null_thread): New constant.
10511         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10512         gl_thread_self.
10513         * tests/test-tls.c: Likewise.
10514         Suggested by Paul Eggert. Reported by Eric Blake.
10515
10516 2011-06-09  Bruno Haible  <bruno@clisp.org>
10517
10518         thread: Fix confusion between NULL and 0.
10519         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10520         Reported by Paul Eggert.
10521
10522 2011-06-09  Bruno Haible  <bruno@clisp.org>
10523
10524         spawn-pipe tests: Avoid test failure on HP-UX 11.
10525         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10526         is closed.
10527
10528 2011-06-09  Bruno Haible  <bruno@clisp.org>
10529
10530         acl tests: Fix compilation error on HP-UX 11.
10531         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10532
10533 2011-06-09  Bruno Haible  <bruno@clisp.org>
10534
10535         rmdir: Avoid test failure on HP-UX 10.20.
10536         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10537         EEXIST.
10538
10539 2011-06-08  Eric Blake  <eblake@redhat.com>
10540
10541         perror: fix test on mingw
10542         * modules/perror-tests (Depends-on): Add dup2.
10543
10544         strerror_r-posix: fix on MacOS
10545         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10546         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10547         logic bug.
10548         * lib/strerror_r.c (strerror_r): Fix the bug.
10549         * lib/strerror.c (strerror): Likewise.
10550         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10551         problem.
10552         * doc/posix-functions/strerror.texi (strerror): Likewise.
10553         * doc/posix-functions/perror.texi (perror): Likewise.
10554         * tests/test-strerror.c (main): Enhance test.
10555         * tests/test-strerror_r.c (main): Likewise.
10556
10557 2011-06-08  Bruno Haible  <bruno@clisp.org>
10558
10559         gnulib-tool: Better isolation between different gnulib-tool invocations.
10560         * gnulib-tool: New option --witness-c-macro.
10561         (witness_c_macro): New variable.
10562         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10563         AM_CPPFLAGS define it as a C macro.
10564         (func_emit_tests_Makefile_am): Likewise.
10565         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10566         read it from there.
10567         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10568         m4_define, not AC_DEFUN.
10569         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10570         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10571         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10572         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10573         s|...|...|, to substitute the values of the GNULIB_* module indicator
10574         variables.
10575         * modules/dirent (Makefile.am): Likewise.
10576         * modules/fcntl-h (Makefile.am): Likewise.
10577         * modules/iconv-h (Makefile.am): Likewise.
10578         * modules/langinfo (Makefile.am): Likewise.
10579         * modules/locale (Makefile.am): Likewise.
10580         * modules/math (Makefile.am): Likewise.
10581         * modules/netdb (Makefile.am): Likewise.
10582         * modules/poll-h (Makefile.am): Likewise.
10583         * modules/pty (Makefile.am): Likewise.
10584         * modules/search (Makefile.am): Likewise.
10585         * modules/signal (Makefile.am): Likewise.
10586         * modules/spawn (Makefile.am): Likewise.
10587         * modules/stdio (Makefile.am): Likewise.
10588         * modules/stdlib (Makefile.am): Likewise.
10589         * modules/string (Makefile.am): Likewise.
10590         * modules/sys_ioctl (Makefile.am): Likewise.
10591         * modules/sys_select (Makefile.am): Likewise.
10592         * modules/sys_socket (Makefile.am): Likewise.
10593         * modules/sys_stat (Makefile.am): Likewise.
10594         * modules/sys_times (Makefile.am): Likewise.
10595         * modules/sys_utsname (Makefile.am): Likewise.
10596         * modules/sys_wait (Makefile.am): Likewise.
10597         * modules/termios (Makefile.am): Likewise.
10598         * modules/time (Makefile.am): Likewise.
10599         * modules/unistd (Makefile.am): Likewise.
10600         * modules/wchar (Makefile.am): Likewise.
10601
10602 2011-06-08  Eric Blake  <eblake@redhat.com>
10603
10604         strerror: simplify replacement
10605         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10606         * modules/strerror (configure.ac): No prereqs needed here...
10607         * modules/strerror-override (configure.ac): ...but this needs it.
10608         (Files): Add file for needed prereq macro.
10609
10610 2011-06-08  Bruno Haible  <bruno@clisp.org>
10611
10612         strerror_r-posix: Tweaks.
10613         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10614         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10615         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10616         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10617         (gl_FUNC_STRERROR_R): ... to here.
10618         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10619
10620 2011-06-07  Eric Blake  <eblake@redhat.com>
10621
10622         perror: document fixed bugs
10623         * doc/posix-functions/perror.texi (perror): Document recent
10624         patches.
10625
10626 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10627
10628         stat-time: get_stat_birthtime failure is better-defined
10629         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10630         return a timestamp whose tv_sec and tv_nsec values are both -1.
10631         Previously, the spec said only that the tv_nsec value was negative.
10632         This upward-compatible change simplifies GNU tar a bit.
10633
10634 2011-06-07  Eric Blake  <eblake@redhat.com>
10635
10636         strerror_r-posix: work around cygwin 1.7.9
10637         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10638         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10639         bug without replacing strerror_r.
10640         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10641         strerror_r is buggy, but without requiring strerror_r compilation.
10642         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10643
10644         test-perror: relax test to ignore cygwin bug
10645         * tests/test-perror2.c (main): Relax test on requiring detection
10646         of stream errors, and use unbuffered stream.
10647         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10648         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10649         * doc/posix-functions/fputc.texi (fputc): Likewise.
10650         * doc/posix-functions/fputs.texi (fputs): Likewise.
10651         * doc/posix-functions/fputws.texi (fputws): Likewise.
10652         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10653         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10654         * doc/posix-functions/getopt.texi (getopt): Likewise.
10655         * doc/posix-functions/perror.texi (perror): Likewise.
10656         * doc/posix-functions/printf.texi (printf): Likewise.
10657         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10658         * doc/posix-functions/psignal.texi (psignal): Likewise.
10659         * doc/posix-functions/putc.texi (putc): Likewise.
10660         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10661         Likewise.
10662         * doc/posix-functions/putchar.texi (putchar): Likewise.
10663         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10664         Likewise.
10665         * doc/posix-functions/puts.texi (puts): Likewise.
10666         * doc/posix-functions/putwc.texi (putwc): Likewise.
10667         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10668         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10669         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10670         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10671         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10672         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10673         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10674         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10675
10676 2011-05-22  Bruno Haible  <bruno@clisp.org>
10677
10678         strerror: Move AC_LIBOBJ invocations to module description.
10679         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10680         gl_PREREQ_STRERROR invocations from here...
10681         * modules/strerror (configure.ac): ... to here.
10682
10683 2011-05-21  Bruno Haible  <bruno@clisp.org>
10684
10685         perror: Use common idiom.
10686         * modules/perror (configure.ac): Reorder statements.
10687
10688 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10689
10690         tests: fix usage message in 'mktempd_'
10691         * tests/init.sh (mktempd_): In the usage message, use literal
10692         'mktempd_', not '$ME' (which is even undefined), as the name of
10693         the subroutine.
10694
10695 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10696
10697         tests init: new function 'fatal_', for hard errors
10698         Before this patch, the only way offered by tests/init.sh to
10699         properly signal a hard error was the `framework_failure_'
10700         function.  But the error message issued by that function,
10701         as its name would suggest, refers to a set-up failure in the
10702         testsuite, while hard errors can obviously also be due to
10703         other reasons.  The best way to fix this inconsistency is to
10704         introduce a new function with a more general error message.
10705         * tests/init.sh (fatal_): New function.
10706
10707 2011-06-06  Eric Blake  <eblake@redhat.com>
10708
10709         canonicalize-lgpl: use common idiom
10710         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10711         over newer POSIX -Rf.
10712         Reported by Bruno Haible.
10713
10714         canonicalize-lgpl: work around AIX realpath bug
10715         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10716         * doc/posix-functions/realpath.texi (realpath): Document it.
10717         Reported by Bruno Haible.
10718
10719         strerror: work around FreeBSD bug
10720         * lib/strerror.c (strerror): Special case 0.
10721         Reported by Bruno Haible.
10722
10723         strerror-override: avoid bloating errno module
10724         * modules/errno (Files, configure.ac): Move replacement strings...
10725         * modules/strerror-override: ...to new module.
10726         * modules/strerror (Depends-on): Add strerror-override.
10727         * modules/strerror_r-posix (Depends-on): Likewise.
10728         * MODULES.html.sh: Document new module.
10729         Reported by Bruno Haible.
10730
10731 2011-06-06  Bruno Haible  <bruno@clisp.org>
10732
10733         spawn-pipe tests: Rename program.
10734         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10735         * tests/test-spawn-pipe-child.c: Update comment.
10736         * tests/test-spawn-pipe.sh: Update.
10737         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10738
10739         spawn-pipe tests: Link the child program only against libc.
10740         * tests/test-spawn-pipe-child.c: New file, extracted from
10741         tests/test-spawn-pipe.c.
10742         (main): Expect only one argument.
10743         (is_open): New function, copied from tests/test-pipe.c.
10744         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10745         (child_main): Remove function.
10746         (test_pipe): Pass only one argument to the child program.
10747         (main): Remove child process code. Expect the child program's name as
10748         first argument.
10749         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10750         argument.
10751         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10752         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10753         test-spawn-pipe-child against no libraries.
10754
10755 2011-06-06  Bruno Haible  <bruno@clisp.org>
10756
10757         careadlinkat: Avoid mismatch between ssize_t and int.
10758         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10759         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10760
10761 2011-06-06  Jim Meyering  <meyering@redhat.com>
10762
10763         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10764         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10765         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10766
10767 2011-06-05  Bruno Haible  <bruno@clisp.org>
10768
10769         ansi-c++-opt: Interoperability with libtool.
10770         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10771         set the variable to "no", not to ":".
10772         * NEWS: Mention the change.
10773
10774 2011-06-05  Bruno Haible  <bruno@clisp.org>
10775
10776         acl: Fix test failure on AIX 7.
10777         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10778         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10779
10780 2011-06-05  Bruno Haible  <bruno@clisp.org>
10781
10782         pipe-filter-ii: Fix test failure on AIX and IRIX.
10783         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10784         with EAGAIN, retry with a smaller buffer size.
10785
10786 2011-06-05  Bruno Haible  <bruno@clisp.org>
10787
10788         localename: Fix link dependencies.
10789         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10790         * modules/localename-tests (Makefile.am): Link test-localename with
10791         $(LIBTHREAD).
10792
10793 2011-06-05  Bruno Haible  <bruno@clisp.org>
10794
10795         error: Avoid gcc warning.
10796         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10797
10798 2011-06-05  Bruno Haible  <bruno@clisp.org>
10799
10800         unsetenv: Avoid gcc warning.
10801         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10802
10803 2011-06-05  Bruno Haible  <bruno@clisp.org>
10804
10805         setenv: Avoid gcc warning.
10806         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10807
10808 2011-06-05  Bruno Haible  <bruno@clisp.org>
10809
10810         sys_select: Ensure memset is declared also on AIX 7.
10811         * lib/sys_select.in.h: Include <string.h> also on AIX.
10812         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10813         self-contained also on AIX 7.1.
10814
10815 2011-06-04  Jim Meyering  <meyering@redhat.com>
10816
10817         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10818         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10819         function name, "error".
10820         (_gl_translatable_diag_func_re): New configurable variable.
10821
10822 2011-06-04  Bruno Haible  <bruno@clisp.org>
10823
10824         getopt: Avoid gcc warning.
10825         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10826
10827 2011-06-04  Bruno Haible  <bruno@clisp.org>
10828
10829         strerror_r: Fix comments.
10830         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10831         commit.
10832
10833 2011-06-04  Bruno Haible  <bruno@clisp.org>
10834
10835         perror: Fix compilation error.
10836         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10837         Undefine fprintf, not sprintf.
10838         * modules/perror (Depends-on): Remove intprops, verify.
10839
10840 2011-06-04  Bruno Haible  <bruno@clisp.org>
10841
10842         setlocale: Enable replacement on Cygwin 1.5.
10843         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10844         Cygwin 1.5.x.
10845         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10846         LC_CTYPE category also exists on Cygwin 1.5.x.
10847
10848 2011-06-04  Bruno Haible  <bruno@clisp.org>
10849
10850         strerror-override: Don't disable symbol renamings.
10851         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10852         * lib/strerror-override.c: Include config.h.
10853         (strerror_override): Don't undefine.
10854
10855 2011-06-03  Bruno Haible  <bruno@clisp.org>
10856
10857         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10858         * lib/localename.h: Update copyright header.
10859         * lib/localename.c: Likewise.
10860         * lib/relocatable.h: Likewise.
10861         * lib/relocatable.c: Likewise.
10862
10863 2011-06-02  Bruno Haible  <bruno@clisp.org>
10864
10865         doc: Fix a module name.
10866         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10867
10868 2011-06-02  Bruno Haible  <bruno@clisp.org>
10869
10870         pipe2: Remove dependency on 'nonblocking' module.
10871         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10872         O_NONBLOCK is defined by gnulib.
10873         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10874         is zero.
10875         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10876         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10877         defined by gnulib.
10878         (get_nonblocking_flag): New function.
10879         (main): Test O_NONBLOCK flag only if it is nonzero.
10880         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10881
10882 2011-06-03  Jim Meyering  <meyering@redhat.com>
10883
10884         maint: three new prohibit-header-without-use rules
10885         Prohibit use of cloexec.h, posixver.h, same.h without use.
10886         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10887         (sc_prohibit_posixver_without_use): Likewise.
10888         (sc_prohibit_same_without_use): Likewise.
10889
10890 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10891
10892         allocator: 'die' routine is now given requested size
10893         * lib/allocator.h (struct allocator.die): New size arg.
10894         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10895         If the actual problem is an ssize_t limitation, not a size_t or
10896         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10897
10898 2011-06-01  Eric Blake  <eblake@redhat.com>
10899
10900         strerror: drop strerror_r dependency
10901         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10902         * lib/strerror-override.c (strerror_override): ...to new file.
10903         * lib/strerror-override.h: Add prototype.
10904         * lib/strerror-impl.h: Delete.
10905         * lib/strerror.c (strerror): New implementation.
10906         * modules/errno (Files): Add new files.
10907         (configure.ac): Compile new file as appropriate.
10908         * modules/strerror (Files): Drop unused file.
10909         (Depends-on): Drop strerror_r-posix.
10910         * MODULES.html.sh: Document strerror_r-posix.
10911         Requested by Sam Steingold.
10912
10913         perror: call strerror_r directly
10914         * modules/perror (Files): Drop strerror-impl.h.
10915         * lib/perror.c (perror): Use our own stack buffer, rather than
10916         calling a wrapper that uses static storage.
10917         * doc/posix-functions/perror.texi (perror): Document a limitation
10918         of our replacement.
10919
10920         strerror_r: fix includes for FreeBSD
10921         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10922         since we use abort on some platforms.
10923         Reported by Matthias Bolte.
10924
10925 2011-05-31  Bruno Haible  <bruno@clisp.org>
10926
10927         Fix link errors in tests: openat-die uses gettext-h.
10928         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10929         against $(LIBINTL).
10930         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10931         against $(LIBINTL).
10932         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10933         $(LIBINTL).
10934         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10935         against $(LIBINTL).
10936         * modules/linkat-tests (Makefile.am): Link test-linkat against
10937         $(LIBINTL).
10938         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10939         $(LIBINTL).
10940         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10941         against $(LIBINTL).
10942         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10943         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10944         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10945         $(LIBINTL).
10946         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10947         $(LIBINTL).
10948         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10949         $(LIBINTL).
10950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10951
10952 2011-05-31  Bruno Haible  <bruno@clisp.org>
10953
10954         Fix link errors in tests: wait-process uses gettext-h.
10955         * modules/nonblocking-pipe-tests (Makefile.am): Set
10956         test_nonblocking_pipe_main_LDADD.
10957         * modules/nonblocking-socket-tests (Makefile.am): Link
10958         test-nonblocking-socket-main against $(LIBINTL).
10959         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10960
10961 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10962
10963         assert-h: work around 'verify' incompatibility
10964         * lib/verify.h: Use @...@ directives, not ifdef.
10965         * modules/assert-h (assert.h): Implement the directives.
10966         (assert.h): Substitute the symbol-prefix more consistently.
10967
10968 2011-05-29  Jim Meyering  <meyering@redhat.com>
10969
10970         trim: remove three superfluous assignments
10971         * lib/trim.c (trim2): Remove three superfluous assignments
10972         and correct brace positioning.
10973
10974 2011-05-29  Bruno Haible  <bruno@clisp.org>
10975
10976         wctype-h: Avoid namespace pollution on Solaris 2.6.
10977         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10978         identifiers.
10979         * doc/posix-headers/wctype.texi: Mention the problem.
10980         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10981
10982 2011-05-28  Jim Meyering  <meyering@redhat.com>
10983
10984         parse-datetime.y: accommodate -Wstrict-overflow
10985         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10986         placate -Wstrict-overflow.
10987
10988         trim: avoid a warning from -O2 -Wstrict-overflow
10989         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10990
10991 2011-05-29  Bruno Haible  <bruno@clisp.org>
10992
10993         gnulib-tool: Fix bug in yesterday's commit.
10994         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10995         twice.
10996
10997 2011-05-29  Bruno Haible  <bruno@clisp.org>
10998
10999         Allow multiple gnulib generated include files to be combined.
11000         * gnulib-tool (func_compute_include_guard_prefix): New function.
11001         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11002         ${gl_include_guard_prefix} references.
11003         (func_import, func_create_testdir): Invoke
11004         func_compute_include_guard_prefix.
11005         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11006         * lib/ctype.in.h: Likewise.
11007         * lib/dirent.in.h: Likewise.
11008         * lib/errno.in.h: Likewise.
11009         * lib/fcntl.in.h: Likewise.
11010         * lib/float.in.h: Likewise.
11011         * lib/getopt.in.h: Likewise.
11012         * lib/iconv.in.h: Likewise.
11013         * lib/langinfo.in.h: Likewise.
11014         * lib/locale.in.h: Likewise.
11015         * lib/math.in.h: Likewise.
11016         * lib/netdb.in.h: Likewise.
11017         * lib/netinet_in.in.h: Likewise.
11018         * lib/poll.in.h: Likewise.
11019         * lib/pthread.in.h: Likewise.
11020         * lib/pty.in.h: Likewise.
11021         * lib/sched.in.h: Likewise.
11022         * lib/se-selinux.in.h: Likewise.
11023         * lib/search.in.h: Likewise.
11024         * lib/signal.in.h: Likewise.
11025         * lib/spawn.in.h: Likewise.
11026         * lib/stdarg.in.h: Likewise.
11027         * lib/stddef.in.h: Likewise.
11028         * lib/stdint.in.h: Likewise.
11029         * lib/stdio.in.h: Likewise.
11030         * lib/stdlib.in.h: Likewise.
11031         * lib/string.in.h: Likewise.
11032         * lib/strings.in.h: Likewise.
11033         * lib/sys_file.in.h: Likewise.
11034         * lib/sys_ioctl.in.h: Likewise.
11035         * lib/sys_select.in.h: Likewise.
11036         * lib/sys_socket.in.h: Likewise.
11037         * lib/sys_stat.in.h: Likewise.
11038         * lib/sys_time.in.h: Likewise.
11039         * lib/sys_times.in.h: Likewise.
11040         * lib/sys_uio.in.h: Likewise.
11041         * lib/sys_utsname.in.h: Likewise.
11042         * lib/sys_wait.in.h: Likewise.
11043         * lib/sysexits.in.h: Likewise.
11044         * lib/termios.in.h: Likewise.
11045         * lib/time.in.h: Likewise.
11046         * lib/unistd.in.h: Likewise.
11047         * lib/wchar.in.h: Likewise.
11048         * lib/wctype.in.h: Likewise.
11049         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11050         * modules/ctype (Makefile.am): Likewise.
11051         * modules/dirent (Makefile.am): Likewise.
11052         * modules/errno (Makefile.am): Likewise.
11053         * modules/fcntl-h (Makefile.am): Likewise.
11054         * modules/float (Makefile.am): Likewise.
11055         * modules/getopt-posix (Makefile.am): Likewise.
11056         * modules/iconv-h (Makefile.am): Likewise.
11057         * modules/langinfo (Makefile.am): Likewise.
11058         * modules/locale (Makefile.am): Likewise.
11059         * modules/math (Makefile.am): Likewise.
11060         * modules/netdb (Makefile.am): Likewise.
11061         * modules/netinet_in (Makefile.am): Likewise.
11062         * modules/poll-h (Makefile.am): Likewise.
11063         * modules/pthread (Makefile.am): Likewise.
11064         * modules/pty (Makefile.am): Likewise.
11065         * modules/sched (Makefile.am): Likewise.
11066         * modules/search (Makefile.am): Likewise.
11067         * modules/selinux-h (Makefile.am): Likewise.
11068         * modules/signal (Makefile.am): Likewise.
11069         * modules/spawn (Makefile.am): Likewise.
11070         * modules/stdarg (Makefile.am): Likewise.
11071         * modules/stddef (Makefile.am): Likewise.
11072         * modules/stdint (Makefile.am): Likewise.
11073         * modules/stdio (Makefile.am): Likewise.
11074         * modules/stdlib (Makefile.am): Likewise.
11075         * modules/string (Makefile.am): Likewise.
11076         * modules/strings (Makefile.am): Likewise.
11077         * modules/sys_file (Makefile.am): Likewise.
11078         * modules/sys_ioctl (Makefile.am): Likewise.
11079         * modules/sys_select (Makefile.am): Likewise.
11080         * modules/sys_socket (Makefile.am): Likewise.
11081         * modules/sys_stat (Makefile.am): Likewise.
11082         * modules/sys_time (Makefile.am): Likewise.
11083         * modules/sys_times (Makefile.am): Likewise.
11084         * modules/sys_uio (Makefile.am): Likewise.
11085         * modules/sys_utsname (Makefile.am): Likewise.
11086         * modules/sys_wait (Makefile.am): Likewise.
11087         * modules/sysexits (Makefile.am): Likewise.
11088         * modules/termios (Makefile.am): Likewise.
11089         * modules/time (Makefile.am): Likewise.
11090         * modules/unistd (Makefile.am): Likewise.
11091         * modules/wchar (Makefile.am): Likewise.
11092         * modules/wctype-h (Makefile.am): Likewise.
11093         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11094
11095 2011-05-29  Bruno Haible  <bruno@clisp.org>
11096
11097         assert-h: Allow multiple gnulib generated replacements to coexist.
11098         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11099
11100 2011-05-29  Bruno Haible  <bruno@clisp.org>
11101
11102         argp: Allow coexistence with strerror_r-posix module.
11103         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11104         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11105         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11106         not the glibc signature.
11107
11108 2011-05-28  Bruno Haible  <bruno@clisp.org>
11109
11110         gnulib-tool: Alternative structure of testdirs, similar to --import.
11111         * gnulib-tool: New option --single-configure.
11112         (func_usage): Document it.
11113         (single_configure): New variable.
11114         (func_modules_transitive_closure_separately,
11115         func_modules_transitive_closure_separately,
11116         func_determine_use_libtests, func_modules_add_dummy_separately,
11117         func_modules_to_filelist_separately): New functions, extracted from
11118         func_import.
11119         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11120         (func_import): Use the new functions.
11121         (func_create_testdir): Set final_modules. Handle $single_configure =
11122         true case.
11123
11124 2011-05-28  Bruno Haible  <bruno@clisp.org>
11125
11126         getloadavg: Remove an unreliable safety check.
11127         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11128         getloadavg.c is in place.
11129         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11130         Reported by Sam Steingold <sds@gnu.org>.
11131
11132 2011-05-28  Bruno Haible  <bruno@clisp.org>
11133
11134         doc: Cleanup yet another file produced by texinfo.tex.
11135         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11136
11137 2011-05-28  Bruno Haible  <bruno@clisp.org>
11138
11139         Finish the conditional dependencies mechanism.
11140         * gnulib-tool: New option --no-conditional-dependencies.
11141         (func_usage): Document it. Don't mark --conditional-dependencies as
11142         experimental.
11143         (cond_dependencies): The possible values can now be true, false, empty.
11144         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11145         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11146         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11147
11148 2011-05-28  Bruno Haible  <bruno@clisp.org>
11149
11150         doc: Use a recent texinfo.tex.
11151         * doc/Makefile (tex_opts): New variable.
11152         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11153
11154 2011-05-28  Jim Meyering  <meyering@redhat.com>
11155
11156         intprops.h: adjust comment to match code change
11157         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11158         only once, it *may* have side effects.  Also fix an unrelated typo.
11159         (_GL_INT_SIGNED): Likewise.
11160
11161 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11162
11163         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11164
11165 2011-05-26  Bruno Haible  <bruno@clisp.org>
11166
11167         mbsrchr: Avoid collision with system function on Interix.
11168         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11169         Reported by Markus Duft <mduft@gentoo.org>.
11170
11171 2011-05-15  James Youngman  <jay@gnu.org>
11172
11173         getopt: for ambiguous options, enumerate the possibilities.
11174         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11175         the ambiguous options when an ambiguous prefix is given. This was
11176         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11177         glibc change was
11178         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11179
11180 2011-05-25  Eric Blake  <eblake@redhat.com>
11181
11182         getcwd: work around mingw bug
11183         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11184         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11185         Reported by Matthias Bolte.
11186
11187 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11188
11189         test-intprops: disable -Wtype-limits diagnostics
11190         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11191         diagnostics.  Otherwise, the integer overflow macros generate many
11192         diagnostics.  Reported by Jim Meyering in
11193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11194
11195         intprops: shorten, to pacify gcc -Woverlength-strings
11196         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11197         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11198         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11199         likely to run afoul of C compiler limits for string constant lengths.
11200         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11201
11202 2011-05-24  Eric Blake  <eblake@redhat.com>
11203
11204         docs: document recently fixed glibc printf bug
11205         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11206         * doc/posix-functions/printf.texi (printf): Likewise.
11207         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11208         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11209
11210         closein-tests: convert to init.sh
11211         * modules/closein-tests (Files): Add init.sh
11212         * tests/test-closein.sh Use it.
11213
11214         yesno-tests: convert to init.sh
11215         * modules/yesno-tests (Files): Add init.sh.
11216         * tests/test-yesno.sh: Use it.
11217
11218         atexit-tests: ensure reliable exit status
11219         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11220         Reported by Bruno Haible.
11221
11222 2011-05-24  Bruno Haible  <bruno@clisp.org>
11223
11224         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11225         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11226         gl_PREREQ_STRERROR_R invocations from here...
11227         * modules/strerror_r-posix (configure.ac): ... to here.
11228
11229 2011-05-24  Eric Blake  <eblake@redhat.com>
11230
11231         strerror_r: fix missing header
11232         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11233
11234         strerror_r: fix AIX test failures
11235         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11236         ERANGE failure.
11237
11238         strerror_r: fix Solaris test failures
11239         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11240         failures.
11241         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11242
11243         strerror_r: enforce POSIX recommendations
11244         * lib/strerror_r.c (safe_copy): New helper method.
11245         (strerror_r): Guarantee a non-empty string.
11246         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11247         recent POSIX rulings and to match our strerror guarantees.
11248         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11249
11250 2011-05-24  Jim Meyering  <meyering@redhat.com>
11251
11252         test-perror2.c: avoid warning about unused variable
11253         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11254
11255 2011-05-24  Eric Blake  <eblake@redhat.com>
11256
11257         perror: avoid spurious test failure on HP-UX
11258         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11259
11260         tests: fix logic bug in init.sh
11261         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11262         shell.
11263
11264 2011-05-24  Jim Meyering  <meyering@redhat.com>
11265
11266         utimensat: do not reference an out-of-scope buffer
11267         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11268         declared in an inner scope, yet "times" would be dereferenced outside
11269         the scope in which "ts" was valid.
11270         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11271         of ts[2] "out/up", so that the use of aliased "times" (via
11272         "times = ts;") does not end up referencing an out-of-scope "ts"
11273
11274         opendir-safer.c: don't clobber errno; don't close negative FD
11275         * lib/opendir-safer.c (opendir_safer):
11276         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11277         file descriptor, and more importantly, don't clobber the
11278         offending errno value with EINVAL.  Before, upon failure
11279         of dup_safer, we would pass the negative file descriptor to
11280         fdopendir, which would clobber errno.
11281
11282 2011-05-23  Bruno Haible  <bruno@clisp.org>
11283
11284         idcache: Fix module description.
11285         * modules/idcache (Include): Set to "idcache.h".
11286
11287 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11288
11289         gnulib-tool: fix portability problem with MacOS sed
11290         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11291         before the "}".  Problem reported by Leo in
11292         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11293         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11294         sed_extract_condition1, sed_extract_condition2.
11295
11296 2011-05-23  Bruno Haible  <bruno@clisp.org>
11297
11298         hash: Simplify autoconf macro.
11299         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11300
11301 2011-05-23  Bruno Haible  <bruno@clisp.org>
11302
11303         getugroups: Fix module description.
11304         * modules/getugroups (Include): Set to "getugroups.h".
11305
11306 2011-05-23  Bruno Haible  <bruno@clisp.org>
11307
11308         linkat: Simplify autoconf macro.
11309         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11310
11311 2011-05-23  Bruno Haible  <bruno@clisp.org>
11312             Eric Blake  <eblake@redhat.com>
11313
11314         linkat, renameat: Update dependencies.
11315         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11316         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11317         symlinkat.
11318
11319 2011-05-23  Jim Meyering  <meyering@redhat.com>
11320
11321         maint.mk: more tight_scope improvements
11322         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11323         (_gl_TS_headers): Define only in if-0'd block.
11324         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11325         sometimes we must *not* use it.  Adjust uses accordingly.
11326         (sc_tight_scope): Use much simpler grep-based test to determine
11327         whether we skip this rule.
11328
11329         maint.mk: generalize/improve the tight-scope rule
11330         * top/maint.mk: Emit a warning when the test is skipped.
11331         (_gl_TS_dir): Add $(srcdir)/ prefix.
11332         (_gl_TS_function_match): Simplify, rather than trying
11333         to enumerate common types.  Otherwise, it would fail to match an
11334         "extern unsigned char const *" declaration in idutils.
11335         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11336         a way to support use of that type of macro.
11337         (_gl_TS_var_match): Simplify regexp.
11338         (_gl_TS_obj_files): New configurable variable.
11339         (_gl_TS_headers): Likewise.
11340
11341 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11342
11343         verify: fix bug when gnulib <assert.h> is also included
11344         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11345         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11346         Perhaps there's a better way, but this fixes the immediate problem.
11347         Problem reported by Bruno Haible in
11348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11349
11350 2011-05-22  Bruno Haible  <bruno@clisp.org>
11351
11352         xgetcwd: Simplify autoconf macro.
11353         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11354
11355 2011-05-22  Bruno Haible  <bruno@clisp.org>
11356
11357         New module 'mktime-internal'.
11358         * modules/mktime-internal: New file.
11359         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11360         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11361         mktime_internal as a C macro if libc has __mktime_internal.
11362         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11363         conditions.
11364         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11365
11366 2011-05-22  Bruno Haible  <bruno@clisp.org>
11367
11368         timegm: Correct mktime replacement statements.
11369         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11370         defining mktime as a C macro. This completes a 2009-07-28 commit.
11371
11372 2011-05-22  Bruno Haible  <bruno@clisp.org>
11373
11374         timegm: Simplify autoconf macro.
11375         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11376
11377 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11378
11379         clock-time: change to LGPLv2+.
11380         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11381         BSD-like but we have no mark for that; this is good enough for now.
11382
11383 2011-05-21  Bruno Haible  <bruno@clisp.org>
11384
11385         strerror_r: Fix comments.
11386         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11387
11388 2011-05-21  Bruno Haible  <bruno@clisp.org>
11389
11390         relocatable-prog-wrapper: Fix possible link error.
11391         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11392         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11393         (gl_FUNC_SETENV): ... to here.
11394         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11395         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11396
11397 2011-05-21  Bruno Haible  <bruno@clisp.org>
11398
11399         relocatable-prog-wrapper: Assume strerror() exists.
11400         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11401         m4/strerror.m4.
11402         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11403         * lib/relocwrapper.c: Remove mention of strerror module.
11404         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11405         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11406         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11407         C macro.
11408
11409 2011-05-21  Bruno Haible  <bruno@clisp.org>
11410
11411         select: Simplify replacement idiom.
11412         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11413         Win32 platforms.
11414         * lib/sys_select.in.h (select): Simplify accordingly.
11415         * modules/select (Depends-on): Likewise.
11416
11417 2011-05-21  Bruno Haible  <bruno@clisp.org>
11418
11419         mkdir-p: Simplify autoconf macro.
11420         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11421         gl_FUNC_LCHOWN.
11422
11423 2011-05-21  Eric Blake  <eblake@redhat.com>
11424
11425         strerror_r: avoid clobbering strerror on cygwin
11426         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11427         fall back instead to sys_errlist.
11428         * modules/strerror (configure.ac): Add witness.
11429         * tests/test-strerror_r.c (main): Enhance test.
11430         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11431         * tests/test-perror2.c (main): Free memory before exit.
11432
11433 2011-05-21  Bruno Haible  <bruno@clisp.org>
11434
11435         mkdtemp: Use gnulib naming conventions.
11436         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11437         * modules/mkdtemp (configure.ac): Update.
11438
11439 2011-05-20  Eric Blake  <eblake@redhat.com>
11440
11441         strerror_r: avoid corrupting errno on Solaris
11442         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11443         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11444
11445         strerror_r: avoid compiler warning
11446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11447
11448         strerror_r: simplify AIX code
11449         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11450
11451         test-perror: avoid spurious failure on FreeBSD
11452         * modules/perror-tests (Depends-on): Add strerror, now that
11453         strerror_r no longer pulls it in.
11454
11455 2011-05-20  Bruno Haible  <bruno@clisp.org>
11456
11457         strerror_r-posix: Remove unused dependencies.
11458         * modules/strerror_r-posix (Depends-on): Remove strerror.
11459         Reported by Eric Blake.
11460
11461 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11462
11463         intprops: remove assumption about A|B representation
11464         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11465         is a valid integer if both A and B are.  Although this is true for
11466         all known practical hosts, the C standard doesn't guarantee it,
11467         and the code need not assume it.  Also, this change may work around
11468         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11470
11471 2011-05-20  Eric Blake  <eblake@redhat.com>
11472
11473         perror: work around FreeBSD bug
11474         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11475         is broken.  Move AC_LIBOBJ...
11476         * modules/perror (configure.ac): Here.
11477         * doc/posix-functions/perror.texi (perror): Document this.
11478         * tests/test-perror2.c (main): Enhance test.
11479
11480         test-perror: check for strerror interactions
11481         * tests/macros.h (STREQ): Add macro.
11482         * modules/perror-tests (Files): Add second test.
11483         * tests/test-perror2.c (main): New file.
11484         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11485
11486         test-perror: rewrite to use init script
11487         * modules/perror-tests (Files): Add init.sh.
11488         * tests/test-perror.sh: Use temporary directory.
11489
11490 2011-05-20  Jim Meyering  <meyering@redhat.com>
11491
11492         maint: replace misused "a" with "an"
11493         * doc/intprops.texi: "a integer"
11494         * doc/regex.texi: "a explanation"
11495         * lib/alignof.h: "a object"
11496         * lib/argmatch.h: "a explanation"
11497         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11498         * lib/stdint.in.h: "a integer"
11499         * lib/userspec.c: "a owner"
11500         * doc/gnulib.texi: Fix "a idea", and reword.
11501
11502 2011-05-19  Jim Meyering  <meyering@redhat.com>
11503
11504         maint: correct misuse of "a" and "an"
11505         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11506         * lib/argp-help.c: "an docum...": s/an/a/
11507         * lib/argp-parse.c: "An vector": s/An/A/
11508         * lib/execute.c: "an native": s/an/a/
11509         * lib/spawn-pipe.c: Likewise.
11510         * lib/gc.h: "an Gc_rc": s/an/a/
11511         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11512         * lib/fts.c: "an stat.st_dev": s/an/a/
11513
11514 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11515
11516         intprops-tests: work around HP-UX 11.23 cc bug with constants
11517         * tests/test-intprops.c (VERIFY): New macro.
11518         (main): Use it, instead of verify, to work around the compiler bug; see
11519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11520
11521         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11522         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11523         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11524         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11525         (_GL_REMAINDER_OVERFLOW): Use it.
11526
11527         intprops-tests: revert unsigned part of previous change
11528         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11529         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11530         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11532
11533 2011-05-19  Bruno Haible  <bruno@clisp.org>
11534
11535         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11536         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11537         strerror_r() returned without filling the buffer.
11538         Reported by Eric Blake.
11539
11540 2011-05-19  Eric Blake  <eblake@redhat.com>
11541
11542         strerror_r: guarantee unchanged errno
11543         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11544         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11545         failure.
11546         * tests/test-strerror_r.c (main): Enhance test.
11547
11548 2011-05-19  Bruno Haible  <bruno@clisp.org>
11549
11550         strerror_r: Reorder #if blocks.
11551         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11552         for consistency with the previous commit.
11553
11554 2011-05-19  Bruno Haible  <bruno@clisp.org>
11555
11556         perror: Avoid clobbering the strerror buffer when possible.
11557         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11558         * lib/strerror.c: Include it.
11559         * modules/strerror (Files): Add lib/strerror-impl.h.
11560         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11561         (my_strerror): New function, defined through lib/strerror-impl.h.
11562         (perror): Use it instead of strerror.
11563         * modules/perror (Files): Add lib/strerror-impl.h.
11564         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11565
11566 2011-05-19  Eric Blake  <eblake@redhat.com>
11567
11568         strerror_r: fix on newer cygwin
11569         * lib/strerror_r.c (strerror_r): Cygwin now has
11570         __xpg_strerror_r, use it.
11571
11572 2011-05-19  Bruno Haible  <bruno@clisp.org>
11573
11574         strerror_r: Avoid clobbering the strerror buffer when possible.
11575         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11576         (sys_nerr, sys_errlist): New declarations.
11577         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11578         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11579         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11580
11581 2011-05-19  Bruno Haible  <bruno@clisp.org>
11582
11583         strerror_r: Fix test failure on mingw.
11584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11585         EXTEND_STRERROR_R.
11586         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11587         macros from errno.in.h instead.
11588
11589 2011-05-19  Eric Blake  <eblake@redhat.com>
11590
11591         strerror: relax test for Solaris
11592         * tests/test-strerror.c (main): Permit Solaris behavior.
11593         * tests/test-strerror_r.c (main): Likewise.
11594
11595         strerror: enforce POSIX ruling on strerror(0)
11596         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11597         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11598         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11599         * doc/posix-functions/strerror.texi (strerror): Document it.
11600         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11601         * tests/test-strerror.c (main): Strengthen test.
11602         * tests/test-strerror_r.c (main): Likewise.
11603
11604 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11605
11606         intprop-tests: port to older and more-pedantic compilers
11607         * modules/intprops-tests (Files): Add tests/macros.h.
11608         * tests/test-intprops.c: Include macros.h.
11609         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11610         it's no longer documented to expand to an integer constant expression.
11611         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11612         argument is floating point, as it's no longer documented to expand
11613         to an integer constant expression in that case.
11614         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11615         compiler bugs reported by Bruno Haible.  See
11616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11617         (U0, U1): New constants, to work around the same bugs.  Also,
11618         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11619
11620         intprops: work around C compiler bugs
11621         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11622         bug in Sun C 5.11 2010/08/13 and other compilers; see
11623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11624
11625         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11626         * doc/intprops.texi (Integer Type Determination): Fix
11627         documentation for TYPE_IS_INTEGER: it returns an constant
11628         expression, not an integer constant expression.  Fix doc for
11629         TYPE_SIGNED: it returns an integer constant expression only if its
11630         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11631         hardly worth documented that way....)
11632
11633 2011-05-18  Bruno Haible  <bruno@clisp.org>
11634
11635         strerror_r: Avoid clobbering the strerror buffer when possible.
11636         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11637         Handle gnulib defined errno values here. When strerror() returns NULL
11638         or an empty string, return EINVAL.
11639         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11640         gnulib defined errno values here.
11641         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11642
11643 2011-05-18  Eric Blake  <eblake@redhat.com>
11644
11645         fnmatch: avoid compiler warning
11646         * lib/fnmatch_loop.c (FCT): Use correct type.
11647         Reported by Matthias Bolte.
11648
11649 2011-05-13  Jim Meyering  <meyering@redhat.com>
11650
11651         maint.mk: three new prohibit_<HDR>_without_use rules
11652         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11653         (sc_prohibit_stdio-safer_without_use): Likewise.
11654         (sc_prohibit_xfreopen_without_use): Likewise.
11655
11656 2011-05-17  Jim Meyering  <meyering@redhat.com>
11657
11658         announce-gen: fail if the NEWS delta is empty
11659         If there's nothing noteworthy in NEWS, then either you forgot
11660         or you shouldn't be releasing.
11661         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11662
11663 2011-05-17  Pádraig Brady <P@draigBrady.com>
11664
11665         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11666         reserved symbols starting with double underscore from the check.
11667
11668 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11669
11670         intprops: add doc
11671         * doc/intprops.texi: New file, documenting intprops.
11672         * doc/gnulib.texi (Particular Modules): Include it.
11673
11674         verify: add doc to gnulib manual and fix example
11675         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11676         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11677         (Compile-time Assertions): Fix example so it can't overflow.
11678
11679 2011-05-17  Jim Meyering  <meyering@redhat.com>
11680
11681         warnings.m4: don't usurp save_CPPFLAGS variable name
11682         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11683
11684         doc: fix typo
11685         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11686
11687 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11688             Bruno Haible  <bruno@clisp.org>
11689
11690         doc: Tweak recent change.
11691         * README (Portability guidelines): Tweak new text.
11692         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11693         Interix 6.1.
11694
11695 2011-05-16  Eric Blake  <eblake@redhat.com>
11696
11697         inttypes: avoid autoconf warning
11698         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11699         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11700
11701 2011-05-16  Sam Steingold <sds@gnu.org>
11702         and Eric Blake  <eblake@redhat.com>
11703
11704         vc-list-files: accept multiple directory operands
11705         * build-aux/vc-list-files: Iterate over all remaining operands.
11706
11707 2011-05-16  Bruno Haible  <bruno@clisp.org>
11708
11709         Fix confusion regarding deprecated modules.
11710         * modules/calloc (Status, Notice): Mark module as deprecated, not
11711         obsolete.
11712         * modules/fnmatch-posix (Status, Notice): Likewise.
11713         * modules/getdate (Status, Notice): Likewise.
11714         * modules/getopt (Status, Notice): Likewise.
11715         * modules/malloc (Status, Notice): Likewise.
11716         * modules/pipe (Status, Notice): Likewise.
11717         * modules/realloc (Status, Notice): Likewise.
11718         * modules/rename-dest-slash (Status, Notice): Likewise.
11719         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11720         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11721         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11722         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11723         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11724
11725 2011-05-16  Bruno Haible  <bruno@clisp.org>
11726
11727         doc: List the target platforms.
11728         * doc/gnulib-intro.texi (Target Platforms): New section.
11729         * doc/gnulib.texi (Introduction): Update menu.
11730         * README (Portability guidelines): Refer to the new section. Update
11731         statement about oldest supported environment. Remove rationale why
11732         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11733         unportable C89 function.
11734         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11735         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11736
11737 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11738
11739         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11740
11741 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11742
11743         intprops-tests: new module
11744         * modules/intprops-tests, tests/test-intprops.c: New files.
11745
11746         intprops: add safe, portable integer overflow checking
11747         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11748         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11749         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11750         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11751         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11752         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11753         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11754         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11755         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11756         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11757         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11758
11759 2011-05-12  James Youngman  <jay@gnu.org>
11760
11761         Add a test for glibc's Bugzilla bug #12378.
11762         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11763         doesn't allow the literal matching of a lone "[" (which is
11764         required by POSIX).
11765         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11766
11767 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11768
11769         Sync glibc change fixing Bugzilla bug #12378.
11770         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11771         beginning and fall back to matching as normal character if the
11772         string ends before the matching ']' is found.  This is what POSIX
11773         requires.
11774
11775 2011-05-13  Eric Blake  <eblake@redhat.com>
11776
11777         getcwd-lgpl: relax test for FreeBSD
11778         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11779         issue.
11780         * tests/test-getcwd-lgpl.c (main): Relax test.
11781         Reported by Matthias Bolte.
11782
11783 2011-05-11  Eric Blake  <eblake@redhat.com>
11784
11785         test-fflush: silence compiler warning
11786         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11787
11788 2011-05-11  Bruno Haible  <bruno@clisp.org>
11789
11790         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11791         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11792         * modules/canonicalize (Depends-on): Add 'nocrash'.
11793         * modules/canonicalize-lgpl (Depends-on): Likewise.
11794         * doc/posix-functions/realpath.texi: Update platforms list.
11795         Reported by Ryan Schmidt <ryandesign@macports.org>.
11796
11797 2011-05-11  Bruno Haible  <bruno@clisp.org>
11798
11799         group-member: Declare function in <unistd.h>.
11800         * lib/unistd.in.h (group_member): New declaration.
11801         * lib/group-member.h: Remove file.
11802         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11803         * tests/test-unistd-c++.cc: Check signature of group_member.
11804         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11805         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11806         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11807         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11808         HAVE_GROUP_MEMBER.
11809         * modules/group-member (Files): Remove lib/group-member.h.
11810         (Depends-on): Add unistd. Specify conditions.
11811         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11812         (Include): Change to <unistd.h>.
11813         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11814         HAVE_GROUP_MEMBER.
11815         * NEWS: Mention the change.
11816         * lib/euidaccess.c: Don't include group-member.h.
11817
11818 2011-05-11  Bruno Haible  <bruno@clisp.org>
11819
11820         group-member: Document module.
11821         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11822         module.
11823
11824 2011-05-11  Bruno Haible  <bruno@clisp.org>
11825
11826         fclose: Fix mistake earlier today.
11827         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11828
11829 2011-05-11  Eric Blake  <eblake@redhat.com>
11830
11831         fclose: preserve fflush errors
11832         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11833         Reported by Jim Meyering.
11834
11835         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11836         * build-aux/bootstrap (check_versions): When no specific version
11837         is required, merely check that the app produces an exit status
11838         that indicates its existence.
11839
11840         maint.mk: drop redundant check
11841         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11842         the same but better.
11843
11844 2011-05-11  Bruno Haible  <bruno@clisp.org>
11845
11846         fclose: Fix possible link error.
11847         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11848         unregister_shadow_fd. Improve comments.
11849         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11850         Eric Blake.
11851
11852 2011-05-11  Jim Meyering  <meyering@redhat.com>
11853
11854         maint.mk: improve "can not" detection and generalize rule name
11855         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11856         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11857         Use the same technique as in sc_prohibit_doubled_word, so that
11858         we recognize "can not" also when the words are separated by a newline.
11859         Suggested by Eric Blake.
11860         (perl_filename_lineno_text_): Define.  Factored out of...
11861         (prohibit_doubled_word_): ...here.  Use the new definition.
11862         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11863         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11864         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11865
11866 2011-05-10  Eric Blake  <eblake@redhat.com>
11867
11868         fclose: avoid double close race when possible
11869         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11870         all but WINDOWS_SOCKETS.
11871
11872 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11873
11874         openat: correct new comment
11875         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11876
11877 2011-05-10  Jim Meyering  <meyering@redhat.com>
11878
11879         openat: add comments
11880         * lib/openat-proc.c (openat_proc_name): Add comments,
11881         mostly from Eric Blake.
11882
11883 2011-05-09  Eric Blake  <eblake@redhat.com>
11884
11885         openat: reduce syscalls in first probe of /proc
11886         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11887         be a directory.  Simplify the probe for .. bugs.
11888         * modules/openat (Depends-on): Drop same-inode.
11889         Reported by Bastien ROUCARIES.
11890
11891 2011-05-09  Jim Meyering  <meyering@redhat.com>
11892
11893         maint.mk: change semantics/name of tight_scope variables
11894         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11895         Rename variables to align with semantics that make them more useful.
11896
11897         maint.mk: tweak new rule's name not to impinge
11898         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11899         (sc_tight_scope): Use new rule name rather than $@-0.
11900
11901         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11902         * top/maint.mk (sc_tight_scope): New rule.
11903         (sc_tight_scope-0): New rule, ifdef'd out.
11904         (_gl_TS_dir): Default.
11905         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11906         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11907
11908 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11909
11910         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11911         Haible <bruno@clisp.org>.
11912
11913 2011-05-08  Bruno Haible  <bruno@clisp.org>
11914
11915         Comments.
11916         * m4/isnanf.m4: Add comment.
11917         * m4/isnanl.m4: Likewise.
11918
11919 2011-05-08  Bruno Haible  <bruno@clisp.org>
11920
11921         glob: Remove obsolete macro.
11922         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11923
11924 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11925
11926         intprops: Sun C 5.11 supports __typeof__
11927         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11928         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11929         which is new.
11930         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11931
11932         intprops: switch to usual gnulib indenting and naming
11933         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11934         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11935
11936         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11937
11938 2011-05-08  Jim Meyering  <meyering@redhat.com>
11939
11940         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11941         * top/maint.mk (release-prep): Use make's --no-print-directory
11942         option when generating the announcement.  This eliminates the
11943         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11944         generated announcement template.
11945
11946 2011-05-08  Bruno Haible  <bruno@clisp.org>
11947
11948         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11949         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11950         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11951
11952 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11953
11954         ignore-value, verify: Omit include files from lib_SOURCES.
11955         * modules/ignore-value, modules/verify (Makefile.am):
11956         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11957         that leads Automake to duplicate use of am__objects_... variables
11958         in Makefile.in.  See
11959         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11960
11961 2011-05-07  Bruno Haible  <bruno@clisp.org>
11962
11963         fclose: Simplify autoconf macro.
11964         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11965         defined.
11966
11967 2011-05-07  Bruno Haible  <bruno@clisp.org>
11968
11969         canonicalize-lgpl: Fix autoconf macro ordering bug.
11970         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11971         gl_STDLIB_H_DEFAULTS.
11972
11973 2011-05-06  Eric Blake  <eblake@redhat.com>
11974
11975         maintainer-makefile: make sc_po_check easier to tune
11976         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11977         to probe for strings, such as an alternate location for gnulib.
11978
11979         fclose: guarantee behavior on seekable stdin
11980         * modules/fclose (Depends-on): Add fflush.
11981         * doc/posix-functions/fclose.texi (fclose): Document this.
11982         * tests/test-fclose.c (main): Make test for this unconditional.
11983
11984 2011-05-06  Bruno Haible  <bruno@clisp.org>
11985
11986         fflush, fpurge: Relicense under LGPLv2+.
11987         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11988         * modules/fpurge (License): Likewise.
11989         With permission from Eric Blake and Jim Meyering.
11990         Suggested by Eric Blake.
11991
11992 2011-05-06  Karl Berry  <karl@gnu.org>
11993
11994         * MODULES.html.sh (func_all_modules): remove exit.
11995
11996 2011-05-06  Jim Meyering  <meyering@redhat.com>
11997
11998         maint.mk: use info-gnu@ as the default only for a stable release
11999         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12000         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12001         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12003
12004 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12005
12006         assert-h: new module, which supports C1X-style static_assert
12007         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12008         * lib/verify.h: Revamp so that this can be copied into assert.h,
12009         while retaining the ability to use it standalone as before.
12010         Rename private identifiers so as not to encroach on the
12011         standard C namespace, since this is now used by assert.h.
12012         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12013         the old verify_true.
12014         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12015         the old verify_true.  Use _GL_VERIFY_TYPE.
12016         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12017         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12018         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12019         defined when this file is copied into the replacement assert.h.
12020         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12021         and _Static_assert is not built in.
12022         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12023         defined, and use the new macros mentioned above.
12024         * doc/posix-headers/assert.texi: Document this.
12025
12026 2011-05-05  Bruno Haible  <bruno@clisp.org>
12027
12028         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12029         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12030         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12031         gl_REPLACE_FCLOSE here.
12032         * modules/fflush (Depends-on): Remove fclose.
12033         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12034         combination with module 'fclose'.
12035
12036 2011-05-05  Bruno Haible  <bruno@clisp.org>
12037
12038         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12039         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12040         gl_FUNC_FFLUSH.
12041         (gl_FUNC_FFLUSH): Use it.
12042         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12043         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12044         gl_REPLACE_FSEEKO here.
12045
12046 2011-05-05  Bruno Haible  <bruno@clisp.org>
12047
12048         tzset: Relicense under LGPL.
12049         * modules/tzset (License): Change to LGPL.
12050         No agreement needed; it's a no-op.
12051
12052         strtoimax, strtoumax: Relicense under LGPL.
12053         * modules/strtoimax (License): Change to LGPL.
12054         * modules/strtoumax (License): Likewise.
12055         With permission from Jim Meyering, Paul Eggert:
12056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12058
12059         getgroups: Relicense under LGPL.
12060         * modules/getgroups (License): Change to LGPL.
12061         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12062         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12065
12066         nanosleep: Relicense under LGPL.
12067         * modules/nanosleep (License): Change to LGPL.
12068         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12069         Haible:
12070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12074
12075         futimens: Relicense under LGPL.
12076         * modules/futimens (License): Change to LGPL.
12077         With permission from Eric Blake:
12078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12079
12080         fflush: Relicense under LGPL.
12081         * modules/fflush (License): Change to LGPL.
12082         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12086
12087         tmpfile: Relicense under LGPL.
12088         * modules/tmpfile (License): Change to LGPL.
12089         With permission from Ben Pfaff:
12090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12091
12092         isfinite: Relicense under LGPL.
12093         * modules/isfinite (License): Change to LGPL.
12094         With permission from Ben Pfaff, Bruno Haible:
12095         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12097
12098         acosl..tanl: Relicense under LGPL.
12099         * modules/acosl (License): Change to LGPL.
12100         * modules/asinl (License): Likewise.
12101         * modules/atanl (License): Likewise.
12102         * modules/cosl (License): Likewise.
12103         * modules/expl (License): Likewise.
12104         * modules/logl (License): Likewise.
12105         * modules/sinl (License): Likewise.
12106         * modules/sqrtl (License): Likewise.
12107         * modules/tanl (License): Likewise.
12108         Source code originally from glibc and Paolo Bonzini. Agreements:
12109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12111
12112 2011-05-05  Bruno Haible  <bruno@clisp.org>
12113
12114         signal: Define sighandler_t.
12115         * lib/signal.in.h (sighandler_t): New type.
12116         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12117         whether sighandler_t is defined.
12118         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12119         * modules/signal (Depends-on): Add extensions.
12120         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12121         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12122         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12123
12124 2011-05-05  Eric Blake  <eblake@redhat.com>
12125
12126         maint: remove useless REPLACE_*_H macros
12127         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12128         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12129         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12130         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12131         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12132         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12133         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12134         * m4/btowc.m4: Update callers.
12135         * m4/dirfd.m4: Likewise.
12136         * m4/duplocale.m4: Likewise.
12137         * m4/fchdir.m4: Likewise.
12138         * m4/fdopendir.m4: Likewise.
12139         * m4/inet_ntop.m4: Likewise.
12140         * m4/inet_pton.m4: Likewise.
12141         * m4/ioctl.m4: Likewise.
12142         * m4/mbrlen.m4: Likewise.
12143         * m4/mbrtowc.m4: Likewise.
12144         * m4/mbsinit.m4: Likewise.
12145         * m4/mbsnrtowcs.m4: Likewise.
12146         * m4/mbsrtowcs.m4: Likewise.
12147         * m4/poll.m4: Likewise.
12148         * m4/setlocale.m4: Likewise.
12149         * m4/wcrtomb.m4: Likewise.
12150         * m4/wcsnrtombs.m4: Likewise.
12151         * m4/wcsrtombs.m4: Likewise.
12152         * m4/wctob.m4: Likewise.
12153         * m4/wcwidth.m4: Likewise.
12154         * modules/posix_spawn: Likewise.
12155         * modules/posix_spawn_file_actions_addclose: Likewise.
12156         * modules/posix_spawn_file_actions_adddup2: Likewise.
12157         * modules/posix_spawn_file_actions_addopen: Likewise.
12158         * modules/posix_spawn_file_actions_destroy: Likewise.
12159         * modules/posix_spawn_file_actions_init: Likewise.
12160         * modules/posix_spawnattr_destroy: Likewise.
12161         * modules/posix_spawnattr_getflags: Likewise.
12162         * modules/posix_spawnattr_getpgroup: Likewise.
12163         * modules/posix_spawnattr_getschedparam: Likewise.
12164         * modules/posix_spawnattr_getschedpolicy: Likewise.
12165         * modules/posix_spawnattr_getsigdefault: Likewise.
12166         * modules/posix_spawnattr_getsigmask: Likewise.
12167         * modules/posix_spawnattr_init: Likewise.
12168         * modules/posix_spawnattr_setflags: Likewise.
12169         * modules/posix_spawnattr_setpgroup: Likewise.
12170         * modules/posix_spawnattr_setschedparam: Likewise.
12171         * modules/posix_spawnattr_setschedpolicy: Likewise.
12172         * modules/posix_spawnattr_setsigdefault: Likewise.
12173         * modules/posix_spawnattr_setsigmask: Likewise.
12174         * modules/posix_spawnp: Likewise.
12175
12176 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12177
12178         Add option to do-release-commit-and-tag to specify branch.
12179         * build-aux/do-release-commit-and-tag: Add --branch.
12180
12181 2011-05-03  Bruno Haible  <bruno@clisp.org>
12182
12183         Avoid unnecessary compilation units, through conditional dependencies.
12184         * modules/accept (Depends-on): Add conditions to the dependencies.
12185         * modules/acosl (Depends-on): Likewise.
12186         * modules/argz (Depends-on): Likewise.
12187         * modules/asinl (Depends-on): Likewise.
12188         * modules/atanl (Depends-on): Likewise.
12189         * modules/atoll (Depends-on): Likewise.
12190         * modules/bind (Depends-on): Likewise.
12191         * modules/btowc (Depends-on): Likewise.
12192         * modules/canonicalize-lgpl (Depends-on): Likewise.
12193         * modules/ceil (Depends-on): Likewise.
12194         * modules/ceilf (Depends-on): Likewise.
12195         * modules/ceill (Depends-on): Likewise.
12196         * modules/chdir-long (Depends-on): Likewise.
12197         * modules/chown (Depends-on): Likewise.
12198         * modules/close (Depends-on): Likewise.
12199         * modules/connect (Depends-on): Likewise.
12200         * modules/cosl (Depends-on): Likewise.
12201         * modules/dirfd (Depends-on): Likewise.
12202         * modules/dprintf (Depends-on): Likewise.
12203         * modules/dprintf-posix (Depends-on): Likewise.
12204         * modules/error (Depends-on): Likewise.
12205         * modules/euidaccess (Depends-on): Likewise.
12206         * modules/expl (Depends-on): Likewise.
12207         * modules/faccessat (Depends-on): Likewise.
12208         * modules/fchdir (Depends-on): Likewise.
12209         * modules/fclose (Depends-on): Likewise.
12210         * modules/fcntl (Depends-on): Likewise.
12211         * modules/fdopendir (Depends-on): Likewise.
12212         * modules/fflush (Depends-on): Likewise.
12213         * modules/floor (Depends-on): Likewise.
12214         * modules/floorf (Depends-on): Likewise.
12215         * modules/floorl (Depends-on): Likewise.
12216         * modules/fnmatch (Depends-on): Likewise.
12217         * modules/fopen (Depends-on): Likewise.
12218         * modules/fprintf-posix (Depends-on): Likewise.
12219         * modules/frexp (Depends-on): Likewise.
12220         * modules/frexp-nolibm (Depends-on): Likewise.
12221         * modules/frexpl (Depends-on): Likewise.
12222         * modules/frexpl-nolibm (Depends-on): Likewise.
12223         * modules/fseek (Depends-on): Likewise.
12224         * modules/fsusage (Depends-on): Likewise.
12225         * modules/ftell (Depends-on): Likewise.
12226         * modules/ftello (Depends-on): Likewise.
12227         * modules/futimens (Depends-on): Likewise.
12228         * modules/getcwd (Depends-on): Likewise.
12229         * modules/getcwd-lgpl (Depends-on): Likewise.
12230         * modules/getdelim (Depends-on): Likewise.
12231         * modules/getdomainname (Depends-on): Likewise.
12232         * modules/getgroups (Depends-on): Likewise.
12233         * modules/gethostname (Depends-on): Likewise.
12234         * modules/getline (Depends-on): Likewise.
12235         * modules/getlogin_r (Depends-on): Likewise.
12236         * modules/getopt-posix (Depends-on): Likewise.
12237         * modules/getpeername (Depends-on): Likewise.
12238         * modules/getsockname (Depends-on): Likewise.
12239         * modules/getsockopt (Depends-on): Likewise.
12240         * modules/getsubopt (Depends-on): Likewise.
12241         * modules/getusershell (Depends-on): Likewise.
12242         * modules/glob (Depends-on): Likewise.
12243         * modules/grantpt (Depends-on): Likewise.
12244         * modules/iconv_open (Depends-on): Likewise.
12245         * modules/iconv_open-utf (Depends-on): Likewise.
12246         * modules/inet_ntop (Depends-on): Likewise.
12247         * modules/inet_pton (Depends-on): Likewise.
12248         * modules/ioctl (Depends-on): Likewise.
12249         * modules/isapipe (Depends-on): Likewise.
12250         * modules/isfinite (Depends-on): Likewise.
12251         * modules/isinf (Depends-on): Likewise.
12252         * modules/lchown (Depends-on): Likewise.
12253         * modules/ldexpl (Depends-on): Likewise.
12254         * modules/link (Depends-on): Likewise.
12255         * modules/linkat (Depends-on): Likewise.
12256         * modules/listen (Depends-on): Likewise.
12257         * modules/logl (Depends-on): Likewise.
12258         * modules/lstat (Depends-on): Likewise.
12259         * modules/mbrlen (Depends-on): Likewise.
12260         * modules/mbrtowc (Depends-on): Likewise.
12261         * modules/mbsinit (Depends-on): Likewise.
12262         * modules/mbsnrtowcs (Depends-on): Likewise.
12263         * modules/mbsrtowcs (Depends-on): Likewise.
12264         * modules/mbtowc (Depends-on): Likewise.
12265         * modules/memcmp (Depends-on): Likewise.
12266         * modules/mkdir (Depends-on): Likewise.
12267         * modules/mkdtemp (Depends-on): Likewise.
12268         * modules/mkfifo (Depends-on): Likewise.
12269         * modules/mkfifoat (Depends-on): Likewise.
12270         * modules/mknod (Depends-on): Likewise.
12271         * modules/mkostemp (Depends-on): Likewise.
12272         * modules/mkostemps (Depends-on): Likewise.
12273         * modules/mkstemp (Depends-on): Likewise.
12274         * modules/mkstemps (Depends-on): Likewise.
12275         * modules/mktime (Depends-on): Likewise.
12276         * modules/nanosleep (Depends-on): Likewise.
12277         * modules/open (Depends-on): Likewise.
12278         * modules/openat (Depends-on): Likewise.
12279         * modules/perror (Depends-on): Likewise.
12280         * modules/poll (Depends-on): Likewise.
12281         * modules/popen (Depends-on): Likewise.
12282         * modules/posix_spawn (Depends-on): Likewise.
12283         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12284         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12285         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12286         * modules/posix_spawnp (Depends-on): Likewise.
12287         * modules/pread (Depends-on): Likewise.
12288         * modules/printf-posix (Depends-on): Likewise.
12289         * modules/ptsname (Depends-on): Likewise.
12290         * modules/putenv (Depends-on): Likewise.
12291         * modules/pwrite (Depends-on): Likewise.
12292         * modules/readline (Depends-on): Likewise.
12293         * modules/readlink (Depends-on): Likewise.
12294         * modules/readlinkat (Depends-on): Likewise.
12295         * modules/recv (Depends-on): Likewise.
12296         * modules/recvfrom (Depends-on): Likewise.
12297         * modules/regex (Depends-on): Likewise.
12298         * modules/remove (Depends-on): Likewise.
12299         * modules/rename (Depends-on): Likewise.
12300         * modules/renameat (Depends-on): Likewise.
12301         * modules/rmdir (Depends-on): Likewise.
12302         * modules/round (Depends-on): Likewise.
12303         * modules/roundf (Depends-on): Likewise.
12304         * modules/roundl (Depends-on): Likewise.
12305         * modules/rpmatch (Depends-on): Likewise.
12306         * modules/select (Depends-on): Likewise.
12307         * modules/send (Depends-on): Likewise.
12308         * modules/sendto (Depends-on): Likewise.
12309         * modules/setenv (Depends-on): Likewise.
12310         * modules/setlocale (Depends-on): Likewise.
12311         * modules/setsockopt (Depends-on): Likewise.
12312         * modules/shutdown (Depends-on): Likewise.
12313         * modules/sigaction (Depends-on): Likewise.
12314         * modules/signbit (Depends-on): Likewise.
12315         * modules/sigprocmask (Depends-on): Likewise.
12316         * modules/sinl (Depends-on): Likewise.
12317         * modules/sleep (Depends-on): Likewise.
12318         * modules/snprintf (Depends-on): Likewise.
12319         * modules/snprintf-posix (Depends-on): Likewise.
12320         * modules/socket (Depends-on): Likewise.
12321         * modules/sprintf-posix (Depends-on): Likewise.
12322         * modules/sqrtl (Depends-on): Likewise.
12323         * modules/stat (Depends-on): Likewise.
12324         * modules/strchrnul (Depends-on): Likewise.
12325         * modules/strdup-posix (Depends-on): Likewise.
12326         * modules/strerror (Depends-on): Likewise.
12327         * modules/strerror_r-posix (Depends-on): Likewise.
12328         * modules/strndup (Depends-on): Likewise.
12329         * modules/strnlen (Depends-on): Likewise.
12330         * modules/strptime (Depends-on): Likewise.
12331         * modules/strsep (Depends-on): Likewise.
12332         * modules/strsignal (Depends-on): Likewise.
12333         * modules/strstr-simple (Depends-on): Likewise.
12334         * modules/strtod (Depends-on): Likewise.
12335         * modules/strtoimax (Depends-on): Likewise.
12336         * modules/strtok_r (Depends-on): Likewise.
12337         * modules/strtoumax (Depends-on): Likewise.
12338         * modules/symlink (Depends-on): Likewise.
12339         * modules/symlinkat (Depends-on): Likewise.
12340         * modules/tanl (Depends-on): Likewise.
12341         * modules/tcgetsid (Depends-on): Likewise.
12342         * modules/tmpfile (Depends-on): Likewise.
12343         * modules/trunc (Depends-on): Likewise.
12344         * modules/truncf (Depends-on): Likewise.
12345         * modules/truncl (Depends-on): Likewise.
12346         * modules/uname (Depends-on): Likewise.
12347         * modules/unlink (Depends-on): Likewise.
12348         * modules/unlockpt (Depends-on): Likewise.
12349         * modules/unsetenv (Depends-on): Likewise.
12350         * modules/usleep (Depends-on): Likewise.
12351         * modules/utimensat (Depends-on): Likewise.
12352         * modules/vasprintf (Depends-on): Likewise.
12353         * modules/vdprintf (Depends-on): Likewise.
12354         * modules/vdprintf-posix (Depends-on): Likewise.
12355         * modules/vfprintf-posix (Depends-on): Likewise.
12356         * modules/vprintf-posix (Depends-on): Likewise.
12357         * modules/vsnprintf (Depends-on): Likewise.
12358         * modules/vsnprintf-posix (Depends-on): Likewise.
12359         * modules/vsprintf-posix (Depends-on): Likewise.
12360         * modules/wcrtomb (Depends-on): Likewise.
12361         * modules/wcscasecmp (Depends-on): Likewise.
12362         * modules/wcscspn (Depends-on): Likewise.
12363         * modules/wcsdup (Depends-on): Likewise.
12364         * modules/wcsncasecmp (Depends-on): Likewise.
12365         * modules/wcsnrtombs (Depends-on): Likewise.
12366         * modules/wcspbrk (Depends-on): Likewise.
12367         * modules/wcsrtombs (Depends-on): Likewise.
12368         * modules/wcsspn (Depends-on): Likewise.
12369         * modules/wcsstr (Depends-on): Likewise.
12370         * modules/wcstok (Depends-on): Likewise.
12371         * modules/wcswidth (Depends-on): Likewise.
12372         * modules/wctob (Depends-on): Likewise.
12373         * modules/wctomb (Depends-on): Likewise.
12374         * modules/wctype (Depends-on): Likewise.
12375         * modules/wcwidth (Depends-on): Likewise.
12376         * modules/write (Depends-on): Likewise.
12377
12378 2011-05-03  Bruno Haible  <bruno@clisp.org>
12379
12380         Support for conditional dependencies.
12381         * doc/gnulib.texi (Module description): Document the syntax of
12382         conditional dependencies.
12383         * gnulib-tool: New option --conditional-dependencies.
12384         (func_usage): Document it.
12385         (cond_dependencies): New variable.
12386         (func_get_automake_snippet_conditional,
12387         func_get_automake_snippet_unconditional): New functions, extracted from
12388         func_get_automake_snippet.
12389         (func_get_automake_snippet): Use them.
12390         (sed_first_32_chars): New variable.
12391         (func_module_shellfunc_name): New function.
12392         (func_module_shellvar_name): New function.
12393         (func_module_conditional_name): New function.
12394         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12395         func_cond_module_condition): New functions.
12396         (func_modules_transitive_closure): Add support for conditional
12397         dependencies.
12398         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12399         conditional automake snippet in an automake conditional.
12400         (func_emit_autoconf_snippets): Emit shell functions that contain the
12401         code for conditional modules.
12402         (func_import, func_create_testdir): Update specification.
12403
12404 2011-05-03  Eric Blake  <eblake@redhat.com>
12405
12406         test-getaddrinfo: report error information
12407         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12408
12409 2011-05-03  Jim Meyering  <meyering@redhat.com>
12410
12411         bootstrap: avoid build failure when $GZIP is set
12412         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12413         program name.  If defined at all, it is supposed to list gzip options.
12414         Reported by Alan Curry in http://debbugs.gnu.org/8609
12415
12416 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12417
12418         readme-release: new module with release instructions
12419         * modules/readme-release: New module.
12420         * top/README-release: New file, from coreutils, grep, diffutils.
12421         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12422
12423 2011-05-02  Eric Blake  <eblake@redhat.com>
12424
12425         fflush: also replace fclose when fixing fflush
12426         * modules/fflush (Depends-on): Add fclose.
12427         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12428         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12429         memstreams with no backing fd.
12430         * doc/posix-functions/fclose.texi (fclose): Document the use of
12431         fflush module to fix the bug.
12432         * tests/test-fclose.c (main): Relax test when fclose is used in
12433         isolation.
12434
12435         fclose: add some tests
12436         * modules/fclose-tests: New test module.
12437         * tests/test-fclose.c: New file.
12438         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12439
12440         fclose: reduced dependencies
12441         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12442         simpler lseek.
12443         * lib/fclose.c (rpl_fclose): Likewise.
12444         Reported by Simon Josefsson.
12445
12446         exit: drop remaining clients
12447         * modules/argmatch (Depends-on): Replace exit with stdlib.
12448         * modules/copy-file (Depends-on): Likewise.
12449         * modules/execute (Depends-on): Likewise.
12450         * modules/exitfail (Depends-on): Likewise.
12451         * modules/obstack (Depends-on): Likewise.
12452         * modules/pagealign_alloc (Depends-on): Likewise.
12453         * modules/pipe-filter-gi (Depends-on): Likewise.
12454         * modules/pipe-filter-ii (Depends-on): Likewise.
12455         * modules/savewd (Depends-on): Likewise.
12456         * modules/spawn-pipe (Depends-on): Likewise.
12457         * modules/wait-process (Depends-on): Likewise.
12458         * modules/xsetenv (Depends-on): Likewise.
12459         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12460         * modules/git-merge-changelog (Depends-on): Likewise.
12461         * modules/long-options (Depends-on): Likewise.
12462         * modules/pt_chown (Depends-on): Likewise.
12463         * modules/sysexits (Depends-on): Likewise.
12464
12465         freading: relax license from LGPLv3+ to LGPLv2+
12466         * modules/freading (License): Relax LGPL version.
12467
12468 2011-05-02  Bruno Haible  <bruno@clisp.org>
12469
12470         fchdir: Remove unused dependencies.
12471         * modules/fchdir (Depends-on): Remove include_next.
12472
12473 2011-05-02  Bruno Haible  <bruno@clisp.org>
12474
12475         gnulib-tool: Refactor.
12476         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12477         from func_emit_autoconf_snippets.
12478         (func_emit_autoconf_snippets): Use it.
12479
12480 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12481
12482         * NEWS: Document removal of 'exit'.
12483         * modules/exit: Remove file.
12484
12485 2011-05-01  Bruno Haible  <bruno@clisp.org>
12486
12487         Update DEPENDENCIES.
12488         * DEPENDENCIES (gettext): Recommend the newest release.
12489         Reported by Simon Josefsson.
12490
12491 2011-05-01  Bruno Haible  <bruno@clisp.org>
12492
12493         gnulib-tool: Reduce code duplication.
12494         * gnulib-tool (func_emit_autoconf_snippets): New function.
12495         (func_import, func_create_testdir): Use it.
12496
12497 2011-04-30  Eric Blake  <eblake@redhat.com>
12498
12499         fclose: don't fail on non-seekable input stream
12500         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12501         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12502         since fflush is allowed to fail in that case.
12503
12504 2011-04-30  Bruno Haible  <bruno@clisp.org>
12505
12506         dup3: cleanup
12507         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12508
12509 2011-04-30  Bruno Haible  <bruno@clisp.org>
12510
12511         netdb: Make it work in C++ mode.
12512         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12513         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12514         module.
12515         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12516         gl_MODULE_INDICATOR_FOR_TESTS.
12517         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12518         * modules/netdb-c++-tests: New file.
12519         * tests/test-netdb-c++.cc: New file.
12520
12521 2011-04-30  Bruno Haible  <bruno@clisp.org>
12522
12523         New modules 'vfscanf', 'vscanf'.
12524         * modules/vfscanf: New file.
12525         * modules/vscanf: New file.
12526         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12527         here.
12528         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12529         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12530
12531 2011-04-30  Bruno Haible  <bruno@clisp.org>
12532
12533         passfd: Add comments.
12534         * lib/passfd.c: Add comments about platforms.
12535
12536 2011-04-30  Bruno Haible  <bruno@clisp.org>
12537
12538         sys_uio: Make <sys/uio.h> self-contained.
12539         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12540         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12541
12542 2011-04-30  Bruno Haible  <bruno@clisp.org>
12543
12544         sys_socket: Ensure 'struct iovec' definition.
12545         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12546         <sys/socket.h>.
12547         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12548
12549 2011-04-30  Bruno Haible  <bruno@clisp.org>
12550
12551         sys_uio: Protect definition of 'struct iovec'.
12552         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12553         it as a C struct.
12554
12555 2011-04-30  Bruno Haible  <bruno@clisp.org>
12556
12557         manywarnings: fix indentation
12558         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12559
12560 2011-04-30  Pádraig Brady <P@draigBrady.com>
12561
12562         manywarnings: add -Wno-missing-field-initializers if needed.
12563         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12564         option if it's needed to allow initialization with { 0, }
12565
12566 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12567
12568         announce-gen: cosmetic improvement
12569         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12570
12571 2011-04-29  Jim Meyering  <meyering@redhat.com>
12572
12573         vc-list-files: indent with spaces, not TABs
12574         * build-aux/vc-list-files: Convert leading TABs to spaces,
12575         to match the style of most other files in gnulib.
12576
12577         announce-gen: indent with spaces, not TABs
12578         * build-aux/announce-gen: Convert all TABs to spaces, to match
12579         the style of most other files in gnulib.
12580
12581 2011-04-29  Eric Blake  <eblake@redhat.com>
12582
12583         quotearg: avoid uninitialized variable use
12584         * lib/quotearg.c (quoting_options_from_style): Initialize
12585         remaining fields, and ensure that custom styles are only used via
12586         quoting_options rather than quoting_style.
12587
12588 2011-04-29  Jim Meyering  <meyering@redhat.com>
12589
12590         maint.mk: remove unused VC-tag variable
12591         * top/maint.mk (VC-tag): Remove unused variable.
12592
12593 2011-04-29  Bruno Haible  <bruno@clisp.org>
12594
12595         netdb: fix gai_strerror replacements
12596         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12597         * modules/netdb: Substitute it.
12598
12599 2011-04-29  Jim Meyering  <meyering@redhat.com>
12600
12601         test-getcwd.c: avoid new set-but-not-used warning
12602         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12603         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12604         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12605         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12606
12607         test-hash.c: avoid a new shadowing warning
12608         * tests/test-hash.c (main): Don't shadow "dup".
12609
12610 2011-04-28  Eric Blake  <eblake@redhat.com>
12611
12612         getaddrinfo: fix gai_strerror signature
12613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12614         and work around mingw with UNICODE defined.
12615         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12616         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12617         * modules/netdb (Makefile.am): Substitute it.
12618         * lib/netdb.in.h (gai_strerror): Declare replacement.
12619         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12620         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12621         the fix.
12622
12623         getsockopt: avoid compiler warning
12624         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12625         Reported by Matthias Bolte.
12626
12627         tests: drop unused link dependency
12628         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12629         * modules/dirent-safer-tests (Makefile.am): Likewise.
12630         * modules/fdopendir-tests (Makefile.am): Likewise.
12631         * modules/mkfifoat-tests (Makefile.am): Likewise.
12632         * modules/openat-safer-tests (Makefile.am): Likewise.
12633         * modules/openat-tests (Makefile.am): Likewise.
12634         * modules/readlinkat-tests (Makefile.am): Likewise.
12635         * modules/symlinkat-tests (Makefile.am): Likewise.
12636         * modules/linkat-tests (Makefile.am): Likewise.
12637         (Depends-on): Switch to filenamecat-lgpl.
12638         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12639         LIBINTL.
12640         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12641         * tests/test-linkat.c (main): Don't require xalloc.
12642
12643         hash, mgetgroups: drop xalloc dependency
12644         * lib/hash.c (includes): Adjust includes.
12645         * lib/mgetgroups.c (includes): Likewise.
12646         (xgetgroups): Move...
12647         * lib/xgetgroups.c: ...to new file.
12648         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12649         * modules/xgetgroups: New file, split from...
12650         * modules/mgetgroups: ...here.
12651         (Depends-on): Add xalloc-oversized.
12652         * modules/hash (Depends-on): Likewise.
12653         * modules/hash-tests (Depends-on): Drop xalloc.
12654         (test_hash_LDADD): Drop unused library.
12655         * tests/test-hash.c (main): Break xalloc dependency.
12656         (includes): Drop unused include.
12657
12658         xalloc-oversized: new module
12659         * modules/xalloc-oversized: New module.
12660         * modules/xalloc (Depends-on): Add it.
12661         * lib/xalloc.h (xalloc_oversized): Move...
12662         * lib/xalloc-oversized.h: ...into new file.
12663
12664         utimecmp: drop dependency on xmalloc
12665         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12666         due to memory pressure.
12667         * modules/utimecmp (Depends-on): Drop xalloc.
12668
12669 2011-04-27  Eric Blake  <eblake@redhat.com>
12670
12671         getcwd: fix mingw bugs
12672         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12673         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12674         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12675
12676 2011-04-27  Bruno Haible  <bruno@clisp.org>
12677
12678         mkstemps: Ensure declaration on MacOS X 10.5.
12679         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12680         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12681         MacOS X.
12682
12683 2011-04-27  Bruno Haible  <bruno@clisp.org>
12684
12685         mkstemp: More documentation.
12686         * doc/posix-functions/mkstemp.texi: Document header file problem on
12687         MacOS X.
12688
12689 2011-04-27  Bruno Haible  <bruno@clisp.org>
12690
12691         mkstemp: Tweak configure message when cross-compiling.
12692         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12693         result as a guess.
12694
12695 2011-04-27  Bruno Haible  <bruno@clisp.org>
12696
12697         clean-temp: Clarify what it does.
12698         * lib/clean-temp.h: Add more comments.
12699         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12700         module.
12701         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12702         * doc/glibc-functions/mkstemps.texi: Likewise.
12703         * doc/glibc-functions/mkostemps.texi: Likewise.
12704
12705 2011-04-27  Eric Blake  <eblake@redhat.com>
12706
12707         fchdir: avoid extra chdir and fix test
12708         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12709         getcwd-lgpl.
12710         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12711         have to be canonical.
12712         (canonicalize_file_name): Drop unused macro.
12713         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12714
12715         filenamecat-lgpl: fix licence
12716         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12717         when it was first created.
12718
12719         linkat, renameat: add missing dependency
12720         * modules/linkat (Depends-on): Require getcwd-lgpl.
12721         * modules/renameat (Depends-on): Likewise.
12722
12723         tests: reduce dependencies
12724         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12725         * tests/test-renameat.c (main): Likewise.
12726         * modules/linkat-tests (Depends-on): Relax dependency.
12727         * modules/renameat-tests (Depends-on): Likewise.
12728         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12729         dependency explicit.
12730
12731         save-cwd: reduce default dependency
12732         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12733         * lib/save-cwd.c: Update comments.
12734         * NEWS: Document the semantic change.
12735
12736         getcwd: enhance tests
12737         * tests/test-getcwd-lgpl.c: New file, taken from...
12738         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12739         repeat long path stress tests from m4 probe.
12740         * modules/getcwd-lgpl-tests: New module.
12741         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12742         * m4/getcwd-abort-bug.m4: Update comment.
12743         * m4/getcwd-path-max.m4: Likewise.
12744
12745         getcwd-lgpl: new module
12746         * modules/getcwd-lgpl: New module.
12747         * lib/getcwd-lgpl.c: New file.
12748         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12749         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12750         * modules/getcwd (configure.ac): Set C witness.
12751         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12752
12753         getcwd: tweak comments
12754         * m4/getcwd-abort-bug.m4: Fix comments.
12755         * m4/getcwd-path-max.m4: Likewise.
12756         * m4/getcwd.m4: Likewise.
12757
12758 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12759         and Eric Blake  <eblake@redhat.com>
12760
12761         mkstemp: replace if system version uses wrong permissions
12762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12763         read/write mode bits set in file created by mkstemp.
12764         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12765
12766 2011-04-27  Eric Blake  <eblake@redhat.com>
12767
12768         passfd: avoid compiler warning
12769         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12770         Reported by Laine Stump.
12771
12772 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12773
12774         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12775         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12776
12777 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12778         and Eric Blake  <eblake@redhat.com>
12779
12780         mkstemp: mention clean-temp module
12781         * lib/mkstemp.c: Add comment.
12782         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12783
12784 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12785
12786         inttypes: also provide default values for 32-bit tests
12787         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12788         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12789
12790 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12791
12792         strtoumax: remove dependency on strtoimax
12793         This is like the strtoull change of yesterday.
12794         * modules/strtoumax (Files): Add lib/strtoimax.c.
12795         (Depends-on): Remove strtoimax and add verify.
12796
12797         inttypes-incomplete: new module
12798         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12799         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12800         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12801         of gl_INTTYPES_H.
12802         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12803         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12804         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12805         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12806         * modules/strtoumax, modules/xstrtol (Depends-on):
12807         Depend on inttypes-incomplete, not inttypes.
12808         * modules/inttypes-incomplete: New module, containing the contents
12809         of the old modules/inttypes module, except that the Files: section
12810         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12811         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12812         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12813         (Depends-on): Depend only on inttypes-incomplete.
12814         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12815
12816         inttypes: omit now-redundant strtoimax and strtoumax work
12817         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12818         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12819
12820         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12821         This supports apps that need pointers to strtoimax and strtoumax,
12822         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12823         nonexistent functions.  See
12824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12825         et seq.
12826         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12827         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12828         a macro.
12829         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12830
12831 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12832
12833         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12834
12835 2011-04-25  Bruno Haible  <bruno@clisp.org>
12836
12837         strtol, strtoul: Mark modules as obsolete.
12838         * modules/strtol (Status, Notice): New sections.
12839         * modules/strtoul (Status, Notice): New sections.
12840
12841 2011-04-25  Bruno Haible  <bruno@clisp.org>
12842
12843         strtod: Remove check for strtod, unless supporting old platforms.
12844         * modules/strtod-obsolete: New file.
12845         * m4/strtod-obsolete.m4: New file.
12846         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12847         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12848         * modules/strtod (Depends-on): Add strtod-obsolete.
12849         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12850
12851 2011-04-25  Bruno Haible  <bruno@clisp.org>
12852
12853         strcase: Make module obsolete.
12854         * modules/strcase (Status, Notice): New sections.
12855
12856 2011-04-25  Bruno Haible  <bruno@clisp.org>
12857
12858         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12859         * modules/dup2-obsolete: New file.
12860         * m4/dup2-obsolete.m4: New file.
12861         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12862         gl_FUNC_DUP2_OBSOLETE is not also defined.
12863         * modules/dup2 (Depends-on): Add dup2-obsolete.
12864         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12865
12866 2011-04-25  Bruno Haible  <bruno@clisp.org>
12867
12868         strnlen: Avoid memchr related link error on old obsolete platforms.
12869         * modules/memchr-obsolete: New file.
12870         * m4/memchr-obsolete.m4: New file.
12871         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12872         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12873         * modules/memchr (Depends-on): Add memchr-obsolete.
12874         * modules/strnlen (Depends-on): Likewise.
12875         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12876
12877 2011-04-25  Jim Meyering  <meyering@redhat.com>
12878
12879         maint.mk: makefile_at_at_check extend and clean up
12880         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12881         in addition to */Makefile.am.
12882         Exempt legitimate uses of @VAR@ notation, e.g.,
12883         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12884         Remove obsolete coreutils-specific comment.
12885         Prompted by discussion here:
12886         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12887
12888 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12889
12890         strtoul: remove dependency on strtol
12891         This is so that 'configure' need not check for strtol merely because
12892         the application needs strtoul.
12893         * modules/strtoul (Files): Add lib/strtol.c.
12894         (Depends-on): Remove strtol.
12895
12896         strtoull: remove dependency on strtoul
12897         This is like the strtoll change.
12898         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12899         (Depends-on): Remove strtoul.
12900
12901         strtoll: remove dependency on strtol
12902         This is so that 'configure' need not check for strtol merely because
12903         the application needs strtoll.
12904         * modules/strtoll (Files): Add lib/strtol.c.
12905         (Depends-on): Remove strtol.
12906
12907 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12908
12909         inttypes: Move some configure check to module 'imaxdiv'.
12910         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12911         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12912         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12913
12914 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12915
12916         inttypes: Move some configure check to module 'imaxabs'.
12917         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12918         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12919         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12920
12921 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12922
12923         inttypes: Remove configure tests that are not needed since 2009-12-31.
12924         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12925         gl_cv_header_working_inttypes_h.
12926
12927 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12928
12929         * modules/strnlen (Depends-on): Remove memchr.
12930         The strnlen implementation doesn't need the memchr module's fixes; see
12931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12932
12933         strtol: remove dependency on wchar
12934         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12935         * modules/strtol (Depends-on): Remove wchar.
12936
12937 2011-04-21  Eric Blake  <eblake@redhat.com>
12938
12939         passfd: fix test regression on Linux
12940         * modules/passfd-tests (configure.ac): Correct socketpair check.
12941
12942         passfd: speed up configure and drop unused code
12943         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12944         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12945         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12946         Instead of probing at configure for unix_scm_rights_bsd44_way,
12947         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12948         check to a struct member probe.
12949         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12950         (sendfd, recvfd): Update preprocessor checks.
12951         * modules/passfd (Files): Reflect rename, and drop unused file.
12952         (Depends-on): Drop unused dependency.
12953
12954         passfd: allow compilation on mingw
12955         * modules/sys_socket (Depends-on): Add sys_uio.
12956         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12957         iovec and a minimal struct msghdr.
12958         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12959         * tests/test-sys_socket.c (main): Enhance test.
12960         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12961         guaranteed to provide what we need.
12962         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12963         * modules/passfd-tests (Depends-on): Add sys_wait.
12964         * tests/test-passfd.c (main): Skip test on mingw, for now.
12965         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12966         partial 'struct msghdr' implementation.
12967
12968         sys_uio: new module
12969         * modules/sys_uio: New module.
12970         * modules/sys_uio-tests: Likewise.
12971         * lib/sys_uio.in.h: New file.
12972         * m4/sys_uio_h.m4: Likewise.
12973         * tests/test-sys_uio.c: Likewise.
12974         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12975         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12976
12977 2011-04-20  Jim Meyering  <meyering@redhat.com>
12978
12979         useless-if-before-free: avoid false-positive
12980         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12981         disjunct so that it too requires a terminating ";".  Without that,
12982         this script would identify as useless one statement from gcc that
12983         was not:
12984           if (aligned_ptr)
12985             free (((void **) aligned_ptr) [-1]);
12986
12987 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12988
12989         doc: update users.txt.
12990         * users.txt: Add barcode.
12991
12992 2011-04-19  Bruno Haible  <bruno@clisp.org>
12993
12994         ioctl: Remove link dependency on native Windows.
12995         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12996         (gl_close_fn, gl_ioctl_fn): New types.
12997         (struct fd_hook): Renamed from struct close_hook. Change type of
12998         private_close_fn field. Add private_ioctl_fn field.
12999         (close_hook_fn): Add parameter for primary close method.
13000         (execute_close_hooks, execute_all_close_hooks): Likewise.
13001         (ioctl_hook_fn): New type.
13002         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13003         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13004         argument.
13005         (unregister_fd_hook): Renamed from unregister_close_hook.
13006         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13007         Don't include <unistd.h>.
13008         (close): Remove undef.
13009         (anchor): Update.
13010         (execute_close_hooks): Add argument for primary close method.
13011         (execute_all_close_hooks): Likewise.
13012         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13013         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13014         argument. Allow each argument to be NULL.
13015         (unregister_fd_hook): Renamed from unregister_close_hook.
13016         * lib/close.c (rpl_close): Pass 'close' function pointer to
13017         execute_all_close_hooks.
13018         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13019         (primary_ioctl): New function.
13020         (ioctl): Don't call ioctlsocket here. Instead, call
13021         execute_all_ioctl_hooks.
13022         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13023         close method.
13024         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13025         (fd_sockets_hook): Renamed from close_sockets_hook.
13026         (gl_sockets_startup, gl_sockets_cleanup): Update.
13027         * modules/fd-hook: Renamed from modules/close-hook. Update.
13028         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13029         * modules/sockets (Depends-on): Likewise.
13030         * modules/ioctl (Depends-on): Add fd-hook.
13031         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13032         GNULIB_SOCKET.
13033
13034 2011-04-19  Bruno Haible  <bruno@clisp.org>
13035
13036         Move the support of O_NONBLOCK in open() to the 'open' module.
13037         * modules/nonblocking (Depends-on): Remove 'open'.
13038         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13039         gl_cv_have_open_O_NONBLOCK.
13040         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13041         O_NONBLOCK support.
13042         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13043
13044 2011-04-17  Bruno Haible  <bruno@clisp.org>
13045
13046         pipe2: Simplify code.
13047         * lib/pipe2.c (pipe2): Reduce code duplication.
13048
13049 2011-04-17  Bruno Haible  <bruno@clisp.org>
13050
13051         nonblocking: Add comment.
13052         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13053
13054 2011-04-17  Bruno Haible  <bruno@clisp.org>
13055
13056         nonblocking: Add tests for sockets.
13057         * tests/test-nonblocking-socket.sh: New file.
13058         * tests/test-nonblocking-socket-main.c: New file.
13059         * tests/test-nonblocking-socket-child.c: New file.
13060         * tests/test-nonblocking-socket.h: New file.
13061         * tests/socket-server.h: New file.
13062         * tests/socket-client.h: New file.
13063         * modules/nonblocking-socket-tests: New file.
13064         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13065
13066 2011-04-17  Bruno Haible  <bruno@clisp.org>
13067
13068         nonblocking: Add tests for pipes.
13069         * tests/test-nonblocking-pipe.sh: New file.
13070         * tests/test-nonblocking-pipe-main.c: New file.
13071         * tests/test-nonblocking-pipe-child.c: New file.
13072         * tests/test-nonblocking-pipe.h: New file.
13073         * tests/test-nonblocking-writer.h: New file.
13074         * tests/test-nonblocking-reader.h: New file.
13075         * tests/test-nonblocking-misc.h: New file.
13076         * modules/nonblocking-pipe-tests: New file.
13077         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13078
13079 2011-04-16  Bruno Haible  <bruno@clisp.org>
13080
13081         gettext: Clarify the needed programmer actions.
13082         * modules/gettext (Notice): New field.
13083         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13084
13085 2011-04-16  Bruno Haible  <bruno@clisp.org>
13086
13087         strchrnul: Tweak last commit.
13088         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13089         bug.
13090         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13091         as in _GL_FUNCDECL_SYS.
13092         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13093         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13094
13095 2011-04-15  Eric Blake  <eblake@redhat.com>
13096
13097         strchrnul: work around cygwin bug
13098         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13099         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13101         * modules/string (Makefile.am): Substitute it.
13102         * lib/string.in.h (strchrnul): Use it.
13103
13104 2011-04-15  Bruno Haible  <bruno@clisp.org>
13105
13106         Don't require lib/stdio-write.c when only module 'stdio' is used.
13107         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13108         invocation.
13109         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13110
13111 2011-04-14  Bruno Haible  <bruno@clisp.org>
13112
13113         Support non-blocking pipe I/O in read() on native Windows.
13114         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13115         (read): New declaration.
13116         * lib/read.c: New file.
13117         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13118         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13119         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13120         vscanf): New declarations.
13121         * lib/stdio-read.c: New file.
13122         * m4/read.m4: New file.
13123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13124         REPLACE_READ.
13125         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13126         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13127         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13128         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13129         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13130         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13131         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13132         * modules/read: New file.
13133         * modules/nonblocking (Files): Add lib/stdio-read.c.
13134         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13135         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13136         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13137         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13138         * modules/pread (Depends-on): Add read.
13139         * modules/safe-read (Depends-on): Likewise.
13140         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13141         gets, scanf, vfscanf, vscanf): Verify signatures.
13142         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13143         problem with non-blocking pipes.
13144         * doc/posix-functions/fgetc.texi: Likewise.
13145         * doc/posix-functions/fgets.texi: Likewise.
13146         * doc/posix-functions/fread.texi: Likewise.
13147         * doc/posix-functions/fscanf.texi: Likewise.
13148         * doc/posix-functions/getc.texi: Likewise.
13149         * doc/posix-functions/getchar.texi: Likewise.
13150         * doc/posix-functions/gets.texi: Likewise.
13151         * doc/posix-functions/scanf.texi: Likewise.
13152         * doc/posix-functions/vfscanf.texi: Likewise.
13153         * doc/posix-functions/vscanf.texi: Likewise.
13154
13155 2011-04-14  Bruno Haible  <bruno@clisp.org>
13156
13157         Support non-blocking pipe I/O in write() on native Windows.
13158         * lib/write.c (rpl_write): Split a write request that failed merely
13159         because the byte count was larger than the pipe buffer's size.
13160         * doc/posix-functions/write.texi: Mention the problem with large byte
13161         counts.
13162
13163 2011-04-14  Bruno Haible  <bruno@clisp.org>
13164
13165         wchar: Ensure that wchar_t gets defined on uClibc.
13166         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13167         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13168
13169 2011-04-13  Bruno Haible  <bruno@clisp.org>
13170
13171         safe-write, full-read: Avoid unnecessary compilation units.
13172         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13173         (Depends-on): Remove safe-read. Add ssize_t.
13174         * modules/full-read (Files): Add lib/full-write.c.
13175         (Depends-on): Add full-write.
13176
13177 2011-04-13  Bruno Haible  <bruno@clisp.org>
13178
13179         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13180         * modules/pwrite (Depends-on): Add 'write'.
13181
13182 2011-04-13  Bruno Haible  <bruno@clisp.org>
13183
13184         Support non-blocking pipe I/O in write() on native Windows.
13185         * lib/unistd.in.h (write): Enable replacement also if
13186         GNULIB_UNISTD_H_NONBLOCKING is 1.
13187         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13188         (rpl_write): When failing to write on a non-blocking pipe, change
13189         errno from ENOSPC to EAGAIN.
13190         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13191         putchar, puts, vfprintf, vprintf): Enable replacement also if
13192         GNULIB_STDIO_H_NONBLOCKING is 1.
13193         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13194         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13195         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13196         CALL_WITH_SIGPIPE_EMULATION.
13197         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13198         * m4/nonblocking.m4: New file.
13199         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13200         for non-blocking I/O support.
13201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13202         GNULIB_UNISTD_H_NONBLOCKING.
13203         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13204         required for non-blocking I/O support.
13205         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13206         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13207         lib/stdio-write.c, m4/asm-underscore.m4.
13208         (Depends-on): Add stdio, unistd.
13209         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13210         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13211         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13212         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13213         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13214         problem with non-blocking pipes.
13215         * doc/posix-functions/fputc.texi: Likewise.
13216         * doc/posix-functions/fputs.texi: Likewise.
13217         * doc/posix-functions/fwrite.texi: Likewise.
13218         * doc/posix-functions/printf.texi: Likewise.
13219         * doc/posix-functions/putc.texi: Likewise.
13220         * doc/posix-functions/putchar.texi: Likewise.
13221         * doc/posix-functions/puts.texi: Likewise.
13222         * doc/posix-functions/vfprintf.texi: Likewise.
13223         * doc/posix-functions/vprintf.texi: Likewise.
13224         * doc/posix-functions/write.texi: Likewise.
13225
13226 2011-04-10  Jim Meyering  <meyering@redhat.com>
13227
13228         maint.mk: prohibit doubled words
13229         Detect them also when they're separated by a newline.
13230         There are 3 ways to customize it:
13231           - disable the test on a per file basis, as usual with rules using
13232             $(VC_LIST_EXCEPT)
13233           - replace the default doubled-word-selecting regexp (affects all files)
13234           - ignore a particular file-vs-doubled-word match
13235         I nearly used that last one to ignore the "is is" match in
13236         coreutils' NEWS file, since the text was "ls -is is ..."
13237         To do that, I would have added this line to cfg.mk:
13238           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13239         but it would have ignored any "is is" match in NEWS.
13240         Low probability, but still...
13241         Instead, I changed the text, slightly:
13242           -  ls -is is now consistent with ls -lis in ignoring values returned
13243           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13244         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13245         (prohibit_doubled_word_): Define.
13246         (sc_prohibit_doubled_word): New rule.
13247         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13248
13249 2011-04-10  Jim Meyering  <meyering@redhat.com>
13250
13251         maint: fix doubled-word typo in comment
13252         * m4/gethostname.m4: s/is is/it is/
13253         * m4/getdomainname.m4: Likewise.
13254
13255 2011-04-10  Jim Meyering  <meyering@redhat.com>
13256
13257         maint: remove doubled word: s/it it/it/
13258         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13259
13260 2011-04-10  Jim Meyering  <meyering@redhat.com>
13261
13262         maint.mk: remove useless semicolon and backslash
13263         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13264         semicolon and backslash.
13265
13266 2011-04-10  Bruno Haible  <bruno@clisp.org>
13267
13268         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13269         * modules/stdint-tests (Depends-on): Add wchar.
13270
13271 2011-04-10  Jim Meyering  <meyering@redhat.com>
13272
13273         maint: remove doubled words in comments, e.g., s/a a/a/
13274         * lib/strptime.c (day_of_the_week): s/the the/the/
13275         * tests/test-chown.h (test_chown): s/a a/a/
13276
13277         test-chown.h: correct a cast
13278         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13279         when the destination is a stat.st_gid.
13280
13281 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13282
13283         getaddrinfo: Fix test for sa_len member.
13284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13285         include <sys/types.h> before <sys/socket.h>.
13286
13287 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13288
13289         maint: change "can not" to "cannot"
13290         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13291         boundaries.
13292
13293 2011-04-09  Jim Meyering  <meyering@redhat.com>
13294
13295         maint: change "a a" to "a"
13296         * tests/test-lchown.h (test_lchown): s/a a/a/
13297
13298         maint.mk: prohibit \<the the\>
13299         * top/maint.mk (sc_prohibit_the_the): New rule.
13300
13301         maint: fix "the the" in comment
13302         * lib/count-one-bits.h: s/the the/the/
13303
13304         maint: change "can not" to "cannot"
13305         But do not change the occurrences in maintain.texi or in
13306         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13307         * doc/gnulib-tool.texi: s/can not/cannot/
13308         * doc/posix-functions/accept.texi (accept): Likewise.
13309         * doc/posix-functions/socket.texi (socket): Likewise.
13310         * lib/mbrtowc.c: Likewise.
13311
13312         maint.mk: prohibit use of "can not"
13313         * top/maint.mk (sc_prohibit_can_not): New rule.
13314         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13315
13316 2011-04-09  Bruno Haible  <bruno@clisp.org>
13317
13318         careadlinkat: Guard against misuse of careadlinkatcwd.
13319         * lib/careadlinkat.c: Include <stdlib.h>.
13320         (careadlinkatcwd): Check that the fd argument is as expected.
13321
13322 2011-04-09  Bruno Haible  <bruno@clisp.org>
13323
13324         careadlinkat: Use common coding style.
13325         * lib/careadlinkat.c: Move gnulib includes after system includes.
13326
13327 2011-04-09  Bruno Haible  <bruno@clisp.org>
13328
13329         careadlinkat: Clarify specification.
13330         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13331         (careadlinkatcwd): Add comment.
13332         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13333
13334 2011-04-09  Bruno Haible  <bruno@clisp.org>
13335
13336         areadlinkat: Avoid link error on many platforms.
13337         * modules/areadlinkat (Depends-on): Add areadlink.
13338
13339 2011-04-09  Bruno Haible  <bruno@clisp.org>
13340
13341         allocator, careadlinkat: Fix double-inclusion guard.
13342         * lib/allocator.h: Fix double-inclusion guard.
13343         * lib/careadlinkat.h: Likewise.
13344
13345 2011-04-09  Bruno Haible  <bruno@clisp.org>
13346
13347         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13348         * lib/relocwrapper.c: Update dependencies hierarchy.
13349         * build-aux/install-reloc: Update list of files to be compiled.
13350         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13351         lib/allocator.[hc].
13352
13353 2011-04-08  Eric Blake  <eblake@redhat.com>
13354
13355         strftime: silence gnulib-tool warning
13356         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13357
13358 2011-04-08  Bruno Haible  <bruno@clisp.org>
13359
13360         verify: Fix syntax error with GCC 4.6 in C++ mode.
13361         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13362         (HAVE_STATIC_ASSERT): New macro.
13363         (verify_true, verify): Use 'static_assert' if it is supported and
13364         '_Static_assert' is not supported.
13365
13366 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13367
13368         allocator: New module.
13369         * modules/allocator, lib/allocator.c: New files.
13370         * lib/allocator.h (stdlib_allocator): New decl.
13371         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13372         Remove.  Do not include <stdlib.h>.
13373         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13374         * modules/careadlinkat (Files): Remove lib/allocator.h.
13375         (Depends-on): Add allocator.
13376
13377         stdlib: let modules use system malloc, realloc
13378         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13379         if !_GL_USE_STDLIB_ALLOC.
13380         (malloc, realloc): Limit this change to a smaller scope.
13381
13382         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13383         (malloc, realloc): Don't #undef; no longer needed.
13384         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13385         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13386         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13387         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13388         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13389         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13390         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13391         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13392
13393         careadlinkat: rename members to avoid problem
13394         * lib/allocator.h (struct allocator): Rename members from
13395         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13396         and realloc are #define'd.  Reported by Eric Blake in
13397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13398         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13399
13400 2011-04-08  Eric Blake  <eblake@redhat.com>
13401
13402         nonblocking: reduce dependency
13403         * tests/test-nonblocking.c: Only test sockets when in use.
13404         * modules/nonblocking-tests (Depends-on): Drop socket.
13405         (Makefile.am): Link even if sockets are not present.
13406         * modules/pipe2-tests (Makefile.am): Likewise.
13407         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13408
13409         pipe2: fix O_NONBLOCK support on mingw
13410         * modules/pipe2 (Depends-on): Add nonblocking.
13411         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13412         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13413         * tests/test-nonblocking.c (main): Likewise.
13414         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13415
13416         fcntl-h: fix O_ACCMODE on cygwin
13417         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13418         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13419
13420         pipe-filter: drop O_NONBLOCK workarounds
13421         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13422         * modules/pipe-filter-ii (Depends-on): Likewise.
13423         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13424
13425         nonblocking: provide O_NONBLOCK for mingw
13426         * modules/nonblocking (Depends-on): Add open.
13427         (configure.ac): Set new witness macro.
13428         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13429         * modules/fcntl-h (Makefile.am): Substitute it.
13430         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13431         nonblocking module is in use.
13432         * lib/nonblocking.c: Adjust portability test.
13433         * lib/open.c (open): Don't let native open see gnulib flag.
13434         * tests/test-fcntl-h.c (main): Enhance test.
13435         * tests/test-open.h (test_open): Likewise.
13436         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13437
13438         careadlinkat: fix compilation error on mingw
13439         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13440         within struct allocator.
13441
13442 2011-04-06  Eric Blake  <eblake@redhat.com>
13443
13444         binary-io: relicense under LGPLv2+
13445         * modules/binary-io (License): Relax to LGPLv2+.
13446         Requested for libvirt, and required by pipe2.
13447
13448 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13449
13450         verify: use _Static_assert if available
13451         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13452         (verify_true, verify): Use it if available.  This generates better
13453         diagnostics with GCC 4.6.0 and later.
13454
13455 2011-04-05  Bruno Haible  <bruno@clisp.org>
13456
13457         Remove leftover generated .h files after config.status changed.
13458
13459         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13460         GL_GENERATE_ALLOCA_H.
13461         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13462         GL_GENERATE_ALLOCA_H evaluates to false.
13463
13464         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13465         GL_GENERATE_ARGZ_H.
13466         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13467         evaluates to false.
13468
13469         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13470         GL_GENERATE_BYTESWAP_H.
13471         * modules/byteswap (Makefile.am): Remove byteswap.h if
13472         GL_GENERATE_BYTESWAP_H evaluates to false.
13473
13474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13475         GL_GENERATE_ERRNO_H.
13476         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13477         evaluates to false.
13478
13479         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13480         GL_GENERATE_FLOAT_H.
13481         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13482         evaluates to false.
13483
13484         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13485         GL_GENERATE_FNMATCH_H.
13486         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13487         GL_GENERATE_FNMATCH_H evaluates to false.
13488
13489         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13490         GL_GENERATE_GLOB_H.
13491         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13492         evaluates to false.
13493
13494         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13495         automake conditional GL_GENERATE_ICONV_H.
13496         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13497         evaluates to false.
13498
13499         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13500         GL_GENERATE_NETINET_IN_H.
13501         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13502         GL_GENERATE_NETINET_IN_H evaluates to false.
13503
13504         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13505         conditional GL_GENERATE_PTHREAD_H.
13506         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13507         * modules/pthread (Makefile.am): Remove pthread.h if
13508         GL_GENERATE_PTHREAD_H evaluates to false.
13509
13510         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13511         GL_GENERATE_SCHED_H.
13512         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13513         evaluates to false.
13514
13515         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13516         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13517         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13518         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13519
13520         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13521         GL_GENERATE_STDARG_H.
13522         * modules/stdarg (Makefile.am): Remove stdarg.h if
13523         GL_GENERATE_STDARG_H evaluates to false.
13524
13525         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13526         GL_GENERATE_STDBOOL_H.
13527         * modules/stdbool (Makefile.am): Remove stdbool.h if
13528         GL_GENERATE_STDBOOL_H evaluates to false.
13529
13530         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13531         conditional GL_GENERATE_STDDEF_H.
13532         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13533         * modules/stddef (Makefile.am): Remove stddef.h if
13534         GL_GENERATE_STDDEF_H evaluates to false.
13535
13536         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13537         GL_GENERATE_STDINT_H.
13538         * modules/stdint (Makefile.am): Remove stdint.h if
13539         GL_GENERATE_STDINT_H evaluates to false.
13540
13541         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13542         GL_GENERATE_SYSEXITS_H.
13543         * modules/sysexits (Makefile.am): Remove sysexits.h if
13544         GL_GENERATE_SYSEXITS_H evaluates to false.
13545
13546         Reported by Karl Berry and Ralf Wildenhues.
13547
13548 2011-04-05  Bruno Haible  <bruno@clisp.org>
13549
13550         Ensure to rebuild generated .h files when config.status has changed.
13551         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13552         config.status.
13553         * modules/ctype (Makefile.am): Likewise.
13554         * modules/dirent (Makefile.am): Likewise.
13555         * modules/errno (Makefile.am): Likewise.
13556         * modules/fcntl-h (Makefile.am): Likewise.
13557         * modules/float (Makefile.am): Likewise.
13558         * modules/getopt-posix (Makefile.am): Likewise.
13559         * modules/glob (Makefile.am): Likewise.
13560         * modules/iconv-h (Makefile.am): Likewise.
13561         * modules/inttypes (Makefile.am): Likewise.
13562         * modules/langinfo (Makefile.am): Likewise.
13563         * modules/locale (Makefile.am): Likewise.
13564         * modules/math (Makefile.am): Likewise.
13565         * modules/netdb (Makefile.am): Likewise.
13566         * modules/netinet_in (Makefile.am): Likewise.
13567         * modules/poll-h (Makefile.am): Likewise.
13568         * modules/pthread (Makefile.am): Likewise.
13569         * modules/pty (Makefile.am): Likewise.
13570         * modules/sched (Makefile.am): Likewise.
13571         * modules/search (Makefile.am): Likewise.
13572         * modules/selinux-h (Makefile.am): Likewise.
13573         * modules/signal (Makefile.am): Likewise.
13574         * modules/spawn (Makefile.am): Likewise.
13575         * modules/stdarg (Makefile.am): Likewise.
13576         * modules/stdbool (Makefile.am): Likewise.
13577         * modules/stddef (Makefile.am): Likewise.
13578         * modules/stdint (Makefile.am): Likewise.
13579         * modules/stdio (Makefile.am): Likewise.
13580         * modules/stdlib (Makefile.am): Likewise.
13581         * modules/string (Makefile.am): Likewise.
13582         * modules/strings (Makefile.am): Likewise.
13583         * modules/sys_file (Makefile.am): Likewise.
13584         * modules/sys_ioctl (Makefile.am): Likewise.
13585         * modules/sys_select (Makefile.am): Likewise.
13586         * modules/sys_socket (Makefile.am): Likewise.
13587         * modules/sys_stat (Makefile.am): Likewise.
13588         * modules/sys_time (Makefile.am): Likewise.
13589         * modules/sys_times (Makefile.am): Likewise.
13590         * modules/sys_utsname (Makefile.am): Likewise.
13591         * modules/sys_wait (Makefile.am): Likewise.
13592         * modules/sysexits (Makefile.am): Likewise.
13593         * modules/termios (Makefile.am): Likewise.
13594         * modules/time (Makefile.am): Likewise.
13595         * modules/unistd (Makefile.am): Likewise.
13596         * modules/wchar (Makefile.am): Likewise.
13597         * modules/wctype-h (Makefile.am): Likewise.
13598         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13599
13600 2011-04-05  Bruno Haible  <bruno@clisp.org>
13601
13602         pipe2: Relicense under LGPLv2+.
13603         * modules/pipe2 (License): Change to LGPLv2+.
13604         Requested by Eric Blake, for libvirt.
13605
13606 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13607
13608         bootstrap: compute gnulib_extra_files after updating build_aux
13609         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13610         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13611
13612 2011-04-05  Eric Blake  <eblake@redhat.com>
13613
13614         bootstrap: preserve git whitelist item sorting
13615         * build-aux/bootstrap (sort_patterns): New function.
13616         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13617
13618 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13619
13620         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13621         sc_space_tab check.
13622
13623 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13624
13625         areadlink, areadlinkat: rewrite in terms of careadlinkat
13626         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13627         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13628         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13629         (malloc, realloc): Remove #undefs.
13630         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13631         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13632         readlink, ssize_t, stdint, unistd.
13633         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13634         areadlink, stdint.
13635
13636         careadlinkat: new module
13637         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13638         * modules/careadlinkat: New files, written by me with
13639         a review and feedback from Ben Pfaff in
13640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13641
13642 2011-04-01  Bruno Haible  <bruno@clisp.org>
13643
13644         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13645         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13646         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13647         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13648         Reported by Bruce Korb <bruce.korb@gmail.com>.
13649
13650 2011-04-01  Bruno Haible  <bruno@clisp.org>
13651
13652         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13653         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13654         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13655         * modules/wcpcpy (Depends-on): Add extensions.
13656         * modules/wcpncpy (Depends-on): Likewise.
13657         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13658         systems.
13659         * doc/posix-functions/wcpncpy.texi: Likewise.
13660         * doc/posix-functions/wcwidth.texi: Likewise.
13661
13662 2011-03-31  Eric Blake  <eblake@redhat.com>
13663
13664         nonblocking: fix mingw test failures
13665         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13666         non-blocking flag on regular file.
13667         (get_nonblocking_flag): Set errno on invalid fd.
13668         * tests/test-nonblocking.c (main): Avoid test failure on
13669         directories if fchdir is not active.
13670         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13671
13672 2011-03-31  Bruno Haible  <bruno@clisp.org>
13673
13674         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13675         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13676         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13677         Reported by Simon Josefsson <simon@josefsson.org>.
13678
13679 2011-03-31  Bruno Haible  <bruno@clisp.org>
13680         and Eric Blake  <eblake@redhat.com>
13681
13682         nonblocking: new module
13683         * modules/nonblocking: New module.
13684         * modules/nonblocking-tests: Likewise.
13685         * lib/nonblocking.h: New file.
13686         * lib/nonblocking.c: Likewise.
13687         * tests/test-nonblocking.c: New test.
13688         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13689
13690 2011-03-30  Bruno Haible  <bruno@clisp.org>
13691
13692         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13693         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13694         instead of 'printf' format for GCC >= 4.4.
13695         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13696         (fprintf, printf, vfprintf, vprintf): Declare with
13697         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13698         the system's vfprintf() function.
13699         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13700
13701 2011-03-30  Eric Blake  <eblake@redhat.com>
13702
13703         passfd: fix scoping bug
13704         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13705         before sendmsg/recvmsg.
13706
13707         passfd: standardize coding conventions
13708         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13709         can be learned at compile time.
13710         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13711         ifdefs.
13712         (sendfd, recvfd): Follow gnulib code conventions.
13713
13714         passfd: fix incorrect sendmsg arguments
13715         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13716         incorrect msg_controllen value.
13717         * modules/passfd-tests (Depends-on): Check for alarm.
13718         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13719         Reported by Bastien ROUCARIES.
13720
13721 2011-03-30  Bruno Haible  <bruno@clisp.org>
13722
13723         c-strcasestr: Relicense under LGPLv2+.
13724         * modules/c-strcasestr (License): Change to LGPLv2+.
13725         Requested by Eric Blake, for libvirt.
13726
13727 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13728
13729         * users.txt: Add libidn2.  Fix libtasn1 link.
13730
13731 2011-03-30  Jim Meyering  <meyering@redhat.com>
13732
13733         tests: readlink* ("",... fails with EINVAL on newer kernels
13734         readlink and readlinkat have typically failed with ENOENT for
13735         the invalid, empty file name,  "".  However, with the advent
13736         of linux-2.6.39, they fail with EINVAL.
13737         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13738         when operating on the empty file name.
13739         * tests/test-readlink.h (test_readlink): Likewise.
13740
13741 2011-03-29  Bruno Haible  <bruno@clisp.org>
13742
13743         Relicense some modules under LGPLv2+, for libidn2.
13744         * modules/array-mergesort (License): Change to LGPLv2+.
13745         * modules/c-strcaseeq (License): Likewise.
13746         * modules/striconveh (License): Likewise.
13747         * modules/striconveha (License): Likewise.
13748         * modules/uniconv/base (License): Likewise.
13749         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13750         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13751         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13752         * modules/unictype/base (License): Likewise.
13753         * modules/unictype/bidiclass-of (License): Likewise.
13754         * modules/unictype/category-M (License): Likewise.
13755         * modules/unictype/category-none (License): Likewise.
13756         * modules/unictype/category-of (License): Likewise.
13757         * modules/unictype/category-test (License): Likewise.
13758         * modules/unictype/category-test-withtable (License): Likewise.
13759         * modules/unictype/combining-class (License): Likewise.
13760         * modules/unictype/joiningtype-of (License): Likewise.
13761         * modules/unictype/scripts (License): Likewise.
13762         * modules/uninorm/base (License): Likewise.
13763         * modules/uninorm/canonical-decomposition (License): Likewise.
13764         * modules/uninorm/composition (License): Likewise.
13765         * modules/uninorm/decompose-internal (License): Likewise.
13766         * modules/uninorm/decomposition-table (License): Likewise.
13767         * modules/uninorm/nfc (License): Likewise.
13768         * modules/uninorm/nfd (License): Likewise.
13769         * modules/uninorm/u32-normalize (License): Likewise.
13770         * modules/unistr/base (License): Likewise.
13771         * modules/unistr/u32-cpy (License): Likewise.
13772         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13773         * modules/unistr/u32-to-u8 (License): Likewise.
13774         * modules/unistr/u32-uctomb (License): Likewise.
13775         * modules/unistr/u8-check (License): Likewise.
13776         * modules/unistr/u8-mblen (License): Likewise.
13777         * modules/unistr/u8-mbtouc (License): Likewise.
13778         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13779         * modules/unistr/u8-mbtoucr (License): Likewise.
13780         * modules/unistr/u8-prev (License): Likewise.
13781         * modules/unistr/u8-strlen (License): Likewise.
13782         * modules/unistr/u8-to-u32 (License): Likewise.
13783         * modules/unistr/u8-uctomb (License): Likewise.
13784         * modules/unitypes (License): Likewise.
13785         Requested by Simon Josefsson.
13786
13787 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13788
13789         lib-symbol-visibility: Add a notice.
13790         * modules/lib-symbol-visibility (Notice): New field.
13791
13792 2011-03-29  Bruno Haible  <bruno@clisp.org>
13793
13794         getaddrinfo: Doc fix.
13795         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13796         section "fixed in Gnulib".
13797
13798 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13799
13800         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13801         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13802
13803 2011-03-26  Bruno Haible  <bruno@clisp.org>
13804
13805         unictype/property-byname: Reduce the number of load-time relocations.
13806         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13807         (UC_PROPERTY_INDEX_*): New enumeration values.
13808         (uc_property_byname): Convert an index from the lookup table to an
13809         uc_property_t.
13810         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13811         values.
13812
13813 2011-03-26  Bruno Haible  <bruno@clisp.org>
13814
13815         unictype/property-byname: Allow omitted word separators and aliases.
13816         * lib/unictype/pr_byname.gperf: Add property names without word
13817         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13818         for 'space'.
13819
13820 2011-03-26  Bruno Haible  <bruno@clisp.org>
13821
13822         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13823         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13824         also hyphens to space.
13825         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13826         without spaces.
13827         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13828
13829 2011-03-26  Bruno Haible  <bruno@clisp.org>
13830
13831         unictype/joiningtype-byname: Recognize long names as well.
13832         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13833         a long name.
13834         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13835         unictype/joiningtype_byname.h.
13836         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13837         * lib/unictype/joiningtype_byname.gperf: New file.
13838         * modules/unictype/joiningtype-byname (Files): Add
13839         lib/unictype/joiningtype_byname.gperf.
13840         (Depends-on): Add gperf.
13841         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13842         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13843         long names.
13844
13845         Tests for module 'unictype/joiningtype-longname'.
13846         * modules/unictype/joiningtype-longname-tests: New file.
13847         * tests/unictype/test-joiningtype_longname.c: New file.
13848
13849         New module 'unictype/joiningtype-longname'.
13850         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13851         * lib/unictype/joiningtype_longname.c: New file.
13852         * modules/unictype/joiningtype-longname: New file.
13853         * modules/unictype/joiningtype-all (Depends-on): Add
13854         unictype/joiningtype-longname.
13855
13856 2011-03-26  Bruno Haible  <bruno@clisp.org>
13857
13858         unictype/bidiclass-byname: Recognize long names as well.
13859         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13860         name.
13861         * lib/unictype/bidi_byname.c: Include <string.h>,
13862         unictype/bidi_byname.h.
13863         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13864         * lib/unictype/bidi_byname.gperf: New file.
13865         * modules/unictype/bidiclass-byname (Files): Add
13866         lib/unictype/bidi_byname.gperf.
13867         (Depends-on): Add gperf.
13868         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13869         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13870         long names.
13871
13872         Tests for module 'unictype/bidiclass-longname'.
13873         * modules/unictype/bidiclass-longname-tests: New file.
13874         * tests/unictype/test-bidi_longname.c: New file.
13875
13876         New module 'unictype/bidiclass-longname'.
13877         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13878         * lib/unictype/bidi_longname.c: New file.
13879         * modules/unictype/bidiclass-longname: New file.
13880         * modules/unictype/bidiclass-all (Depends-on): Add
13881         unictype/bidiclass-longname.
13882
13883 2011-03-26  Bruno Haible  <bruno@clisp.org>
13884
13885         unictype/bidi*: Rename modules.
13886         * modules/unictype/bidiclass-all: Renamed from
13887         modules/unictype/bidicategory-all.
13888         * modules/unictype/bidiclass-name: Renamed from
13889         modules/unictype/bidiclass-name.
13890         (Description): Update.
13891         * modules/unictype/bidiclass-name-tests: Renamed from
13892         modules/unictype/bidicategory-name-tests.
13893         * modules/unictype/bidiclass-byname: Renamed from
13894         modules/unictype/bidicategory-byname.
13895         (Description): Update.
13896         * modules/unictype/bidiclass-byname-tests: Renamed from
13897         modules/unictype/bidicategory-byname-tests.
13898         * modules/unictype/bidiclass-of: Renamed from
13899         modules/unictype/bidicategory-of.
13900         (Description): Update.
13901         * modules/unictype/bidiclass-of-tests: Renamed from
13902         modules/unictype/bidicategory-of-tests.
13903         * modules/unictype/bidiclass-test: Renamed from
13904         modules/unictype/bidicategory-test.
13905         (Description): Update.
13906         * modules/unictype/bidiclass-test-tests: Renamed from
13907         modules/unictype/bidicategory-test-tests.
13908         * modules/unictype/bidicategory-all: New file, a simple redirection.
13909         * modules/unictype/bidicategory-name: Likewise.
13910         * modules/unictype/bidicategory-byname: Likewise.
13911         * modules/unictype/bidicategory-of: Likewise.
13912         * modules/unictype/bidicategory-test: Likewise.
13913         * modules/unictype/property-bidi-* (Dependencies): Update.
13914         * lib/unictype/bidi_*.c: Update comment.
13915
13916 2011-03-26  Bruno Haible  <bruno@clisp.org>
13917
13918         unictype/bidi*: Rename functions, part 2.
13919         * modules/unictype/bidicategory-name (configure.ac): Update required
13920         libunistring version.
13921         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13922
13923 2011-03-25  Bruno Haible  <bruno@clisp.org>
13924
13925         New module 'unictype/combining-class-all'.
13926         * modules/unictype/combining-class-all: New file.
13927
13928         Tests for module 'unictype/combining-class-byname'.
13929         * modules/unictype/combining-class-byname-tests: New file.
13930         * tests/unictype/test-combiningclass_byname.c: New file.
13931
13932         New module 'unictype/combining-class-byname'.
13933         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13934         * lib/unictype/combiningclass_byname.c: New file.
13935         * lib/unictype/combiningclass_byname.gperf: New file.
13936         * modules/unictype/combining-class-byname: New file.
13937
13938         Tests for module 'unictype/combining-class-longname'.
13939         * modules/unictype/combining-class-longname-tests: New file.
13940         * tests/unictype/test-combiningclass_longname.c: New file.
13941
13942         New module 'unictype/combining-class-longname'.
13943         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13944         * lib/unictype/combiningclass_longname.c: New file.
13945         * modules/unictype/combining-class-longname: New file.
13946
13947         Tests for module 'unictype/combining-class-name'.
13948         * modules/unictype/combining-class-name-tests: New file.
13949         * tests/unictype/test-combiningclass_name.c: New file.
13950
13951         New module 'unictype/combining-class-name'.
13952         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13953         * lib/unictype/combiningclass_name.c: New file.
13954         * modules/unictype/combining-class-name: New file.
13955
13956 2011-03-25  Bruno Haible  <bruno@clisp.org>
13957
13958         unictype/combining-class: Rename source files.
13959         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13960         of unictype/combining.h.
13961         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13962         Update.
13963         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13964         * modules/unictype/combining-class (Description): Fix.
13965         (Files, Makefile.am): Update.
13966         * tests/unictype/test-combiningclass.c: Renamed from
13967         tests/unictype/test-combining.c.
13968         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13969
13970 2011-03-25  Bruno Haible  <bruno@clisp.org>
13971
13972         unictype: Update list of canonical combining classes.
13973         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13974
13975 2011-03-25  Bruno Haible  <bruno@clisp.org>
13976
13977         unictype/category-byname: Recognize long names as well.
13978         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13979         a long name.
13980         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13981         unictype/categ_byname.h.
13982         (UC_CATEGORY_INDEX_*): New enumeration values.
13983         (uc_general_category_byname): Use uc_general_category_lookup and
13984         convert from index to value.
13985         * lib/unictype/categ_byname.gperf: New file.
13986         * modules/unictype/category-byname (Files): Add
13987         lib/unictype/categ_byname.gperf.
13988         (Depends-on): Add gperf.
13989         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13990         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13991         long names.
13992
13993         Tests for module 'unictype/category-longname'.
13994         * modules/unictype/category-longname-tests: New file.
13995         * tests/unictype/test-categ_longname.c: New file.
13996
13997         New module 'unictype/category-longname'.
13998         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13999         * lib/unictype/categ_longname.c: New file.
14000         * modules/unictype/category-longname: New file.
14001         * modules/unictype/category-all (Depends-on): Add it.
14002
14003 2011-03-25  Bruno Haible  <bruno@clisp.org>
14004
14005         Tests for module 'unictype/category-LC'.
14006         * modules/unictype/category-LC-tests: New file.
14007         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14008
14009         New module 'unictype/category-LC'.
14010         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14011         (UC_CATEGORY_LC): New declaration.
14012         (UC_CASED_LETTER): New macro.
14013         * lib/gen-uni-tables.c (is_category_LC): New function.
14014         (output_categories): Also handle category LC.
14015         (UC_CATEGORY_MASK_LC): New enumeration value.
14016         (general_category_byname): Also handle category LC.
14017         * lib/unictype/categ_LC.c: New file.
14018         * lib/unictype/categ_LC.h: New file, automatically generated.
14019         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14020         category LC.
14021         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14022         * modules/unictype/category-LC: New file.
14023         * modules/unictype/category-byname (Depends-on): Add
14024         unictype/category-LC.
14025         * modules/unictype/category-all (Depends-on): Likewise.
14026
14027 2011-03-25  Eric Blake  <eblake@redhat.com>
14028
14029         xmalloc: revert yesterday's regression
14030         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14031         realloc's underlying behavior (allowing allocation of zero-size
14032         objects, especially if malloc-gnu is also in use).
14033
14034 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14035
14036         maint.mk: add missing version to VC-tag
14037         * top/maint.mk: git tag was missing actual tag name; add it.
14038
14039         valgrind: do leak checking, and exit with code 1 on error (not 0)
14040         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14041         to VALGRIND.
14042
14043 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14044
14045         posix-modules: say what it does.
14046         * posix-modules: Add a line to the --help output saying what it does.
14047
14048 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14049
14050         xmalloc: Do not leak if underlying realloc is C99 compatible.
14051         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14052         This avoids a leak on C99-based systems.  See
14053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14054
14055 2011-03-24  Eric Blake  <eblake@redhat.com>
14056
14057         realloc: document portability problem
14058         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14059         passing 0 size to realloc.
14060
14061 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14062
14063         doc: update users.txt
14064         * users.txt: Add cvsps, tmpwatch
14065
14066 2011-03-23  Matt Rice  <ratmice@gmail.com>
14067
14068         doc: update users.txt
14069         * users.txt: Add gdb.
14070
14071 2011-03-23  Jim Meyering  <meyering@redhat.com>
14072
14073         doc: update users.txt
14074         Looking through matches up to the following URL (there are still
14075         several more pages), I found several projects that use gnulib:
14076         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14077         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14078         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14079
14080 2011-03-22  Bruno Haible  <bruno@clisp.org>
14081
14082         unictype/bidi*: Rename functions.
14083         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14084         uc_bidi_class, uc_is_bidi_class): New declarations.
14085         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14086         uc_bidi_category_byname.
14087         (uc_bidi_category_byname): New function.
14088         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14089         u_bidi_category_name.
14090         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14091         (uc_bidi_category_name): New function.
14092         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14093         uc_bidi_category.
14094         (uc_bidi_category): New function.
14095         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14096         uc_is_bidi_category. Invoke uc_bidi_class.
14097         (uc_is_bidi_category): New function.
14098         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14099         instead of uc_bidi_category_byname.
14100         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14101         instead of uc_bidi_category_name.
14102         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14103         uc_bidi_category.
14104         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14105         instead of uc_is_bidi_category.
14106
14107 2011-03-21  Bruno Haible  <bruno@clisp.org>
14108
14109         New module 'unictype/joininggroup-all'.
14110         * modules/unictype/joininggroup-all: New file.
14111
14112         Tests for module 'unictype/joininggroup-of'.
14113         * modules/unictype/joininggroup-of-tests: New file.
14114         * tests/unictype/test-joininggroup_of.c: New file.
14115         * tests/unictype/test-joininggroup_of.h: New file, automatically
14116         generated by gen-uni-tables.
14117
14118         New module 'unictype/joininggroup-of'.
14119         * modules/unictype/joininggroup-of: New file.
14120         * lib/unictype/joininggroup_of.c: New file.
14121         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14122         gen-uni-tables.
14123
14124         Tests for module 'unictype/joininggroup-byname'.
14125         * modules/unictype/joininggroup-byname-tests: New file.
14126         * tests/unictype/test-joininggroup_byname.c: New file.
14127
14128         New module 'unictype/joininggroup-byname'.
14129         * modules/unictype/joininggroup-byname: New file.
14130         * lib/unictype/joininggroup_byname.c: New file.
14131         * lib/unictype/joininggroup_byname.gperf: New file.
14132
14133         Tests for module 'unictype/joininggroup-name'.
14134         * modules/unictype/joininggroup-name-tests: New file.
14135         * tests/unictype/test-joininggroup_name.c: New file.
14136
14137         New module 'unictype/joininggroup-name'.
14138         * modules/unictype/joininggroup-name: New file.
14139         * lib/unictype/joininggroup_name.c: New file.
14140         * lib/unictype/joininggroup_name.h: New file.
14141
14142         New module 'unictype/joiningtype-all'.
14143         * modules/unictype/joiningtype-all: New file.
14144
14145         Tests for module 'unictype/joiningtype-of'.
14146         * modules/unictype/joiningtype-of-tests: New file.
14147         * tests/unictype/test-joiningtype_of.c: New file.
14148         * tests/unictype/test-joiningtype_of.h: New file, automatically
14149         generated by gen-uni-tables.
14150
14151         New module 'unictype/joiningtype-of'.
14152         * modules/unictype/joiningtype-of: New file.
14153         * lib/unictype/joiningtype_of.c: New file.
14154         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14155         gen-uni-tables.
14156
14157         Tests for module 'unictype/joiningtype-byname'.
14158         * modules/unictype/joiningtype-byname-tests: New file.
14159         * tests/unictype/test-joiningtype_byname.c: New file.
14160
14161         New module 'unictype/joiningtype-byname'.
14162         * modules/unictype/joiningtype-byname: New file.
14163         * lib/unictype/joiningtype_byname.c: New file.
14164
14165         Tests for module 'unictype/joiningtype-name'.
14166         * modules/unictype/joiningtype-name-tests: New file.
14167         * tests/unictype/test-joiningtype_name.c: New file.
14168
14169         New module 'unictype/joiningtype-name'.
14170         * modules/unictype/joiningtype-name: New file.
14171         * lib/unictype/joiningtype_name.c: New file.
14172
14173         unictype: Add support for Arabic shaping properties.
14174         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14175         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14176         declarations.
14177         (UC_JOINING_GROUP_*): New enumeration values.
14178         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14179         declarations.
14180         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14181         (unicode_joining_type): New variable.
14182         (UC_JOINING_GROUP_*): New enumeration values.
14183         (unicode_joining_group): New variable.
14184         (fill_arabicshaping, joining_type_as_c_identifier,
14185         output_joining_type_test, output_joining_type,
14186         joining_group_as_c_identifier, output_joining_group_test,
14187         output_joining_group): New functions.
14188         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14189         fill_arabicshaping and output_joining_type_test, output_joining_type,
14190         output_joining_group_test, output_joining_group.
14191         Reported by Simon Josefsson.
14192
14193 2011-03-21  Jim Meyering  <meyering@redhat.com>
14194
14195         strftime: fix a bug in yesterday's change
14196         * lib/strftime.c (add): Accommodate width's initial value of -1.
14197         Otherwise, nstrftime would copy uninitialized data into
14198         the result buffer.
14199
14200 2011-03-21  Jim Meyering  <meyering@redhat.com>
14201
14202         tests: add strftime-tests module
14203         * tests/test-strftime.c: New file.
14204         * modules/strftime-tests: New module.
14205
14206 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14207
14208         strftime: don't assume a byte count fits in 'int'
14209         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14210         found this problem by static analysis, using gcc -Wstrict-overflow
14211         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14212         on an integer overflow having undefined behavior, but it turns out
14213         that the argument is a size, which might not fit in 'int' anyway,
14214
14215 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14216
14217         stdio: don't require ignore_value around fwrite
14218
14219         This patch works around libc bug 11959
14220         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14221         Without this patch, applications must often write
14222         ignore_value (fwrite (...)) even though the ignore_value is
14223         not helpful here.  It's common to write many objects, using
14224         fwrite/printf/etc., and then use ferror to detect output error.
14225
14226         I considered making this patch optional, but decided against it,
14227         because libc is obviously being inconsistent here: there is no
14228         reason libc should insist that user code must inspect fwrite
14229         return's value without also insisting that it inspect printf's,
14230         putchar's, etc.  If user code wants to have a strict style where
14231         all these functions' values are checked (so that ferror need not
14232         be checked), we could add support for that style in a new gnulib
14233         module, but in the meantime it's better to be consistent and to
14234         support common usage.
14235
14236         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14237         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14238         that we are compiling in checking mode, and if not C++, and
14239         if not already wrapping fwrite for some other reason.
14240         (fwrite): #define to rpl_fwrite if the latter is defined.
14241
14242 2011-03-20  Bruno Haible  <bruno@clisp.org>
14243
14244         verror: Fix compilation error introduced on 2011-02-13.
14245         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14246         instead of __attribute__.
14247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14248
14249 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14250             Bruno Haible  <bruno@clisp.org>
14251
14252         socklen: do not depend on sys_socket
14253         While trying to modify Emacs to use gnulib's socklen module,
14254         I discovered a circular dependency: socklen depends on sys_socket
14255         and vice versa.  Emacs can use socklen, but it does not need
14256         sys_socket because it has its own substitute for sys/socket.h.
14257         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14258         gl_TYPE_SOCKLEN_T.
14259         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14260         gl_PREREQ_SYS_H_SOCKET.
14261         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14262         gl_PREREQ_SYS_H_SOCKET.
14263         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14264         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14265         * modules/socklen (Depends-on): Do not depend on sys_socket.
14266         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14267
14268 2011-03-20  Jim Meyering  <meyering@redhat.com>
14269
14270         maint.mk: sort file names *after* new transformation
14271         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14272         prefix would have led to an unwarranted failure in GNU parted.
14273         Sort after that transformation.
14274
14275 2011-03-19  Jim Meyering  <meyering@redhat.com>
14276
14277         maint.mk: fix po-file syntax-check rule
14278         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14279         Patch by Bruno Haible.
14280
14281 2011-03-19  Bruno Haible  <bruno@clisp.org>
14282
14283         socklen: Update comment.
14284         * m4/socklen.m4: Update comment about platforms.
14285
14286 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14287             Bruno Haible  <bruno@clisp.org>
14288
14289         inet_ntop, inet_pton: Simplify.
14290         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14291         documented to provide socklen_t and we already depend on sys_socket.
14292         * modules/inet_pton (Depends-on): Likewise.
14293         * lib/arpa_inet.in.h: Adjust comment.
14294
14295 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14296             Bruno Haible  <bruno@clisp.org>
14297
14298         netdb: Simplify.
14299         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14300         documented to provide socklen_t and we already depend on sys_socket.
14301         * lib/netdb.in.h: Adjust comment.
14302
14303 2011-03-19  Bruno Haible  <bruno@clisp.org>
14304
14305         sys_socket, netdb: Document problem with socklen_t.
14306         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14307         platforms.
14308         * doc/posix-headers/netdb.texi: Likewise.
14309
14310 2011-03-18  Eric Blake  <eblake@redhat.com>
14311
14312         maint.mk: let po check work in VPATH build
14313         * top/maint.mk (po_file): Allow cfg.mk override.
14314         (sc_po_check): Allow VPATH use.
14315         Reported by Jiri Denemark.
14316
14317 2011-03-16  Jim Meyering  <meyering@redhat.com>
14318
14319         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14320         Before, you would have had to create one .x-sc_ file per rule in order
14321         to exempt offending files.  Now, you may instead use a Make variable --
14322         usually defined in cfg.mk -- whose name identifies the affected rule.
14323         * top/maint.mk (_sc_excl): Define.
14324         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14325         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14326
14327 2011-03-13  Bruno Haible  <bruno@clisp.org>
14328
14329         ignore-value tests: Avoid warnings.
14330         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14331         empty for gcc < 3.4.
14332
14333 2011-03-13  Bruno Haible  <bruno@clisp.org>
14334
14335         passfd: Fix link error on Solaris.
14336         * modules/passfd (Description): Correct.
14337         (Depends-on): Add socketlib.
14338         (Link): New section.
14339         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14340
14341 2011-03-13  Bruno Haible  <bruno@clisp.org>
14342
14343         passfd: Fix link error on AIX 5.2.
14344         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14345
14346 2011-03-13  Bruno Haible  <bruno@clisp.org>
14347
14348         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14349         * lib/sys_socket.in.h: Include <stddef.h>.
14350         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14351         CMSG_FIRSTHDR. Remove unused variable.
14352
14353 2011-03-13  Bruno Haible  <bruno@clisp.org>
14354
14355         passfd: Fix compilation error on OpenBSD.
14356         * lib/passfd.c: Include <sys/uio.h>.
14357
14358 2011-03-13  Bruno Haible  <bruno@clisp.org>
14359
14360         passfd test: Fix warnings.
14361         * tests/test-passfd.c: Include <sys/wait.h>.
14362         (main): Fix typo.
14363
14364 2011-03-13  Bruno Haible  <bruno@clisp.org>
14365
14366         passfd module, part 4, tweaks.
14367         * tests/test-passfd.c: Reorder includes.
14368         (main): Fix perror and printf calls.
14369
14370 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14371
14372         passfd module, part 4.
14373         * modules/passfd-tests: New file.
14374         * tests/test-passfd.c: New file.
14375
14376 2011-03-13  Jim Meyering  <meyering@redhat.com>
14377
14378         Makefile: rely on GNU make; derive syntax-check rule names
14379         Rather than requiring that each sc_ rule be listed as a dependent
14380         of "check", use features of GNU make to derive the list.
14381         * Makefile (syntax-check-rules): Define.
14382         (check): Depend on the new variable, not the hard-coded list.
14383
14384 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14385             Bruno Haible  <bruno@clisp.org>
14386
14387         passfd module, part 3.
14388         * lib/passfd.h (recvfd): Add a flags argument.
14389         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14390         (recvfd): Add a flags argument.
14391         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14392         exists.
14393         * modules/passfd (Depends-on): Add cloexec.
14394         Suggested by Eric Blake.
14395
14396 2011-03-13  Bruno Haible  <bruno@clisp.org>
14397
14398         passfd module, part 2, tweaks.
14399         * modules/passfd (Files): Reorder.
14400         (Depends-on): Remove errno.
14401         (Include): Remove <sys/socket.h>, <sys/un.h>.
14402         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14403         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14404         specification header. Include <sys/socket.h> always. Don't include
14405         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14406         (sendfd): Clarify that it sets errno when it fails.
14407         (recvfd): Fix specification.
14408
14409 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14410
14411         passfd module, part 2.
14412         * modules/passfd: New file.
14413         * lib/passfd.h: New file.
14414         * lib/passfd.c: New file.
14415
14416 2011-03-12  Bruno Haible  <bruno@clisp.org>
14417
14418         wcswidth, mbswidth: Avoid integer overflow.
14419         * lib/wcswidth.c: Include <limits.h>.
14420         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14421         * lib/mbswidth.c: Include <limits.h>.
14422         (mbsnwidth): Avoid 'int' overflow.
14423         Reported by Jim Meyering.
14424
14425 2011-03-12  Bruno Haible  <bruno@clisp.org>
14426
14427         futimens, utimensat: Avoid endless recursion on Solaris 10.
14428         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14429         Solaris.
14430         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14431         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14432
14433 2011-03-11  Jim Meyering  <meyering@redhat.com>
14434
14435         maint.mk: relax a regexp to accommodate other formatting styles
14436         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14437         between "ngettext" and the following "(".
14438
14439 2011-03-11  Pádraig Brady <P@draigBrady.com>
14440
14441         maint.mk: suppress a false positive warning
14442         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14443         diagnostics are marked with ngettext.
14444
14445 2011-03-10  Eric Blake  <eblake@redhat.com>
14446
14447         wchar: add explicit dependencies, for Tru64
14448         * modules/mbmemcasecoll (Depends-on): Add wchar.
14449         * modules/mbtowc (Depends-on): Likewise.
14450         * modules/vasnprintf (Depends-on): Likewise.
14451         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14452         * modules/wctomb (Depends-on): Likewise.
14453         Reported by Peter O'Gorman.
14454
14455 2011-03-08  Bruno Haible  <bruno@clisp.org>
14456
14457         passfd module, part 1, tweaks.
14458         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14459         Improve indentation. Improve AC_MSG_CHECKING messages.
14460         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14461         gl_SOCKET_FAMILIES.
14462
14463 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14464
14465         passfd module, part 1.
14466         * m4/afunix.m4: New file.
14467         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14468         sockets.
14469
14470 2011-03-08  Bruno Haible  <bruno@clisp.org>
14471
14472         regex-quote: New API.
14473         * lib/regex-quote.h: Include <stdbool.h>.
14474         (struct regex_quote_spec): New type.
14475         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14476         New declarations.
14477         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14478         'const struct regex_quote_spec *' argument.
14479         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14480         (pcre_special): New constant.
14481         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14482         New functions.
14483         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14484         'const struct regex_quote_spec *' argument.
14485         * modules/regex-quote (Depends-on): Add stdbool.
14486         * tests/test-regex-quote.c (check): Update for new API. Add test for
14487         anchored results.
14488         * NEWS: Mention the API change.
14489         Reported by Reuben Thomas and Eric Blake.
14490
14491 2011-03-06  Bruno Haible  <bruno@clisp.org>
14492
14493         regex-quote: Fix creation of POSIX extended regular expressions.
14494         * lib/regex-quote.c (ere_special): Add grouping and alternation
14495         operators.
14496
14497 2011-03-05  Bruno Haible  <bruno@clisp.org>
14498
14499         doc: Improve doc regarding autopoint vs. gnulib.
14500         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14501         disable autopoint while running autoreconf.
14502         Suggested by Ralf Wildenhues.
14503
14504 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14505
14506         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14507         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14508
14509 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14510
14511         parse-duration: remove xalloc.h dependency
14512         * lib/parse-duration.c (parse_period): handle NULL return from
14513         strdup instead of calling xstrdup().
14514         * modules/parse-duration: remove "xalloc" dependency
14515
14516 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14517
14518         bootstrap: honor m4_base when running aclocal
14519         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14520
14521 2011-03-02  Jim Meyering  <meyering@redhat.com>
14522
14523         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14524         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14525         on request from Matt Booth.
14526
14527 2011-03-01  Eric Blake  <eblake@redhat.com>
14528
14529         test-link: work on Hurd
14530         * tests/test-link.h (test_link): Hurd rejects linking directories
14531         with EISDIR instead of the POSIX-mandated EPERM.
14532
14533 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14534
14535         stdio: simplify by moving files to printf-posix, sigpipe
14536         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14537         since this symbol is needed only if printf is replaced.
14538         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14539         Require gl_ASM_SYMBOL_PREFIX.
14540         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14541         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14542         (Depends-on): Add 'raise'.
14543         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14544         * modules/stdio (Files): Remove lib/stdio-write.c,
14545         m4/asm-underscore.m4.
14546         (Depends-on): Remove 'raise'.
14547
14548         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14549         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14550         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14551         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14552
14553 2011-02-28  Bruno Haible  <bruno@clisp.org>
14554
14555         localcharset: Assume ANSI C behaviour of free().
14556         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14557         calling free().
14558         Suggested by Simon Josefsson <simon@josefsson.org>.
14559
14560 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14561             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14562             Bruno Haible  <bruno@clisp.org>  (tiny change)
14563
14564         On Cygwin, use /proc file system instead of win32 API.
14565         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14566         Win32 file names.
14567         (DllMain): Simplify by removing Cygwin specific code.
14568         (find_shared_library_fullname): Use Linux specific implementation also
14569         for Cygwin.
14570         (get_shared_library_fullname): Update accordingly.
14571         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14572         Win32 file names.
14573         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14574         Cygwin specific code.
14575
14576 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14577             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14578
14579         Fix OpenMP flag detection for various Fortran compilers.
14580         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14581         OpenMP-conditional compilation construct, to force compile
14582         failure with missing OpenMP flag.
14583         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14584
14585 2011-02-25  Eric Blake  <eblake@redhat.com>
14586
14587         strstr: expand test coverage
14588         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14589         compilation.
14590         * tests/test-memmem.c (main): Duplicate tests.
14591         * tests/test-strcasestr.c (main): Likewise.
14592         * tests/test-c-strcasestr.c (main): Likewise.
14593
14594 2011-02-25  Jim Meyering  <meyering@redhat.com>
14595
14596         maint.mk: detect missing-NL-at-EOF, too
14597         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14598         it also detects when a file lacks a newline at EOF.
14599         (require_exactly_one_NL_at_EOF_): Renamed from
14600         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14601         since people may well have .x-sc_... file names tied to the
14602         existing name.  Suggested by Eric Blake.
14603
14604 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14605
14606         dirname: move m4/dos.m4 functionality into lib/dosname.h
14607
14608         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14609         extracts symbols from it, puts them into config.h; but it's much
14610         easier to use the symbols directly.  filename.h already does this,
14611         but it disagrees with dos.m4 in some respects.  This patch
14612         introduces a different include file dosname.h that packages up
14613         dos.m4, and then later we can work on merging filename.h and
14614         dosname.h.  Applications that need only the easy-to-configure
14615         symbols should consider including dosname.h rather than dirname.h.
14616         * NEWS: Mention incompatible changes.
14617         * m4/dos.m4: Remove.
14618         * lib/dosname.h, modules/dosname: New files.
14619         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14620         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14621         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14622         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14623         Include dosname.h, not dirname.h.
14624         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14625         Include dosname.h, for definitions of symbols like ISSLASH
14626         that used to be in config.h.
14627         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14629         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14630         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14631         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14632         * modules/rmdir (Files): Likewise.
14633         * modules/stat (Files): Likewise.
14634         * modules/unlink (Files): Likewise.
14635         * modules/dirname-lgpl (Depends-on): Add dosname.
14636         * modules/lstat (Depends-on): Likewise.
14637         * modules/openat (Depends-on): Likewise.
14638         * modules/rmdir (Depends-on): Likewise.
14639         * modules/savewd (Depends-on): Likewise.
14640         * modules/stat (Depends-on): Likewise.
14641         * modules/unlink (Depends-on): Likewise.
14642         * modules/openat (Depends-on): Remove dirname-lgpl.
14643         * modules/savewd (Depends-on): Likewise.
14644         * tests/test-dirname.c: Do not use removed symbols like
14645         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14646         the remaining symbols, e.g., ISSLASH ('\\').
14647
14648 2011-02-25  Eric Blake  <eblake@redhat.com>
14649
14650         strstr: revert patches that introduced bug and pessimization
14651         * lib/str-two-way.h: Add another reference.
14652         (two_way_short_needle, two_way_long_needle): Revert changes from
14653         2011-02-24; they pessimize search speed.
14654         (critical_factorization): Partially revert changes from
14655         2010-06-22; they violate the requirement that the left half of the
14656         needle be smaller than the period of the needle.
14657
14658 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14659
14660         filenamecat: remove unnecessary dependency on dirname-lgpl
14661         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14662         is no direct dependency, just an indirect one via filenamecat-lgpl.
14663
14664         remove: remove unnecessary use of m4/dos.m4
14665         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14666         * modules/remove (FILES): Remove m4/dos.m4.
14667
14668         * lib/openat-proc.c: Don't include dirname.h; not needed.
14669
14670         backupfile: remove unnecessary use of m4/dos.m4
14671         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14672         of its symbols are used by the backupfile code.  backupfile.c does
14673         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14674         for the rare case of programs that want all their backup file
14675         names to live within 8+3 limits, and dos.m4 doesn't address that.
14676         * modules/backupfile (Files): Remove m4/dos.m4.
14677
14678 2011-02-24  Jim Meyering  <meyering@redhat.com>
14679
14680         strstr: fix a bug whereby strstr would mistakenly return NULL
14681         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14682         in period calculation.
14683         (two_way_long_needle): Likewise.
14684         The original problem was reported by Mike Stump in
14685         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14686         Ralf Wildenhues provided the short needle and haystack.
14687         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14688         Add a more involved test to trigger the bug in two_way_long_needle.
14689
14690 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14691
14692         gnulib-tool: remove use of bold display in help screen
14693         * gnulib-tool (func_usage): Do not use bold display anymore in the
14694         help screen.  That was just meant to be a temporary emphasis for a
14695         backward-incompatible change.
14696
14697 2011-02-23  Bruno Haible  <bruno@clisp.org>
14698
14699         Fix misindentation of preprocessor directives.
14700         * lib/argp-namefrob.h: Reindent preprocessor directives.
14701         * lib/getopt_int.h (struct _getopt_data): Likewise.
14702         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14703         * lib/vasnprintf.c (decode_long_double): Likewise.
14704         * tests/test-argmatch.c: Insert blank lines, for clarity.
14705         * tests/test-exclude.c: Likewise.
14706
14707 2011-02-22  Bruno Haible  <bruno@clisp.org>
14708
14709         ioctl: Fix for MacOS X in 64-bit mode.
14710         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14711         value.
14712         Suggested by Eric Blake.
14713         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14714
14715 2011-02-22  Jim Meyering  <meyering@redhat.com>
14716
14717         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14718         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14719         in lib/.
14720
14721 2011-02-22  Eric Blake  <eblake@redhat.com>
14722
14723         maint: avoid any CDPATH issue
14724         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14725
14726         maint: adjust cpp indentation for my modules, as well
14727         * Makefile (sc_cpp_indent_check): Add my name.
14728         * lib/fbufmode.c: Filter through cppi.
14729         * lib/fpurge.c: Likewise.
14730         * lib/freadable.c: Likewise.
14731         * lib/freading.c: Likewise.
14732         * lib/fwritable.c: Likewise.
14733         * lib/fwriting.c: Likewise.
14734         * lib/sigaction.c: Likewise.
14735
14736 2011-02-22  Jim Meyering  <meyering@redhat.com>
14737
14738         maint: adjust cpp indentation to reflect nesting depth
14739         I.e., in a block of code that begins with an unnested "#if",
14740         put one space between the "#" in column 1 and following token.
14741         For example,
14742         -#include <sys/vfs.h>
14743         +# include <sys/vfs.h>
14744         Do this only in .c files that are part of a module I maintain.
14745         * lib/linkat.c: Filter through cppi.
14746         * lib/nanosleep.c: Likewise.
14747         * lib/openat.c: Likewise.
14748         * lib/openat-die.c: Likewise.
14749         * lib/dup3.c: Likewise.
14750         * lib/fchownat.c: Likewise.
14751         * lib/flock.c: Likewise.
14752         * lib/fsync.c: Likewise.
14753         * lib/fts.c: Likewise.
14754         * lib/getpass.c: Likewise.
14755         * lib/gettimeofday.c: Likewise.
14756         * lib/userspec.c: Likewise.
14757         * Makefile (sc_cpp_indent_check): New rule, to check this.
14758
14759 2011-02-22  Bruno Haible  <bruno@clisp.org>
14760
14761         New module 'wctomb'.
14762         * lib/stdlib.in.h (wctomb): New declaration.
14763         * lib/wctomb.c: New file.
14764         * lib/wctomb-impl.h: New file.
14765         * m4/wctomb.m4: New file.
14766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14767         REPLACE_WCTOMB.
14768         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14769         REPLACE_WCTOMB.
14770         * modules/wctomb: New file.
14771         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14772         * doc/posix-functions/wctomb.texi: Mention the new module.
14773         * modules/wctob (Depends-on): Add wctomb.
14774
14775 2011-02-22  Bruno Haible  <bruno@clisp.org>
14776
14777         New module 'mbtowc'.
14778         * lib/stdlib.in.h (mbtowc): New declaration.
14779         * lib/mbtowc.c: New file.
14780         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14781         * m4/mbtowc.m4: New file.
14782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14783         REPLACE_MBTOWC.
14784         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14785         REPLACE_MBTOWC.
14786         * modules/mbtowc: New file.
14787         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14788         * doc/posix-functions/mbtowc.texi: Mention the new module.
14789         * modules/btowc (Depends-on): Add mbtowc.
14790
14791 2011-02-22  Bruno Haible  <bruno@clisp.org>
14792
14793         wcrtomb: Add more tests for native Windows platforms.
14794         * tests/test-wcrtomb-w32-1.sh: New file.
14795         * tests/test-wcrtomb-w32-2.sh: New file.
14796         * tests/test-wcrtomb-w32-3.sh: New file.
14797         * tests/test-wcrtomb-w32-4.sh: New file.
14798         * tests/test-wcrtomb-w32-5.sh: New file.
14799         * tests/test-wcrtomb-w32.c: New file.
14800         * modules/wcrtomb-tests (Files): Add them.
14801         (Makefile.am): Arrange to run these tests.
14802         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14803         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14804
14805 2011-02-20  Bruno Haible  <bruno@clisp.org>
14806
14807         wcrtomb: Enhance test.
14808         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14809
14810 2011-02-20  Bruno Haible  <bruno@clisp.org>
14811
14812         mbrtowc: Tiny optimization.
14813         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14814
14815 2011-02-20  Jim Meyering  <meyering@redhat.com>
14816
14817         test-exclude.c: remove unmatched #endif
14818         * tests/test-exclude.c: Remove stray #endif, left over from
14819         the change of a week ago.
14820
14821 2011-02-19  Jim Meyering  <meyering@redhat.com>
14822
14823         git-version-gen: skip "-dirty" check when appropriate
14824         * build-aux/git-version-gen: Don't run any git commands when the
14825         version string comes from .tarball-version.  Prior to this, we
14826         would run git update-index --refresh even from a just-unpacked
14827         tarball directory, and that could affect a .git/ directory in a
14828         parent of the build directory.  Reported by Mike Frysinger.
14829
14830 2011-02-19  Bruno Haible  <bruno@clisp.org>
14831
14832         unictype/property-byname: Reduce the size of the 'data' segment.
14833         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14834
14835 2011-02-19  Bruno Haible  <bruno@clisp.org>
14836
14837         unictype/scripts: Reduce the size of the 'data' segment.
14838         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14839         '%pic'.
14840         * lib/unictype/scripts_byname.gperf: Regenerated.
14841
14842 2011-02-19  Bruno Haible  <bruno@clisp.org>
14843
14844         stdint: Update documentation.
14845         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14846
14847 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14848
14849         stdint: omit redundant check for wchar.h
14850         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14851         always tests whether wchar.h exists, so remove the now-redundant test.
14852
14853 2011-02-18  Bruno Haible  <bruno@clisp.org>
14854
14855         stdint: Cut dependency to module 'wchar'.
14856         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14857         include the necessary prerequisites.
14858         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14859         * modules/stdint (Depends-on): Remove wchar.
14860         (Makefile.am): Substitute HAVE_WCHAR_H.
14861         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14862
14863 2011-02-18  Eric Blake  <eblake@redhat.com>
14864
14865         longlong: skip, rather than fail, on cross-compilation
14866         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14867         when cross-compiling; regression from 2011-02-16.
14868
14869 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14870
14871         * NEWS: Mention 2011-02-08 change to stdlib.
14872
14873 2011-02-17  Bruno Haible  <bruno@clisp.org>
14874
14875         getloadavg: Add comments about platforms.
14876         * m4/getloadavg.m4: Add comment.
14877         * lib/getloadavg.c: Likewise.
14878
14879 2011-02-17  Bruno Haible  <bruno@clisp.org>
14880
14881         getloadavg: Fix link error on Solaris 2.6.
14882         * modules/getloadavg (Link): New section.
14883         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14884         linking test-getloadavg.
14885         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14886         getloadavg.
14887
14888 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14889
14890         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14891         It was 'int', but this doesn't match the IRIX 6.5 manual.
14892         Suggested by Bruno Haible in
14893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14894
14895 2011-02-17  Bruno Haible  <bruno@clisp.org>
14896
14897         havelib: Fix comments.
14898         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14899         change.
14900
14901 2011-02-17  Bruno Haible  <bruno@clisp.org>
14902
14903         havelib: Update config.rpath.
14904         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14905
14906 2011-02-17  Bruno Haible  <bruno@clisp.org>
14907
14908         getloadavg test: Add some plausibility checks.
14909         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14910         is improbable.
14911
14912 2011-02-16  Eric Blake  <eblake@redhat.com>
14913
14914         maintainer-makefile: make syntax-check a no-op from tarballs
14915         * top/maint.mk (no-vc-detected): New rule.
14916         (local-checks-available): Use it to avoid hanging if someone tries
14917         'make syntax-check' from a tarball.  Also append to any non-syntax
14918         checks already defined in cfg.mk.
14919
14920 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14921
14922         longlong: tune, particularly for common case of c99
14923
14924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14925         or running anything if c99, or if unsigned long long int does not
14926         work.  In either case, we know the answer without further tests.
14927         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14928         it at most once, and use its results for both long long int and
14929         unsigned long long int.  This is more likely to be efficient in
14930         the common case where the program wants to check for both long
14931         long int and unsigned long long int.
14932         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14933         since the answer is already known.
14934
14935 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14936
14937         getloadavg: set errno
14938         * lib/getloadavg.c: Set errno when returning -1.  If no other
14939         error number looks appropriate, set it to ENOSYS if the getloadavg
14940         looks like it can't possibly ever work, ENOTSUP otherwise.
14941         Suggested by Bruno Haible in
14942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14943
14944         getloadavg: trim unused parts and speed up 'configure'
14945         * NEWS: Document this.
14946         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14947         always compiled if getloadavg is absent.
14948         Move test code to ...
14949         * tests/test-getloadavg.c: New file, containing previous
14950         contents of test from lib/getloadavg.c.  It also contains
14951         suggestions by Bruno Haible in
14952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14953         * modules/getloadavg-tests: New file.
14954         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14955         Do tests in the same order as they're needed for getloadavg.c.
14956         Omit setgid-related tests that generate symbols KMEM_GROUP,
14957         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14958         Do only the tests that are needed to see whether the system has
14959         getloadavg, moving the other tests into ...
14960         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14961         NLIST_NAME_UNION; nobody should be using it.  Do not define
14962         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14963         relevant, as the user of this module shouldn't care how getloadavg
14964         is implemented.
14965
14966         getloadavg: omit unused var
14967         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14968
14969 2011-02-15  Jim Meyering  <meyering@redhat.com>
14970
14971         doc: update users.txt
14972         * users.txt: Update iwhd's URL.
14973
14974 2011-02-13  Bruno Haible  <bruno@clisp.org>
14975
14976         Consistent macro naming for macros that use GCC __attribute__.
14977         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14978         _ATTRIBUTE_NONNULL_.
14979         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14980         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14981         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14982         ATTRIBUTE_DEPRECATED.
14983         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14984         ATTRIBUTE_NORETURN.
14985         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14986         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14987         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14988         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14989         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14990         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14991         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14992         ATTRIBUTE_SENTINEL.
14993         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14994         ATTRIBUTE_RETURN_CHECK.
14995         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14996         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14997         ATTRIBUTE_NORETURN.
14998         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14999         Reported by Paul Eggert.
15000
15001 2011-02-13  Bruno Haible  <bruno@clisp.org>
15002
15003         Don't interfere with a program's definition of __attribute__.
15004         * lib/argp.h (__attribute__): Remove definition.
15005         (_GL_ATTRIBUTE_FORMAT): New macro.
15006         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15007         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15008         (_GL_ATTRIBUTE_FORMAT): New macro.
15009         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15010         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15011         GCC 3 or newer.
15012         * lib/error.h (__attribute__): Remove definition.
15013         (_GL_ATTRIBUTE_FORMAT): New macro.
15014         (error, error_at_line): Use it.
15015         * lib/hash.h (__attribute__): Remove definition.
15016         (ATTRIBUTE_WUR): Update definition. Define always.
15017         * lib/openat.h (__attribute__): Remove definition.
15018         (ATTRIBUTE_NORETURN): Update definition. Define always.
15019         * lib/sigpipe-die.h (__attribute__): Remove definition.
15020         (ATTRIBUTE_NORETURN): Update definition. Define always.
15021         * lib/vasnprintf.h (__attribute__): Remove definition.
15022         (_GL_ATTRIBUTE_FORMAT): New macro.
15023         (asnprintf, vasnprintf): Use it.
15024         * lib/xalloc.h (__attribute__): Remove definition.
15025         (ATTRIBUTE_NORETURN): Update definition. Define always.
15026         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15027         * lib/xmemdup0.h (__attribute__): Remove definition.
15028         (ATTRIBUTE_NORETURN): Update definition. Define always.
15029         * lib/xprintf.h (__attribute__): Remove definition.
15030         (_GL_ATTRIBUTE_FORMAT): New macro.
15031         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15032         * lib/xstrtol.h (__attribute__): Remove definition.
15033         (ATTRIBUTE_NORETURN): Update definition. Define always.
15034         * lib/xvasprintf.h (__attribute__): Remove definition.
15035         (_GL_ATTRIBUTE_FORMAT): New macro.
15036         (xasprintf, xvasprintf): Use it.
15037         * tests/test-argmatch.c (__attribute__): Remove definition.
15038         (ATTRIBUTE_NORETURN): Update definition. Define always.
15039         * tests/test-exclude.c (__attribute__): Remove definition.
15040         (ATTRIBUTE_NORETURN): Update definition. Define always.
15041         Reported by Paul Eggert.
15042
15043 2011-02-13  Bruno Haible  <bruno@clisp.org>
15044
15045         mbrtowc: Add more tests for native Windows platforms.
15046         * tests/test-mbrtowc-w32-1.sh: New file.
15047         * tests/test-mbrtowc-w32-2.sh: New file.
15048         * tests/test-mbrtowc-w32-3.sh: New file.
15049         * tests/test-mbrtowc-w32-4.sh: New file.
15050         * tests/test-mbrtowc-w32-5.sh: New file.
15051         * tests/test-mbrtowc-w32.c: New file.
15052         * modules/mbrtowc-tests (Files): Add them.
15053         (Makefile.am): Arrange to run these tests.
15054         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15055         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15056
15057 2011-02-13  Bruno Haible  <bruno@clisp.org>
15058
15059         mbrtowc: Work around native Windows bug.
15060         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15061         guess when no suitable locale for testing was found.
15062         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15063
15064 2011-02-13  Bruno Haible  <bruno@clisp.org>
15065
15066         mbsinit: Work around mingw bug.
15067         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15068         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15069         Windows.
15070         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15071
15072 2011-02-13  Bruno Haible  <bruno@clisp.org>
15073
15074         mbsinit: Don't crash for a NULL argument.
15075         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15076         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15077
15078 2011-02-13  Bruno Haible  <bruno@clisp.org>
15079
15080         Don't interfere with a program's definition of __attribute__.
15081         * lib/stdio.in.h (__attribute__): Remove definition.
15082         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15083         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15084         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15085         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15086         * lib/string.in.h (__attribute__): Remove definition.
15087         Reported by Paul Eggert.
15088
15089 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15090
15091         stdlib: don't get in the way of non-GCC __attribute__
15092         See thread starting at
15093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15094         Revert previous stdlib change, installing the following instead:
15095         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15096         to get in the way of a non-GCC compiler that supports __attribute__.
15097         (_GL_ATTRIBUTE_RETURN): New macro.
15098         (_Exit): Use it instead of __attribute__.
15099
15100 2011-02-12  Bruno Haible  <bruno@clisp.org>
15101
15102         quotearg test: Avoid test failure on mingw.
15103         * tests/test-quotearg.sh: Convert the locale identifier from native
15104         Windows syntax to Unix syntax.
15105
15106 2011-02-12  Bruno Haible  <bruno@clisp.org>
15107
15108         setlocale: Prefer gnulib's override over libintl's override.
15109         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15110         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15111         GNULIB_defined_setlocale is set.
15112
15113 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15114
15115         stdlib: support non-GCC __attribute__
15116
15117         Fix a serious and tricky problem encountered when attempting to
15118         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15119         5.5, but it crashed due to memory corruption on Solaris 10 with
15120         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15121         bits that are otherwise zero.  This tagging is optional inside
15122         Emacs but is preferred and is used when __attribute__ ((__aligned
15123         (8))) works, as it does with both recent-enough GCC and with Sun C
15124         5.11.  However, Sun C 5.11 is not GCC and does not #define
15125         __GNUC__ and __GNUC_MINOR__.
15126
15127         When I added the getloadavg module to Emacs, it brought in
15128         stdlib.in.h, which contained this fragment:
15129
15130            #ifndef __attribute__
15131            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15132            #  define __attribute__(Spec)   /* empty */
15133            # endif
15134            #endif
15135
15136         When files that include <stdlib.h> were compiled with Sun C 5.11,
15137         the above code disabled __attribute__ ((__aligned (8))), which
15138         caused variables to not be properly aligned, which eventually led
15139         to the pointer corruption mentioned above.  (This was a bit hard
15140         to diagnose, unfortunately.)
15141
15142         Several "#define __attribute__(X) /* empty */" code snippets need
15143         to be eradicated from Gnulib to work with non-GCC compilers that
15144         support __attribute__.  The Autoconf way to do this is to test for
15145         each kind of attribute that we want support for, and selectively
15146         enable that in source code.
15147
15148         Fix this problem just for stdlib.h, by adding a test for the
15149         __noreturn__ attribute, and change stdlib.in.h to use that test
15150         when needed.  This technique can be easily generalized to the
15151         other *.in.h files and attributes, and a similar technique can be
15152         used for *.h and *.c files.  This patch is enough to solve the
15153         problem for Emacs + getloadavg, and I thought I'd publish it for
15154         feedback before undertaking further, similar fixes in other
15155         modules.
15156
15157         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15158         because it's not needed for stdlib.h.  It merely substitutes the
15159         value directly into stdlib.h.  We may well need to #define it, or
15160         similar symbols, for other modules, but it's nice to also have an
15161         option to not #define it for applications like Emacs that do not
15162         need it.
15163
15164         * lib/stdlib.in.h (__attribute__): Do not #define.
15165         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15166         be defined only if the _Exit module is also used.
15167         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15169         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15170         platforms.
15171         * modules/_Exit (Files): Add m4/attribute.m4.
15172         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15173         * m4/attribute.m4: New file.
15174
15175 2011-02-12  Bruno Haible  <bruno@clisp.org>
15176
15177         wcsrtombs: Work around bug on native Windows.
15178         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15179         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15180         instead of len.
15181         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15182
15183 2011-02-12  Bruno Haible  <bruno@clisp.org>
15184
15185         mbsrtowcs: Work around bug on native Windows.
15186         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15187         against mingw bug.
15188         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15189
15190 2011-02-12  Bruno Haible  <bruno@clisp.org>
15191
15192         Avoid setlocale bugs in tests.
15193         * modules/btowc (Dependencies): Add setlocale.
15194         * modules/c-strcase (Dependencies): Likewise.
15195         * modules/mbmemcasecmp (Dependencies): Likewise.
15196         * modules/mbmemcasecoll (Dependencies): Likewise.
15197         * modules/mbrtowc (Dependencies): Likewise.
15198         * modules/mbscasecmp (Dependencies): Likewise.
15199         * modules/mbscasestr (Dependencies): Likewise.
15200         * modules/mbschr (Dependencies): Likewise.
15201         * modules/mbscspn (Dependencies): Likewise.
15202         * modules/mbsinit (Dependencies): Likewise.
15203         * modules/mbsncasecmp (Dependencies): Likewise.
15204         * modules/mbsnrtowcs (Dependencies): Likewise.
15205         * modules/mbspbrk (Dependencies): Likewise.
15206         * modules/mbspcasecmp (Dependencies): Likewise.
15207         * modules/mbsrchr (Dependencies): Likewise.
15208         * modules/mbsrtowcs (Dependencies): Likewise.
15209         * modules/mbsspn (Dependencies): Likewise.
15210         * modules/mbsstr (Dependencies): Likewise.
15211         * modules/nl_langinfo (Dependencies): Likewise.
15212         * modules/quotearg (Dependencies): Likewise.
15213         * modules/unicase/locale-language (Dependencies): Likewise.
15214         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15215         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15216         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15217         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15218         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15219         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15220         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15221         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15222         * modules/vasnprintf-posix (Dependencies): Likewise.
15223         * modules/wcrtomb (Dependencies): Likewise.
15224         * modules/wcsnrtombs (Dependencies): Likewise.
15225         * modules/wcsrtombs (Dependencies): Likewise.
15226
15227 2011-02-12  Bruno Haible  <bruno@clisp.org>
15228
15229         setlocale: Workaround native Windows bug.
15230         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15231         succeeds but sets LC_CTYPE to "C", report a failure.
15232         * tests/test-setlocale2.sh: New file.
15233         * tests/test-setlocale2.c: New file.
15234         * modules/setlocale-tests (Files): Add the new files.
15235         (Makefile.am): Enable test-setlocale2.sh test.
15236         * doc/posix-functions/setlocale.texi: Mention workaround.
15237
15238 2011-02-11  Bruno Haible  <bruno@clisp.org>
15239
15240         Tests for module 'setlocale'.
15241         * modules/setlocale-tests: New file.
15242         * tests/test-setlocale1.sh: New file.
15243         * tests/test-setlocale1.c: New file.
15244
15245         New module 'setlocale'.
15246         * lib/locale.in.h (setlocale): New declaration.
15247         * lib/setlocale.c: New file, based on
15248         gettext/gettext-runtime/intl/setlocale.c.
15249         * m4/setlocale.m4: New file.
15250         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15251         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15252         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15253         REPLACE_SETLOCALE.
15254         * modules/setlocale: New file.
15255         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15256         * doc/posix-functions/setlocale.texi: Mention the new module.
15257
15258 2011-02-11  Bruno Haible  <bruno@clisp.org>
15259
15260         Prepare for locale dependent tests on mingw.
15261         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15262         because it has the wrong locale encoding.
15263         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15264         French_France.1252 instead of "fr".
15265         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15266         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15267         because it has the wrong locale encoding.
15268         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15269         native Windows, try Turkish_Turkey.65001.
15270         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15271         Chinese_China.54936.
15272
15273         Prepare for locale dependent tests on mingw.
15274         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15275         differently.
15276         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15277         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15278         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15280
15281 2011-02-11  Eric Blake  <eblake@redhat.com>
15282
15283         strptime: avoid compiler warnings
15284         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15285         compiler warnings about dead code.
15286         Reported by Daniel P. Berrange.
15287
15288 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15289
15290         doc: update users.txt
15291         * users.txt: Add rcs.
15292
15293 2011-02-10  John W. Eaton  <jwe@gnu.org>
15294
15295         doc: update users.txt
15296         * users.txt: Add octave.
15297
15298 2011-02-10  Jim Meyering  <meyering@redhat.com>
15299
15300         doc: update users.txt
15301         * users.txt: Add iwhd.
15302
15303 2011-02-09  Bruno Haible  <bruno@clisp.org>
15304
15305         gnulib-tool: Make copyright notice adjustment more robust.
15306         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15307         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15308         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15309         License".
15310         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15311
15312 2011-02-06  Bruno Haible  <bruno@clisp.org>
15313
15314         New module 'towctrans'.
15315         * modules/towctrans: New file.
15316         * lib/wctype.in.h (towctrans): New declaration.
15317         * lib/towctrans.c: New file.
15318         * lib/towctrans-impl.h: New file.
15319         * m4/towctrans.m4: New file.
15320         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15321         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15322         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15323         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15324         * doc/posix-functions/towctrans.texi: Mention the new module.
15325
15326 2011-02-06  Bruno Haible  <bruno@clisp.org>
15327
15328         New module 'wctrans'.
15329         * modules/wctrans: New file.
15330         * lib/wctype.in.h (wctrans): New declaration.
15331         * lib/wctrans.c: New file.
15332         * lib/wctrans-impl.h: New file.
15333         * m4/wctrans.m4: New file.
15334         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15335         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15336         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15337         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15338         * doc/posix-functions/wctrans.texi: Mention the new module.
15339
15340 2011-02-06  Bruno Haible  <bruno@clisp.org>
15341
15342         New module 'iswctype'.
15343         * modules/iswctype: New file.
15344         * lib/wctype.in.h (iswctype): New declaration.
15345         * lib/iswctype.c: New file.
15346         * lib/iswctype-impl.h: New file.
15347         * m4/iswctype.m4: New file.
15348         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15349         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15350         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15351         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15352         * doc/posix-functions/iswctype.texi: Mention the new module and the
15353         HP-UX 11.00 problem.
15354
15355 2011-02-06  Bruno Haible  <bruno@clisp.org>
15356
15357         New module 'wctype'.
15358         * modules/wctype: Change to represent the wctype() substitute.
15359         * lib/wctype.in.h (wctype): New declaration.
15360         * lib/wctype.c: New file.
15361         * lib/wctype-impl.h: New file.
15362         * m4/wctype.m4: New file.
15363         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15364         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15365         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15366         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15367         * doc/posix-functions/wctype.texi: Mention the new module and the
15368         HP-UX 11.00 problem.
15369
15370 2011-02-06  Bruno Haible  <bruno@clisp.org>
15371
15372         wctype-h: Ensure wctype_t and wctrans_t are defined.
15373         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15374         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15375         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15376         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15377         HAVE_WCTRANS_T.
15378         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15379
15380 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15381
15382         flock: fix license typo
15383
15384         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15385         omitted.
15386
15387 2011-02-08  Bruno Haible  <bruno@clisp.org>
15388
15389         Split large sed scripts, for HP-UX sed.
15390         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15391         to avoid HP-UX limit of 99 commands, in the near future.
15392         * modules/stdlib (Makefile.am): Likewise.
15393         * modules/unistd (Makefile.am): Likewise.
15394         * modules/wchar (Makefile.am): Likewise.
15395         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15396         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15398
15399 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15400             Bruno Haible  <bruno@clisp.org>
15401
15402         stdlib: improve random_r modularization
15403         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15404         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15405         you also need the random_r module to get this material right.
15406         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15407         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15408         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15409
15410 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15411
15412         stdlib: don't depend on stdint
15413         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15414         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15415         be independent of whether stdint.h is needed.
15416         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15417         here, instead of ...
15418         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15419         struct random_data should be using the random_r module, not just
15420         the stdlib module (which wouldn't make sense: what package needs
15421         just struct random_data without also needing random_r?).
15422         * modules/stdlib (Depends-on): Remove stdint.
15423
15424         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15425         See the thread rooted at
15426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15427         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15428         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15429         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15430         __VMS)); previously it was always included (via fcntl--.h).
15431         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15432         hand; this is good enough for load averages.  Also, do not use
15433         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15434         flags directly if available and don't bother otherwise.  (Packages
15435         that need the extra reliability should use the modules that define
15436         these flags on older platforms that lack them.)
15437         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15438         fcntl-safer.
15439
15440 2011-02-08  Jim Meyering  <meyering@redhat.com>
15441
15442         di-set.h, ino-map.h: add multiple-inclusion guard
15443         Technically, the guard is required only for ino-map.h, due to its
15444         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15445         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15446         * lib/ino-map.h: Likewise.
15447
15448 2011-02-06  Bruno Haible  <bruno@clisp.org>
15449
15450         iswblank: Ensure declaration on glibc systems.
15451         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15452         * modules/iswblank (Dependencies): Add 'extensions'.
15453         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15454
15455 2011-02-06  Bruno Haible  <bruno@clisp.org>
15456
15457         New module 'iswblank'.
15458         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15459         * modules/iswblank: New file.
15460         * modules/wctype-h (Files): Remove lib/iswblank.c.
15461         (Makefile.am): Substitute GNULIB_ISWBLANK.
15462         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15463         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15464         (gl_WCTYPE_H_DEFAULTS): New macro.
15465         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15466         * modules/iswblank-tests: New file.
15467         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15468         * tests/test-wctype-h.c (main): Remove iswblank tests.
15469         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15470         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15471         of 'wctype-h'.
15472         * NEWS: Mention the change.
15473         * modules/mbchar (Depends-on): Add iswblank.
15474
15475 2011-02-08  Bruno Haible  <bruno@clisp.org>
15476
15477         di-set tests: Refactor.
15478         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15479         unnecessary includes.
15480         (ASSERT): Remove macro.
15481         (main): Make C90 compliant by avoiding variable declaration after
15482         statement.
15483         * modules/di-set-tests (Files): Add tests/macros.h.
15484
15485 2011-02-08  Bruno Haible  <bruno@clisp.org>
15486
15487         ino-map tests: Refactor.
15488         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15489         unnecessary includes.
15490         (ASSERT): Remove macro.
15491         (main): Make C90 compliant by avoiding variable declaration after
15492         statement.
15493         * modules/ino-map-tests (Files): Add tests/macros.h.
15494
15495 2011-02-08  Jim Meyering  <meyering@redhat.com>
15496
15497         di-set: add "const" to a cast
15498         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15499         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15500
15501 2011-02-06  Bruno Haible  <bruno@clisp.org>
15502
15503         Rename module 'wctype' to 'wctype-h'.
15504         * modules/wctype-h: Renamed from modules/wctype.
15505         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15506         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15507         (Files, Depends-on, Makefile.am): Update.
15508         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15509         (Files, Makefile.am): Update.
15510         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15511         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15512         * doc/posix-headers/wctype.texi: Update.
15513         * doc/posix-functions/iswalnum.texi: Update.
15514         * doc/posix-functions/iswalpha.texi: Update.
15515         * doc/posix-functions/iswblank.texi: Update.
15516         * doc/posix-functions/iswcntrl.texi: Update.
15517         * doc/posix-functions/iswdigit.texi: Update.
15518         * doc/posix-functions/iswgraph.texi: Update.
15519         * doc/posix-functions/iswlower.texi: Update.
15520         * doc/posix-functions/iswprint.texi: Update.
15521         * doc/posix-functions/iswpunct.texi: Update.
15522         * doc/posix-functions/iswspace.texi: Update.
15523         * doc/posix-functions/iswupper.texi: Update.
15524         * doc/posix-functions/iswxdigit.texi: Update.
15525         * doc/posix-functions/towlower.texi: Update.
15526         * doc/posix-functions/towupper.texi: Update.
15527         * NEWS: Mention the change.
15528         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15529         * modules/mbchar (Dependencies): Likewise.
15530         * modules/mbswidth (Dependencies): Likewise.
15531         * modules/quotearg (Dependencies): Likewise.
15532         * modules/regex (Dependencies): Likewise.
15533         * modules/wcscasecmp (Dependencies): Likewise.
15534         * modules/wcsncasecmp (Dependencies): Likewise.
15535         * modules/wcwidth (Dependencies): Likewise.
15536
15537 2011-02-06  Bruno Haible  <bruno@clisp.org>
15538
15539         New module 'wcswidth'.
15540         * modules/wcswidth: New file.
15541         * lib/wchar.in.h (wcswidth): New declaration.
15542         * lib/wcswidth.c: New file.
15543         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15544         * m4/wcswidth.m4: New file.
15545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15547         REPLACE_WCSWIDTH.
15548         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15549         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15550         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15551         * doc/posix-functions/wcswidth.texi: Mention the new module.
15552
15553 2011-02-06  Bruno Haible  <bruno@clisp.org>
15554
15555         New module 'wcstok'.
15556         * modules/wcstok: New file.
15557         * lib/wchar.in.h (wcstok): New declaration.
15558         * lib/wcstok.c: New file.
15559         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15560         * m4/wcstok.m4: New file.
15561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15563         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15564         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15565         * doc/posix-functions/wcstok.texi: Mention the new module.
15566
15567 2011-02-06  Bruno Haible  <bruno@clisp.org>
15568
15569         New module 'wcsstr'.
15570         * modules/wcsstr: New file.
15571         * lib/wchar.in.h (wcsstr): New declaration.
15572         * lib/wcsstr.c: New file.
15573         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15574         * m4/wcsstr.m4: New file.
15575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15578         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15579         * doc/posix-functions/wcsstr.texi: Mention the new module.
15580
15581 2011-02-06  Bruno Haible  <bruno@clisp.org>
15582
15583         New module 'wcspbrk'.
15584         * modules/wcspbrk: New file.
15585         * lib/wchar.in.h (wcspbrk): New declaration.
15586         * lib/wcspbrk.c: New file.
15587         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15588         * m4/wcspbrk.m4: New file.
15589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15592         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15593         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15594
15595 2011-02-06  Bruno Haible  <bruno@clisp.org>
15596
15597         New module 'wcsspn'.
15598         * modules/wcsspn: New file.
15599         * lib/wchar.in.h (wcsspn): New declaration.
15600         * lib/wcsspn.c: New file.
15601         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15602         * m4/wcsspn.m4: New file.
15603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15605         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15606         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15607         * doc/posix-functions/wcsspn.texi: Mention the new module.
15608
15609 2011-02-06  Bruno Haible  <bruno@clisp.org>
15610
15611         New module 'wcscspn'.
15612         * modules/wcscspn: New file.
15613         * lib/wchar.in.h (wcscspn): New declaration.
15614         * lib/wcscspn.c: New file.
15615         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15616         * m4/wcscspn.m4: New file.
15617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15620         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15621         * doc/posix-functions/wcscspn.texi: Mention the new module.
15622
15623 2011-02-06  Bruno Haible  <bruno@clisp.org>
15624
15625         New module 'wcsrchr'.
15626         * modules/wcsrchr: New file.
15627         * lib/wchar.in.h (wcsrchr): New declaration.
15628         * lib/wcsrchr.c: New file.
15629         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15630         * m4/wcsrchr.m4: New file.
15631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15634         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15635         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15636
15637 2011-02-06  Bruno Haible  <bruno@clisp.org>
15638
15639         New module 'wcschr'.
15640         * modules/wcschr: New file.
15641         * lib/wchar.in.h (wcschr): New declaration.
15642         * lib/wcschr.c: New file.
15643         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15644         * m4/wcschr.m4: New file.
15645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15648         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15649         * doc/posix-functions/wcschr.texi: Mention the new module.
15650
15651 2011-02-06  Bruno Haible  <bruno@clisp.org>
15652
15653         New module 'wcsdup'.
15654         * modules/wcsdup: New file.
15655         * lib/wchar.in.h (wcsdup): New declaration.
15656         * lib/wcsdup.c: New file.
15657         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15658         * m4/wcsdup.m4: New file.
15659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15662         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15663         * doc/posix-functions/wcsdup.texi: Mention the new module.
15664
15665 2011-02-06  Bruno Haible  <bruno@clisp.org>
15666
15667         New module 'wcsxfrm'.
15668         * modules/wcsxfrm: New file.
15669         * lib/wchar.in.h (wcsxfrm): New declaration.
15670         * lib/wcsxfrm.c: New file.
15671         * lib/wcsxfrm-impl.h: New file.
15672         * m4/wcsxfrm.m4: New file.
15673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15676         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15677         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15678
15679 2011-02-06  Bruno Haible  <bruno@clisp.org>
15680
15681         New module 'wcscoll'.
15682         * modules/wcscoll: New file.
15683         * lib/wchar.in.h (wcscoll): New declaration.
15684         * lib/wcscoll.c: New file.
15685         * lib/wcscoll-impl.h: New file.
15686         * m4/wcscoll.m4: New file.
15687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15690         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15691         * doc/posix-functions/wcscoll.texi: Mention the new module.
15692
15693 2011-02-06  Bruno Haible  <bruno@clisp.org>
15694
15695         New module 'wcsncasecmp'.
15696         * modules/wcsncasecmp: New file.
15697         * lib/wchar.in.h (wcsncasecmp): New declaration.
15698         * lib/wcsncasecmp.c: New file.
15699         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15700         * m4/wcsncasecmp.m4: New file.
15701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15704         HAVE_WCSNCASECMP.
15705         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15706         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15707
15708 2011-02-06  Bruno Haible  <bruno@clisp.org>
15709
15710         New module 'wcscasecmp'.
15711         * modules/wcscasecmp: New file.
15712         * lib/wchar.in.h (wcscasecmp): New declaration.
15713         * lib/wcscasecmp.c: New file.
15714         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15715         * m4/wcscasecmp.m4: New file.
15716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15719         HAVE_WCSCASECMP.
15720         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15721         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15722
15723 2011-02-05  Bruno Haible  <bruno@clisp.org>
15724
15725         New module 'wcsncmp'.
15726         * modules/wcsncmp: New file.
15727         * lib/wchar.in.h (wcsncmp): New declaration.
15728         * lib/wcsncmp.c: New file.
15729         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15730         * m4/wcsncmp.m4: New file.
15731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15734         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15735         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15736
15737 2011-02-05  Bruno Haible  <bruno@clisp.org>
15738
15739         New module 'wcscmp'.
15740         * modules/wcscmp: New file.
15741         * lib/wchar.in.h (wcscmp): New declaration.
15742         * lib/wcscmp.c: New file.
15743         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15744         * m4/wcscmp.m4: New file.
15745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15748         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15749         * doc/posix-functions/wcscmp.texi: Mention the new module.
15750
15751 2011-02-05  Bruno Haible  <bruno@clisp.org>
15752
15753         New module 'wcsncat'.
15754         * modules/wcsncat: New file.
15755         * lib/wchar.in.h (wcsncat): New declaration.
15756         * lib/wcsncat.c: New file.
15757         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15758         * m4/wcsncat.m4: New file.
15759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15762         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15763         * doc/posix-functions/wcsncat.texi: Mention the new module.
15764
15765 2011-02-05  Bruno Haible  <bruno@clisp.org>
15766
15767         New module 'wcscat'.
15768         * modules/wcscat: New file.
15769         * lib/wchar.in.h (wcscat): New declaration.
15770         * lib/wcscat.c: New file.
15771         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15772         * m4/wcscat.m4: New file.
15773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15776         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15777         * doc/posix-functions/wcscat.texi: Mention the new module.
15778
15779 2011-02-05  Bruno Haible  <bruno@clisp.org>
15780
15781         New module 'wcpncpy'.
15782         * modules/wcpncpy: New file.
15783         * lib/wchar.in.h (wcpncpy): New declaration.
15784         * lib/wcpncpy.c: New file.
15785         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15786         * m4/wcpncpy.m4: New file.
15787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15789         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15790         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15791         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15792
15793 2011-02-05  Bruno Haible  <bruno@clisp.org>
15794
15795         New module 'wcsncpy'.
15796         * modules/wcsncpy: New file.
15797         * lib/wchar.in.h (wcsncpy): New declaration.
15798         * lib/wcsncpy.c: New file.
15799         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15800         * m4/wcsncpy.m4: New file.
15801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15804         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15805         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15806
15807 2011-02-05  Bruno Haible  <bruno@clisp.org>
15808
15809         New module 'wcpcpy'.
15810         * modules/wcpcpy: New file.
15811         * lib/wchar.in.h (wcpcpy): New declaration.
15812         * lib/wcpcpy.c: New file.
15813         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15814         * m4/wcpcpy.m4: New file.
15815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15817         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15818         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15819         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15820
15821 2011-02-05  Bruno Haible  <bruno@clisp.org>
15822
15823         New module 'wcscpy'.
15824         * modules/wcscpy: New file.
15825         * lib/wchar.in.h (wcscpy): New declaration.
15826         * lib/wcscpy.c: New file.
15827         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15828         * m4/wcscpy.m4: New file.
15829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15832         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15833         * doc/posix-functions/wcscpy.texi: Mention the new module.
15834
15835 2011-02-05  Bruno Haible  <bruno@clisp.org>
15836
15837         New module 'wcsnlen'.
15838         * modules/wcsnlen: New file.
15839         * lib/wchar.in.h (wcsnlen): New declaration.
15840         * lib/wcsnlen.c: New file.
15841         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15842         * m4/wcsnlen.m4: New file.
15843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15846         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15847         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15848
15849 2011-02-05  Bruno Haible  <bruno@clisp.org>
15850
15851         New module 'wcslen'.
15852         * modules/wcslen: New file.
15853         * lib/wchar.in.h (wcslen): New declaration.
15854         * lib/wcslen.c: New file.
15855         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15856         * m4/wcslen.m4: New file.
15857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15860         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15861         * doc/posix-functions/wcslen.texi: Mention the new module.
15862
15863 2011-02-05  Bruno Haible  <bruno@clisp.org>
15864
15865         New module 'wmemset'.
15866         * modules/wmemset: New file.
15867         * lib/wchar.in.h (wmemset): New declaration.
15868         * lib/wmemset.c: New file.
15869         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15870         * m4/wmemset.m4: New file.
15871         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15872         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15873         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15874         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15875         * doc/posix-functions/wmemset.texi: Mention the new module.
15876
15877 2011-02-05  Bruno Haible  <bruno@clisp.org>
15878
15879         New module 'wmemmove'.
15880         * modules/wmemmove: New file.
15881         * lib/wchar.in.h (wmemmove): New declaration.
15882         * lib/wmemmove.c: New file.
15883         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15884         * m4/wmemmove.m4: New file.
15885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15887         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15888         HAVE_WMEMMOVE.
15889         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15890         * doc/posix-functions/wmemmove.texi: Mention the new module.
15891
15892 2011-02-05  Bruno Haible  <bruno@clisp.org>
15893
15894         New module 'wmemcpy'.
15895         * modules/wmemcpy: New file.
15896         * lib/wchar.in.h (wmemcpy): New declaration.
15897         * lib/wmemcpy.c: New file.
15898         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15899         * m4/wmemcpy.m4: New file.
15900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15902         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15903         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15904         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15905
15906 2011-02-05  Bruno Haible  <bruno@clisp.org>
15907
15908         New module 'wmemcmp'.
15909         * modules/wmemcmp: New file.
15910         * lib/wchar.in.h (wmemcmp): New declaration.
15911         * lib/wmemcmp.c: New file.
15912         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15913         * m4/wmemcmp.m4: New file.
15914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15916         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15917         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15918         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15919
15920 2011-02-07  Jim Meyering  <meyering@redhat.com>
15921
15922         di-set, ino-map: new modules, from coreutils
15923         * lib/di-set.c: New file.
15924         * lib/di-set.h: Likewise.
15925         * lib/ino-map.c: Likewise.
15926         * lib/ino-map.h: Likewise.
15927         * modules/di-set: Likewise.
15928         * modules/di-set-tests: Likewise.
15929         * modules/ino-map: Likewise.
15930         * modules/ino-map-tests: Likewise.
15931         * tests/test-di-set.c: Likewise.
15932         * tests/test-ino-map.c: Likewise.
15933
15934 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15935
15936         getloadavg: merge minor changes from Emacs
15937
15938         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15939         (getloadavg): Use memset, not bzero.
15940
15941         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15942         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15943         clash (bug#86).
15944
15945 2010-11-14  Bruno Haible  <bruno@clisp.org>
15946
15947         Allow multiple gnulib generated replacements to coexist.
15948         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15949         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15950         * lib/langinfo.in.h (nl_item): Likewise.
15951         * lib/math.in.h (_NaN, NAN): Likewise.
15952         * lib/netdb.in.h (struct addrinfo): Likewise.
15953         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15954         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15955         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15956         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15957         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15958         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15959         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15960         pthread_mutexattr_init, pthread_mutexattr_settype,
15961         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15962         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15963         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15964         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15965         * lib/sched.in.h (struct sched_param): Likewise.
15966         * lib/se-selinux.in.h (security_class_t, security_context_t,
15967         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15968         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15969         lsetfilecon, fsetfilecon, security_check_context,
15970         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15971         Likewise.
15972         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15973         Likewise.
15974         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15975         _gl_function_taking_int_returning_void_t, union sigval,
15976         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15977         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15978         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15979         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15980         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15981         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15982         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15983         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15984         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15985         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15986         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15987         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15988         socklen_t, rpl_fd_isset): Likewise.
15989         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15990         * lib/sys_time.in.h (struct timeval): Likewise.
15991         * lib/sys_times.in.h (struct tms): Likewise.
15992         * lib/sys_utsname.in.h (struct utsname):
15993         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15994         * lib/unistd.in.h (getpagesize): Likewise.
15995         * lib/wchar.in.h (mbstate_t): Likewise.
15996         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15997         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15998         towlower, towupper): Likewise.
15999         Reported by Sam Steingold <sds@gnu.org>.
16000
16001 2011-02-05  Eric Blake  <eblake@redhat.com>
16002
16003         unsetenv: work around Haiku issues
16004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16005         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16006
16007 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16008
16009         libposix: avoid calling error() within libposix
16010         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16011         is defined.
16012
16013 2011-02-05  Eric Blake  <eblake@redhat.com>
16014
16015         strerror_r-posix: port to cygwin
16016         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16017         implementation.
16018         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16019         * tests/test-strerror_r.c (main): Fix test.
16020         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16021         issue.
16022
16023 2011-02-05  Bruno Haible  <bruno@clisp.org>
16024
16025         New module 'wmemchr'.
16026         * modules/wmemchr: New file.
16027         * lib/wchar.in.h (wmemchr): New declaration.
16028         * lib/wmemchr.c: New file.
16029         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16030         * m4/wmemchr.m4: New file.
16031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16033         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16034         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16035         * doc/posix-functions/wmemchr.texi: Mention the new module.
16036
16037 2011-02-04  Eric Blake  <eblake@redhat.com>
16038
16039         fdopendir: detect FreeBSD bug
16040         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16041         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16042
16043 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16044
16045         stdbool: do not define HAVE_STDBOOL_H
16046         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16047         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16048         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16049         imported from the latest Autoconf git.  It was motivated by Emacs,
16050         which uses gnulib but does not need HAVE_STDBOOL_H.
16051
16052 2011-02-04  Bruno Haible  <bruno@clisp.org>
16053
16054         wcsnrtombs: Prepare for new module wwcsnrtombs.
16055         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16056         * lib/wcsnrtombs.c: Include it.
16057         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16058
16059         wcsrtombs: Prepare for new module wwcsrtombs.
16060         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16061         * lib/wcsrtombs.c: Include it.
16062         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16063
16064         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16065         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16066         * lib/mbsnrtowcs.c: Include it.
16067         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16068
16069         mbsrtowcs: Prepare for new module mbsrtowwcs.
16070         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16071         * lib/mbsrtowcs.c: Include it.
16072         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16073
16074 2011-02-04  Bruno Haible  <bruno@clisp.org>
16075
16076         vasnprintf: Reduce use of malloc for small format strings.
16077         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16078         (arguments): Add room for the first 7 arguments.
16079         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16080         (char_directives, u8_directives, u16_directives, u32_directives): Add
16081         room for the first 7 directives.
16082         * lib/printf-parse.c: Include <string.h>.
16083         (PRINTF_PARSE): Change memory handling code so that it uses the first
16084         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16085         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16086         Reported by Pádraig Brady <P@draigbrady.com>.
16087
16088 2011-01-31  Eric Blake  <eblake@redhat.com>
16089
16090         dup2: work around Haiku bug
16091         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16092         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16093         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16094         * tests/test-dup2.c (main): Enhance test.
16095
16096 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16097
16098         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16099         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16100         declared by eglibc 2.11.2.
16101         * lib/stdio.in.h: Likewise.
16102
16103 2011-01-31  Eric Blake  <eblake@redhat.com>
16104
16105         ignore-value: add missing test dependency
16106         * tests/test-ignore-value.c: Revert previous change; stdio.h
16107         provides off_t.
16108         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16109
16110 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16111
16112         mktime: clarify long_int width checking
16113         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16114         the top level, to make it clearer that the assumption about
16115         long_int width is being checked.  See
16116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16117
16118 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16119
16120         ignore-value: Fix self-test.
16121         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16122
16123 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16124
16125         TYPE_MAXIMUM: avoid theoretically undefined behavior
16126         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16127         negative number, which the C Standard says has undefined behavior.
16128         In practice this is not a problem, but might as well do it by the book.
16129         Reported by Rich Felker and Eric Blake; see
16130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16131         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16132         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16134         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16135         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16136         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16137
16138         mktime: #undef mktime before #defining it
16139         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16140
16141         mktime: systematically normalize tm_isdst comparisons
16142         * lib/mktime.c (isdst_differ): New function.
16143         (__mktime_internal): Use it systematically for all isdst comparisons.
16144         This completes the fix for libc BZ #6723, and removes the need for
16145         normalizing tm_isdst.  See
16146         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16147         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16148
16149         mktime: fix some integer overflow issues and sidestep the rest
16150
16151         This was prompted by a bug report by Benjamin Lindner for MinGW
16152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16153         His bug is due to signed integer overflow (0 - INT_MIN), and I
16154         I scanned through mktime.c looking for other integer overflow
16155         problems, fixing all the bugs I found.
16156
16157         Although the C Standard says the resulting code is still not safe
16158         in the presence of integer overflow, in practice it should be good
16159         enough for all real-world two's-complement implementations, except
16160         for debugging environments that deliberately trap on integer
16161         overflow (e.g., gcc -ftrapv).
16162
16163         * lib/mktime.c (WRAPV): New macro.
16164         (SHR): Also check that long_int and time_t shift right in the
16165         usual way, before using the fast-but-unportable method.
16166         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16167         used.  The code already assumed two's complement, so there's
16168         no need to test for alternatives.  All uses removed.
16169         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16170         the C standard.  Problem reported by Rich Felker in
16171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16172         (twos_complement_arithmetic): Also check long_int and time_t.
16173         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16174         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16175         (__mktime_internal): Avoid integer overflow with unary subtraction
16176         in two instances where -1 - X is an adequate replacement for -X,
16177         since the calculations are approximate.
16178
16179 2011-01-29  Eric Blake  <eblake@redhat.com>
16180
16181         mktime: avoid infinite loop
16182         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16183         type; behavior is still undefined but portable to all known targets.
16184         Reported by Rich Felker.
16185
16186 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16187
16188         rename, unlink, same-inode: Relicense.
16189         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16190         * modules/unlink (License): Likewise.
16191         * modules/same-inode (License): Likewise.
16192
16193 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         mktime: avoid problems on NetBSD 5 / i386
16196         * lib/mktime.c (long_int): New type.  This works around a problem
16197         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16198         but time_t is 64 bits, and where I expect the existing code is
16199         wrong in some cases.
16200         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16201         (ydhms_diff): Bring back the compile-time check for wide-enough
16202         year and yday.
16203
16204         mktime: fix misspelling in comment
16205         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16206         This merges all recent glibc changes of importance.
16207
16208 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16209
16210         move-if-change: cope with concurrent mv of identical file.
16211         * build-aux/move-if-change (CMPPROG): Accept environment
16212         variable as an override for `cmp'.
16213         (usage): Document CMPPROG.
16214         Adjust comparison to drop stdout.  Cope with failure of mv if
16215         the target file exists and is identical to the source, for
16216         parallel builds.
16217         Report from H.J. Lu against binutils in PR binutils/12283.
16218
16219 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16220
16221         * users.txt: Mention sharutils.
16222
16223 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16224
16225         * users.txt: Mention OATH Toolkit.
16226
16227 2011-01-27  Bruno Haible  <bruno@clisp.org>
16228
16229         Prepare for supporting FreeBSD 10.
16230         * build-aux/config.libpath: Remove handling of freebsd1*.
16231
16232 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16233
16234         Prepare for supporting FreeBSD 10.
16235         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16236         match FreeBSD 10.0.
16237
16238 2011-01-27  Bruno Haible  <bruno@clisp.org>
16239
16240         vma-iter, get-rusage-as: Add OpenBSD support.
16241         * modules/vma-iter (configure.ac): Test for mquery.
16242         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16243         * lib/vma-iter.c: Include <sys/mman.h>.
16244         (vma_iterate): Add an implementation based on mquery().
16245         * lib/resource-ext.h (get_rusage_as): Update comments.
16246         * lib/get-rusage-as.c: Likewise.
16247         * lib/get-rusage-data.c: Likewise.
16248
16249 2011-01-26  Karl Berry  <karl@gnu.org>
16250
16251         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16252         variables to make it easier to override the makeinfo program used.
16253
16254 2011-01-26  Eric Blake  <eblake@redhat.com>
16255
16256         fcntl: work around Haiku F_DUPFD bugs
16257         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16258         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16259         cloexec bit on duplication.
16260         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16261
16262 2011-01-26  Bruno Haible  <bruno@clisp.org>
16263
16264         Enable memory leak tests on AIX.
16265         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16266         * tests/test-fprintf-posix3.c (main): Likewise.
16267
16268 2011-01-26  Bruno Haible  <bruno@clisp.org>
16269
16270         Tests for module 'get-rusage-data'.
16271         * modules/get-rusage-data-tests: New file.
16272         * tests/test-get-rusage-data.c: New file.
16273
16274         New module 'get-rusage-data'.
16275         * lib/resource-ext.h (get_rusage_data): New declaration.
16276         * lib/get-rusage-data.c: New file.
16277         * modules/get-rusage-data: New file.
16278
16279 2011-01-25  Bruno Haible  <bruno@clisp.org>
16280
16281         get-rusage-as: Allow for easier testing.
16282         * lib/resource-ext.h (get_rusage_as): Add comment.
16283         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16284         (main): New function for interactive testing.
16285
16286 2011-01-25  Bruno Haible  <bruno@clisp.org>
16287
16288         vma-iter: Treat Haiku like BeOS.
16289         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16290         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16291
16292 2011-01-25  Eric Blake  <eblake@redhat.com>
16293
16294         c-stack: fix regression on cygwin when libsigsegv is present
16295         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16296
16297 2011-01-24  Bruno Haible  <bruno@clisp.org>
16298
16299         vma-iter: Avoid empty intervals.
16300         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16301         on an empty interval.
16302
16303 2011-01-24  Jim Meyering  <meyering@redhat.com>
16304
16305         u64: remove unnecessary #include
16306         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16307
16308 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16309
16310         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16311         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16312
16313 2011-01-23  Bruno Haible  <bruno@clisp.org>
16314
16315         New module 'vma-iter'.
16316         * lib/vma-iter.h: New file.
16317         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16318         * modules/vma-iter: New file.
16319         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16320         for get_rusage_as_via_iterator.
16321         (vma_iterate_callback): New function.
16322         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16323         * modules/get-rusage-as (Depends-on): Add vma-iter.
16324
16325 2011-01-23  Bruno Haible  <bruno@clisp.org>
16326
16327         uninorm: Tweak includes.
16328         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16329         Reported by Jim Meyering.
16330
16331 2011-01-23  Bruno Haible  <bruno@clisp.org>
16332
16333         get-rusage-as: Improve on NetBSD.
16334         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16335         /proc, like on FreeBSD.
16336
16337 2011-01-23  Jim Meyering  <meyering@redhat.com>
16338
16339         xreadlink.h: remove unnecessary #include
16340         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16341
16342         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16343         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16344
16345 2011-01-23  Bruno Haible  <bruno@clisp.org>
16346
16347         get-rusage-as: Fix bug.
16348         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16349         original limit when aborting the first loop.
16350
16351 2011-01-23  Bruno Haible  <bruno@clisp.org>
16352
16353         wctype: Ensure valid C syntax.
16354         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16355         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16356
16357 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16358
16359         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16360         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16361         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16362         as they are needed only for configure's test case.
16363         This removes two unnecessary symbols from config.h.
16364
16365         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16366         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16368         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16369         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16370         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16371         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16372         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16373         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16374         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16375         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16377         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16378         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16379         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16380         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16381         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16382         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16383
16384 2011-01-21  Eric Blake  <eblake@redhat.com>
16385
16386         maintainer-makefile: work with older git for submodule check
16387         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16388         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16389         Reported by Matthias Bolte.
16390
16391         bootstrap: minor portability fixes
16392         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16393         (usage): Omit leading capital and trailing . on help phrases, per
16394         GNU Coding Standards.
16395         (check_versions, top level): Prefix messages with script name.
16396
16397 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16398
16399         bootstrap: support --no-git option
16400         * build-aux/bootstrap: Add --no-git option, to be used when
16401         --gnulib-srcdir points to the exact desired checkout.
16402
16403 2011-01-21  Eric Blake  <eblake@redhat.com>
16404
16405         strerror_r-posix: work with glibc 2.13
16406         * lib/strerror_r.c (strerror_r): Fix return type.
16407
16408 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16409             Bruno Haible  <bruno@clisp.org>
16410
16411         uN_strstr: New unit tests.
16412         * modules/unistr/u8-strstr-tests: New file.
16413         * modules/unistr/u16-strstr-tests: New file.
16414         * modules/unistr/u32-strstr-tests: New file.
16415         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16416         * tests/unistr/test-u8-strstr.c: New file.
16417         * tests/unistr/test-u16-strstr.c: New file.
16418         * tests/unistr/test-u32-strstr.c: New file.
16419
16420 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16421             Bruno Haible  <bruno@clisp.org>
16422
16423         Make uN_strstr functions O(n) worst-case.
16424         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16425         16-bit and 32-bit unit cases, use the unibyte algorithm from
16426         lib/mbsstr.c.
16427         * lib/unistr/u8-strstr.c: Include <string.h>.
16428         (UNIT_IS_UINT8_T): New macro.
16429         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16430         (U_STRLEN, U_STRNLEN): New macros.
16431         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16432         (U_STRLEN, U_STRNLEN): New macros.
16433         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16434         (configure.ac): Update required libunistring version.
16435         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16436         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16437         malloca.
16438         (configure.ac): Update required libunistring version.
16439         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16440         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16441         malloca.
16442         (configure.ac): Update required libunistring version.
16443
16444 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16445             Bruno Haible  <bruno@clisp.org>
16446
16447         Prepare for faster uN_strstr functions.
16448         * lib/str-kmp.h: Support definable UNITs.
16449         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16450         needle_len argument.
16451         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16452         * lib/mbscasestr.c (mbscasestr): Likewise.
16453
16454 2011-01-21  Pádraig Brady <P@draigBrady.com>
16455
16456         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16457         * tests/test-malloca.c (main): Unset the environment variable
16458         to greatly speed up the test.
16459         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16460         * modules/malloca-tests: Depend on unsetenv.
16461
16462 2011-01-21  Pádraig Brady <P@draigBrady.com>
16463
16464         ignore-value: remove stdint dependency
16465         * lib/ignore-value.h: Remove <stdint.h>
16466         * modules/ignore-value: Remove stdint dependency.
16467
16468 2011-01-21  Jim Meyering  <meyering@redhat.com>
16469
16470         maint.mk: adjust variable name to be consistent with other gl_ vars
16471         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16472         to be lower case.
16473
16474 2011-01-20  Jim Meyering  <meyering@redhat.com>
16475
16476         maint.mk: make "check" depend on public-submodule-commit by default
16477         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16478
16479 2011-01-20  Bruno Haible  <bruno@clisp.org>
16480
16481         mbfile, mbiter: Complete change from 2008-12-21.
16482         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16483         * m4/mbiter.m4 (gl_MBITER): Likewise.
16484
16485 2011-01-20  Jim Meyering  <meyering@redhat.com>
16486
16487         init.sh: insert space between each function name and "()"
16488         * tests/init.sh: Make it a little easier to see that a function's
16489         name is "warn_", and not "warn" when looking at the first part of
16490         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16491
16492 2011-01-20  Jim Meyering  <meyering@redhat.com>
16493
16494         mountlist: clean up code formatting
16495         * lib/mountlist.c (read_file_system_list): Split a long line,
16496         correct bracing style, use NULL in place of "(struct statfs *)0",
16497         don't parenthesize return value, add spaces around "=" and after
16498         ";-in-for-stmt".
16499
16500 2011-01-14  Markus Duft <mduft@gentoo.org>
16501
16502         mountlist: add support for Interix
16503         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16504         Apply statvfs to all entries of /dev/fs.
16505         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16506         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16507
16508 2011-01-20  Jim Meyering  <meyering@redhat.com>
16509
16510         maint.mk: improve the public-submodule-commit rule
16511         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16512         to suppress printing of its commands... unless V=1.
16513         Add git submodule's --quiet option to suppress printing of e.g.,
16514         "Entering gnulib" output.
16515         "cd" into $(srcdir) before running git submodule.
16516
16517 2011-01-20  Bruno Haible  <bruno@clisp.org>
16518
16519         include_next: Fix bug introduced on 2011-01-18.
16520         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16521         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16522         ac_cv_header_... variable if the second argument is not 'check'.
16523         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16524         gl_NEXT_HEADERS_INTERNAL.
16525
16526 2011-01-20  Bruno Haible  <bruno@clisp.org>
16527
16528         Allow the user to avoid the GNULIB_TEST_* macros.
16529         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16530         Suggested by Paul Eggert.
16531
16532 2011-01-14  Jim Meyering  <meyering@redhat.com>
16533
16534         bootstrap: avoid failure when there is no .gitmodules file
16535         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16536         has been assigned to, even when its value is the empty string.
16537         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16538         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16539         Reported by John W. Eaton <jwe@gnu.org>.
16540
16541 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16542
16543         assume <ctype.h>, ..., <time.h> exist
16544         For years gnulib has been assuming the existence of the headers
16545         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16546         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16547         them, since they don't appear to be needed.
16548         * README (Portability guidelines): Document this.
16549         * lib/flock.c: Assume <fcntl.h> exists.
16550         * lib/regex_internal.h: Assume <locale.h> exists.
16551         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16553         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16554         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16555         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16556         * m4/regex.m4 (gl_REGEX): Likewise.
16557         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16558         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16559         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16560         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16561         * tests/test-argp.c: Likewise.
16562         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16563
16564         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16565         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16566         AA_APPLE_UNIVERSAL_BUILD.  See
16567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16568         * NEWS: Document this.
16569
16570 2011-01-19  Eric Blake  <eblake@redhat.com>
16571
16572         c-stack: assume stack overflow if SA_SIGINFO unsupported
16573         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16574         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16575         sigaction will work.
16576         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16577         behavior match Linux.
16578         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16579
16580         stdbool-tests: accomodate Haiku
16581         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16582
16583         binary-io: fix O_TEXT on Haiku
16584         * modules/binary-io (Depends-on): Add fcntl-h.
16585         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16586         than blindly undefining O_TEXT.
16587         Reported by Scott McCreary.
16588
16589 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16590
16591         include_next: do not check for standard headers like stddef.h
16592
16593         I found this problem when modifying Emacs to use gnulib.
16594         I noticed that it added HAVE_STDDEF_H to config.h, even though
16595         gnulib always assumes <stddef.h> exists as per README and this
16596         symbol is unnecessary.
16597         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16598         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16599         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16600         faster for headers like stddef.h that are known to exist.
16601         (gl_CHECK_NEXT_HEADERS): Use it.
16602         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16603         rather than gl_CHECK_NEXT_HEADERS.
16604         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16605         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16606
16607 2011-01-18  Eric Blake  <eblake@redhat.com>
16608
16609         ansi-c++-opt: skip C++ dependency style if C++ is unused
16610         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16611         tests when we know C++ compilation is not desired.
16612         Reported by Scott McCreary.
16613
16614 2011-01-18  Bruno Haible  <bruno@clisp.org>
16615
16616         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16617         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16618         (main): Perform test also when getrlimit and setrlimit don't exist or
16619         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16620         limiting the address space size using setrlimit, compare the address
16621         space size before and after the the test.
16622         * tests/test-dprintf-posix2.c: Likewise.
16623         * tests/test-fprintf-posix3.sh: Update skip messages.
16624         * tests/test-dprintf-posix2.sh: Likewise.
16625         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16626         * modules/dprintf-posix-tests (Depends-on): Likewise.
16627         Reported by Bruce Korb <bkorb@gnu.org> and
16628         Gary V. Vaughan <gary@gnu.org>.
16629
16630 2011-01-18  Bruno Haible  <bruno@clisp.org>
16631
16632         get-rusage-as: Improvement for Cygwin.
16633         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16634         areas that are merely reserved.
16635
16636 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16637
16638         strftime: remove dependencies on multibyte modules
16639
16640         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16641         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16642         only if __osf__ is defined, and I suspect OSF doesn't need these
16643         other modules.  If my guess is wrong, we'll need to come up with a
16644         variant of strftime that doesn't need the multibyte modules.
16645
16646         I discovered this problem when attempting modify Emacs to use the
16647         strftime module.  With the previous gnulib, this caused Emacs to
16648         need 31 new files, ranging from lib/config.charset to
16649         m4/wint_t.m4.  This was overkill and I expect would be offputting
16650         to the Emacs maintainers.  After this change, only 6 new files are
16651         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16652         stdbool.m4, and tm_gmtoff.m4.
16653
16654         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16655         Suggested by Bruno Haible in
16656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16657         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16658         and do not check for wchar.h.
16659         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16660         (Depends-on): Remove mbrlen, mbsinit, wchar.
16661
16662 2011-01-18  Bruno Haible  <bruno@clisp.org>
16663
16664         Tests for module 'get-rusage-as'.
16665         * modules/get-rusage-as-tests: New file.
16666         * tests/test-get-rusage-as.c: New file.
16667
16668         New module 'get-rusage-as'.
16669         * modules/get-rusage-as: New file.
16670         * lib/resource-ext.h: New file.
16671         * lib/get-rusage-as.c: New file.
16672
16673 2011-01-17  Eric Blake  <eblake@redhat.com>
16674
16675         sigaction: relax license from LGPLv3+ to LGPLv2+
16676         * modules/sigaction (License): Relax to LGPLv2+.
16677
16678 2011-01-14  Bruno Haible  <bruno@clisp.org>
16679
16680         filemode: Make function declarations usable in C++ mode.
16681         * lib/filemode.h: Enclose function declarations in extern "C" block.
16682         Reported by John W. Eaton <jwe@gnu.org>.
16683
16684 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16685
16686         save-cwd: no longer include "xgetcwd.h"
16687         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16688         This avoids a compilation failure in projects that use save-cwd
16689         without also using the xgetcwd module.
16690
16691 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16692
16693         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16694         This is so that a program like Emacs, which needs only dtoastr,
16695         does not have to bother with distributing and compiling ftoastr
16696         and ldtoastr.
16697         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16698         * modules/dtoastr, modules/ldtoastr: New files.
16699         * modules/ftoastr: Now works just for 'float'.
16700         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16701         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16702         dtoastr.c, ldtoastr.c.
16703
16704 2011-01-11  Jim Meyering  <meyering@redhat.com>
16705
16706         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16707         There is no need to work around the lack of the fchdir function,
16708         since gnulib can now provide a replacement when required.
16709         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16710         * modules/save-cwd (Depends-on): Add fchdir.
16711
16712 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16713
16714         openat, save-cwd: avoid xmalloc
16715
16716         This removes a direct (but undocumented) dependency of openat on
16717         xalloc, along with an indirect dependency via save-cwd.  It also
16718         removes a dependency of save-cwd on xgetcwd, and thereby
16719         indirectly on xalloc.  This change causes the openat substitute
16720         to fall back on save_cwd when memory is tight, and for save_cwd to
16721         fail instead of dying when memory is tight, but that's good enough.
16722         Problem and initial idea for fix reported by Bastien Roucaries in
16723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16724
16725         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16726         xalloc.h (for xmalloc).
16727         (openat_proc_name): Use malloc, not xmalloc.
16728         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16729         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16730
16731         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16732         This avoids heap allocation for file names whose lengths are in
16733         the range 512..1023, with the upper bound increasing to at most
16734         4031 depending on the platform's PATH_MAX.  (We do not want
16735         pathmax.h here as it might supply a non-constant PATH_MAX.)
16736         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16737         Perhaps they should be moved to malloca.h?
16738         (OPENAT_BUFFER_SIZE): Use them.
16739
16740 2011-01-10  Bruno Haible  <bruno@clisp.org>
16741
16742         doc: Update users.txt.
16743         * users.txt: Add recutils.
16744
16745 2011-01-09  Karl Berry  <karl@gnu.org>
16746
16747         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16748
16749         * doc/configmake.texi: New file.
16750         * doc/gnulib.texi: Include it.
16751         * modules/configmake: Move documentation from here.
16752
16753 2011-01-09  Bruno Haible  <bruno@clisp.org>
16754
16755         Update to Unicode 6.0.0.
16756         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16757         (get_lbp): Update for Unicode 6.0.0.
16758         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16759         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16760         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16761         U+11001, U+11038..U+11046. Remove U+06DE.
16762         (uc_width): Fix bounds of planes.
16763         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16764         lib/uniwidth/width.c.
16765         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16766         trailing whitespace removed.
16767         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16768         without comments, but with the original copyright notice.
16769         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16770         * lib/unicase/ignorable.h: Likewise.
16771         * lib/unicase/tocasefold.h: Likewise.
16772         * lib/unicase/tolower.h: Likewise.
16773         * lib/unicase/totitle.h: Likewise.
16774         * lib/unicase/toupper.h: Likewise.
16775         * lib/unictype/bidi_of.h: Likewise.
16776         * lib/unictype/blocks.h: Likewise.
16777         * lib/unictype/categ_C.h: Likewise.
16778         * lib/unictype/categ_Cn.h: Likewise.
16779         * lib/unictype/categ_L.h: Likewise.
16780         * lib/unictype/categ_Ll.h: Likewise.
16781         * lib/unictype/categ_Lm.h: Likewise.
16782         * lib/unictype/categ_Lo.h: Likewise.
16783         * lib/unictype/categ_Lu.h: Likewise.
16784         * lib/unictype/categ_M.h: Likewise.
16785         * lib/unictype/categ_Mc.h: Likewise.
16786         * lib/unictype/categ_Me.h: Likewise.
16787         * lib/unictype/categ_Mn.h: Likewise.
16788         * lib/unictype/categ_N.h: Likewise.
16789         * lib/unictype/categ_Nd.h: Likewise.
16790         * lib/unictype/categ_No.h: Likewise.
16791         * lib/unictype/categ_P.h: Likewise.
16792         * lib/unictype/categ_Po.h: Likewise.
16793         * lib/unictype/categ_S.h: Likewise.
16794         * lib/unictype/categ_Sc.h: Likewise.
16795         * lib/unictype/categ_Sk.h: Likewise.
16796         * lib/unictype/categ_Sm.h: Likewise.
16797         * lib/unictype/categ_So.h: Likewise.
16798         * lib/unictype/categ_of.h: Likewise.
16799         * lib/unictype/combining.h: Likewise.
16800         * lib/unictype/ctype_alnum.h: Likewise.
16801         * lib/unictype/ctype_alpha.h: Likewise.
16802         * lib/unictype/ctype_graph.h: Likewise.
16803         * lib/unictype/ctype_lower.h: Likewise.
16804         * lib/unictype/ctype_print.h: Likewise.
16805         * lib/unictype/ctype_punct.h: Likewise.
16806         * lib/unictype/ctype_upper.h: Likewise.
16807         * lib/unictype/decdigit.h: Likewise.
16808         * lib/unictype/digit.h: Likewise.
16809         * lib/unictype/numeric.h: Likewise.
16810         * lib/unictype/pr_alphabetic.h: Likewise.
16811         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16812         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16813         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16814         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16815         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16816         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16817         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16818         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16819         * lib/unictype/pr_case_ignorable.h: Likewise.
16820         * lib/unictype/pr_cased.h: Likewise.
16821         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16822         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16823         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16824         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16825         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16826         * lib/unictype/pr_combining.h: Likewise.
16827         * lib/unictype/pr_composite.h: Likewise.
16828         * lib/unictype/pr_currency_symbol.h: Likewise.
16829         * lib/unictype/pr_decimal_digit.h: Likewise.
16830         * lib/unictype/pr_deprecated.h: Likewise.
16831         * lib/unictype/pr_format_control.h: Likewise.
16832         * lib/unictype/pr_grapheme_base.h: Likewise.
16833         * lib/unictype/pr_grapheme_extend.h: Likewise.
16834         * lib/unictype/pr_grapheme_link.h: Likewise.
16835         * lib/unictype/pr_id_continue.h: Likewise.
16836         * lib/unictype/pr_id_start.h: Likewise.
16837         * lib/unictype/pr_ideographic.h: Likewise.
16838         * lib/unictype/pr_lowercase.h: Likewise.
16839         * lib/unictype/pr_math.h: Likewise.
16840         * lib/unictype/pr_numeric.h: Likewise.
16841         * lib/unictype/pr_other_alphabetic.h: Likewise.
16842         * lib/unictype/pr_other_id_continue.h: Likewise.
16843         * lib/unictype/pr_other_math.h: Likewise.
16844         * lib/unictype/pr_punctuation.h: Likewise.
16845         * lib/unictype/pr_sentence_terminal.h: Likewise.
16846         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16847         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16848         * lib/unictype/pr_unified_ideograph.h: Likewise.
16849         * lib/unictype/pr_uppercase.h: Likewise.
16850         * lib/unictype/pr_xid_continue.h: Likewise.
16851         * lib/unictype/pr_xid_start.h: Likewise.
16852         * lib/unictype/scripts.h: Likewise.
16853         * lib/unictype/scripts_byname.gperf: Likewise.
16854         * lib/unictype/sy_java_ident.h: Likewise.
16855         * lib/unigbrk/gbrkprop.h: Likewise.
16856         * lib/unilbrk/lbrkprop1.h: Likewise.
16857         * lib/unilbrk/lbrkprop2.h: Likewise.
16858         * lib/uninorm/decomposition-table2.h: Likewise.
16859         * lib/uniwbrk/wbrkprop.h: Likewise.
16860         * tests/unicase/test-cased.c: Likewise.
16861         * tests/unicase/test-ignorable.c: Likewise.
16862         * tests/unicase/test-uc_tolower.c: Likewise.
16863         * tests/unicase/test-uc_totitle.c: Likewise.
16864         * tests/unicase/test-uc_toupper.c: Likewise.
16865         * tests/unictype/test-categ_C.c: Likewise.
16866         * tests/unictype/test-categ_Cn.c: Likewise.
16867         * tests/unictype/test-categ_L.c: Likewise.
16868         * tests/unictype/test-categ_Ll.c: Likewise.
16869         * tests/unictype/test-categ_Lm.c: Likewise.
16870         * tests/unictype/test-categ_Lo.c: Likewise.
16871         * tests/unictype/test-categ_Lu.c: Likewise.
16872         * tests/unictype/test-categ_M.c: Likewise.
16873         * tests/unictype/test-categ_Mc.c: Likewise.
16874         * tests/unictype/test-categ_Me.c: Likewise.
16875         * tests/unictype/test-categ_Mn.c: Likewise.
16876         * tests/unictype/test-categ_N.c: Likewise.
16877         * tests/unictype/test-categ_Nd.c: Likewise.
16878         * tests/unictype/test-categ_No.c: Likewise.
16879         * tests/unictype/test-categ_P.c: Likewise.
16880         * tests/unictype/test-categ_Po.c: Likewise.
16881         * tests/unictype/test-categ_S.c: Likewise.
16882         * tests/unictype/test-categ_Sc.c: Likewise.
16883         * tests/unictype/test-categ_Sk.c: Likewise.
16884         * tests/unictype/test-categ_Sm.c: Likewise.
16885         * tests/unictype/test-categ_So.c: Likewise.
16886         * tests/unictype/test-ctype_alnum.c: Likewise.
16887         * tests/unictype/test-ctype_alpha.c: Likewise.
16888         * tests/unictype/test-ctype_graph.c: Likewise.
16889         * tests/unictype/test-ctype_lower.c: Likewise.
16890         * tests/unictype/test-ctype_print.c: Likewise.
16891         * tests/unictype/test-ctype_punct.c: Likewise.
16892         * tests/unictype/test-ctype_upper.c: Likewise.
16893         * tests/unictype/test-decdigit.h: Likewise.
16894         * tests/unictype/test-digit.h: Likewise.
16895         * tests/unictype/test-numeric.h: Likewise.
16896         * tests/unictype/test-pr_alphabetic.c: Likewise.
16897         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16898         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16899         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16900         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16901         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16902         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16903         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16904         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16905         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16906         * tests/unictype/test-pr_cased.c: Likewise.
16907         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16908         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16909         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16910         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16911         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16912         * tests/unictype/test-pr_combining.c: Likewise.
16913         * tests/unictype/test-pr_composite.c: Likewise.
16914         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16915         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16916         * tests/unictype/test-pr_deprecated.c: Likewise.
16917         * tests/unictype/test-pr_format_control.c: Likewise.
16918         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16919         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16920         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16921         * tests/unictype/test-pr_id_continue.c: Likewise.
16922         * tests/unictype/test-pr_id_start.c: Likewise.
16923         * tests/unictype/test-pr_ideographic.c: Likewise.
16924         * tests/unictype/test-pr_lowercase.c: Likewise.
16925         * tests/unictype/test-pr_math.c: Likewise.
16926         * tests/unictype/test-pr_numeric.c: Likewise.
16927         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16928         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16929         * tests/unictype/test-pr_other_math.c: Likewise.
16930         * tests/unictype/test-pr_punctuation.c: Likewise.
16931         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16932         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16933         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16934         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16935         * tests/unictype/test-pr_uppercase.c: Likewise.
16936         * tests/unictype/test-pr_xid_continue.c: Likewise.
16937         * tests/unictype/test-pr_xid_start.c: Likewise.
16938         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16939         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16940         changes.
16941         * lib/unictype/categ_Cc.h: Likewise.
16942         * lib/unictype/categ_Cf.h: Likewise.
16943         * lib/unictype/categ_Co.h: Likewise.
16944         * lib/unictype/categ_Cs.h: Likewise.
16945         * lib/unictype/categ_Lt.h: Likewise.
16946         * lib/unictype/categ_Nl.h: Likewise.
16947         * lib/unictype/categ_Pc.h: Likewise.
16948         * lib/unictype/categ_Pd.h: Likewise.
16949         * lib/unictype/categ_Pe.h: Likewise.
16950         * lib/unictype/categ_Pf.h: Likewise.
16951         * lib/unictype/categ_Pi.h: Likewise.
16952         * lib/unictype/categ_Ps.h: Likewise.
16953         * lib/unictype/categ_Z.h: Likewise.
16954         * lib/unictype/categ_Zl.h: Likewise.
16955         * lib/unictype/categ_Zp.h: Likewise.
16956         * lib/unictype/categ_Zs.h: Likewise.
16957         * lib/unictype/ctype_blank.h: Likewise.
16958         * lib/unictype/ctype_cntrl.h: Likewise.
16959         * lib/unictype/ctype_digit.h: Likewise.
16960         * lib/unictype/ctype_space.h: Likewise.
16961         * lib/unictype/ctype_xdigit.h: Likewise.
16962         * lib/unictype/mirror.h: Likewise.
16963         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16964         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16965         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16966         * lib/unictype/pr_bidi_control.h: Likewise.
16967         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16968         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16969         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16970         * lib/unictype/pr_bidi_pdf.h: Likewise.
16971         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16972         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16973         * lib/unictype/pr_dash.h: Likewise.
16974         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16975         * lib/unictype/pr_diacritic.h: Likewise.
16976         * lib/unictype/pr_extender.h: Likewise.
16977         * lib/unictype/pr_hex_digit.h: Likewise.
16978         * lib/unictype/pr_hyphen.h: Likewise.
16979         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16980         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16981         * lib/unictype/pr_ignorable_control.h: Likewise.
16982         * lib/unictype/pr_iso_control.h: Likewise.
16983         * lib/unictype/pr_join_control.h: Likewise.
16984         * lib/unictype/pr_left_of_pair.h: Likewise.
16985         * lib/unictype/pr_line_separator.h: Likewise.
16986         * lib/unictype/pr_logical_order_exception.h: Likewise.
16987         * lib/unictype/pr_non_break.h: Likewise.
16988         * lib/unictype/pr_not_a_character.h: Likewise.
16989         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16990         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16991         * lib/unictype/pr_other_id_start.h: Likewise.
16992         * lib/unictype/pr_other_lowercase.h: Likewise.
16993         * lib/unictype/pr_other_uppercase.h: Likewise.
16994         * lib/unictype/pr_paired_punctuation.h: Likewise.
16995         * lib/unictype/pr_paragraph_separator.h: Likewise.
16996         * lib/unictype/pr_pattern_syntax.h: Likewise.
16997         * lib/unictype/pr_pattern_white_space.h: Likewise.
16998         * lib/unictype/pr_private_use.h: Likewise.
16999         * lib/unictype/pr_quotation_mark.h: Likewise.
17000         * lib/unictype/pr_radical.h: Likewise.
17001         * lib/unictype/pr_soft_dotted.h: Likewise.
17002         * lib/unictype/pr_space.h: Likewise.
17003         * lib/unictype/pr_titlecase.h: Likewise.
17004         * lib/unictype/pr_variation_selector.h: Likewise.
17005         * lib/unictype/pr_white_space.h: Likewise.
17006         * lib/unictype/pr_zero_width.h: Likewise.
17007         * lib/unictype/sy_c_ident.h: Likewise.
17008         * lib/unictype/sy_c_whitespace.h: Likewise.
17009         * lib/unictype/sy_java_whitespace.h: Likewise.
17010         * lib/uninorm/composition-table.gperf: Likewise.
17011         * lib/uninorm/decomposition-table1.h: Likewise.
17012         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17013         LB8.
17014         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17015         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17016         * modules/unictype/*: Bump version number of expected libunistring
17017         version.
17018
17019 2011-01-09  Bruno Haible  <bruno@clisp.org>
17020
17021         Update to Unicode 5.2.0.
17022         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17023         trailing whitespace removed.
17024
17025 2011-01-09  Bruno Haible  <bruno@clisp.org>
17026
17027         New Unicode character properties, from Unicode 5.2.0.
17028         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17029         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17030         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17031         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17032         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17033         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17034         uc_is_property_cased, uc_is_property_case_ignorable,
17035         uc_is_property_changes_when_lowercased,
17036         uc_is_property_changes_when_uppercased,
17037         uc_is_property_changes_when_titlecased,
17038         uc_is_property_changes_when_casefolded,
17039         uc_is_property_changes_when_casemapped): New declarations.
17040         * lib/unictype/pr_byname.gperf: Add the new properties.
17041         * modules/unictype/property-byname (Depends-on): Depend on the new
17042         properties modules.
17043         * modules/unictype/property-all (Depends-on): Likewise.
17044         * MODULES.html.sh (Unicode string functions): Add
17045         unictype/property-case-ignorable, unictype/property-cased,
17046         unictype/property-changes-when-casefolded,
17047         unictype/property-changes-when-casemapped,
17048         unictype/property-changes-when-lowercased,
17049         unictype/property-changes-when-titlecased,
17050         unictype/property-changes-when-uppercased.
17051
17052         New module 'unictype/property-changes-when-casemapped'.
17053         * modules/unictype/property-changes-when-casemapped: New file.
17054         * lib/unictype/pr_changes_when_casemapped.c: New file.
17055         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17056         generated by gen-uni-tables.
17057         * modules/unictype/property-changes-when-casemapped-tests: New file.
17058         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17059         automatically generated by gen-uni-tables.
17060
17061         New module 'unictype/property-changes-when-casefolded'.
17062         * modules/unictype/property-changes-when-casefolded: New file.
17063         * lib/unictype/pr_changes_when_casefolded.c: New file.
17064         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17065         generated by gen-uni-tables.
17066         * modules/unictype/property-changes-when-casefolded-tests: New file.
17067         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17068         automatically generated by gen-uni-tables.
17069
17070         New module 'unictype/property-changes-when-titlecased'.
17071         * modules/unictype/property-changes-when-titlecased: New file.
17072         * lib/unictype/pr_changes_when_titlecased.c: New file.
17073         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17074         generated by gen-uni-tables.
17075         * modules/unictype/property-changes-when-titlecased-tests: New file.
17076         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17077         automatically generated by gen-uni-tables.
17078
17079         New module 'unictype/property-changes-when-uppercased'.
17080         * modules/unictype/property-changes-when-uppercased: New file.
17081         * lib/unictype/pr_changes_when_uppercased.c: New file.
17082         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17083         generated by gen-uni-tables.
17084         * modules/unictype/property-changes-when-uppercased-tests: New file.
17085         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17086         automatically generated by gen-uni-tables.
17087
17088         New module 'unictype/property-changes-when-lowercased'.
17089         * modules/unictype/property-changes-when-lowercased: New file.
17090         * lib/unictype/pr_changes_when_lowercased.c: New file.
17091         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17092         generated by gen-uni-tables.
17093         * modules/unictype/property-changes-when-lowercased-tests: New file.
17094         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17095         automatically generated by gen-uni-tables.
17096
17097         New module 'unictype/property-case-ignorable'.
17098         * modules/unictype/property-case-ignorable: New file.
17099         * lib/unictype/pr_case_ignorable.c: New file.
17100         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17101         by gen-uni-tables.
17102         * modules/unictype/property-case-ignorable-tests: New file.
17103         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17104         generated by gen-uni-tables.
17105
17106         New module 'unictype/property-cased'.
17107         * modules/unictype/property-cased: New file.
17108         * lib/unictype/pr_cased.c: New file.
17109         * lib/unictype/pr_cased.h: New file, automatically generated by
17110         gen-uni-tables.
17111         * modules/unictype/property-cased-tests: New file.
17112         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17113         gen-uni-tables.
17114
17115 2011-01-09  Bruno Haible  <bruno@clisp.org>
17116
17117         Update to Unicode 5.2.0.
17118         * lib/gen-uni-tables.c (output_predicate, output_category,
17119         output_combclass, output_bidi_category, output_decimal_digit_test,
17120         output_decimal_digit, output_digit_test, output_digit,
17121         output_numeric_test, output_numeric, output_mirror, output_scripts,
17122         output_scripts_byname, output_blocks, output_ident_category): Fix
17123         comment header.
17124         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17125         get_wbp.
17126         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17127         items.
17128         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17129         Changes_When_Lowercased, Changes_When_Uppercased,
17130         Changes_When_Titlecased, Changes_When_Casefolded,
17131         Changes_When_Casemapped.
17132         (is_property_alphabetic, is_property_default_ignorable_code_point):
17133         Update for Unicode 5.2.0.
17134         (is_property_cased, is_property_case_ignorable,
17135         is_property_changes_when_lowercased,
17136         is_property_changes_when_uppercased,
17137         is_property_changes_when_titlecased,
17138         is_property_changes_when_casefolded,
17139         is_property_changes_when_casemapped): New functions.
17140         (output_properties): Output also the properties cased, case_ignorable,
17141         changes_when_lowercased, changes_when_uppercased,
17142         changes_when_titlecased, changes_when_casefolded,
17143         changes_when_casemapped.
17144         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17145         Unicode TR#11 revision 17 -> 19.
17146         (LBP_CP): New enumeration value.
17147         (LBP_*): Adjust values accordingly.
17148         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17149         TR#14 revision 22 -> 24.
17150         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17151         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17152         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17153         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17154         is_WBP_MIDLETTER.
17155         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17156         the code1 and code2 of each composition rule.
17157         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17158         * lib/unicase/ignorable.h: Likewise.
17159         * lib/unicase/tocasefold.h: Likewise.
17160         * lib/unicase/tolower.h: Likewise.
17161         * lib/unicase/totitle.h: Likewise.
17162         * lib/unicase/toupper.h: Likewise.
17163         * lib/unictype/bidi_of.h: Likewise.
17164         * lib/unictype/blocks.h: Likewise.
17165         * lib/unictype/categ_C.h: Likewise.
17166         * lib/unictype/categ_Cf.h: Likewise.
17167         * lib/unictype/categ_Cn.h: Likewise.
17168         * lib/unictype/categ_L.h: Likewise.
17169         * lib/unictype/categ_Ll.h: Likewise.
17170         * lib/unictype/categ_Lm.h: Likewise.
17171         * lib/unictype/categ_Lo.h: Likewise.
17172         * lib/unictype/categ_Lu.h: Likewise.
17173         * lib/unictype/categ_M.h: Likewise.
17174         * lib/unictype/categ_Mc.h: Likewise.
17175         * lib/unictype/categ_Mn.h: Likewise.
17176         * lib/unictype/categ_N.h: Likewise.
17177         * lib/unictype/categ_Nd.h: Likewise.
17178         * lib/unictype/categ_Nl.h: Likewise.
17179         * lib/unictype/categ_No.h: Likewise.
17180         * lib/unictype/categ_P.h: Likewise.
17181         * lib/unictype/categ_Pd.h: Likewise.
17182         * lib/unictype/categ_Po.h: Likewise.
17183         * lib/unictype/categ_S.h: Likewise.
17184         * lib/unictype/categ_Sc.h: Likewise.
17185         * lib/unictype/categ_So.h: Likewise.
17186         * lib/unictype/categ_of.h: Likewise.
17187         * lib/unictype/combining.h: Likewise.
17188         * lib/unictype/ctype_alnum.h: Likewise.
17189         * lib/unictype/ctype_alpha.h: Likewise.
17190         * lib/unictype/ctype_graph.h: Likewise.
17191         * lib/unictype/ctype_lower.h: Likewise.
17192         * lib/unictype/ctype_print.h: Likewise.
17193         * lib/unictype/ctype_punct.h: Likewise.
17194         * lib/unictype/ctype_upper.h: Likewise.
17195         * lib/unictype/decdigit.h: Likewise.
17196         * lib/unictype/digit.h: Likewise.
17197         * lib/unictype/numeric.h: Likewise.
17198         * lib/unictype/pr_alphabetic.h: Likewise.
17199         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17200         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17201         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17202         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17203         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17204         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17205         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17206         * lib/unictype/pr_combining.h: Likewise.
17207         * lib/unictype/pr_composite.h: Likewise.
17208         * lib/unictype/pr_currency_symbol.h: Likewise.
17209         * lib/unictype/pr_dash.h: Likewise.
17210         * lib/unictype/pr_decimal_digit.h: Likewise.
17211         * lib/unictype/pr_deprecated.h: Likewise.
17212         * lib/unictype/pr_diacritic.h: Likewise.
17213         * lib/unictype/pr_extender.h: Likewise.
17214         * lib/unictype/pr_grapheme_base.h: Likewise.
17215         * lib/unictype/pr_grapheme_extend.h: Likewise.
17216         * lib/unictype/pr_grapheme_link.h: Likewise.
17217         * lib/unictype/pr_id_continue.h: Likewise.
17218         * lib/unictype/pr_id_start.h: Likewise.
17219         * lib/unictype/pr_ideographic.h: Likewise.
17220         * lib/unictype/pr_ignorable_control.h: Likewise.
17221         * lib/unictype/pr_logical_order_exception.h: Likewise.
17222         * lib/unictype/pr_lowercase.h: Likewise.
17223         * lib/unictype/pr_numeric.h: Likewise.
17224         * lib/unictype/pr_other_alphabetic.h: Likewise.
17225         * lib/unictype/pr_punctuation.h: Likewise.
17226         * lib/unictype/pr_sentence_terminal.h: Likewise.
17227         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17228         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17229         * lib/unictype/pr_unified_ideograph.h: Likewise.
17230         * lib/unictype/pr_uppercase.h: Likewise.
17231         * lib/unictype/pr_xid_continue.h: Likewise.
17232         * lib/unictype/pr_xid_start.h: Likewise.
17233         * lib/unictype/pr_zero_width.h: Likewise.
17234         * lib/unictype/scripts.h: Likewise.
17235         * lib/unictype/scripts_byname.gperf: Likewise.
17236         * lib/unictype/sy_java_ident.h: Likewise.
17237         * lib/unigbrk/gbrkprop.h: Likewise.
17238         * lib/unilbrk/lbrkprop1.h: Likewise.
17239         * lib/unilbrk/lbrkprop2.h: Likewise.
17240         * lib/unilbrk/lbrktables.h: Likewise.
17241         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17242         LBP_CP. Implement rule LB30.
17243         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17244         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17245         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17246         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17247         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17248         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17249         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17250         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17251         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17252         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17253         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17254         bits instead of 16 bits in the code1 and code2 of each composition
17255         rule.
17256         (uc_composition): Update for Unicode 5.2.0.
17257         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17258         * lib/uninorm/decomposition-table2.h: Likewise.
17259         * lib/uniwbrk/wbrkprop.h: Likewise.
17260         * tests/unicase/test-cased.c: Likewise.
17261         * tests/unicase/test-ignorable.c: Likewise.
17262         * tests/unicase/test-uc_tolower.c: Likewise.
17263         * tests/unicase/test-uc_totitle.c: Likewise.
17264         * tests/unicase/test-uc_toupper.c: Likewise.
17265         * tests/unictype/test-categ_C.c: Likewise.
17266         * tests/unictype/test-categ_Cf.c: Likewise.
17267         * tests/unictype/test-categ_Cn.c: Likewise.
17268         * tests/unictype/test-categ_L.c: Likewise.
17269         * tests/unictype/test-categ_Ll.c: Likewise.
17270         * tests/unictype/test-categ_Lm.c: Likewise.
17271         * tests/unictype/test-categ_Lo.c: Likewise.
17272         * tests/unictype/test-categ_Lu.c: Likewise.
17273         * tests/unictype/test-categ_M.c: Likewise.
17274         * tests/unictype/test-categ_Mc.c: Likewise.
17275         * tests/unictype/test-categ_Mn.c: Likewise.
17276         * tests/unictype/test-categ_N.c: Likewise.
17277         * tests/unictype/test-categ_Nd.c: Likewise.
17278         * tests/unictype/test-categ_Nl.c: Likewise.
17279         * tests/unictype/test-categ_No.c: Likewise.
17280         * tests/unictype/test-categ_P.c: Likewise.
17281         * tests/unictype/test-categ_Pd.c: Likewise.
17282         * tests/unictype/test-categ_Po.c: Likewise.
17283         * tests/unictype/test-categ_S.c: Likewise.
17284         * tests/unictype/test-categ_Sc.c: Likewise.
17285         * tests/unictype/test-categ_So.c: Likewise.
17286         * tests/unictype/test-ctype_alnum.c: Likewise.
17287         * tests/unictype/test-ctype_alpha.c: Likewise.
17288         * tests/unictype/test-ctype_graph.c: Likewise.
17289         * tests/unictype/test-ctype_lower.c: Likewise.
17290         * tests/unictype/test-ctype_print.c: Likewise.
17291         * tests/unictype/test-ctype_punct.c: Likewise.
17292         * tests/unictype/test-ctype_upper.c: Likewise.
17293         * tests/unictype/test-decdigit.h: Likewise.
17294         * tests/unictype/test-digit.h: Likewise.
17295         * tests/unictype/test-numeric.h: Likewise.
17296         * tests/unictype/test-pr_alphabetic.c: Likewise.
17297         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17298         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17299         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17300         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17301         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17302         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17303         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17304         * tests/unictype/test-pr_combining.c: Likewise.
17305         * tests/unictype/test-pr_composite.c: Likewise.
17306         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17307         * tests/unictype/test-pr_dash.c: Likewise.
17308         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17309         * tests/unictype/test-pr_deprecated.c: Likewise.
17310         * tests/unictype/test-pr_diacritic.c: Likewise.
17311         * tests/unictype/test-pr_extender.c: Likewise.
17312         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17313         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17314         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17315         * tests/unictype/test-pr_id_continue.c: Likewise.
17316         * tests/unictype/test-pr_id_start.c: Likewise.
17317         * tests/unictype/test-pr_ideographic.c: Likewise.
17318         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17319         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17320         * tests/unictype/test-pr_lowercase.c: Likewise.
17321         * tests/unictype/test-pr_numeric.c: Likewise.
17322         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17323         * tests/unictype/test-pr_punctuation.c: Likewise.
17324         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17325         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17326         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17327         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17328         * tests/unictype/test-pr_uppercase.c: Likewise.
17329         * tests/unictype/test-pr_xid_continue.c: Likewise.
17330         * tests/unictype/test-pr_xid_start.c: Likewise.
17331         * tests/unictype/test-pr_zero_width.c: Likewise.
17332         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17333         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17334         changed behaviour: line breaking is now disallowed between a letter
17335         or '=' and '('.
17336         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17337         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17338         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17339         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17340         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17341         lib/uniwidth/width.c.
17342         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17343         without comments, but with the original copyright notice.
17344         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17345         changes.
17346         * lib/unictype/categ_Cc.h: Likewise.
17347         * lib/unictype/categ_Co.h: Likewise.
17348         * lib/unictype/categ_Cs.h: Likewise.
17349         * lib/unictype/categ_Lt.h: Likewise.
17350         * lib/unictype/categ_Me.h: Likewise.
17351         * lib/unictype/categ_Pc.h: Likewise.
17352         * lib/unictype/categ_Pe.h: Likewise.
17353         * lib/unictype/categ_Pf.h: Likewise.
17354         * lib/unictype/categ_Pi.h: Likewise.
17355         * lib/unictype/categ_Ps.h: Likewise.
17356         * lib/unictype/categ_Sk.h: Likewise.
17357         * lib/unictype/categ_Sm.h: Likewise.
17358         * lib/unictype/categ_Z.h: Likewise.
17359         * lib/unictype/categ_Zl.h: Likewise.
17360         * lib/unictype/categ_Zp.h: Likewise.
17361         * lib/unictype/categ_Zs.h: Likewise.
17362         * lib/unictype/ctype_blank.h: Likewise.
17363         * lib/unictype/ctype_cntrl.h: Likewise.
17364         * lib/unictype/ctype_digit.h: Likewise.
17365         * lib/unictype/ctype_space.h: Likewise.
17366         * lib/unictype/ctype_xdigit.h: Likewise.
17367         * lib/unictype/mirror.h: Likewise.
17368         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17369         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17370         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17371         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17372         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17373         * lib/unictype/pr_bidi_control.h: Likewise.
17374         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17375         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17376         * lib/unictype/pr_bidi_pdf.h: Likewise.
17377         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17378         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17379         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17380         * lib/unictype/pr_format_control.h: Likewise.
17381         * lib/unictype/pr_hex_digit.h: Likewise.
17382         * lib/unictype/pr_hyphen.h: Likewise.
17383         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17384         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17385         * lib/unictype/pr_iso_control.h: Likewise.
17386         * lib/unictype/pr_join_control.h: Likewise.
17387         * lib/unictype/pr_left_of_pair.h: Likewise.
17388         * lib/unictype/pr_line_separator.h: Likewise.
17389         * lib/unictype/pr_math.h: Likewise.
17390         * lib/unictype/pr_non_break.h: Likewise.
17391         * lib/unictype/pr_not_a_character.h: Likewise.
17392         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17393         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17394         * lib/unictype/pr_other_id_continue.h: Likewise.
17395         * lib/unictype/pr_other_id_start.h: Likewise.
17396         * lib/unictype/pr_other_lowercase.h: Likewise.
17397         * lib/unictype/pr_other_math.h: Likewise.
17398         * lib/unictype/pr_other_uppercase.h: Likewise.
17399         * lib/unictype/pr_paired_punctuation.h: Likewise.
17400         * lib/unictype/pr_paragraph_separator.h: Likewise.
17401         * lib/unictype/pr_pattern_syntax.h: Likewise.
17402         * lib/unictype/pr_pattern_white_space.h: Likewise.
17403         * lib/unictype/pr_private_use.h: Likewise.
17404         * lib/unictype/pr_quotation_mark.h: Likewise.
17405         * lib/unictype/pr_radical.h: Likewise.
17406         * lib/unictype/pr_soft_dotted.h: Likewise.
17407         * lib/unictype/pr_space.h: Likewise.
17408         * lib/unictype/pr_titlecase.h: Likewise.
17409         * lib/unictype/pr_variation_selector.h: Likewise.
17410         * lib/unictype/pr_white_space.h: Likewise.
17411         * lib/unictype/sy_c_ident.h: Likewise.
17412         * lib/unictype/sy_c_whitespace.h: Likewise.
17413         * lib/unictype/sy_java_whitespace.h: Likewise.
17414         * modules/uni*/*: Bump version number of expected libunistring version.
17415         Reported by Simon Josefsson.
17416
17417 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17418
17419         useless-if-before-free: fix typo in --help and make the internal,
17420         automatic version date update process work once again.
17421         --help output contained a NUL character instead of the
17422         backslash-zero that was intended.  Also, the "must lie within
17423         the first 8 lines" line is on line 9, and hence not getting
17424         automatically updated.
17425         * build-aux/useless-if-before-free: Fix the former by adding a
17426         backslash, and the latter by condensing the three lines of what-it-does
17427         to a single line, leaving one line of slack for the future.
17428
17429 2011-01-09  Bruno Haible  <bruno@clisp.org>
17430
17431         uniwidth/width: Fix width of U+1D173..U+1D17A.
17432         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17433         symbolic_width, output_width_property_test): New functions.
17434         (main): Invoke output_nonspacing_property, output_width_property_test.
17435         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17436         U+1D173..U+1D17A.
17437         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17438         1.
17439         * modules/uniwidth/*: Bump version number of expected libunistring
17440         version.
17441         * modules/unilbrk/*: Likewise.
17442
17443 2011-01-08  Bruno Haible  <bruno@clisp.org>
17444
17445         uninorm tests: Preserve copyright of Unicode data file.
17446         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17447         Mention modifications.
17448
17449 2011-01-08  Bruno Haible  <bruno@clisp.org>
17450
17451         gen-uni-tables: Prepare for Unicode 5.2.0.
17452         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17453         (debug_output_lbp, output_lbp): Update.
17454
17455 2011-01-08  Bruno Haible  <bruno@clisp.org>
17456
17457         unilbrk: Clarify gen-uni-tables.c code.
17458         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17459         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17460         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17461
17462 2011-01-07  Bruno Haible  <bruno@clisp.org>
17463
17464         strtod: Restore errno when successfully parsing Infinity or NaN.
17465         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17466         restore the original errno.
17467
17468 2011-01-07  Bruno Haible  <bruno@clisp.org>
17469
17470         remove test: Avoid failure on HP-UX 11.
17471         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17472
17473 2011-01-07  Bruno Haible  <bruno@clisp.org>
17474
17475         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17476         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17477         error code.
17478
17479 2011-01-07  Pádraig Brady <P@draigBrady.com>
17480
17481         ignore-value: fixup comments, and add Eric Blake
17482         as an author since he rewrote the macros.
17483         * lib/ignore-value.h (ignore_value):  State that
17484         we now support aggregates.  Also specify exactly
17485         when the GCC warn_unused_result feature was added.
17486
17487 2011-01-06  Eric Blake  <eblake@redhat.com>
17488
17489         ignore-value: support aggregate types
17490         * lib/ignore-value.h (ignore_value): Provide separate gcc
17491         definition.
17492         * modules/ignore-value-tests: New test module.
17493         * tests/test-ignore-value.c: New test.
17494
17495         maint.mk: improve sc_prohibit_strcmp regex
17496         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17497         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17498         definition of STRNEQ.
17499
17500         signal: work around Haiku issue with SIGBUS
17501         * lib/siglist.h: Add comment.
17502         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17503         strsignal's favoring of SIGSEGV.
17504         * tests/test-signal.c (main): Avoid test failure.
17505         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17506         Reported by Scott McCreary.
17507
17508         maint.mk: add pre-release check to ensure submodule commits are public
17509         * top/maint.mk (public-submodule-commit): New rule.
17510         (submodule-checks): New variable.
17511         (alpha beta stable): Depend on the variable.
17512
17513 2011-01-05  Pádraig Brady <P@draigBrady.com>
17514         and Jim Meyering  <meyering@redhat.com>
17515
17516         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17517         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17518         (ATTRIBUTE_DEPRECATED): Define.
17519         (_ignore_case): New function.
17520         (ignore_value): New macro, to replace the old function.
17521         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17522         * modules/ignore-value (Depends-on): Add stdint.
17523
17524 2011-01-04  Eric Blake  <eblake@redhat.com>
17525
17526         doc: regenerate INSTALL
17527         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17528         @firstparagraphindent support, now that autoconf dropped it.
17529         (INSTALL_PRELUDE): Reinstate old macro.
17530         * doc/install.texi: Resync from autoconf.
17531         * doc/INSTALL: Reflect recent autoconf update.
17532         * doc/INSTALL.ISO: Likewise.
17533         * doc/INSTALL.UTF-8: Likewise.
17534         Reported by Karl Berry.
17535
17536 2011-01-04  Bruce Korb  <address@hidden>
17537
17538         git-version-gen: avoid a sub-shell
17539         * build-aux/git-version-gen: Redirect stderr in `...` via
17540         "exec 2>...", rather than via an added sub-shell.
17541
17542 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17543
17544         git-version-gen: use (...) rather than sh -c '...'
17545         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17546         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17547
17548 2011-01-03  Jim Meyering  <meyering@redhat.com>
17549
17550         git-version-gen: convert leading TABs to spaces
17551         * build-aux/git-version-gen: Expand leading TABs.
17552
17553         git-version-gen: handle failed "git rev-list"
17554         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17555         from git and proceeding as if it had succeeded but printed no SHA1
17556         checksums, suppress the diagnostic and handle the failure.
17557         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17558
17559         git-version-gen: include command name in one more diagnostic
17560         * build-aux/git-version-gen: When the required .tarball-version file
17561         was missing or unreadable, you might see the diagnostic from "cat",
17562         but no trace of the name of the invoking script.  Now, you still see
17563         the diagnostic from cat, but also get one from "git-version-gen: ".
17564         Inspired by a patch from Bruce Korb.
17565
17566         update-copyright: adjust test to match changed code
17567         * tests/test-update-copyright.sh: Change test's expected output
17568         to match new actual output.
17569
17570 2011-01-02  Bruno Haible  <bruno@clisp.org>
17571
17572         getlogin_r: Avoid test failure on HP-UX 11.
17573         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17574         ERANGE when the second argument is zero.
17575         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17576         portability problem.
17577
17578 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17579
17580         * build-aux/update-copyright: doc Simon's changes
17581
17582 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17583
17584         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17585         environment variable.
17586
17587 2011-01-02  Bruno Haible  <bruno@clisp.org>
17588
17589         unigbrk: Avoid gcc warnings.
17590         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17591         unused variable.
17592         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17593         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17594         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17595         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17596         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17597         Change type of first argument to 'const char *'.
17598         (main): Remove unused variable.
17599         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17600         type of first argument to 'const char *'.
17601         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17602         Likewise.
17603         (main): Change type of variable 's'.
17604         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17605         to 'int'.
17606
17607 2011-01-02  Bruno Haible  <bruno@clisp.org>
17608
17609         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17610         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17611         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17612         bug.
17613         * lib/pwrite.c: Undo 2010-12-31 patch.
17614         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17615
17616 2011-01-02  Bruno Haible  <bruno@clisp.org>
17617
17618         pread: Fix test whether it works.
17619         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17620
17621 2011-01-02  Bruno Haible  <bruno@clisp.org>
17622
17623         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17624         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17625         ends in "6". Don't require a specific month name. Try also the locale
17626         names found on HP-UX 11 and Solaris 7.
17627
17628 2011-01-02  Bruno Haible  <bruno@clisp.org>
17629
17630         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17631         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17632         C linkage.
17633         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17634
17635 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17636
17637         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17638         for consistency, since the "cluster" term is not used elsewhere.
17639         * lib/unigbrk.in.h: Update name.
17640         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17641         * lib/unigbrk/u16-grapheme-next.c: Update name.
17642         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17643         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17644         * lib/unigbrk/u32-grapheme-next.c: Update name.
17645         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17646         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17647         * lib/unigbrk/u8-grapheme-next.c: Update name.
17648         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17649         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17650         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17651         Suggested by Bruno Haible.
17652
17653 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17654
17655         Remove module 'u8-grapheme-len' as too redundant with
17656         'u8-grapheme-next'.
17657         * modules/unigbrk/u8-grapheme-len: Delete file.
17658         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17659         * lib/unigbrk.in.h: Remove prototype for deleted function.
17660         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17661         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17662
17663         Remove module 'u16-grapheme-len' as too redundant with
17664         'u16-grapheme-next'.
17665         * modules/unigbrk/u16-grapheme-len: Delete file.
17666         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17667         * lib/unigbrk.in.h: Remove prototype for deleted function.
17668         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17669         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17670
17671         Remove module 'u32-grapheme-len' as too redundant with
17672         'u32-grapheme-next'.
17673         * modules/unigbrk/u32-grapheme-len: Delete file.
17674         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17675         * lib/unigbrk.in.h: Remove prototype for deleted function.
17676         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17677         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17678
17679         Suggested by Bruno Haible.
17680
17681 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17682
17683         * unigbrk.in.h: Fix typo: "ben" => "been".
17684         Reported by Bruno Haible.
17685
17686 2011-01-01  Jim Meyering  <meyering@redhat.com>
17687
17688         maint: update almost all copyright ranges to include 2011
17689         Run the new "make update-copyright" rule.
17690
17691 2011-01-01  Jim Meyering  <meyering@redhat.com>
17692
17693         maint: update-copyright: exempt doc/INSTALL*
17694         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17695         since they are generated.  Suggested by Bruno Haible.
17696
17697 2011-01-01  Jim Meyering  <meyering@redhat.com>
17698
17699         maint: refine the update-copyright rule
17700         * Makefile (update-copyright): Also exclude any file that includes
17701         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17702         code that merely generates the comment.
17703
17704 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17705
17706         New module 'u8-grapheme-len'.
17707         * modules/unigbrk/u8-grapheme-len: New file.
17708         * modules/unigbrk/u8-grapheme-len-tests: New file.
17709         * lib/unigbrk.in.h: Add prototype for new function.
17710         * lib/unigbrk/u8-grapheme-len.c: New file.
17711         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17712
17713         New module 'u16-grapheme-len'.
17714         * modules/unigbrk/u16-grapheme-len: New file.
17715         * modules/unigbrk/u16-grapheme-len-tests: New file.
17716         * lib/unigbrk.in.h: Add prototype for new function.
17717         * lib/unigbrk/u16-grapheme-len.c: New file.
17718         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17719
17720         New module 'u32-grapheme-len'.
17721         * modules/unigbrk/u32-grapheme-len: New file.
17722         * modules/unigbrk/u32-grapheme-len-tests: New file.
17723         * lib/unigbrk.in.h: Add prototype for new function.
17724         * lib/unigbrk/u32-grapheme-len.c: New file.
17725         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17726
17727         New module 'u8-grapheme-next'.
17728         * modules/unigbrk/u8-grapheme-next: New file.
17729         * modules/unigbrk/u8-grapheme-next-tests: New file.
17730         * lib/unigbrk.in.h: Add prototype for new function.
17731         * lib/unigbrk/u8-grapheme-next.c: New file.
17732         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17733
17734         New module 'u16-grapheme-next'.
17735         * modules/unigbrk/u16-grapheme-next: New file.
17736         * modules/unigbrk/u16-grapheme-next-tests: New file.
17737         * lib/unigbrk.in.h: Add prototype for new function.
17738         * lib/unigbrk/u16-grapheme-next.c: New file.
17739         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17740
17741         New module 'u32-grapheme-next'.
17742         * modules/unigbrk/u32-grapheme-next: New file.
17743         * modules/unigbrk/u32-grapheme-next-tests: New file.
17744         * lib/unigbrk.in.h: Add prototype for new function.
17745         * lib/unigbrk/u32-grapheme-next.c: New file.
17746         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17747
17748         New module 'u8-grapheme-prev'.
17749         * modules/unigbrk/u8-grapheme-prev: New file.
17750         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17751         * lib/unigbrk.in.h: Add prototype for new function.
17752         * lib/unigbrk/u8-grapheme-prev.c: New file.
17753         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17754
17755         New module 'u16-grapheme-prev'.
17756         * modules/unigbrk/u16-grapheme-prev: New file.
17757         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17758         * lib/unigbrk.in.h: Add prototype for new function.
17759         * lib/unigbrk/u16-grapheme-prev.c: New file.
17760         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17761
17762         New module 'u32-grapheme-prev'.
17763         * modules/unigbrk/u32-grapheme-prev: New file.
17764         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17765         * lib/unigbrk.in.h: Add prototype for new function.
17766         * lib/unigbrk/u32-grapheme-prev.c: New file.
17767         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17768
17769         New module 'u8-grapheme-breaks'.
17770         * modules/unigbrk/u8-grapheme-breaks: New file.
17771         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17772         * lib/unigbrk.in.h: Add prototype for new function.
17773         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17774         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17775
17776         New module 'u16-grapheme-breaks'.
17777         * modules/unigbrk/u16-grapheme-breaks: New file.
17778         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17779         * lib/unigbrk.in.h: Add prototype for new function.
17780         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17781         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17782
17783         New module 'u32-grapheme-breaks'.
17784         * modules/unigbrk/u32-grapheme-breaks: New file.
17785         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17786         * lib/unigbrk.in.h: Add prototype for new function.
17787         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17788         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17789
17790         New module 'ulc-grapheme-breaks'.
17791         * modules/unigbrk/ulc-grapheme-breaks: New file.
17792         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17793         * m4/locale-ar.m4: New file.
17794         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17795         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17796         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17797
17798 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17799
17800         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17801         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17802         modified how this file was generated before I initially submitted
17803         the module, but failed to regenerate it.  This meant that several
17804         of the level2 entries were wrong.
17805         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17806         Remove the division-by-2 that is folded into the table now that
17807         gbrkprop.h has been regenerated properly.  Now -1 entries are
17808         handled correctly.
17809
17810         New module 'unigbrk/uc-gbrk-prop-tests'.
17811         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17812         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17813         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17814         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17815
17816 2011-01-01  Bruno Haible  <bruno@clisp.org>
17817
17818         Avoid use of hexadecimal escapes.
17819         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17820         instead of hexadecimal escapes.
17821
17822 2011-01-01  Jim Meyering  <meyering@redhat.com>
17823
17824         maint: new rule to update copyright year ranges
17825         * Makefile (update-copyright): New rule.
17826
17827         maint: indent with TABs in Makefile
17828         * Makefile: Expand leading sequences of spaces to TABs
17829
17830         version-etc: update the copyright year it reports
17831         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17832
17833 2010-12-31  Bruno Haible  <bruno@clisp.org>
17834
17835         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17836         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17837         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17838         zero.
17839
17840 2010-12-31  Bruno Haible  <bruno@clisp.org>
17841
17842         pwrite: Work around HP-UX 11.11 bug.
17843         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17844         works and set REPLACE_PWRITE if not.
17845         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17846         function.
17847         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17848
17849 2010-12-31  Bruno Haible  <bruno@clisp.org>
17850
17851         pread: Work around HP-UX 11 bugs.
17852         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17853         and set REPLACE_PREAD if not.
17854         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17855
17856 2010-12-31  Eric Blake  <eblake@redhat.com>
17857
17858         nl_langinfo: fix YESEXPR on Irix 6.5
17859         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17860         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17861         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17862         it.
17863
17864 2010-12-31  Bruno Haible  <bruno@clisp.org>
17865
17866         iconv: Document HP-UX 11 bug.
17867         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17868
17869 2010-12-31  Bruno Haible  <bruno@clisp.org>
17870
17871         ldexpl: Fix link error on HP-UX 11.
17872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17873         LDEXPL_LIBM, using $ISNANL_LIBM.
17874
17875 2010-12-31  Eric Blake  <eblake@redhat.com>
17876
17877         ftello: avoid compilation failure with SunStudio c89
17878         * lib/ftello.c (ftello): Use lseek, not llseek.
17879
17880         tests: avoid failing coreutils tests on cygwin
17881         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17882         (create_exe_shims_): Return 0 when skipping.
17883
17884 2010-12-31  Bruno Haible  <bruno@clisp.org>
17885
17886         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17887         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17888
17889 2010-12-31  Bruno Haible  <bruno@clisp.org>
17890
17891         waitpid: Fix link error in C++ mode.
17892         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17893
17894 2010-12-31  Bruno Haible  <bruno@clisp.org>
17895
17896         isnan: Use GCC built-ins when possible.
17897         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17898         __builtin_isnan.
17899         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17900         (isnan): Define using GCC built-ins for GCC >= 4.0.
17901
17902 2010-12-31  Bruno Haible  <bruno@clisp.org>
17903
17904         isnand: Fix mistake.
17905         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17906         __builtin_isnand.
17907
17908 2010-12-31  Bruno Haible  <bruno@clisp.org>
17909
17910         open: Avoid C++ error on HP-UX 11.
17911         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17912
17913 2010-12-31  Bruno Haible  <bruno@clisp.org>
17914
17915         time_r: Add missing declarations on HP-UX 11.
17916         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17917         instead of HAVE_LOCALTIME_R.
17918         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17919         HAVE_LOCALTIME_R always.
17920         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17921         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17922         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17923         HAVE_LOCALTIME_R.
17924         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17925         * doc/posix-functions/localtime_r.texi: Likewise.
17926
17927 2010-12-29  Eric Blake  <eblake@redhat.com>
17928
17929         mountlist: tweak previous commit
17930         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17931         Reported by Paul Eggert.
17932
17933         mountlist: fix local drive detection on cygwin
17934         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17935         that works for cygwin.
17936
17937 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17938
17939         ftoastr, snprintf: ftoastr + snprintf module
17940         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17941         since the snprintf module now should be good enough here.
17942         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17943         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17944         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17945         GNULIB_SNPRINTF only for the test directory, and the latter
17946         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17947         seems to suffice by itself.
17948
17949 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17950
17951         alloca: one step towards thread-safety
17952         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17953         need for a static variable.  All callers changed.  This does not
17954         make the alloca replacement thread-safe, but it's one step.
17955
17956         tests: minor indenting change
17957         * tests/init.sh: Sync from coreutils housekeeping patch
17958         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17959         to keep lines within 80 columns.
17960
17961 2010-12-28  Jim Meyering  <meyering@redhat.com>
17962
17963         regex: don't infloop on persistent failing calloc
17964         * lib/regexec.c (build_trtable): Return failure indication upon
17965         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17966         In glibc, this was fixed for version 2.13:
17967         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17968
17969 2010-12-28  Bruno Haible  <bruno@clisp.org>
17970             Paul Eggert <eggert@cs.ucla.edu>
17971
17972         linkat: Make implementation robust against system behaviour variations.
17973         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17974         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17975         way, and to -2 if it needs a generic runtime test.
17976         * lib/linkat.c (solaris_optimized_link_immediate,
17977         solaris_optimized_link_follow): New functions.
17978         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17979         (check_same_link): Use it.
17980
17981 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17982
17983         New module 'unigbrk/base'.
17984         * modules/unigbrk/base: New file.
17985         * lib/unigbrk.in.h: New file.
17986
17987         New module 'unigbrk/uc-gbrk-prop'.
17988         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17989         * modules/unigbrk/uc-gbrk-prop: New file.
17990         * lib/unigbrk/gbrkprop.h: New file.
17991         * lib/unigbrk/uc-gbrk-prop.c: New file.
17992
17993         New module 'unigbrk/uc-is-grapheme-break'.
17994         * modules/unigbrk/uc-is-grapheme-break: New file.
17995         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17996         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17997         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17998         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17999         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18000
18001         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18002
18003 2010-12-27  Bruno Haible  <bruno@clisp.org>
18004
18005         linkat test: Avoid failure on Solaris 11 2010-11.
18006         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18007
18008 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18009
18010         utimens: work around glibc rounding bug on more platforms
18011         * lib/utimens.c (fdutimens): Work around rounding bug even if
18012         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18013         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18014
18015 2010-12-27  Bruno Haible  <bruno@clisp.org>
18016
18017         select tests: Improve comments.
18018         * tests/test-select.c (do_select): Add comments.
18019
18020 2010-12-27  Bruno Haible  <bruno@clisp.org>
18021
18022         select tests: Safer way of handling timeout.
18023         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18024         at every invocation.
18025
18026 2010-12-27  Bruno Haible  <bruno@clisp.org>
18027
18028         select tests: Use 'bool' where appropriate.
18029         * tests/test-select.c (connect_to_socket): Change argument type to
18030         'bool'.
18031
18032 2010-12-27  Bruno Haible  <bruno@clisp.org>
18033
18034         select tests: Use existing modules.
18035         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18036         (configure.ac): Don't test for unistd.h.
18037         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18038         declared in <unistd.h>.
18039
18040 2010-12-27  Bruno Haible  <bruno@clisp.org>
18041
18042         mbrtowc: Work around a Solaris 7 bug.
18043         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18044         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18045         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18046         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18047         MBRTOWC_NULL_ARG1_BUG.
18048         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18049         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18050         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18051         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18052
18053 2010-12-27  Jim Meyering  <meyering@redhat.com>
18054
18055         read-file.c: tweak syntax
18056         * lib/read-file.c (fread_file): Remove space after "*" in function
18057         definitions.
18058
18059 2010-12-27  Bruno Haible  <bruno@clisp.org>
18060
18061         times test: Avoid gcc warnings on OSF/1.
18062         * tests/test-times.c (main): Cast printf arguments from clock_t to
18063         'long int'.
18064
18065 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18066
18067         utimens: work around glibc rounding bug on older Linux kernels
18068         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18069         on Linux with a glibc whose utimes might not work, then work
18070         around a longstanding glibc bug involving rounding rather than
18071         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18072         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18073
18074 2010-12-26  Bruno Haible  <bruno@clisp.org>
18075
18076         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18077         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18078         _GL_CXXALIAS_SYS.
18079         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18080
18081 2010-12-26  Bruno Haible  <bruno@clisp.org>
18082
18083         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18084         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18085         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18086         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18087         looking for the declaration.
18088         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18089         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18090         problem.
18091         * doc/posix-functions/inet_pton.texi: Likewise.
18092
18093 2010-12-26  Bruno Haible  <bruno@clisp.org>
18094
18095         arpa_inet: Use the common idioms with C++ support.
18096         * lib/arpa_inet.in.h: Include c++defs.h.
18097         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18098         support.
18099         * modules/arpa_inet (Depends-on): Add c++defs.
18100         (Makefile.am): Substitute the contents of c++defs.h.
18101         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18102         * modules/arpa_inet-c++-tests: New file.
18103         * tests/test-arpa_inet-c++.cc: New file.
18104
18105 2010-12-25  Bruno Haible  <bruno@clisp.org>
18106
18107         Fix more C++ link errors on Solaris 8.
18108         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18109         $(LIB_EACCESS).
18110         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18111         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18112         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18113         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18114         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18115
18116 2010-12-25  Bruno Haible  <bruno@clisp.org>
18117
18118         printf-posix: Fix link error when a non-GCC compiler is used.
18119         * lib/stdio.in.h (printf): When not using GCC, override printf
18120         correctly.
18121         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18122
18123 2010-12-25  Bruno Haible  <bruno@clisp.org>
18124
18125         strerror_r-posix: Update doc.
18126         * doc/posix-functions/strerror_r.texi: Update doc about the return
18127         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18128
18129 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18130
18131         utimens: simplify the logic of the previous change
18132         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18133         This should not affect whether the test succeeds or fails.
18134
18135         utimens: configure better on hosts with NFS clock skew
18136         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18137         uses the clock of the local host.  It might use the clock of the
18138         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18139         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18140
18141 2010-12-25  Bruno Haible  <bruno@clisp.org>
18142
18143         ptsname test: Avoid failure on Solaris.
18144         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18145         open a pseudo-terminal; don't use BSD-style ptys.
18146         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18147
18148 2010-12-25  Bruno Haible  <bruno@clisp.org>
18149
18150         ptsname: Avoid ERANGE failure on some systems.
18151         * lib/ptsname.c (buffer): Increase size.
18152
18153 2010-12-25  Bruno Haible  <bruno@clisp.org>
18154
18155         rename, renameat: Avoid test failures at NFS mounted locations.
18156         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18157         so that subsequent mkdir calls succeed.
18158
18159 2010-12-25  Bruno Haible  <bruno@clisp.org>
18160
18161         iswblank: Fix C++ link error on Solaris 8.
18162         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18163         _GL_FUNCDECL_SYS.
18164
18165 2010-12-25  Bruno Haible  <bruno@clisp.org>
18166
18167         unistd: Fix C++ link error on Solaris 8.
18168         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18169
18170 2010-12-25  Bruno Haible  <bruno@clisp.org>
18171
18172         readlink doc: Mention an old glibc bug.
18173         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18174
18175 2010-12-25  Bruno Haible  <bruno@clisp.org>
18176
18177         fcntl-h: Fix for use of C++ on glibc systems.
18178         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18179         also on glibc systems in C++ mode.
18180         Reported by Gary V. Vaughan <gary@gnu.org>.
18181
18182 2010-12-25  Bruno Haible  <bruno@clisp.org>
18183
18184         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18185         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18186
18187 2010-12-25  Bruno Haible  <bruno@clisp.org>
18188
18189         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18190         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18191         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18192         test whether truncl works according to ISO C 99 with IEC 60559.
18193         * m4/truncl-ieee.m4: New file.
18194         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18195         m4/signbit.m4.
18196         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18197
18198 2010-12-25  Bruno Haible  <bruno@clisp.org>
18199
18200         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18201         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18202         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18203         test whether ceill works according to ISO C 99 with IEC 60559.
18204         * m4/ceill-ieee.m4: New file.
18205         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18206         m4/signbit.m4.
18207         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18208
18209 2010-12-25  Bruno Haible  <bruno@clisp.org>
18210
18211         Ensure all prerequisites of <wchar.h> are included.
18212         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18213         before <wchar.h>.
18214         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18215         gl_MBRLEN_NUL_RETVAL): Likewise.
18216         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18217         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18218         AC_FUNC_MBRTOWC): Likewise.
18219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18220         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18222         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18223         Likewise.
18224         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18225         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18226         (gl_WCHAR_H): Improve comments.
18227         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18228
18229 2010-12-25  Bruno Haible  <bruno@clisp.org>
18230
18231         strtok_r: Fix C syntax error in autoconf macro.
18232         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18233         characters in test program.
18234
18235 2010-12-24  Bruno Haible  <bruno@clisp.org>
18236
18237         ceil, trunc, round: Fix gcc warnings.
18238         * lib/ceil.c (MIN): Undefine before redefining.
18239         * lib/trunc.c (MIN): Likewise.
18240         * lib/round.c (MIN): Likewise.
18241         Include <math.h> first.
18242
18243 2010-12-24  Bruno Haible  <bruno@clisp.org>
18244
18245         select tests: Avoid failures on OSF/1 5.1.
18246         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18247         failure of closing the last socket; it may fail with ECONNRESET.
18248
18249 2010-12-24  Eric Blake  <eblake@redhat.com>
18250
18251         stdint: avoid HP-UX 10.20 preprocessor bug
18252         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18253         than #if.
18254         * tests/test-floor2.c (main): Likewise.
18255         Reported by Peter O'Gorman.
18256
18257         pipe: make obsoletion transition easier
18258         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18259         * modules/pipe (Files): Include revived file.
18260         (Include): Drop reference, to mirror getdate's behavior.
18261
18262 2010-12-24  Bruno Haible  <bruno@clisp.org>
18263
18264         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18265         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18266         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18267         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18268
18269 2010-12-24  Bruno Haible  <bruno@clisp.org>
18270
18271         gethostname: Ensure declaration on NonStop Kernel.
18272         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18273         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18274
18275 2010-12-24  Bruno Haible  <bruno@clisp.org>
18276
18277         sys_select: Ensure all necessary types on NonStop Kernel.
18278         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18279         include <sys/time.h>.
18280         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18281         NonStop Kernel.
18282         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18283
18284 2010-12-24  Bruno Haible  <bruno@clisp.org>
18285
18286         sys_select: Remove unneeded include.
18287         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18288         have <sys/select.h>.
18289
18290 2010-12-24  Bruno Haible  <bruno@clisp.org>
18291
18292         gethostname: Provide a fallback for HOST_NAME_MAX.
18293         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18294         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18295         instead.
18296         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18297
18298 2010-12-24  Bruno Haible  <bruno@clisp.org>
18299
18300         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18301         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18302         (SA_RESTART): Likewise.
18303         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18304
18305 2010-12-24  Bruno Haible  <bruno@clisp.org>
18306
18307         signal: Define NSIG.
18308         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18309         * tests/test-signal.c (nsig): New variable.
18310         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18311
18312 2010-12-24  Bruno Haible  <bruno@clisp.org>
18313
18314         rename, renameat: Avoid test failures on OSF/1 5.1.
18315         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18316         alternative error codes.
18317         * tests/test-renameat.c (main): Likewise.
18318
18319 2010-12-24  Bruno Haible  <bruno@clisp.org>
18320
18321         *printf: Detect large precisions bug on Solaris 10/SPARC.
18322         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18323         by Paul Eggert.
18324         * tests/test-snprintf-posix.h (test_function): Add this test code here
18325         too.
18326         * tests/test-sprintf-posix.h (test_function): Likewise.
18327         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18328         * tests/test-vasprintf-posix.c (test_function): Likewise.
18329         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18330         around by gnulib.
18331         * doc/posix-functions/printf.texi: Likewise.
18332         * doc/posix-functions/snprintf.texi: Likewise.
18333         * doc/posix-functions/sprintf.texi: Likewise.
18334         * doc/posix-functions/vfprintf.texi: Likewise.
18335         * doc/posix-functions/vprintf.texi: Likewise.
18336         * doc/posix-functions/vsnprintf.texi: Likewise.
18337         * doc/posix-functions/vsprintf.texi: Likewise.
18338         * doc/posix-functions/dprintf.texi: Undo last commit.
18339         * doc/posix-functions/vdprintf.texi: Likewise.
18340
18341 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18342
18343         tests: port test-fdutimensat.c to Solaris 8
18344         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18345         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18346         On Solaris 8, it fails with errno == ENOSYS, because there is no
18347         futimens (so it can't use the fd), and there is no lutimens (so it
18348         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18349
18350         vsnprintf: make more consistent with snprintf; doc fixes
18351
18352         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18353         the byte count return problem was promoted from the snprintf-posix
18354         to the snprintf module.
18355         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18356         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18357         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18358         * tests/test-snprintf.c (main): Check the byte count returned.
18359         * tests/test-vsnprintf.c (main): Likewise.
18360
18361 2010-12-23  Eric Blake  <eblake@redhat.com>
18362
18363         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18364         * modules/sigpipe (License): Relax license.
18365
18366 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18367
18368         doc: document Solaris printf bug with large float precisions
18369         * doc/posix-functions/dprintf.texi (dprintf):
18370         * doc/posix-functions/fprintf.texi (fprintf):
18371         * doc/posix-functions/printf.texi (printf):
18372         * doc/posix-functions/snprintf.texi (snprintf):
18373         * doc/posix-functions/sprintf.texi (sprintf):
18374         * doc/posix-functions/vdprintf.texi (vdprintf):
18375         * doc/posix-functions/vfprintf.texi (vfprintf):
18376         * doc/posix-functions/vprintf.texi (vprintf):
18377         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18378         * doc/posix-functions/vsprintf.texi (vsprintf):
18379         Mention that these functions mishandle large floating point
18380         precisions on Solaris 10.  The same bug is also present in Solaris
18381         8, and I assume earlier.  This causes "cd gnulib-tests; make
18382         check" to fail on Solaris 8 (and I assume, later) when building
18383         the latest coreutils, in test-vasprintf-posix's call to
18384         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18385         the wide flavors (e.g., wprintf) so this patch just updates the
18386         documentation for the narrow ones.
18387
18388         test-posixtm.c: add two tests
18389         * tests/test-posixtm.c: Add two tests, to highlight the
18390         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18391         around this bug; this is merely to document it.
18392
18393 2010-12-22  Bruno Haible  <bruno@clisp.org>
18394
18395         getlogin_r: Work around portability problem on OSF/1.
18396         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18397         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18398         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18399         test for a truncated result.
18400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18401         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18402         * modules/getlogin_r (Depends-on): Add memchr.
18403         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18404
18405 2010-12-22  Bruno Haible  <bruno@clisp.org>
18406
18407         ptsname: Avoid test failure on OSF/1 5.1.
18408         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18409         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18410         (same_slave): New function.
18411         (main): Use it to compare ptsname's result with the expected file name.
18412
18413 2010-12-22  Bruno Haible  <bruno@clisp.org>
18414
18415         Port extended stdio modules to HP NonStop Kernel.
18416         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18417         macros.
18418         * lib/fbufmode.c: Update comments.
18419         * lib/fflush.c: Likewise.
18420         * lib/fpurge.c: Likewise.
18421         * lib/freadable.c: Likewise.
18422         * lib/freadahead.c: Likewise.
18423         * lib/freading.c: Likewise.
18424         * lib/freadptr.c: Likewise.
18425         * lib/freadseek.c: Likewise.
18426         * lib/fseeko.c: Likewise.
18427         * lib/fseterr.c: Likewise.
18428         * lib/fwritable.c: Likewise.
18429         * lib/fwriting.c: Likewise.
18430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18431
18432 2010-12-22  Bruno Haible  <bruno@clisp.org>
18433
18434         ttyname_r: Work around bug on OSF/1 5.1.
18435         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18436         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18437         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18438         present.
18439         * lib/ttyname_r.c (ttyname_r): Update comments.
18440
18441 2010-12-22  Bruno Haible  <bruno@clisp.org>
18442
18443         round: Implement result sign according to IEEE 754.
18444         * lib/round.c (MIN, MINUS_ZERO): New macros.
18445         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18446         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18447         * tests/test-round-ieee.c (main): Likewise.
18448         * tests/test-roundl-ieee.c (main): Likewise.
18449
18450         trunc: Implement result sign according to IEEE 754.
18451         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18452         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18453         * tests/test-trunc2.c: Include minus-zero.h.
18454         (MINUS_ZERO): New macro.
18455         (trunc_reference): Keep in sync with lib/trunc.c.
18456         * tests/test-truncf2.c: Include minus-zero.h.
18457         (MINUS_ZERO): New macro.
18458         (truncf_reference): Keep in sync with lib/trunc.c.
18459         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18460         * tests/test-trunc-ieee.c (main): Likewise.
18461         * tests/test-truncl-ieee.c (main): Likewise.
18462
18463         ceil: Implement result sign according to IEEE 754.
18464         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18465         (FUNC): Return -0.0 for -1 < x < 0.
18466         * tests/test-ceil2.c: Include minus-zero.h.
18467         (MINUS_ZERO): New macro.
18468         (ceil_reference): Keep in sync with lib/ceil.c.
18469         * tests/test-ceilf2.c: Include minus-zero.h.
18470         (MINUS_ZERO): New macro.
18471         (ceilf_reference): Keep in sync with lib/ceil.c.
18472         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18473         * tests/test-ceil-ieee.c (main): Likewise.
18474         * tests/test-ceill-ieee.c (main): Likewise.
18475
18476         floor: Implement result sign according to IEEE 754.
18477         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18478         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18479         * tests/test-floorf2.c (floorf_reference): Likewise.
18480         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18481         * tests/test-floor-ieee.c (main): Likewise.
18482         * tests/test-floorl-ieee.c (main): Likewise.
18483
18484 2010-12-22  Bruno Haible  <bruno@clisp.org>
18485
18486         getaddrinfo: Update doc.
18487         * doc/posix-functions/gai_strerror.texi: Return type is also different
18488         on AIX and HP-UX.
18489
18490 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18491
18492         getaddrinfo, inet_ntop: Update doc for Solaris.
18493         * doc/posix-functions/gai_strerror.texi: Return type is also an
18494         issue on Solaris 9 and earlier.
18495         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18496         on Solaris 10 and earlier.
18497
18498 2010-12-21  Bruno Haible  <bruno@clisp.org>
18499
18500         New module 'roundl-ieee'.
18501         * modules/roundl-ieee: New file.
18502         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18503         test whether roundl works according to ISO C 99 with IEC 60559.
18504         * m4/roundl-ieee.m4: New file.
18505         * modules/roundl-ieee-tests: New file.
18506         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18507         * tests/test-roundl.c (main): Remove signbit tests.
18508         * modules/roundl-tests (Depends-on): Remove signbit.
18509         * doc/posix-functions/roundl.texi: Mention the new module.
18510
18511 2010-12-21  Bruno Haible  <bruno@clisp.org>
18512
18513         New module 'truncl-ieee'.
18514         * modules/truncl-ieee: New file.
18515         * modules/truncl-ieee-tests: New file.
18516         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18517         * tests/test-truncl.c (main): Remove signbit tests.
18518         * modules/truncl-tests (Depends-on): Remove signbit.
18519         * doc/posix-functions/truncl.texi: Mention the new module.
18520
18521 2010-12-21  Bruno Haible  <bruno@clisp.org>
18522
18523         New module 'ceill-ieee'.
18524         * modules/ceill-ieee: New file.
18525         * modules/ceill-ieee-tests: New file.
18526         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18527         * tests/test-ceill.c (main): Remove signbit tests.
18528         * modules/ceill-tests (Depends-on): Remove signbit.
18529         * doc/posix-functions/ceill.texi: Mention the new module.
18530
18531 2010-12-21  Bruno Haible  <bruno@clisp.org>
18532
18533         New module 'floorl-ieee'.
18534         * modules/floorl-ieee: New file.
18535         * modules/floorl-ieee-tests: New file.
18536         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18537         * tests/test-floorl.c (main): Remove signbit tests.
18538         * modules/floorl-tests (Depends-on): Remove signbit.
18539         * doc/posix-functions/floorl.texi: Mention the new module.
18540
18541 2010-12-21  Bruno Haible  <bruno@clisp.org>
18542
18543         New module 'round-ieee'.
18544         * modules/round-ieee: New file.
18545         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18546         whether round works according to ISO C 99 with IEC 60559.
18547         * m4/round-ieee.m4: New file.
18548         * modules/round-ieee-tests: New file.
18549         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18550         * tests/test-round1.c (main): Remove signbit tests.
18551         * modules/round-tests (Depends-on): Remove 'signbit'.
18552         * doc/posix-functions/round.texi: Mention the new module.
18553
18554 2010-12-21  Bruno Haible  <bruno@clisp.org>
18555
18556         New module 'trunc-ieee'.
18557         * modules/trunc-ieee: New file.
18558         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18559         whether trunc works according to ISO C 99 with IEC 60559.
18560         * m4/trunc-ieee.m4: New file.
18561         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18563         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18564         * modules/trunc-ieee-tests: New file.
18565         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18566         * tests/test-trunc1.c (main): Remove signbit tests.
18567         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18568         * doc/posix-functions/trunc.texi: Mention the new module.
18569
18570 2010-12-21  Bruno Haible  <bruno@clisp.org>
18571
18572         New module 'ceil-ieee'.
18573         * modules/ceil-ieee: New file.
18574         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18575         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18576         ISO C 99 with IEC 60559.
18577         * m4/ceil-ieee.m4: New file.
18578         * modules/ceil (Files): Add lib/ceil.c.
18579         (Depends-on): Add 'float'.
18580         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18581         * lib/math.in.h (ceil): New declaration.
18582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18583         REPLACE_CEIL.
18584         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18585         * modules/ceil-ieee-tests: New file.
18586         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18587         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18588         * doc/posix-functions/ceil.texi: Mention the new module.
18589
18590 2010-12-21  Bruno Haible  <bruno@clisp.org>
18591
18592         New module 'floor-ieee'.
18593         * modules/floor-ieee: New file.
18594         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18595         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18596         ISO C 99 with IEC 60559.
18597         * m4/floor-ieee.m4: New file.
18598         * modules/floor (Files): Add lib/floor.c.
18599         (Depends-on): Add 'float'.
18600         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18601         * lib/math.in.h (floor): New declaration.
18602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18603         REPLACE_FLOOR.
18604         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18605         * modules/floor-ieee-tests: New file.
18606         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18607         * tests/test-math-c++.cc: Check the signature of 'floor'.
18608         * doc/posix-functions/floor.texi: Mention the new module.
18609
18610 2010-12-21  Bruno Haible  <bruno@clisp.org>
18611
18612         New module 'roundf-ieee'.
18613         * modules/roundf-ieee: New file.
18614         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18615         test whether roundf works according to ISO C 99 with IEC 60559.
18616         * m4/roundf-ieee.m4: New file.
18617         * modules/roundf-ieee-tests: New file.
18618         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18619         * tests/test-roundf1.c (main): Remove signbit tests.
18620         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18621         * doc/posix-functions/roundf.texi: Mention the new module.
18622
18623 2010-12-21  Bruno Haible  <bruno@clisp.org>
18624
18625         New module 'truncf-ieee'.
18626         * modules/truncf-ieee: New file.
18627         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18628         test whether truncf works according to ISO C 99 with IEC 60559.
18629         * m4/truncf-ieee.m4: New file.
18630         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18632         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18633         * modules/truncf-ieee-tests: New file.
18634         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18635         * tests/test-truncf1.c (main): Remove signbit tests.
18636         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18637         * doc/posix-functions/truncf.texi: Mention the new module.
18638
18639 2010-12-21  Bruno Haible  <bruno@clisp.org>
18640
18641         New module 'ceilf-ieee'.
18642         * modules/ceilf-ieee: New file.
18643         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18644         test whether ceilf works according to ISO C 99 with IEC 60559.
18645         * m4/ceilf-ieee.m4: New file.
18646         * modules/ceilf-ieee-tests: New file.
18647         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18648         * tests/test-ceilf1.c (main): Remove signbit tests.
18649         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18650         * doc/posix-functions/ceilf.texi: Mention the new module.
18651
18652 2010-12-21  Bruno Haible  <bruno@clisp.org>
18653
18654         New module 'floorf-ieee'.
18655         * modules/floorf-ieee: New file.
18656         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18657         test whether floorf works according to ISO C 99 with IEC 60559.
18658         * m4/floorf-ieee.m4: New file.
18659         * modules/floorf-ieee-tests: New file.
18660         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18661         * tests/test-floorf1.c (main): Remove signbit tests.
18662         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18663         * doc/posix-functions/floorf.texi: Mention the new module.
18664
18665 2010-12-21  Bruno Haible  <bruno@clisp.org>
18666
18667         Support for minus zero in autoconf macros.
18668         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18669         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18670         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18671         * tests/minus-zero.h: Update comments.
18672
18673 2010-12-21  Bruno Haible  <bruno@clisp.org>
18674
18675         Tests for module 'ceil'.
18676         * modules/ceil-tests: New file.
18677         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18678         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18679
18680 2010-12-21  Bruno Haible  <bruno@clisp.org>
18681
18682         Tests for module 'floor'.
18683         * modules/floor-tests: New file.
18684         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18685         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18686
18687 2010-12-21  Bruno Haible  <bruno@clisp.org>
18688
18689         math: Fix indentation.
18690         * lib/math.in.h (floorf): Fix indentation.
18691
18692 2010-12-21  Bruno Haible  <bruno@clisp.org>
18693
18694         Fix cross-compilation guesses on Solaris.
18695         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18696         not match "solaris2.10".
18697         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18698         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18699         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18700
18701 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18702
18703         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18704         This fixes a problem observed with the latest coreutils snapshot
18705         that caused a test to fail on Solaris 8.  src/csplit.c's call
18706         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18707         earlier, instead of returning the number of bytes that would have
18708         been generated; this causes csplit to incorrectly report memory
18709         exhaustion.
18710         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18711         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18712         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18713         comments to match.
18714         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18715         Fix typo in matching older versions of Solaris: "solaris2.10"
18716         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18717         only for guessing while cross-compiling.
18718         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18719
18720 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18721
18722         ftoastr: fix comment again
18723         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18724         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18725         Also, simplify example a bit by using flags = 0.
18726
18727 2010-12-20  Bruno Haible  <bruno@clisp.org>
18728
18729         round*, trunc*: Update documentation regarding glibc.
18730         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18731         * doc/posix-functions/round.texi: Likewise.
18732         * doc/posix-functions/roundl.texi: Likewise.
18733         * doc/posix-functions/truncf.texi: Likewise.
18734         * doc/posix-functions/trunc.texi: Likewise.
18735         * doc/posix-functions/truncl.texi: Likewise.
18736
18737 2010-12-20  Bruno Haible  <bruno@clisp.org>
18738
18739         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18740         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18741         * doc/posix-functions/round.texi: Likewise.
18742         * doc/posix-functions/roundl.texi: Likewise.
18743
18744 2010-12-20  Bruno Haible  <bruno@clisp.org>
18745
18746         ttyname_r: Add missing declaration on HP-UX 11.
18747         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18748         HAVE_TTYNAME_R.
18749         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18750         declared. Set HAVE_TTYNAME_R always.
18751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18752         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18753         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18754         HAVE_TTYNAME_R.
18755         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18756
18757 2010-12-20  Bruno Haible  <bruno@clisp.org>
18758
18759         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18760         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18761         * doc/posix-functions/getlogin_r.texi: Likewise.
18762         * tests/test-getlogin.c: Include <errno.h>.
18763         (main): Avoid test failure on HP-UX 11.11.
18764         * tests/test-getlogin_r.c (main): Likewise.
18765
18766 2010-12-20  Bruno Haible  <bruno@clisp.org>
18767
18768         getlogin_r: Add missing declaration on HP-UX 11.
18769         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18770         declared also when it exists as a function.
18771         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18772
18773 2010-12-20  Bruno Haible  <bruno@clisp.org>
18774
18775         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18776         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18777         through wcrtomb.
18778
18779 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18780
18781         ftoastr: fix comment
18782         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18783         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18784
18785 2010-12-19  Bruno Haible  <bruno@clisp.org>
18786
18787         isnan: Ensure it is a macro.
18788         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18789         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18790         Solaris.
18791
18792 2010-12-19  Bruno Haible  <bruno@clisp.org>
18793
18794         ldexpl test: Fix link error on OSF/1 5.1.
18795         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18796
18797 2010-12-19  Bruno Haible  <bruno@clisp.org>
18798
18799         wctype: Make it work in C++ mode on OSF/1 5.1.
18800         * lib/wctype.in.h (iswblank): Declare but not define here.
18801         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18802         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18803         * modules/wctype (Files): Add lib/iswblank.c.
18804
18805 2010-12-19  Bruno Haible  <bruno@clisp.org>
18806
18807         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18808         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18809         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18810
18811 2010-12-19  Bruno Haible  <bruno@clisp.org>
18812
18813         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18815         _POSIX_PII_SOCKET.
18816         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18817         * doc/posix-functions/recvfrom.texi: Likewise.
18818         * doc/posix-functions/send.texi: Likewise.
18819         * doc/posix-functions/sendto.texi: Likewise.
18820
18821 2010-12-19  Bruno Haible  <bruno@clisp.org>
18822
18823         tcgetsid: Add missing declaration on OSF/1 5.1.
18824         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18825         HAVE_TCGETSID.
18826         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18827         Don't set HAVE_TCGETSID.
18828         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18829         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18830         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18831         HAVE_TCGETSID.
18832         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18833
18834 2010-12-19  Bruno Haible  <bruno@clisp.org>
18835
18836         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18837         * lib/stdio.in.h: During the include_next statement, let recursive
18838         includes of this file include only the system header file.
18839
18840 2010-12-19  Bruno Haible  <bruno@clisp.org>
18841
18842         iconv_open: Fix regression from 2010-12-04.
18843         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18844         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18845
18846 2010-12-19  Bruno Haible  <bruno@clisp.org>
18847
18848         stdbool test: Avoid a gcc warning.
18849         * tests/test-stdbool.c (main): Fail if e1 is false.
18850         Reported by Jim Meyering.
18851
18852 2010-12-19  Jim Meyering  <meyering@redhat.com>
18853
18854         setenv: restore to working order
18855         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18856         mistakenly removed.
18857         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18858         HAVE_SETENV.
18859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18860         HAVE_SETENV.
18861
18862 2010-12-19  Bruno Haible  <bruno@clisp.org>
18863
18864         Document some different function declarations on OSF/1 5.1.
18865         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18866         * doc/posix-functions/inet_ntop.texi: Likewise.
18867         * doc/posix-functions/gethostname.texi: Likewise.
18868         * lib/unistd.in.h (gethostname): Update comment.
18869
18870 2010-12-19  Bruno Haible  <bruno@clisp.org>
18871
18872         doc: Mention vasprintf-posix module.
18873         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18874         the 'vasprintf-posix' module.
18875         * doc/glibc-functions/vasprintf.texi: Likewise.
18876
18877 2010-12-19  Bruno Haible  <bruno@clisp.org>
18878
18879         unsetenv: Add missing declaration on OSF/1 5.1.
18880         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18881         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18882         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18884         not HAVE_UNSETENV.
18885         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18886         HAVE_UNSETENV.
18887         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18888
18889 2010-12-19  Bruno Haible  <bruno@clisp.org>
18890
18891         setenv: Add missing declaration on OSF/1 5.1.
18892         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18893         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18894         declared. Don't set HAVE_SETENV.
18895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18896         not HAVE_SETENV.
18897         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18898         HAVE_SETENV.
18899         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18900
18901 2010-12-19  Bruno Haible  <bruno@clisp.org>
18902
18903         nl_langinfo tests: Avoid gcc warning.
18904         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18905
18906 2010-12-19  Bruno Haible  <bruno@clisp.org>
18907
18908         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18909         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18910         _GL_CXXALIAS_SYS.
18911
18912 2010-12-19  Bruno Haible  <bruno@clisp.org>
18913
18914         stdbool: Relax test.
18915         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18916         address to 'bool' work in static initializer, for compilers other than
18917         GCC.
18918
18919 2010-12-19  Bruno Haible  <bruno@clisp.org>
18920
18921         ftello: Add missing declaration on OSF/1 5.1.
18922         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18923         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18925         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18926         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18927
18928 2010-12-19  Bruno Haible  <bruno@clisp.org>
18929
18930         fseeko: Add missing declaration on OSF/1 5.1.
18931         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18934         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18935         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18936
18937 2010-12-19  Bruno Haible  <bruno@clisp.org>
18938
18939         fchdir: Add missing declaration on OSF/1 5.1.
18940         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18943         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18944         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18945
18946 2010-12-19  Bruno Haible  <bruno@clisp.org>
18947
18948         relocatable-prog-wrapper: Separate from relocatable-prog.
18949         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18950         uninstall-relocwrapper rule here.
18951         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18952         Reported by Ian Beckwith <ianb@erislabs.net>.
18953
18954 2010-12-19  Bruno Haible  <bruno@clisp.org>
18955
18956         unistr/u8-mbsnlen: Add missing dependency.
18957         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18958         Reported by Ian Beckwith <ianb@erislabs.net>.
18959
18960 2010-12-19  Bruno Haible  <bruno@clisp.org>
18961
18962         iconv: Make it possible again to use this module without 'iconv-h'.
18963         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18964         if it is not defined.
18965         Reported by Ian Beckwith <ianb@erislabs.net>.
18966
18967 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18968
18969         acl: port to Solaris 8 when copying from tmpfs to ufs
18970         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18971         error number.  Problem observed on Solaris 8 with latest
18972         coreutils, with "mv A B", where A is on a tmpfs file system and B
18973         is on a ufs file system.  This caused coreutils' mv/part-symlink
18974         test to fail.
18975
18976         tests: set fail=0 at start
18977         * tests/init.sh (setup_): Move fail=0 initialization here ...
18978         (mktempd_): ... from here, so that tests can rely on fail being
18979         set to 0 initially.  This fixes a problem in coreutils; see:
18980         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18981
18982 2010-12-18  Bruno Haible  <bruno@clisp.org>
18983
18984         memmem-simple: Stylistic changes.
18985         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18986         Fix preprocessor directive indentation.
18987
18988 2010-12-15  Pádraig Brady <P@draigBrady.com>
18989
18990         memmem, memmem-simple: reorganize and expand empty needle check
18991         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18992         functional checks to memmem-simple so that one has a fully functional
18993         memmem by using just this module.
18994         Restrict the performance only check to the memmem module.
18995         Also expand the empty needle check to ensure the correct
18996         pointer is returned, not just a non NULL pointer.
18997         * doc/glibc-functions/memmem.texi: Rearrange the portability
18998         documentation to correlate with the rearranged checks.
18999         Clarify exactly how the memmem and memmem-simple modules
19000         relate to each other.
19001
19002 2010-12-15  Pádraig Brady <P@draigBrady.com>
19003             Bruno Haible  <bruno@clisp.org>
19004
19005         Improve cross-compilation guesses for uClibc.
19006         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19007         that uClibc does not have the glibc bug.
19008         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19009         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19010
19011 2010-12-14  Eric Blake  <eblake@redhat.com>
19012
19013         configmake: provide fallbacks for oldest supported autotools
19014         * m4/configmake.m4: New file.
19015         * modules/configmake (Files): Ship it.
19016         (configure.ac): Use it to guarantee fallbacks.
19017
19018 2010-12-13  Pádraig Brady <P@draigBrady.com>
19019
19020         read-file: Improve handling of large files
19021         * lib/read-file.c (fread_file): Minimize realloc()s
19022         for regular files, and better manage sizes around SIZE_MAX.
19023
19024 2010-12-13  Eric Blake  <eblake@redhat.com>
19025
19026         cloexec, fcntl: relax license
19027         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19028         consent from all contributors.
19029         * modules/fcntl (License): Likewise.
19030
19031 2010-12-10  Bruno Haible  <bruno@clisp.org>
19032
19033         Tests for module 'pipe-posix'.
19034         * modules/pipe-posix-tests: New file.
19035         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19036
19037 2010-12-10  Bruno Haible  <bruno@clisp.org>
19038
19039         pipe-posix: Make it work in C++ mode.
19040         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19041         (pipe): Use common idiom, not a macro definition.
19042         * lib/pipe.c: New file.
19043         * m4/pipe.m4: New file.
19044         * modules/pipe-posix (Description): Enhance.
19045         (Files): Add lib/pipe.c, m4/pipe.m4.
19046         (configure.ac): Invoke gl_FUNC_PIPE.
19047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19048         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19049         * tests/test-unistd-c++.cc: Check the signature of pipe.
19050
19051 2010-12-10  Bruno Haible  <bruno@clisp.org>
19052
19053         Rename module 'pipe' to 'spawn-pipe'.
19054         * modules/spawn-pipe: New file, renamed from modules/pipe.
19055         (Files, configure.ac, Makefile.am): Update.
19056         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19057         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19058         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19059         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19060         "spawn-pipe.h" instead of "pipe.h".
19061         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19062         to gl_SPAWN_PIPE.
19063         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19064         (Files, Makefile.am): Update.
19065         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19066         Update.
19067         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19068         Include "spawn-pipe.h" instead of "pipe.h".
19069         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19070         * lib/javacomp.c: Likewise.
19071         * lib/javaversion.c: Likewise.
19072         * lib/pipe-filter-gi.c: Likewise.
19073         * lib/pipe-filter-ii.c: Likewise.
19074         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19075         * modules/javacomp (Depends-on): Likewise.
19076         * modules/javaversion (Depends-on): Likewise.
19077         * modules/pipe-filter-gi (Depends-on): Likewise.
19078         * modules/pipe-filter-ii (Depends-on): Likewise.
19079         * MODULES.html.sh (Executing programs): Update.
19080         * NEWS: Mention the change.
19081
19082 2010-12-10  Eric Blake  <eblake@redhat.com>
19083
19084         pipe-posix: new module
19085         * modules/pipe-posix: New file.
19086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19087         (gl_UNISTD_H): Check for declaration.
19088         * modules/unistd (Makefile.am): Substitute it.
19089         * lib/unistd.in.h (pipe): Provide it for mingw.
19090         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19091         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19092
19093 2010-12-07  Bruno Haible  <bruno@clisp.org>
19094
19095         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19096         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19097         u8_strcmp_gnu.
19098         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19099
19100 2010-12-06  Bruno Haible  <bruno@clisp.org>
19101
19102         Update internal documentation.
19103         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19104
19105 2010-12-04  Bruno Haible  <bruno@clisp.org>
19106
19107         Put more information about failed tests into the test return codes.
19108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19109         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19110         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19111         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19112         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19113         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19114         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19115         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19116         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19118         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19119         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19120         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19121         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19122         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19123         returns a bit mask.
19124         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19125         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19126         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19127         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19128         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19132         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19133         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19134         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19135         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19136         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19138         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19139         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19140         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19141         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19142         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19143         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19144         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19145         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19147         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19148         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19149         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19150         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19151         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19152         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19153         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19154         gl_PRINTF_PRECISION): Likewise.
19155         * m4/regex.m4 (gl_REGEX): Likewise.
19156         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19157         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19158         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19159         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19163         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19164         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19165         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19166         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19167         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19168         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19169         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19170         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19171         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19172         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19173         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19174         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19175         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19176         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19177         enumerated value.
19178         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19179
19180 2010-12-04  Bruno Haible  <bruno@clisp.org>
19181
19182         Update for Solaris 11 2010-11.
19183         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19184         Express, released in November 2010.
19185
19186 2010-12-04  Bruno Haible  <bruno@clisp.org>
19187
19188         nproc: Relax license.
19189         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19190         and Paul Eggert.
19191         Requested by Ludovic Courtès <ludo@gnu.org>.
19192
19193 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19194
19195         utimecmp: fine-grained src to nearby coarse-grained dest
19196
19197         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19198         and the source is on a file system with higher-resolution time
19199         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19200         not work, and the time stamps are close together, the algorithm to
19201         determine the exact resolution from the read-back mtime was buggy:
19202         it had a "!=" where it should have had an "==".  This bug has been
19203         in the code ever since it was introduced to gnulib.
19204         Problem reported by Dan Jacobson in
19205         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19206
19207 2010-11-30  Bruno Haible  <bruno@clisp.org>
19208
19209         strerror_r-posix: Fix autoconf test.
19210         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19211
19212 2010-11-28  Bruno Haible  <bruno@clisp.org>
19213             Paul Eggert  <eggert@cs.ucla.edu>
19214
19215         Tests for module 'getdomainname'.
19216         * modules/getdomainname-tests: New file.
19217         * tests/test-getdomainname.c: New file, based on
19218         tests/test-gethostname.c.
19219
19220 2010-11-28  Bruno Haible  <bruno@clisp.org>
19221             Paul Eggert  <eggert@cs.ucla.edu>
19222
19223         getdomainname: Use the system function when possible.
19224         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19225         (getdomainname): Replace if needed. Provide the declaration if it is
19226         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19227         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19228         (getdomainname): When the system has getdomainname, call the system
19229         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19230         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19231         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19232         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19233         the function if its second argument is of type 'int' or if it is found
19234         in libnsl.
19235         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19236         <sys/systeminfo.h> and sysinfo().
19237         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19239         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19240         HAVE_GETDOMAINNAME.
19241         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19242         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19243         * doc/glibc-functions/getdomainname.texi: Document the problems with
19244         the getdomainname declaration.
19245
19246 2010-11-28  Bruno Haible  <bruno@clisp.org>
19247
19248         sys_socket: Ensure ss_family field on AIX.
19249         * lib/sys_socket.in.h (ss_family): New macro definition.
19250         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19251         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19252         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19253         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19254         * modules/sys_socket (Makefile.am): Substitute
19255         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19256         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19257
19258 2010-11-27  Bruno Haible  <bruno@clisp.org>
19259
19260         readline: Improve configure output.
19261         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19262         "checking for readline..." result understandable.
19263
19264 2010-11-27  Bruno Haible  <bruno@clisp.org>
19265
19266         *printf-posix: Detect a bug on Solaris 10/x86.
19267         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19268         for floating-point output.
19269         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19270         directive.
19271         * tests/test-snprintf-posix.h (test_function): Likewise.
19272         * tests/test-sprintf-posix.h (test_function): Likewise.
19273         * tests/test-vasprintf-posix.c (test_function): Likewise.
19274         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19275         * doc/posix-functions/printf.texi: Likewise.
19276         * doc/posix-functions/snprintf.texi: Likewise.
19277         * doc/posix-functions/sprintf.texi: Likewise.
19278         * doc/posix-functions/vfprintf.texi: Likewise.
19279         * doc/posix-functions/vprintf.texi: Likewise.
19280         * doc/posix-functions/vsnprintf.texi: Likewise.
19281         * doc/posix-functions/vsprintf.texi: Likewise.
19282         * doc/glibc-functions/obstack_printf.texi: Likewise.
19283         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19284
19285 2010-11-27  Bruno Haible  <bruno@clisp.org>
19286
19287         Fix link error when module libunistring-optional is in use.
19288         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19289         * modules/striconveha-tests (Makefile.am): Likewise.
19290
19291 2010-11-27  Bruno Haible  <bruno@clisp.org>
19292
19293         regex: Mention link dependencies.
19294         * modules/regex (Link): New section.
19295         * modules/rpmatch (Link): Likewise.
19296         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19297
19298 2010-11-27  Bruno Haible  <bruno@clisp.org>
19299
19300         ftoastr: Fix compilation error on Solaris.
19301         * lib/ftoastr.c: Include <config.h>.
19302
19303 2010-11-27  Bruno Haible  <bruno@clisp.org>
19304
19305         getloadavg: Update documentation.
19306         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19307
19308 2010-11-27  Bruno Haible  <bruno@clisp.org>
19309
19310         sys_socket: Fix test whether the functions are declared.
19311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19312         not <sys/select.h>.
19313
19314 2010-11-27  Bruno Haible  <bruno@clisp.org>
19315
19316         getpass: Make sure to get system declaration on some platforms.
19317         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19318         gl_USE_SYSTEM_EXTENSIONS.
19319         * modules/getpass (Depends-on): Add extensions.
19320
19321 2010-11-26  Bruno Haible  <bruno@clisp.org>
19322
19323         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19324         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19325         'iconv' module is present.
19326         (ICONV_CONST): New macro.
19327         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19328         ICONV_CONST.
19329         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19330         set ICONV_CONST.
19331         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19332         here.
19333         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19334         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19335         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19336         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19337         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19338         present.
19339
19340 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19341
19342         ftoastr: comment fix
19343         * lib/ftoastr.c: "little" -> "little or no" in comment
19344
19345 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19346
19347         stdint: port to GCC 4.3 + OSX + Octave
19348         On this platform, stdint.h is buggy and defines int64_t to long
19349         long int.  The replacement defined it to long int, causing
19350         problems with C++ style name mangling.  Instead, trust the system
19351         definition if INT64_MAX is defined, and likewise for the unsigned
19352         variant.   Problem reported by Jarno Rajahalme in
19353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19354         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19355         and don't mess with int64_t and INT64_MAX in this case.
19356         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19357
19358 2010-11-24  Bruno Haible  <bruno@clisp.org>
19359
19360         doc: Corrections regarding MacOS X 10.4 and 10.5.
19361         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19362         MacOS X.
19363         Reported by Simon Josefsson.
19364
19365 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19366
19367         Uninstall ".bin" files installed by relocwrapper.
19368         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19369         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19370         unless it is already there.
19371
19372 2010-11-21  Bruno Haible  <bruno@clisp.org>
19373
19374         Update for NetBSD 5.0.
19375         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19376         NetBSD; the test fails on NetBSD 5.0.
19377         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19378         about NetBSD.
19379
19380 2010-11-21  Bruno Haible  <bruno@clisp.org>
19381
19382         Update for HP-UX 11.23 and HP-UX 11.31.
19383         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19384         HP-UX.
19385
19386 2010-11-21  Bruno Haible  <bruno@clisp.org>
19387
19388         Update for MacOS X 10.5.
19389         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19390         MacOS X; the test fails on MacOS X 10.5.8.
19391         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19392         about MacOS X.
19393
19394 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19395
19396         bootstrap: add bootstrap_sync option.
19397         See discussion at
19398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19400         * build-aux/bootstrap: Accept --bootstrap-sync to update
19401         bootstrap if it is not identical to the local gnulib's
19402         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19403         enable this by default.  Accept --no-bootstrap-sync to disable
19404         it.
19405
19406 2010-11-20  Bruno Haible  <bruno@clisp.org>
19407
19408         Ensure that <features.h> is included before __GLIBC__ is tested.
19409         * lib/printf-parse.h: Include <features.h>.
19410         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19411         Reported by Mike Frysinger <vapier@gentoo.org>.
19412
19413         Ensure that <features.h> is included before __GLIBC__ is tested.
19414         * lib/wchar.in.h: Include <features.h>.
19415         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19416         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19417         Reported by Mike Frysinger <vapier@gentoo.org>.
19418
19419         Ensure that <features.h> is included before __GLIBC__ is tested.
19420         * lib/arpa_inet.in.h: Include <features.h>.
19421         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19422         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19423         Reported by Mike Frysinger <vapier@gentoo.org>.
19424
19425         Ensure that <features.h> is included before __GLIBC__ is tested.
19426         * build-aux/link-warning.h: Include <features.h>.
19427         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19428         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19429         Reported by Mike Frysinger <vapier@gentoo.org>.
19430
19431         Ensure that <features.h> is included before __GLIBC__ is tested.
19432         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19433         Reported by Mike Frysinger <vapier@gentoo.org>.
19434
19435 2010-11-20  Bruno Haible  <bruno@clisp.org>
19436
19437         memmem: Fix autoconf test.
19438         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19439
19440 2010-11-20  Bruno Haible  <bruno@clisp.org>
19441
19442         Port to uClibc.
19443         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19444         * lib/fcntl.in.h: Likewise.
19445         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19446         * lib/mbrtowc.c (mbrtowc): Likewise.
19447         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19448         * lib/strerror_r.c: Likewise.
19449         * lib/unistr/u8-strnlen.c: Likewise.
19450         * lib/vasnprintf.c (decimal_point_char): Likewise.
19451         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19452         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19454         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19455         * tests/test-sigaction.c (handler, main): Likewise.
19456         * lib/freading.h: Treat uClibc like a non-glibc platform.
19457         * lib/freading.c: Likewise.
19458         * lib/gettext.h: Likewise.
19459         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19460         Likewise.
19461         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19462         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19463         * lib/propername.c (proper_name_utf8): Likewise.
19464         * lib/spawn.in.h: Likewise.
19465         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19466         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19467         mem_cd_iconveh_internal): Likewise.
19468         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19469         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19470         strstr, strcasestr): Likewise.
19471         * lib/unicodeio.c (unicode_to_mb): Likewise.
19472         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19473         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19474         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19475         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19476         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19477         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19478         * lib/unistr/u8-stpncpy.c: Likewise.
19479         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19480         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19481         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19482         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19483         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19484         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19485         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19488         Likewise.
19489         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19490         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19491         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19494         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19495         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19496         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19497         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19498         * tests/test-striconveha.c (main): Likewise.
19499         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19500         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19501         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19502         * doc/posix-functions/getline.texi: Likewise.
19503         Reported by Mike Frysinger <vapier@gentoo.org>.
19504
19505 2010-11-20  Bruno Haible  <bruno@clisp.org>
19506
19507         nproc: Fix condition.
19508         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19509         HAVE_PTHREAD_AFFINITY_NP.
19510
19511 2010-11-20  Bruno Haible  <bruno@clisp.org>
19512
19513         Fix a comment.
19514         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19515
19516 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19517
19518         ftoastr: don't assume snprintf
19519         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19520         Implement a subset of snprintf here, by using sprintf safely.
19521         * modules/ftoastr (Depends-on): Remove snprintf.
19522
19523 2010-11-19  Jim Meyering  <meyering@redhat.com>
19524
19525         test-rename.h: fix compilation failure
19526         * tests/test-rename.h (test_rename): Add omitted "}".
19527
19528 2010-11-17  Jim Meyering  <meyering@redhat.com>
19529
19530         maint.mk: add a URL discussing the no-@acronym policy
19531         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19532
19533 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19534
19535         ftoastr: depend on snprintf, improve comments
19536         * lib/ftoastr.c: Also mention Loitsch's draft.
19537         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19538         needed in the current implementation, but it might simplify
19539         speeding up the code later.
19540         * modules/ftoastr: Depend on snprintf; this improves portability.
19541         Suggested by Bruno Haible in the same email.
19542
19543         ftoastr: port to hosts lacking strtof and strtold
19544         Problem reported by Bruno Haible in
19545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19546         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19547         environment and strtold (and presumably strtof) are not available.
19548         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19549         (configure.ac): Require gl_C99_STRTOLD.
19550
19551 2010-11-18  Bruno Haible  <bruno@clisp.org>
19552
19553         c-strtold: Avoid link error on AIX 7.
19554         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19555         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19556         (gl_C_STRTOLD): Test whether strtold_l exists.
19557         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19558
19559 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19560
19561         intprops: new macro INT_BITS_STRLEN_BOUND
19562         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19563         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19564         not exposed.  Also, it uses a slightly tighter bound than before;
19565         though this makes no practical difference, we might as well be as
19566         tight as we easily can.
19567
19568         ftoastr: new module, for lossless conversion of floats to short strings
19569         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19570         * modules/ftoastr: New files.
19571
19572 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19573
19574         bootstrap: port to Solaris sed
19575         * build-aux/bootstrap (get_version): Port to Solaris sed.
19576         See Ralf Wildenhues's note in
19577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19578
19579 2010-11-14  Jim Meyering  <meyering@redhat.com>
19580
19581         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19582         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19583         and move definition closer to sole use.
19584
19585 2010-11-13  Jim Meyering  <meyering@redhat.com>
19586
19587         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19588         Now we require at least autoconf-2.59, which means the work-around
19589         is no longer needed.
19590         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19591         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19592         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19593         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19594         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19595
19596 2010-11-13  Bruno Haible  <bruno@clisp.org>
19597
19598         rename, renameat: Avoid test failures at NFS mounted locations.
19599         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19600         functions.
19601         (test_rename): Use assert_nonexistent.
19602         * tests/test-rename.c: Include <dirent.h>.
19603         * tests/test-renameat.c: Likewise.
19604         Reported by Gary V. Vaughan <gary@gnu.org>.
19605
19606         rename, renameat: Document Linux bug with NFS
19607         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19608         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19609         * doc/posix-functions/renameat.texi: Likewise.
19610         Suggested by Eric Blake.
19611
19612 2010-11-13  Bruno Haible  <bruno@clisp.org>
19613
19614         rename test: Add comments.
19615         * tests/test-rename.h (test_rename): Add structure and comments.
19616
19617 2010-11-13  Eric Blake  <eblake@redhat.com>
19618
19619         maintainer-makefile: cover a few more files
19620         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19621         scripts generated within C files, for libvirt.
19622
19623 2010-11-13  Bruno Haible  <bruno@clisp.org>
19624
19625         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19626         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19627         character, return the number of bytes that belong together, not always
19628         1.
19629         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19630         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19631         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19632         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19633         number of bytes of an invalid character.
19634         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19635         (main): Invoke it.
19636         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19637         results.
19638         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19639         malformed byte sequences.
19640         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19641         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19642         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19643         Reported by Ben Pfaff and Paolo Bonzini.
19644
19645 2010-11-13  Bruno Haible  <bruno@clisp.org>
19646
19647         openat: Work around glibc bug with fchownat() and empty file names.
19648         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19649         (gl_FUNC_FCHOWNAT): Invoke it.
19650         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19651         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19652         Reported by Gary V. Vaughan <gary@gnu.org>.
19653
19654 2010-11-13  Bruno Haible  <bruno@clisp.org>
19655
19656         openat: Ensure autoconf macro ordering.
19657         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19658         gl_USE_SYSTEM_EXTENSIONS.
19659         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19660
19661 2010-11-13  Bruno Haible  <bruno@clisp.org>
19662
19663         Update comments.
19664         * lib/unistr/u8-check.c: Update file name in comments.
19665         * lib/unistr/u8-mblen.c: Likewise.
19666         * lib/unistr/u8-prev.c: Likewise.
19667         * lib/unistr/u8-strmblen.c: Likewise.
19668         * lib/unistr/u8-strmbtouc.c: Likewise.
19669
19670 2010-11-13  Jim Meyering  <meyering@redhat.com>
19671
19672         tests: avoid test failure on Solaris 10 due to lack of PATH export
19673         * tests/test-update-copyright.sh: Don't forget to export PATH.
19674
19675         init.sh: ensure that IFS is defined, just in case...
19676         * tests/init.sh (setup_): Ensure that IFS is defined,
19677         so that saving and restoring it works as expected.  This
19678         appears to be useful at least for an old version of dash
19679         from a long time ago (RH 6).  See here for details:
19680         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19681
19682         maint.mk: tighten "test a == b" check
19683         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19684         test to files that contain something like #!/bin/sh.
19685         Without this, coreutils would get two false positives in
19686         the comments of C source files.
19687
19688 2010-11-12  Eric Blake  <eblake@redhat.com>
19689
19690         bootstrap: fix typo in previous attempt
19691         * build-aux/bootstrap (buildreq): Correct the grouping.
19692         Reported by Paul Eggert.
19693
19694         maintainer-makefile: prohibit test x == x
19695         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19696         Based on a report by Matthias Bolte.
19697
19698         bootstrap: allow FreeBSD gzip
19699         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19700         which has no '.' and goes to stderr.
19701         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19702         Reported by Matthias Bolte.
19703
19704         maintainer-makefile: check for i18n setup
19705         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19706         will likely work.
19707
19708 2010-11-12  Bruno Haible  <bruno@clisp.org>
19709
19710         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19711         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19712         * lib/nanosleep.c (nanosleep): Likewise.
19713
19714 2010-11-11  Bruno Haible  <bruno@clisp.org>
19715
19716         fcntl-h: Fix for use of C++ on glibc systems.
19717         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19718         also on glibc systems in C++ mode.
19719         Reported by Gary V. Vaughan <gary@gnu.org>.
19720
19721 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19722
19723         mknod: avoid false failure with dash
19724         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19725
19726 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19727
19728         unlink: Fix "is it should" typo in diagnostic.
19729         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19730         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19731
19732 2010-11-11  Bruno Haible  <bruno@clisp.org>
19733
19734         Tests for module 'strerror_r-posix'.
19735         * modules/strerror_r-posix-tests: New file.
19736         * tests/test-strerror_r.c: New file.
19737         * tests/test-string-c++.cc: Check the signature of strerror_r.
19738
19739         New module 'strerror_r-posix'.
19740         * lib/string.in.h (strerror_r): New declaration.
19741         * lib/strerror_r.c: New file.
19742         * m4/strerror_r.m4: New file.
19743         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19744         of strerror_r.
19745         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19746         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19747         * modules/strerror_r-posix: New file.
19748         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19749         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19750         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19751         portability problems.
19752
19753 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19754
19755         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19756         line is also considered for output. Quoted function name in shell
19757         command, so temporary files for functions like MyClass::operator()
19758         are removed correctly without errors.
19759
19760 2010-11-09  Bruno Haible  <bruno@clisp.org>
19761
19762         * doc/posix-functions/strerror.texi: List more failing platforms.
19763
19764         * doc/posix-functions/strerror.texi: Add a comment.
19765
19766 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19767
19768         fdopendir: fix bug on MacOS X when low on file descriptors
19769
19770         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19771         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19772         All callers changed.
19773         (fdopendir): Invoke save_cwd at the top level, not after using
19774         multiple dup() calls to use up file descriptors.  Then retry
19775         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19776         less than the maximum number of open file descriptors, because
19777         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19778         on Mac OS X 10.6.4 for tar 1.24
19779         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19780         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19781         and for tar 1.25
19782         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19783
19784 2010-11-07  Bruno Haible  <bruno@clisp.org>
19785
19786         vasnprintf: Support I flag on glibc systems.
19787         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19788         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19789         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19790         snprintf function.
19791         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19792         glibc systems.
19793         * tests/test-vasnprintf-posix3.c: New file.
19794         * modules/vasnprintf-posix-tests (Files): Add it.
19795         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19796
19797 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19798
19799         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19800         * MODULES.html.sh: For compiler warnings, use name
19801         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19802
19803 2010-11-05  Eric Blake  <eblake@redhat.com>
19804
19805         ceil, floor: avoid spurious failure with icc
19806         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19807         [denormals-as-zero] when optimizing without -mieee-fp option.
19808         * tests/test-floorf2.c (floorf_reference): Likewise.
19809         * tests/test-ceilf1.c (dummy): New function.
19810         (main): Use it to outsmart icc's optimization.
19811         * tests/test-floorf1.c (dummy, main): Likewise.
19812
19813         tests: require working signbit
19814         * modules/ceilf-tests (Depends-on): Add signbit.
19815         * modules/ceill-tests (Depends-on): Likewise.
19816         * modules/floorf-tests (Depends-on): Likewise.
19817         * modules/floorl-tests (Depends-on): Likewise.
19818         * modules/round-tests (Depends-on): Likewise.
19819         * modules/roundf-tests (Depends-on): Likewise.
19820         * modules/roundl-tests (Depends-on): Likewise.
19821         * modules/trunc-tests (Depends-on): Likewise.
19822         * modules/truncf-tests (Depends-on): Likewise.
19823         * modules/truncl-tests (Depends-on): Likewise.
19824
19825         strtod: work around icc bug
19826         * lib/strtod.c (minus_zero): Define to working value.
19827         (strtod): Use it to avoid icc bug.
19828
19829         copysign: enhance tests
19830         * modules/copysign-tests (Files): Add minus-zero.h.
19831         * tests/test-copysign.c (main): Also test zeros.
19832
19833 2010-11-04  Eric Blake  <eblake@redhat.com>
19834
19835         ceil, floor, round, trunc: enhance tests of -0
19836         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19837         * tests/test-ceill.c (main): Likewise.
19838         * tests/test-floorf1.c (main): Likewise.
19839         * tests/test-floorl.c (main): Likewise.
19840         * tests/test-round1.c (main): Likewise.
19841         * tests/test-roundf1.c (main): Likewise.
19842         * tests/test-roundl.c (main): Likewise.
19843         * tests/test-trunc1.c (main): Likewise.
19844         * tests/test-truncf1.c (main): Likewise.
19845         * tests/test-truncl.c (main): Likewise.
19846
19847 2010-11-04  Eric Blake  <eblake@redhat.com>
19848
19849         frexp, tests: work around ICC bug with -zero
19850         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19851         works with more compilers.
19852         * tests/minus-zero.h: New file.
19853         * modules/ceilf-tests (Files): Include it.
19854         * modules/ceill-tests (Files): Likewise.
19855         * modules/floorf-tests (Files): Likewise.
19856         * modules/floorl-tests (Files): Likewise.
19857         * modules/frexp-nolibm-tests (Files): Likewise.
19858         * modules/frexp-tests (Files): Likewise.
19859         * modules/frexpl-nolibm-tests (Files): Likewise.
19860         * modules/frexpl-tests (Files): Likewise.
19861         * modules/isnan-tests (Files): Likewise.
19862         * modules/isnand-nolibm-tests (Files): Likewise.
19863         * modules/isnand-tests (Files): Likewise.
19864         * modules/isnanf-nolibm-tests (Files): Likewise.
19865         * modules/isnanf-tests (Files): Likewise.
19866         * modules/isnanl-nolibm-tests (Files): Likewise.
19867         * modules/isnanl-tests (Files): Likewise.
19868         * modules/round-tests (Files): Likewise.
19869         * modules/roundf-tests (Files): Likewise.
19870         * modules/roundl-tests (Files): Likewise.
19871         * modules/ldexpl-tests (Files): Likewise.
19872         * modules/signbit-tests (Files): Likewise.
19873         * modules/snprintf-posix-tests (Files): Likewise.
19874         * modules/sprintf-posix-tests (Files): Likewise.
19875         * modules/strtod-tests (Files): Likewise.
19876         * modules/trunc-tests (Files): Likewise.
19877         * modules/truncf-tests (Files): Likewise.
19878         * modules/truncl-tests (Files): Likewise.
19879         * modules/vsnprintf-posix-tests (Files): Likewise.
19880         * modules/vsprintf-posix-tests (Files): Likewise.
19881         * modules/vasnprintf-posix-tests (Files): Likewise.
19882         * modules/vasprintf-posix-tests (Files): Likewise.
19883         * tests/test-ceilf1.c (main): Use it.
19884         * tests/test-ceill.c (main): Likewise.
19885         * tests/test-floorf1.c (main): Likewise.
19886         * tests/test-floorl.c (main): Likewise.
19887         * tests/test-frexp.c (main): Likewise.
19888         * tests/test-frexpl.c (main): Likewise.
19889         * tests/test-isnan.c (main): Likewise.
19890         * tests/test-isnand.h (main): Likewise.
19891         * tests/test-isnanf.h (main): Likewise.
19892         * tests/test-isnanl.h (main): Likewise.
19893         * tests/test-ldexpl.c (main): Likewise.
19894         * tests/test-round.c (main): Likewise.
19895         * tests/test-roundf.c (main): Likewise.
19896         * tests/test-roundl.c (main): Likewise.
19897         * tests/test-signbit.c (test_signbitf, test_signbitd)
19898         (test_signbitl): Likewise.
19899         * tests/test-snprintf-posix.h (test_function): Likewise.
19900         * tests/test-sprintf-posix.h (test_function): Likewise.
19901         * tests/test-strtod.c (main): Likewise.
19902         * tests/test-trunc1.c (main): Likewise.
19903         * tests/test-truncf1.c (main): Likewise.
19904         * tests/test-truncl.c (main): Likewise.
19905
19906         isnanl: work around icc bug
19907         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19908
19909 2010-11-03  Eric Blake  <eblake@redhat.com>
19910
19911         tests: fix compiler warnings
19912         * tests/test-getopt.h (test_getopt): Fix condition.
19913         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19914         * tests/test-pipe2.c (main): Likewise.
19915         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19916
19917         utimens: fix broken m4 test
19918         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19919
19920 2010-10-28  Bruno Haible  <bruno@clisp.org>
19921
19922         posix_spawn*, getdtablesize: Relax license.
19923         * modules/posix_spawn (License): Change to LGPLv2+.
19924         * modules/posix_spawnp (License): Likewise.
19925         * modules/posix_spawn-internal (License): Likewise.
19926         * modules/posix_spawnattr_init (License): Likewise.
19927         * modules/posix_spawnattr_getflags (License): Likewise.
19928         * modules/posix_spawnattr_setflags (License): Likewise.
19929         * modules/posix_spawnattr_getpgroup (License): Likewise.
19930         * modules/posix_spawnattr_setpgroup (License): Likewise.
19931         * modules/posix_spawnattr_getschedparam (License): Likewise.
19932         * modules/posix_spawnattr_setschedparam (License): Likewise.
19933         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19934         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19935         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19936         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19937         * modules/posix_spawnattr_getsigmask (License): Likewise.
19938         * modules/posix_spawnattr_setsigmask (License): Likewise.
19939         * modules/posix_spawnattr_destroy (License): Likewise.
19940         * modules/posix_spawn_file_actions_init (License): Likewise.
19941         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19942         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19943         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19944         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19945         * modules/getdtablesize (License): Likewise.
19946         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19947
19948 2010-10-26  Bruno Haible  <bruno@clisp.org>
19949
19950         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19951         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19952         Cygwin and mingw.
19953         Suggested by Eric Blake.
19954
19955 2010-10-26  Bruno Haible  <bruno@clisp.org>
19956
19957         stdio: Work around compilation error due to renameat() on Solaris 10.
19958         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19959         * lib/renameat.c: Don't include <unistd.h> here.
19960         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19961         Reported by Paul Eggert and Eric Blake.
19962
19963 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19964
19965         renameat: port to Solaris 10, which declares renameat in unistd.h
19966
19967         * lib/renameat.c: Include unistd.h before stdio.h, because
19968         Solaris 10 declares renameat in unistd.h.  Problem encountered
19969         when building GNU tar 1.24 on Solaris 10.
19970
19971 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19972
19973         fdopendir: fix C89 compilation
19974         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19975         compilers.
19976
19977 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19978
19979         inttostr: simplify by removing unnecessary redundancy
19980         * lib/anytostr.c: Don't include verify.h.
19981         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19982         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19983         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19984         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19985         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19986         Likewise.
19987         * modules/inttostr (Depends-on): Remove 'verify'.
19988
19989 2010-10-23  Bruno Haible  <bruno@clisp.org>
19990
19991         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19992         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19993         Reported by Eric Blake.
19994
19995 2010-10-23  Bruno Haible  <bruno@clisp.org>
19996
19997         Tests: Fix LOCALE_JA on MirBSD 10.
19998         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19999         to an UTF-8 locale.
20000         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20001         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20002         Reported by Eric Blake.
20003
20004 2010-10-21  Bruno Haible  <bruno@clisp.org>
20005
20006         nl_langinfo test: Avoid test failure on NetBSD 5.
20007         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20008         Reported by Eric Blake.
20009
20010 2010-10-21  Eric Blake  <eblake@redhat.com>
20011
20012         c-stack: work around libsigsegv 2.8 bug
20013         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20014         overflow on at least PowerPC64.
20015
20016 2010-10-17  Bruno Haible  <bruno@clisp.org>
20017
20018         userspec: Drop redundant file.
20019         * modules/userspec (Files): Remove lib/inttostr.h.
20020
20021 2010-10-17  Bruno Haible  <bruno@clisp.org>
20022
20023         nl_langinfo tests: Silence some warnings.
20024         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20025         Reported by Jim Meyering.
20026
20027 2010-10-17  Bruno Haible  <bruno@clisp.org>
20028
20029         Make use of GCC's attribute __alloc_size__.
20030         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20031         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20032         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20033         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20034         __alloc_size__.
20035         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20036         Suggested by Jim Meyering.
20037
20038 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20039
20040         bootstrap: anchor .gitignore entries.
20041         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20042         with...
20043         (insert_vc_ignore): ... this new function, which prepends `/' to
20044         all .gitignore entries before passing them to
20045         insert_sorted_if_absent.
20046
20047 2010-10-16  Bruno Haible  <bruno@clisp.org>
20048
20049         nextafter: Fix configure check.
20050         * modules/nextafter (configure.ac): Correct expected prototype.
20051
20052 2010-10-16  Bruno Haible  <bruno@clisp.org>
20053
20054         termios: Update documentation.
20055         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20056
20057 2010-10-16  Bruno Haible  <bruno@clisp.org>
20058
20059         tests: Make them compile with TinyCC.
20060         * tests/test-strstr.c (main): Remove parentheses around array
20061         initializer.
20062
20063 2010-10-15  Eric Blake  <eblake@redhat.com>
20064
20065         ignore-value: make header idempotent
20066         * lib/ignore-value.h: Add double-inclusion guards.
20067         Reported by Stefan Berger.
20068
20069 2010-10-15  Jim Meyering  <meyering@redhat.com>
20070
20071         GNUmakefile: handle "stable" target, not "major"
20072         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20073         lists in maint.mk and announce-gen.  Without this, "make stable"
20074         would fail to ensure that $(VERSION) is up to date.
20075
20076 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20077
20078         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20079         & co.
20080
20081 2010-10-14  Bruno Haible  <bruno@clisp.org>
20082
20083         vasnprintf: Don't set errno to 0.
20084         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20085         block that sets it to 0.
20086         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20087
20088 2010-10-14  Bruno Haible  <bruno@clisp.org>
20089
20090         socketlib: Fix.
20091         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20092         gl_PREREQ_SYS_H_WINSOCK2.
20093         Reported by Ian Beckwith <ianb@erislabs.net>.
20094
20095 2010-10-13  Jim Meyering  <meyering@redhat.com>
20096
20097         test-select-stdin.c: avoid warn_unused_result warnings
20098         * tests/test-select-stdin.c: Include "macros.h".
20099         ASSERT that read and fflush succeed.
20100
20101 2010-10-13  Jim Meyering  <meyering@redhat.com>
20102
20103         git-version-gen: do require git-VC'd files in cwd
20104         * build-aux/git-version-gen: Reject a git version string
20105         if there are no commits associated with the current directory.
20106         This avoids an unlikely false-positive (unrelated dir whose parent
20107         repository also contains a tag matching v*), as pointed out
20108         by Giuseppe Scrivano in
20109         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20110
20111 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20112
20113         argv-iter: omit nonconforming declaration
20114         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20115         enum arg_iter_err declaration, which doesn't conform to C99.
20116         Solaris 10 cc warns about this.
20117
20118 2010-10-13  Eric Blake  <eblake@redhat.com>
20119
20120         termios: fix compilation on mingw
20121         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20122         (gl_TERMIOS_H): Adjust it on mingw.
20123         * modules/termios (Makefile.am): Substitute new key.
20124         * lib/termios.in.h (includes): Make include_next conditional.
20125         * doc/posix-headers/termios.texi (termios.h): Update
20126         documentation.
20127         Reported by Daniel P. Berrange.
20128
20129 2010-10-13  Jim Meyering  <meyering@redhat.com>
20130
20131         git-version-gen: don't require that .git/ be in the current dir
20132         * build-aux/git-version-gen: Adjust this script so that it works
20133         when run from any working directory beneath the top-level .git/-
20134         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20135         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20136
20137         test-select: avoid warn_unused_result warnings
20138         * tests/test-select.c: Include "macros.h".
20139         ASSERT that each call to read, write, and pipe succeeds.
20140         While not technically required, also check each "close".
20141         * modules/select-tests (Files): Add tests/macros.h.
20142
20143         test-symlinkat: remove declaration of unused local
20144         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20145
20146         test-inttostr: avoid shadowing warnings
20147         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20148         and use malloc rather than the stack for the same reason as
20149         mentioned in the comment justifying the other allocation.
20150
20151 2010-10-11  Bruno Haible  <bruno@clisp.org>
20152
20153         stdlib: Allow multiple gnulib generated replacements to coexist.
20154         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20155         Reported by Sam Steingold <sds@gnu.org>.
20156
20157 2010-10-11  Jim Meyering  <meyering@redhat.com>
20158
20159         fix a documentation typo
20160         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20161
20162 2010-10-11  Eric Blake  <eblake@redhat.com>
20163
20164         futimens: work around Solaris 11 bug
20165         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20166         * tests/test-futimens.h (test_futimens): Enhance, rather than
20167         weaken test.
20168         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20169
20170 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20171
20172         Indentation.
20173         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20174         higher-level operators more to the left.
20175
20176 2010-10-11  Jim Meyering  <meyering@redhat.com>
20177
20178         test-futimens: avoid unwarranted test failure on Solaris 5.11
20179         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20180         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20181         because it tries to dereference the NULL name argument.
20182
20183 2010-10-11  Bruno Haible  <bruno@clisp.org>
20184
20185         Indentation.
20186         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20187         indentation.
20188
20189 2010-10-11  Jim Meyering  <meyering@redhat.com>
20190
20191         spawn.in.h: make indentation consistent with parentheses
20192         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20193         Make indentation consistent with parentheses.
20194
20195 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20196
20197         Fix mismatched parens in previous commit
20198         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20199         parens.
20200
20201 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20202
20203         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20204
20205         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20206         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20207         * lib/malloca.c: Include "verify.h".
20208         (verify1): Remove, replacing with a verify call.
20209         * lib/relocwrapper.c (verify1): Likewise.
20210         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20211         Likewise.
20212         * modules/malloca (Depends-on): Add 'verify'.
20213         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20214         * modules/vasnprintf (Depends-on): Add 'verify'.
20215         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20216         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20217         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20218         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20219         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20220         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20221         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20222
20223         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20224
20225         Formerly the style was sometimes 2*X - 1, because the C standard
20226         was wrongly thought to disallow ?: in integral constant expressions.
20227         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20228         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20229         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20230         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20231         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20232         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20233         verify that time_t cannot be floating.
20234
20235 2010-10-08  Eric Blake  <eblake@redhat.com>
20236
20237         time: enforce recent POSIX ruling that time_t is integral
20238         * lib/time.in.h (__time_t_must_be_integral): Detect any
20239         problematic systems, allowing the rest of gnulib to assume POSIX.
20240
20241 2010-10-08  Jim Meyering  <meyering@redhat.com>
20242
20243         fdopendir: fix a bug on systems lacking openat and /proc support
20244         OpenBSD 4.7 is one such system.  The most noticeable effect was
20245         failure of any application making nontrivial use of fts: rm, du,
20246         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20247           ./rm: traversal failed: `a': Bad file descriptor
20248         Debugging that, you see that even though FD 6 was closed just
20249         prior to the opendir call in fd_clone_opendir, its resulting
20250         dir->dd_fd was 8, rather than the expected value of 6:
20251
20252         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20253         93                close (fd);
20254         (gdb) n
20255         94                dir = fd_clone_opendir (dupfd);
20256         (gdb) n
20257         95                saved_errno = errno;
20258         (gdb) p dir->dd_fd
20259         $11 = 8
20260
20261         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20262         The problem is that on OpenBSD, fd_clone_opendir has to resort
20263         to using the old-style save/restore CWD mechanism, due to its
20264         lack of openat/proc support, and *that* would steal the FD (6)
20265         that opendir was supposed to use.
20266
20267         The fix is to squirrel away the desired FD so that save_cwd uses a
20268         different one, and then free the dest FD right before calling opendir.
20269         That guarantees opendir will use the required file descriptor.
20270
20271         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20272
20273 2010-10-08  Bruno Haible  <bruno@clisp.org>
20274
20275         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20276         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20277
20278 2010-10-08  Bruno Haible  <bruno@clisp.org>
20279
20280         nanosleep: Make replacement POSIX compliant.
20281         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20282         is out of range.
20283         Reported by Jim Meyering.
20284
20285 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20286
20287         bootstrap: add hook for altering gnulib.mk, for Bison
20288         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20289         the Bison bootstrapping process can rewrite file names and variables
20290         in this file before later parts of 'bootstrap' use the file.
20291         Bison wants to include lib/gnulib.mk from the top-level makefile,
20292         so it needs the file names in this file to be relative to the top
20293         level, not relative to lib; plus it needs variable names to be
20294         rewritten.
20295         (slurp): Use the new function.
20296
20297         bootstrap: reformat for readability
20298         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20299
20300 2010-10-08  Eric Blake  <eblake@redhat.com>
20301
20302         docs: update cygwin progress
20303         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20304         1.7.7.
20305         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20306         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20307         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20308         * doc/posix-functions/carg.texi (carg): Likewise.
20309         * doc/posix-functions/cargf.texi (cargf): Likewise.
20310         * doc/posix-functions/casin.texi (casin): Likewise.
20311         * doc/posix-functions/casinf.texi (casinf): Likewise.
20312         * doc/posix-functions/casinh.texi (casinh): Likewise.
20313         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20314         * doc/posix-functions/catan.texi (catan): Likewise.
20315         * doc/posix-functions/catanf.texi (catanf): Likewise.
20316         * doc/posix-functions/catanh.texi (catanh): Likewise.
20317         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20318         * doc/posix-functions/ccos.texi (ccos): Likewise.
20319         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20320         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20321         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20322         * doc/posix-functions/cexp.texi (cexp): Likewise.
20323         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20324         * doc/posix-functions/cimag.texi (cimag): Likewise.
20325         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20326         * doc/posix-functions/clog.texi (clog): Likewise.
20327         * doc/posix-functions/clogf.texi (clogf): Likewise.
20328         * doc/posix-functions/conj.texi (conj): Likewise.
20329         * doc/posix-functions/conjf.texi (conjf): Likewise.
20330         * doc/posix-functions/cpow.texi (cpow): Likewise.
20331         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20332         * doc/posix-functions/cproj.texi (cproj): Likewise.
20333         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20334         * doc/posix-functions/creal.texi (creal): Likewise.
20335         * doc/posix-functions/crealf.texi (crealf): Likewise.
20336         * doc/posix-functions/csin.texi (csin): Likewise.
20337         * doc/posix-functions/csinf.texi (csinf): Likewise.
20338         * doc/posix-functions/csinh.texi (csinh): Likewise.
20339         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20340         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20341         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20342         * doc/posix-functions/ctan.texi (ctan): Likewise.
20343         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20344         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20345         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20346         * doc/posix-headers/complex.texi (complex.h): Likewise.
20347
20348 2010-10-07  Jim Meyering  <meyering@redhat.com>
20349
20350         parse-datetime: avoid compilation failure on OpenBSD 4.7
20351         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20352         This works around a compilation failure on OpenBSD 4.7:
20353         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20354
20355 2010-10-07  Eric Blake  <eblake@redhat.com>
20356
20357         docs: update cygwin progress
20358         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20359         1.7.6.
20360         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20361         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20362         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20363         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20364         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20365         Likewise.
20366         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20367         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20368         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20369         Likewise.
20370         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20371         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20372         Likewise.
20373         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20374         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20375         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20376         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20377         Likewise.
20378         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20379         Likewise.
20380         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20381
20382         docs: update parse-datetime history
20383         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20384         documentation of this function's history and alternatives.
20385
20386         cygwin: use more robust version check
20387         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20388         exclude an eventual cygwin 1.9.1.
20389         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20391         (gl_FUNC_STRCASESTR): Likewise.
20392         Reported by Bruno Haible.
20393
20394 2010-10-06  Bruno Haible  <bruno@clisp.org>
20395
20396         string, sys_select: Avoid #including large headers unless necessary.
20397         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20398         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20399         OSF/1, BeOS, Haiku.
20400         Reported by Jim Meyering.
20401
20402 2010-10-05  Eric Blake  <eblake@redhat.com>
20403
20404         memmem, strstr, strcasestr: fix bug with long periodic needle
20405         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20406         periodic needle having false positive.
20407         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20408         and cygwin 1.7.7.
20409         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20411         (gl_FUNC_STRCASESTR): Likewise.
20412         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20413         * tests/test-memmem.c (main): Expose the bug.
20414         * tests/test-strcasestr.c (main): Likewise.
20415         * tests/test-strstr.c (main): Likewise.
20416         * tests/test-c-strcasestr.c (main): Likewise.
20417         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20418         * doc/posix-functions/strstr.texi (strstr): Likewise.
20419         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20420         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20421
20422 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20423
20424         parse-datetime: do some more renaming
20425         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20426         parse_datetime, not get_date.  Mention the renaming.
20427         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20428         in comments.
20429         * m4/bison.m4: Likewise.
20430
20431 2010-10-05  Eric Blake  <eblake@redhat.com>
20432
20433         parse-datetime: better name than get_date
20434         * NEWS: Reword the deprecation notice.
20435         * modules/get_date: Rename to modules/parse-datetime.
20436         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20437         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20438         * lib/get_date.y: Rename to lib/parse-datetime.y.
20439         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20440         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20441         * doc/getdate.texi: Provide fallback wrapper.
20442         * lib/getdate.h: Move guts, and wrap...
20443         * lib/parse-datetime.h: ...new file.
20444         * lib/parse-datetime.y (get_date): Rename...
20445         (parse_datetime): ...to this.
20446         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20447         (gl_PARSE_DATETIME): ...to this.
20448         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20449         documentation.
20450         * modules/getdate (Files): Provide fallback docs and header.
20451         (Notice, Depends-on): Update references.
20452         * tests/test-parse-datetime.c: Likewise.
20453         * DEPENDENCIES: Likewise.
20454         * MODULES.html.sh (Date and time <time.h>): Likewise.
20455         * doc/parse-datetime.texi (Date input formats)
20456         (Authors of parse_datetime): Likewise.
20457         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20458         (Include): Likewise.
20459         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20460         * gnulib-tool: Likewise.
20461         * m4/bison.m4 (gl_BISON): Likewise.
20462         Suggested by Bruno Haible.
20463
20464 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         more ports to Solaris tr, which needs [] around ranges
20467         * gnulib-tool: Solaris tr needs [] around ranges.
20468         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20469         * tests/test-pipe-filter-gi1.c (main): Likewise.
20470         * tests/test-pipe-filter-ii1.c (main): Likewise.
20471
20472 2010-10-05  Eric Blake  <eblake@redhat.com>
20473
20474         bootstrap: fix Solaris regression
20475         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20476         around ranges.
20477         Reported by Pádraig Brady.
20478
20479         bootstrap: work with pkg-config
20480         * build-aux/bootstrap (check_versions): Also transliterate - in
20481         prerequisite name.
20482         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20483         prerequisites that were already found, to avoid confusion.
20484         Reported by Justin Clift.
20485
20486         faccessat: remove unused wrappers
20487         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20488         presence of these wrappers dragged in -lgen on Solaris.
20489         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20490
20491 2010-10-05  Jim Meyering  <meyering@redhat.com>
20492
20493         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20494         * Makefile (sc_pragma_columns): New syntax-check rule.
20495
20496 2010-10-04  Bruno Haible  <bruno@clisp.org>
20497
20498         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20499         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20500         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20501         Reported by Bruce Korb and Eric Blake.
20502
20503 2010-10-04  Bruno Haible  <bruno@clisp.org>
20504
20505         threadlib: Make option --with-libpth-prefix work.
20506         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20507         use $LIBPTH, not just -lpth.
20508
20509 2010-10-04  Bruno Haible  <bruno@clisp.org>
20510
20511         Avoid line length limitation from HP NonStop system header files.
20512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20513         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20514         * lib/ctype.in.h: Likewise.
20515         * lib/dirent.in.h: Likewise.
20516         * lib/errno.in.h: Likewise.
20517         * lib/fcntl.in.h: Likewise.
20518         * lib/float.in.h: Likewise.
20519         * lib/getopt.in.h: Likewise.
20520         * lib/iconv.in.h: Likewise.
20521         * lib/inttypes.in.h: Likewise.
20522         * lib/langinfo.in.h: Likewise.
20523         * lib/locale.in.h: Likewise.
20524         * lib/math.in.h: Likewise.
20525         * lib/netdb.in.h: Likewise.
20526         * lib/netinet_in.in.h: Likewise.
20527         * lib/poll.in.h: Likewise.
20528         * lib/pthread.in.h: Likewise.
20529         * lib/pty.in.h: Likewise.
20530         * lib/sched.in.h: Likewise.
20531         * lib/se-selinux.in.h: Likewise.
20532         * lib/search.in.h: Likewise.
20533         * lib/signal.in.h: Likewise.
20534         * lib/spawn.in.h: Likewise.
20535         * lib/stdarg.in.h: Likewise.
20536         * lib/stddef.in.h: Likewise.
20537         * lib/stdint.in.h: Likewise.
20538         * lib/stdio.in.h: Likewise.
20539         * lib/stdlib.in.h: Likewise.
20540         * lib/string.in.h: Likewise.
20541         * lib/strings.in.h: Likewise.
20542         * lib/sys_file.in.h: Likewise.
20543         * lib/sys_ioctl.in.h: Likewise.
20544         * lib/sys_select.in.h: Likewise.
20545         * lib/sys_socket.in.h: Likewise.
20546         * lib/sys_stat.in.h: Likewise.
20547         * lib/sys_time.in.h: Likewise.
20548         * lib/sys_times.in.h: Likewise.
20549         * lib/sys_utsname.in.h: Likewise.
20550         * lib/sys_wait.in.h: Likewise.
20551         * lib/sysexits.in.h: Likewise.
20552         * lib/termios.in.h: Likewise.
20553         * lib/time.in.h: Likewise.
20554         * lib/unistd.in.h: Likewise.
20555         * lib/wchar.in.h: Likewise.
20556         * lib/wctype.in.h: Likewise.
20557         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20558         * modules/ctype (Makefile.am): Likewise.
20559         * modules/dirent (Makefile.am): Likewise.
20560         * modules/errno (Makefile.am): Likewise.
20561         * modules/fcntl-h (Makefile.am): Likewise.
20562         * modules/float (Makefile.am): Likewise.
20563         * modules/getopt-posix (Makefile.am): Likewise.
20564         * modules/iconv-h (Makefile.am): Likewise.
20565         * modules/inttypes (Makefile.am): Likewise.
20566         * modules/langinfo (Makefile.am): Likewise.
20567         * modules/locale (Makefile.am): Likewise.
20568         * modules/math (Makefile.am): Likewise.
20569         * modules/netdb (Makefile.am): Likewise.
20570         * modules/netinet_in (Makefile.am): Likewise.
20571         * modules/poll-h (Makefile.am): Likewise.
20572         * modules/pthread (Makefile.am): Likewise.
20573         * modules/pty (Makefile.am): Likewise.
20574         * modules/sched (Makefile.am): Likewise.
20575         * modules/search (Makefile.am): Likewise.
20576         * modules/selinux-h (Makefile.am): Likewise.
20577         * modules/signal (Makefile.am): Likewise.
20578         * modules/spawn (Makefile.am): Likewise.
20579         * modules/stdarg (Makefile.am): Likewise.
20580         * modules/stddef (Makefile.am): Likewise.
20581         * modules/stdint (Makefile.am): Likewise.
20582         * modules/stdio (Makefile.am): Likewise.
20583         * modules/stdlib (Makefile.am): Likewise.
20584         * modules/string (Makefile.am): Likewise.
20585         * modules/strings (Makefile.am): Likewise.
20586         * modules/sys_file (Makefile.am): Likewise.
20587         * modules/sys_ioctl (Makefile.am): Likewise.
20588         * modules/sys_select (Makefile.am): Likewise.
20589         * modules/sys_socket (Makefile.am): Likewise.
20590         * modules/sys_stat (Makefile.am): Likewise.
20591         * modules/sys_time (Makefile.am): Likewise.
20592         * modules/sys_times (Makefile.am): Likewise.
20593         * modules/sys_utsname (Makefile.am): Likewise.
20594         * modules/sys_wait (Makefile.am): Likewise.
20595         * modules/sysexits (Makefile.am): Likewise.
20596         * modules/termios (Makefile.am): Likewise.
20597         * modules/time (Makefile.am): Likewise.
20598         * modules/unistd (Makefile.am): Likewise.
20599         * modules/wchar (Makefile.am): Likewise.
20600         * modules/wctype (Makefile.am): Likewise.
20601
20602 2010-10-04  Bruno Haible  <bruno@clisp.org>
20603
20604         read-file tests: Avoid a test failure on NonStop Kernel.
20605         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20606         a regular file.
20607         Reported by Joachim Schmitz <schmitz@hp.com>.
20608
20609 2010-10-03  Bruno Haible  <bruno@clisp.org>
20610
20611         gnulib-tool: Fixes for --create-testdir with --libtool.
20612         * gnulib-tool (func_get_automake_snippet): Don't augment
20613         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20614         an executable.
20615         (func_create_testdir): Handle module 'alloca' like func_import.
20616         Reported by Bruce Korb <bruce.korb@gmail.com>.
20617
20618 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20619
20620         Avoid some lines longer than 80 characters.
20621         * lib/stdint.in.h: Break long comment lines.
20622         * lib/math.in.h: Likewise.
20623         (_GL_NUM_UINT_WORDS): New macro, for readability.
20624         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20625         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20626         * lib/stdlib.in.h: Likewise.
20627         * lib/spawn.in.h: Likewise.
20628         * lib/sys_socket.in.h: Update an URL.
20629         * lib/sys_stat.in.h: Break long line.
20630
20631 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20632
20633         Improve pmccabe2html.
20634         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20635         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20636         when the sources change. Remove the line in the HTML about "Used
20637         ranges" (which implied that there might be other unused ranges),
20638         rename "Resume" to "Summary" (easier to understand for more users).
20639         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20640         styles, and some unnecessary blank lines.
20641
20642 2010-10-03  Bruno Haible  <bruno@clisp.org>
20643             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20644
20645         acl: Add support for ACLs on NonStop Kernel.
20646         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20647         Check whether the function aclsort() exists.
20648         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20649         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20650         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20651         (acl_nontrivial [HAVE_ACLSORT]: New function.
20652         (file_has_acl): Implement for NonStop Kernel.
20653         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20654         (qset_acl): Implement for NonStop Kernel.
20655         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20656         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20657         (main): Implement for NonStop Kernel.
20658         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20659         Kernel. Handle this flavor.
20660         * tests/test-set-mode-acl.sh: Likewise.
20661         * tests/test-copy-acl.sh: Likewise.
20662         * tests/test-copy-file.sh: Likewise.
20663
20664 2010-10-03  Bruno Haible  <bruno@clisp.org>
20665
20666         Info about ACLs on NonStop Kernel.
20667         * doc/acl-resources.txt: Add info about NonStop Kernel.
20668         References by Joachim Schmitz <schmitz@hp.com>.
20669
20670 2010-10-02  Bruno Haible  <bruno@clisp.org>
20671
20672         Define missing EDQUOT on NonStop Kernel.
20673         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20674         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20675         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20676         missing.
20677         * doc/posix-headers/errno.texi: Mention the NSK bug.
20678         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20679         Reported by Joachim Schmitz <schmitz@hp.com>.
20680
20681 2010-10-02  Bruno Haible  <bruno@clisp.org>
20682
20683         Update doc for POSIX:2008.
20684         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20685         Update URL of POSIX specification.
20686
20687 2010-10-02  Bruno Haible  <bruno@clisp.org>
20688
20689         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20690         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20691         from gnulib, not from Automake.
20692
20693 2010-10-02  Bruno Haible  <bruno@clisp.org>
20694
20695         New module 'system-posix'.
20696         * modules/system-posix: New file.
20697         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20698         module is present.
20699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20700         GNULIB_SYSTEM_POSIX.
20701         * modules/stdlib (Depends-on): Remove sys_wait.
20702         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20703         * doc/posix-functions/system.texi: Mention the new module.
20704         * doc/posix-headers/stdlib.texi: Likewise.
20705         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20706         define test_sys_wait_macros to a no-op.
20707         Reported by Sam Steingold <sds@gnu.org>.
20708
20709 2010-09-30  Bruno Haible  <bruno@clisp.org>
20710
20711         More renaming from 'getdate' to 'get_date'.
20712         * doc/get_date.texi: Renamed from doc/getdate.texi.
20713         * modules/get_date (Files): Update.
20714         * MODULES.html.sh (Date and time <time.h>): Update.
20715         * DEPENDENCIES: Update.
20716         * gnulib-tool: Update comment.
20717         * m4/bison.m4 (gl_BISON): Likewise.
20718         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20719
20720 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20721
20722         bootstrap: support ACLOCAL_FLAGS during aclocal
20723         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20724         can add additional -I dir for third-party .m4 files.
20725
20726 2010-09-30  Eric Blake  <eblake@redhat.com>
20727
20728         bootstrap: use glibtoolize on MacOS
20729         * build-aux/bootstrap (check_versions): Convert libtool into
20730         libtoolize.
20731         (tool search): Move libtool check earlier, and look for
20732         glibtoolize for MacOS.
20733         (gnulib_tool_options): Auto-add --libtool when appropriate.
20734         Reported by Justin Clift.
20735
20736         poll: fix typo that broke test on MacOS
20737         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20738         Reported by Justin Clift.
20739
20740         getdate: rename to get_date
20741         Note: getdate.h is not renamed, to minimize client impact.
20742         * modules/getdate: Mark obsolete.  Move old contents...
20743         * modules/get_date: ...to new module name.
20744         * modules/getdate-tests: Move...
20745         * modules/get_date-tests: ...here.
20746         * m4/getdate.m4: Move...
20747         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20748         * lib/getdate.y: Move...
20749         * lib/get_date.y: ...here.
20750         * tests/test-getdate.c: Move...
20751         * tests/test-get_date.c: ...here.
20752         * doc/posix-functions/getdate.texi (getdate): Update name.
20753         * NEWS: Mention the change.
20754
20755 2010-09-29  Bruno Haible  <bruno@clisp.org>
20756
20757         Separate the module 'waitpid' from the module 'sys_wait'.
20758         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20759         present.
20760         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20761         gl_MODULE_INDICATOR_FOR_TESTS.
20762         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20763         * modules/sys_wait (Depends-on): Remove waitpid.
20764         (Makefile.am): Substitute GNULIB_WAITPID.
20765         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20766         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20767         signature only if the 'waitpid' module is present.
20768         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20769         * NEWS: Mention the change.
20770         * modules/grantpt (Depends-on): Add waitpid.
20771         * modules/wait-process (Depends-on): Likewise.
20772
20773 2010-09-29  Bruno Haible  <bruno@clisp.org>
20774
20775         More tests for module 'sys_wait'.
20776         * modules/sys_wait-c++-tests: New file.
20777         * tests/test-sys_wait-c++.cc: New file.
20778         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20779         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20780
20781 2010-09-29  Bruno Haible  <bruno@clisp.org>
20782
20783         New module 'waitpid'.
20784         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20785         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20786         Don't include <process.h>.
20787         (waitpid): Declare only, using modern idiom.
20788         * m4/waitpid.m4: New file.
20789         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20790         * modules/waitpid: New file.
20791         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20792         (Makefile.am): Update.
20793         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20794
20795 2010-09-28  Bruno Haible  <bruno@clisp.org>
20796
20797         poll: Assume ANSI C.
20798         * lib/poll.c (poll): Use an ANSI C declaration.
20799
20800 2010-09-28  Bruno Haible  <bruno@clisp.org>
20801
20802         poll-h: Create poll.h on all platforms.
20803         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20804         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20805         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20806         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20807         (gl_REPLACE_POLL_H): Don't set POLL_H.
20808         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20809         * modules/poll-h (Depends-on): Add include_next.
20810         (Makefile.am): Create poll.h unconditionally. Substitute also
20811         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20812
20813 2010-09-28  Bruno Haible  <bruno@clisp.org>
20814
20815         Tests for module 'poll-h'.
20816         * modules/poll-h-c++-tests: New file.
20817         * tests/test-poll-h-c++.cc: New file.
20818
20819         Tests for module 'poll-h'.
20820         * modules/poll-h-tests: New file.
20821         * tests/test-poll-h.c: New file.
20822
20823 2010-09-28  Bruno Haible  <bruno@clisp.org>
20824
20825         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20826         * modules/poll-h (Depends-on): Add 'extensions'.
20827
20828 2010-09-28  Bruno Haible  <bruno@clisp.org>
20829
20830         New module 'poll-h'.
20831         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20832         (poll): Use modern idiom.
20833         * modules/poll-h: New file.
20834         * modules/poll (Files): Remove lib/poll.in.h.
20835         (Depends-on): Add poll-h.
20836         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20837         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20838         * m4/poll_h.m4: New file.
20839         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20840         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20841         and invoke gl_REPLACE_POLL_H.
20842         * lib/poll.c: Use common idiom.
20843         * tests/test-poll.c: Likewise.
20844         * doc/posix-headers/poll.texi: Mention the poll-h module.
20845         Suggested by Eric Blake.
20846
20847 2010-09-26  Bruno Haible  <bruno@clisp.org>
20848
20849         sys_wait: Implement WSTOPSIG.
20850         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20851         Reported by Simon Josefsson.
20852
20853 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20854
20855         stdlib, sys_wait: Avoid compilation error on mingw.
20856         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20857
20858 2010-09-26  Bruno Haible  <bruno@clisp.org>
20859
20860         stdlib tests: Avoid code duplication.
20861         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20862         * modules/sys_wait-tests (Files): Likewise.
20863         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20864         * tests/test-stdlib.c: Include test-sys_wait.h.
20865         (main): Invoke test_sys_wait_macros.
20866         * tests/test-sys_wait.c: Include test-sys_wait.h.
20867         (main): Invoke test_sys_wait_macros.
20868
20869 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20870
20871         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20872         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20873         sure Windows sockets are working before calling getaddrinfo.
20874         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20875         * doc/gnulib.texi (Windows sockets): Fix typo.
20876
20877 2010-09-25  Bruno Haible  <bruno@clisp.org>
20878
20879         Tests for module 'regex-quote'.
20880         * modules/regex-quote-tests: New file.
20881         * tests/test-regex-quote.c: New file.
20882
20883         New module 'regex-quote'.
20884         * lib/regex-quote.h: New file.
20885         * lib/regex-quote.c: New file.
20886         * modules/regex-quote: New file.
20887         Suggested by Reuben Thomas <rrt@sc3d.org>.
20888
20889 2010-09-24  Bruno Haible  <bruno@clisp.org>
20890
20891         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20892         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20893
20894 2010-09-23  Bruno Haible  <bruno@clisp.org>
20895
20896         setenv: Relax license.
20897         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20898         Blake.
20899         Requested by Eric Blake.
20900
20901 2010-09-22  Bruno Haible  <bruno@clisp.org>
20902
20903         termios: Relax license.
20904         * modules/termios (License): Change to LGPLv2+.
20905         Requested by Eric Blake.
20906
20907 2010-09-22  Bruno Haible  <bruno@clisp.org>
20908
20909         threadlib: Allow the package to change the default to 'no'.
20910         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20911         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20912         Reported by Paul Eggert.
20913
20914 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20915             Bruno Haible  <bruno@clisp.org>
20916
20917         Fix endless loop in mbmemcasecoll.
20918         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20919         byte.
20920         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20921
20922 2010-09-22  Bruno Haible  <bruno@clisp.org>
20923
20924         Tests for module 'memcoll'.
20925         * modules/memcoll-tests: New file.
20926         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20927
20928         memcoll, xmemcoll: Clarify size vs. length.
20929         * modules/memcoll.c (memcoll0): Clarify specification.
20930         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20931         passed to collate_error.
20932
20933 2010-09-22  Bruno Haible  <bruno@clisp.org>
20934
20935         Tests for module 'memcasecmp'.
20936         * modules/memcasecmp-tests: New file.
20937         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20938
20939 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         * lib/pthread.in.h: Add split double-inclusion guard, and include
20942         system <pthread.h> if there is one.  Use @@-style as in other
20943         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20944         pthread.h doesn't.
20945         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20946         (pthread_mutexattr_settype, pthread_mutex_trylock):
20947         New static inline functions, if there's no system <pthread.h>.
20948         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20949         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20950         Approximate with mutexes if the system lacks spinlocks, as in
20951         MacOS.
20952         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20953         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20954         @@-style.  Check for spinlocks separately.
20955         (gl_PTHREAD_DEFAULTS): New macro.
20956         * modules/pthread: Redo to use a more typical style for in.h files.
20957
20958 2010-09-21  Eric Blake  <eblake@redhat.com>
20959
20960         net_if: enhance tests
20961         * tests/test-net_if.c (main): Move signature checks earlier.
20962         Print failures to stderr.
20963         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20964         Document the bug that we do not yet fix.
20965
20966 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20967
20968         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20969         about gnulib, not GSS.
20970
20971 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20972
20973         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20974         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20975         for Emacs.
20976         * build-aux/pmccabe2html: Make Makefile.am example code more
20977         cut-and-paste friendly.
20978
20979 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20980
20981         * tests/test-net_if.c: New file.
20982         * modules/net_if-tests: New file.
20983
20984 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20985
20986         pthread: add pthread_spin_destroy
20987         * lib/pthread.in.h (pthread_spin_destroy): New function.
20988
20989 2010-09-19  Bruno Haible  <bruno@clisp.org>
20990
20991         gnulib-tool: Fix --help output.
20992         * gnulib-tool (func_usage): Fix help message.
20993         Reported by Reuben Thomas <rrt@sc3d.org>.
20994
20995 2010-09-18  Jim Meyering  <meyering@redhat.com>
20996
20997         maint.mk: avoid unexpanded \n in two diagnostics
20998         * top/maint.mk (sc_prohibit_always_true_header_tests):
20999         Don't use a literal \n in a halt=... assignment.  It would not be
21000         expanded, and the two \n bytes would appear in the diagnostic output
21001         rather than the desired newline.  Use halt=$$(printf ... instead.
21002         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21003
21004 2010-09-18  Bruno Haible  <bruno@clisp.org>
21005
21006         netinet_in: Doc tweak.
21007         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21008         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21009
21010 2010-09-18  Jim Meyering  <meyering@redhat.com>
21011
21012         init.sh: correct an outdated comment
21013         * tests/init.sh (create_exe_shims_):  s/function/alias/
21014
21015         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21016         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21017         a file named "*.exe" is removed between the glob expansion and the
21018         processing of that oddly named file.
21019
21020 2010-09-17  Eric Blake  <eblake@redhat.com>
21021
21022         mirbsd: add some more support
21023         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21024         in BSD family.
21025         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21026         devices as OpenBSD.
21027         * m4/host-os.m4 (mirbsd): Add MirBSD.
21028
21029         tests: fix unportable assumption on sys/wait.h
21030         * tests/test-sys_wait.c (main): Relax test.
21031         * tests/test-stdlib.c (main): Likewise.
21032
21033         init.sh: accomodate directory with no .exes
21034         * tests/init.sh: Accomodate directory containing only scripts.
21035
21036         tests: avoid compiler warning
21037         * tests/test-stdlib.c (main): Use the variable.
21038
21039         fdutimens, fdutimensat: update signature, again
21040         * lib/utimens.h (gl_futimens): Delete, and move signature...
21041         (fdutimens): ...here.
21042         (fdutimensat): Rearrange signature.
21043         (lutimensat): Rename variable for clarity.
21044         * lib/fdutimensat.c (fdutimensat): Update signature.
21045         * lib/utimens.c (fdutimens): Likewise.
21046         (gl_futimens): Delete.
21047         (utimens, lutimens): Update callers.
21048         * lib/futimens.c (futimens): Likewise.
21049         * tests/test-fdutimensat.c: Likewise.
21050         * tests/test-utimens.c: Likewise.
21051         * tests/test-futimens.h: Update comment.
21052         * NEWS: Mention this.
21053         Suggested by Paul Eggert.
21054
21055 2010-09-17  Bruno Haible  <bruno@clisp.org>
21056
21057         Take over the maintenance of some older macros from Autoconf.
21058         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21059         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21060         GNU Autoconf.
21061         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21062         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21063
21064 2010-09-17  Eric Blake  <eblake@redhat.com>
21065
21066         fdutimensat: drop atflag validation
21067         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21068         with valid fd, to close a race scenario where futimens is
21069         unsupported and FILE was replaced by a symlink.
21070         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21071         accordingly.
21072         Suggested by Paul Eggert.
21073
21074 2010-09-16  Bruno Haible  <bruno@clisp.org>
21075
21076         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21077         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21078
21079 2010-09-16  Bruno Haible  <bruno@clisp.org>
21080
21081         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21082         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21083         login_tty exists.
21084         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21085
21086 2010-09-16  Bruno Haible  <bruno@clisp.org>
21087
21088         login_tty: Make the replacement code work on BSD systems.
21089         * lib/login_tty.c: Include <sys/ioctl.h>.
21090         (login_tty): Use ioctl TIOCSCTTY when available.
21091         * modules/login_tty (Depends-on): Add sys_ioctl.
21092         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21093
21094 2010-09-16  Bruno Haible  <bruno@clisp.org>
21095
21096         login_tty: Stricter unit test.
21097         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21098         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21099         and tcgetsid() after login_tty.
21100         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21101
21102 2010-09-16  Bruno Haible  <bruno@clisp.org>
21103
21104         New module 'tcgetsid'.
21105         * lib/tcgetsid.c: New file.
21106         * m4/tcgetsid.m4: New file.
21107         * modules/tcgetsid: New file.
21108         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21109         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21110         GNULIB_TCGETSID, HAVE_TCGETSID.
21111         * lib/termios.in.h: Include <sys/types.h>.
21112         (tcgetsid): New declaration.
21113         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21114         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21115         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21116         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21117
21118 2010-09-16  Bruno Haible  <bruno@clisp.org>
21119
21120         Tests for module 'termios'.
21121         * modules/termios-c++-tests: New file.
21122         * modules/termios-tests: New file.
21123         * tests/test-termios-c++.cc: New file.
21124         * tests/test-termios.c: New file.
21125
21126         New module 'termios'.
21127         * modules/termios: New file.
21128         * lib/termios.in.h: New file.
21129         * m4/termios_h.m4: New file.
21130         * doc/posix-headers/termios.texi: Mention the new module.
21131
21132 2010-09-16  Eric Blake  <eblake@redhat.com>
21133
21134         fdutimensat: add an atflag parameter
21135         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21136         * lib/utimens.h (fdutimensat): Update prototype.
21137         * tests/test-fdutimensat.c: Adjust test to match.
21138         * NEWS: Document the change.
21139         Suggested by Paul Eggert.
21140
21141 2010-09-16  Bruno Haible  <bruno@clisp.org>
21142
21143         Fix typos in comments.
21144         * lib/striconveh.h: Fix typo in comment.
21145         * lib/login_tty.c (login_tty): Likewise.
21146
21147 2010-09-15  Bruno Haible  <bruno@clisp.org>
21148
21149         stdlib: clarify MirBSD WEXITSTATUS bug
21150         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21151         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21152
21153 2010-09-15  Eric Blake  <eblake@redhat.com>
21154
21155         stdlib: work around MirBSD WEXITSTATUS bug
21156         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21157         * modules/stdlib (Depends-on): Add sys_wait.
21158         * tests/test-sys_wait.c (main): Enhance test.
21159         * tests/test-stdlib.c (main): Likewise.
21160         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21161
21162         docs: mention MacOS issue with WEXITSTATUS(constant)
21163         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21164         issue.
21165         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21166
21167         strnlen: add tests
21168         * modules/strnlen-tests: New file.
21169         * tests/test-strnlen.c: Likewise.
21170
21171 2010-09-14  Bruno Haible  <bruno@clisp.org>
21172
21173         unistr/base: Avoid link errors when module 'libunistring' is also used.
21174         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21175         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21176         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21177         Declare also when HAVE_LIBUNISTRING is set.
21178         Reported by Pádraig Brady <P@draigbrady.com>.
21179
21180 2010-09-14  Eric Blake  <eblake@redhat.com>
21181
21182         test-rawmemchr: make more robust
21183         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21184         (Depends-on, configure.ac): Add needed prerequisites to use it.
21185         * modules/memchr-tests (Files, Depends-on, configure.ac):
21186         Likewise, to avoid implicit reliance on memchr module prereqs.
21187         * tests/test-memchr.c (main): Ensure proper masking.
21188         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21189         reads.
21190
21191         memchr: detect glibc Alpha bug
21192         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21193         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21194         Alpha.
21195         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21196         * tests/test-memchr.c (main): Enhance test.
21197         Reported by Nelson H. F. Beebe.
21198
21199 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21200
21201         fts, getcwd, glob: audit for dirfd returning -1
21202         * lib/fts.c (opendir): Remove #define; no longer used.
21203         (opendirat): New arg PDIR_FD.  All callers changed.
21204         (fts_build, _opendir2): Use new opendirat to avoid the need for
21205         dirfd, or for checking whether dirfd returns a negative value.
21206         Don't use opendir; always use openat followed by fdopendir.
21207         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21208         it.
21209         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21210         returns -1 here.
21211         * modules/fts (Depends-on): Remove dirfd.
21212         * modules/getcwd (Depends-on): Likewise.
21213
21214 2010-09-13  Eric Blake  <eblake@redhat.com>
21215
21216         float: fix broken MirBSD header
21217         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21218         * doc/posix-headers/float.texi (float.h): Document it.
21219
21220 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21221
21222         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21223         * lib/fts.c (opendirat): New arg extra_flags.
21224         (__opendir2): Use it to avoid following symlinks when opening
21225         a directory, if symlinks are not supposed to be followed.  See
21226         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21227
21228         fdopendir: preserve argument fd before returning
21229         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21230         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21231         (fdopendir): Use them, arranging for FD to be open to the same
21232         directory that it was when it started.  (It might be temporarily
21233         closed while fdopendir is running, so this not thread- or
21234         signal-safe.)  Be careful to do the right thing even when file
21235         descriptors are scarce and dup fails with errno == EMFILE.  See
21236         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21237
21238 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21239
21240         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21241         * NEWS: Document change.
21242         * m4/regex.m4: Disable test for regoff_t size.
21243
21244 2010-09-13  Jim Meyering  <meyering@redhat.com>
21245
21246         fts: don't operate on an invalid file descriptor after failed dup
21247         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21248         negative file descriptor.
21249
21250 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21251
21252         savedir: add streamsavedir, deprecate fdsavedir
21253         * NEWS: Mention deprecation of fdsavedir.
21254         * lib/savedir.c (streamsavedir): New extern function, whose name
21255         ends in "savedir" to be consistent with the others.  This differs
21256         from savedirstream in that it doesn't close its argument.  The
21257         next version of GNU tar will use this instead of fdsavedir, to
21258         avoid some race conditions and conserve file descriptors.
21259         (savedirstream): Reimplement as a wrapper around streamsavedir.
21260         (fdsavedir): Add a comment deprecating this function.  As far as
21261         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21262         * lib/savedir.h (streamsavedir): New decl.
21263         (fdsavedir): Add a comment deprecating this.
21264
21265 2010-09-10  Bruno Haible  <bruno@clisp.org>
21266
21267         langinfo: Fix last commit.
21268         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21269         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21271
21272 2010-09-10  Bruno Haible  <bruno@clisp.org>
21273
21274         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21275         * lib/progreloc.c (O_EXEC): Define fallback.
21276
21277 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21278
21279         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21280         * NEWS: Document recent changes to fcntl-h.
21281         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21282         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21283         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21284         Similarly for O_SEARCH; this last was already true, but not documented.
21285         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21286         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21287         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21288         Likewise.
21289         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21290         is zero, not whether it is defined.
21291         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21292         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21293         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21294
21295 2010-09-10  Bruno Haible  <bruno@clisp.org>
21296
21297         langinfo, nl_langinfo: Fix for IRIX 5.3.
21298         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21299         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21300         HAVE_LANGINFO_YESEXPR.
21301         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21302         HAVE_LANGINFO_YESEXPR.
21303         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21304         HAVE_LANGINFO_T_FMT_AMPM is 0.
21305         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21306         HAVE_LANGINFO_YESEXPR is 0.
21307         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21308         NOEXPR.
21309         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21310         * doc/posix-functions/nl_langinfo.texi: Likewise.
21311         Reported by Eric Blake.
21312
21313 2010-09-10  Bruno Haible  <bruno@clisp.org>
21314
21315         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21316         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21317         on FreeBSD 8.0 and OpenBSD 4.6.
21318         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21319         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21320         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21321         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21322         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21323         ac_includes_default.
21324         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21325
21326 2010-09-09  Eric Blake  <eblake@redhat.com>
21327
21328         strsignal: work around NetBSD bug
21329         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21330         * lib/string.in.h (includes): Likewise.
21331         * doc/posix-functions/strsignal.texi (strsignal): Document the
21332         bug.
21333         Reported by Nelson H. F. Beebe.
21334
21335         gnulib-tool: work with NetBSD /bin/sh
21336         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21337         (func_get_description, func_get_comment, func_get_status)
21338         (func_get_notice, func_get_applicability, func_get_filelist)
21339         (func_get_dependencies, func_get_autoconf_early_snippet)
21340         (func_get_autoconf_snippet, func_get_automake_snippet)
21341         (func_get_include_directive, func_get_link_directive)
21342         (func_get_license, func_get_maintainer, func_import): Avoid
21343         shell syntax errors from parsing syntax extensions.
21344
21345 2010-09-09  Bruno Haible  <bruno@clisp.org>
21346
21347         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21348         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21349         a reliable way to determine whether the 'alias' command works.
21350
21351 2010-09-08  Jim Meyering  <meyering@redhat.com>
21352
21353         init.sh: penalize a set-x-impaired shell; don't disqualify it
21354         * tests/init.sh: Too many shells corrupt application stderr when
21355         you set -x, so we can't afford to disqualify them, since at least
21356         on Irix-6.5, that would disqualify all bourne shells.
21357         Instead, use a two-pass approach.
21358         On the first pass, try to find a shell that meets the stricter
21359         condition that set -x does not corrupt stderr.
21360         If no shell meets the stricter condition, retest each candidate
21361         shell, but without that extra condition.  Finally, when
21362         VERBOSE=yes is requested and set -x might cause trouble, simply
21363         issue a warning and refrain from enabling debug output.
21364
21365 2010-09-08  Eric Blake  <eblake@redhat.com>
21366
21367         unsetenv: fix OpenBSD bug
21368         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21369         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21370         documentation.
21371         Reported by Jim Meyering.
21372
21373         strtod: work around IRIX 6.5 bug
21374         * lib/strtod.c (strtod): Reparse number on shorter string if
21375         exponent parse was invalid.
21376         * tests/test-strtod.c (main): Add check for "0x1p 2".
21377         Reported by Tom G. Christensen.
21378
21379         getopt: optimize previous patch
21380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21381         empty variable.  Speed up awk script.
21382         Reported by Paolo Bonzini.
21383
21384 2010-09-08  Jim Meyering  <meyering@redhat.com>
21385
21386         test.sh: disqualify shells for which set -x corrupts stderr
21387         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21388         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21389         appear in stderr output.  For example, this command:
21390             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21391         prints "P=1" on those two systems:
21392
21393 2010-09-08  Bruno Haible  <bruno@clisp.org>
21394
21395         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21396         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21397         commands, because some shells ignore redirections when there is an
21398         error in the command lookup.
21399         Reported by Eric Blake.
21400
21401 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21402
21403         * lib/regex.h: Fix a mention of `regex_compile' (should be
21404         `re_compile_pattern').
21405         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21406         (re_set_registers): Correct name of parameter in comment.
21407
21408         * doc/regex.texi: Add documentation for missing syntax flags.
21409         Remove commented-out documentation of defunct syntax option
21410         RE_NO_EMPTY_ALTS.
21411         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21412         Add documentation of re_set_registers.
21413         Document trick to re-use a pattern buffer by setting fastmap manually.
21414         Update documentation of struct re_pattern_buffer per public members.
21415         Uncomment documentation of equivalence class operators and
21416         collating symbol operators, since they are now implemented,
21417         Explain leftmost-longest matching in relation to alternatives.
21418         Tidy documentation of substring matching.
21419         Remove POSIX documentation, which is done better in
21420         glibc, and refer the reader there. Keep BSD API documentation, as
21421         that is not readily available elsewhere.
21422
21423 2010-09-07  Eric Blake  <eblake@redhat.com>
21424
21425         getopt: handle POSIXLY_CORRECT set but not exported
21426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21427         export state of POSIXLY_CORRECT, due to bash set -o posix.
21428         Reported by Dustin J. Mitchell.
21429
21430 2010-09-05  Bruno Haible  <bruno@clisp.org>
21431
21432         gnulib-tool: Highlight the changed options.
21433         * gnulib-tool (func_usage): Display the --import, --add-import,
21434         --remove-import explanations in bold font.
21435
21436 2010-09-06  Karl Berry  <karl@gnu.org>
21437
21438         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21439
21440 2010-09-05  Bruno Haible  <bruno@clisp.org>
21441
21442         uniwidth/width: Update comment.
21443         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21444         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21445
21446 2010-09-05  Bruno Haible  <bruno@clisp.org>
21447
21448         isinf, isnan: Relax license.
21449         * modules/isinf (License): Change from GPL to LGPL, with consent from
21450         Ben Pfaff.
21451         * modules/isnan (License): Likewise.
21452         Requested by Ludovic Courtès.
21453
21454 2010-09-04  Bruno Haible  <bruno@clisp.org>
21455
21456         gnulib-tool: Help migration from --import to --add-import or --update.
21457         * gnulib-tool: Emit a verbose error message when --import is used
21458         without any module name.
21459
21460 2010-09-04  Bruno Haible  <bruno@clisp.org>
21461
21462         Update doc about gnulib-tool.
21463         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21464         'gnulib-tool --update' in more detail.
21465         Reported by Eric Blake.
21466
21467 2010-09-04  Bruno Haible  <bruno@clisp.org>
21468
21469         gnulib-tool: Change --import. New options --add/remove-import.
21470         * gnulib-tool: New options --add-import, --remove-import.
21471         (func_usage): Document them.
21472         (have_associative): Define always.
21473         (func_import): In import mode, don't merge the specified settings with
21474         the cached settings. Implement remove-import mode.
21475         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21476         Explain when to use them versus --import.
21477         (Simple update): Use --add-import instead of --import.
21478         * NEWS: Mention the change.
21479
21480 2010-09-04  Bruno Haible  <bruno@clisp.org>
21481
21482         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21483         separate gnulib.mk.
21484
21485 2010-09-04  Bruno Haible  <bruno@clisp.org>
21486
21487         gnulib-tool: Don't talk about CVS any more.
21488         * gnulib-tool (func_usage, func_import): Write "version control"
21489         instead of CVS.
21490
21491 2010-09-04  Jim Meyering  <meyering@redhat.com>
21492
21493         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21494         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21495         false positives (whose names may be ill-chosen) when searching
21496         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21497         would cause a false-positive.
21498
21499         avoid coreutils "make distcheck" failure
21500         Coreutils tests with an absolute build directory name that contains
21501         a space.  Not quoting this directory name caused a failure.
21502         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21503         * tests/test-vc-list-files-cvs.sh: Likewise.
21504
21505 2010-09-04  Bruno Haible  <bruno@clisp.org>
21506
21507         gnulib-tool: Avoid error when run in a package without Makefile.am.
21508         * gnulib-tool: When collecting the m4dirs in a package that does not
21509         have a Makefile.am, eliminate those directories that contain no
21510         gnulib-cache.m4. Fix expression that counts these directories.
21511
21512 2010-09-04  Bruno Haible  <bruno@clisp.org>
21513
21514         update-copyright test: Improve output when perl is missing or too old.
21515         * tests/test-update-copyright.sh: Move test of Perl version down after
21516         the test whether Perl exists. Provide an explanation relating Perl's
21517         error message to Automake's SKIP: message.
21518
21519 2010-09-04  Bruno Haible  <bruno@clisp.org>
21520
21521         Don't augment PATH in TESTS_ENVIRONMENT.
21522         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21523         set abs_aux_dir instead of augmenting PATH.
21524         * modules/vc-list-files-tests (Makefile.am): Likewise.
21525         * tests/test-update-copyright.sh: Augment PATH here.
21526         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21527         path_prepend_.
21528         * tests/test-vc-list-files-git.sh: Likewise.
21529
21530 2010-09-04  Jim Meyering  <meyering@redhat.com>
21531
21532         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21533         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21534
21535 2010-09-04  Bruno Haible  <bruno@clisp.org>
21536
21537         strdup: Fix compilation error in C++ mode.
21538         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21539         the macro.
21540
21541 2010-09-04  Bruno Haible  <bruno@clisp.org>
21542
21543         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21544         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21545         macro into a function.
21546         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21547
21548 2010-09-04  Bruno Haible  <bruno@clisp.org>
21549
21550         Set PATH_SEPARATOR the same way autoconf does.
21551         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21552         the value of PATH_SEPARATOR the same way autoconf-generated configure
21553         scripts do.
21554         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21555         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21556
21557 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21558
21559         Set PATH_SEPARATOR the same way autoconf does.
21560         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21561         the same way autoconf-generated configure scripts do.
21562         * posix-modules: Likewise.
21563
21564 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21565
21566         hash: fix safe_hasher const typo
21567         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21568         const; otherwise, there is a type error later.
21569
21570 2010-09-02  Jim Meyering  <meyering@redhat.com>
21571
21572         test-update-copyright.sh: require perl 5.8.0
21573         * tests/test-update-copyright.sh: Require 5.8.0,
21574         which Tom G. Christensen has confirmed is adequate,
21575         while 5.6.1 is not.
21576
21577 2010-09-02  Eric Blake  <eblake@redhat.com>
21578
21579         tests: init.sh improvements for re-exec'ing with zsh
21580         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21581         -vx through shell re-exec.
21582         Reported by Tom G. Christensen.
21583
21584         wctype: fix typo in previous commit
21585         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21586         Reported by Ludovic Courtès.
21587
21588 2010-09-02  Jim Meyering  <meyering@redhat.com>
21589
21590         test-update-copyright.sh: skip test if Perl is too old
21591         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21592         Reported by Tom G. Christensen.
21593
21594 2010-09-02  Bruno Haible  <bruno@clisp.org>
21595
21596         wctype: Avoid compilation error on IRIX 6.5.30.
21597         * lib/wctype.in.h (iswblank): Declare with a replacement if
21598         REPLACE_ISWBLANK is set.
21599         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21600         declared. Set REPLACE_ISWBLANK.
21601         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21602         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21603         * doc/posix-headers/wctype.texi: Likewise.
21604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21605
21606 2010-09-01  Bruno Haible  <bruno@clisp.org>
21607
21608         New module 'socketlib'.
21609         * modules/socketlib: New file.
21610         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21611         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21612         * modules/sockets (Depends-on): Add socketlib.
21613         Suggested by Sam Steingold <sds@gnu.org>.
21614
21615 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21616
21617         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21618
21619         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21620         when one needs search access to a directory but not read access.
21621         On systems where it is available, it works in some cases where
21622         O_RDONLY does not, namely on directories that are searchable but
21623         not readable, and which need only to be searchable.  If O_SEARCH
21624         is not available, fall back to the traditional method of using
21625         O_RDONLY.
21626
21627         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21628         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21629         when opening a directory that needs only to be searchable.
21630         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21631         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21632         * lib/openat-proc.c (openat_proc_name): Likewise.
21633         * lib/openat.c (openat_needs_fchdir): Likewise.
21634         * lib/save-cwd.c (save_cwd): Likewise.
21635         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21636
21637 2010-08-28  Bruno Haible  <bruno@clisp.org>
21638
21639         New module 'host-cpu-c-abi'.
21640         * modules/host-cpu-c-abi: New file.
21641         * m4/host-cpu-c-abi.m4: New file, based on part of
21642         clisp/src/m4/general.m4.
21643         Requested by Sam Steingold <sds@gnu.org>.
21644
21645 2010-08-31  Eric Blake  <eblake@redhat.com>
21646         and Jim Meyering  <meyering@redhat.com>
21647
21648         hash: factor, and guard against misbehaving hasher function
21649         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21650         of table->hasher's return value.  Also protect against a hash value
21651         so large that adding it to table->bucket results in a NULL pointer.
21652         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21653         Use it in place of open-coded check-and-abort.
21654
21655 2010-08-30  Bruno Haible  <bruno@clisp.org>
21656
21657         hash: silence spurious clang warning
21658         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21659         Reported by Eric Blake.
21660
21661 2010-08-30  Eric Blake  <eblake@redhat.com>
21662
21663         strstr, memmem, strcasestr: avoid leaked shell message
21664         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21665         FreeBSD.
21666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21668
21669         tests: silence clang warning
21670         * tests/test-malloca.c (do_allocation): Avoid dead store.
21671
21672 2010-08-29  Bruno Haible  <bruno@clisp.org>
21673
21674         gettext: Fix recent mistake.
21675         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21676
21677 2010-08-29  Bruno Haible  <bruno@clisp.org>
21678
21679         selinux-h: Offer a --without-selinux option.
21680         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21681         --without-selinux was specified, skip all tests and define
21682         HAVE_SELINUX_SELINUX_H to 0.
21683         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21684         set LIB_SELINUX to empty.
21685         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21686         gl_LIBSELINUX. If --without-selinux was specified, replace
21687         selinux/context.h.
21688         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21689
21690 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21691             Bruno Haible  <bruno@clisp.org>
21692
21693         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21694         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21695         of HAVE_REALLOC.
21696         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21697         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21698         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21699         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21700
21701 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21702             Bruno Haible  <bruno@clisp.org>
21703
21704         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21705         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21706         HAVE_CALLOC.
21707         * lib/xmalloc.c: Update accordingly.
21708         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21709         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21710         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21711
21712 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21713             Bruno Haible  <bruno@clisp.org>
21714
21715         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21716         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21717         HAVE_MALLOC.
21718         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21719         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21720         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21721
21722 2010-08-29  Bruno Haible  <bruno@clisp.org>
21723
21724         Update modules list.
21725         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21726         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21727         (String handling <string.h>): Add astrxfrm.
21728         (File system functions): Add readlinkat.
21729
21730 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21731
21732         Tests for module 'realloc-gnu'.
21733         * modules/realloc-gnu-tests: New file.
21734         * tests/test-realloc-gnu.c: New file.
21735
21736         Tests for module 'calloc-gnu'.
21737         * modules/calloc-gnu-tests: New file.
21738         * tests/test-calloc-gnu.c: New file.
21739
21740         Tests for module 'malloc-gnu'.
21741         * modules/malloc-gnu-tests: New file.
21742         * tests/test-malloc-gnu.c: New file.
21743
21744 2010-08-28  Bruno Haible  <bruno@clisp.org>
21745
21746         Rename module 'realloc' -> 'realloc-gnu'.
21747         * modules/realloc-gnu: New file, copied from modules/realloc.
21748         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21749         obsolete.
21750         * modules/mgetgroups (Depends-on): Update.
21751         * doc/posix-functions/realloc.texi: Update.
21752         * NEWS: Mention the change.
21753
21754         Rename module 'calloc' -> 'calloc-gnu'.
21755         * modules/calloc-gnu: New file, copied from modules/calloc.
21756         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21757         obsolete.
21758         * doc/posix-functions/calloc.texi: Update.
21759         * NEWS: Mention the change.
21760
21761         Rename module 'malloc' -> 'malloc-gnu'.
21762         * modules/malloc-gnu: New file, copied from modules/malloc.
21763         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21764         obsolete.
21765         * modules/argp (Depends-on): Update.
21766         * modules/regex (Depends-on): Update.
21767         * doc/posix-functions/malloc.texi: Update.
21768         * NEWS: Mention the change.
21769
21770 2010-08-28  Eric Blake  <eblake@redhat.com>
21771
21772         pread, pwrite: add missing dependency
21773         * modules/pread (Depends-on): Add extensions.
21774         * modules/pwrite (Depends-on): Likewise.
21775
21776 2010-08-28  Bruno Haible  <bruno@clisp.org>
21777
21778         unistr/u*-strchr: Fix tests dependencies.
21779         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21780         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21781         Reported by Ian Beckwith <ianb@erislabs.net>.
21782
21783 2010-08-28  Bruno Haible  <bruno@clisp.org>
21784
21785         read-file: Don't occupy too much unused memory.
21786         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21787
21788 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21789             Eric Blake  <eblake@redhat.com>
21790             Bruno Haible  <bruno@clisp.org>
21791
21792         read-file: Avoid memory reallocations with regular files.
21793         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21794         (fread_file): With regular files, use the remaining length as the
21795         initial buffer size.  Check against overflow.
21796         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21797         sys_stat.
21798
21799 2010-08-28  Bruno Haible  <bruno@clisp.org>
21800
21801         ftello: Relax license.
21802         * modules/ftello (License): Relax to LGPLv2+.
21803         Reported by Eric Blake.
21804
21805 2010-08-28  Bruno Haible  <bruno@clisp.org>
21806
21807         Avoid relocwrapper link errors due to gnulib replacement functions.
21808         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21809         function.
21810         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21811
21812 2010-08-28  Bruno Haible  <bruno@clisp.org>
21813
21814         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21815         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21816         defined.
21817         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21818         Suggested by Eric Blake.
21819
21820 2010-08-28  Bruno Haible  <bruno@clisp.org>
21821
21822         sys_socket, netdb: Ensure socklen_t gets defined.
21823         * modules/sys_socket (Depends-on): Add socklen.
21824         * modules/netdb (Depends-on): Likewise.
21825         * modules/getaddrinfo (Depends-on): Remove socklen.
21826         * modules/getsockopt (Depends-on): Likewise.
21827         * modules/setsockopt (Depends-on): Likewise.
21828         * tests/test-sys_socket.c: Check that socklen_t is defined.
21829         * tests/test-netdb.c: Likewise.
21830         * m4/socklen.m4: Update comments.
21831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21832
21833 2010-08-27  Eric Blake  <eblake@redhat.com>
21834
21835         login_tty: add missing dependency
21836         * modules/login_tty (Depends-on): Add pty.
21837
21838 2010-08-26  Eric Blake  <eblake@redhat.com>
21839
21840         lib-symbol-versions: fix m4 quoting
21841         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21842         format for AC_LINK_IFELSE.
21843
21844         glob: fix compile test
21845         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21846
21847         btowc: fix missing file
21848         * modules/btowc (Files): Also ship locale-fr.m4.
21849
21850         lseek: fix link test
21851         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21852         AC_LINK_IFELSE.
21853
21854         include_next: silence autoconf 2.68 warning
21855         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21856         AC_COMPILE_IFELSE as special.
21857         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21858         autoconf < 2.68.
21859
21860         acl: fix compilation test
21861         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21862         AC_COMPILE_IFELSE.
21863
21864 2010-08-26  Bruno Haible  <bruno@clisp.org>
21865
21866         Modernize AC_TRY_RUN invocations.
21867         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21868         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21869         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21870         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21871         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21872         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21875         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21876         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21878         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21879         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21880         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21881         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21882         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21883         gl_MBRLEN_NUL_RETVAL): Likewise.
21884         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21885         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21886         Likewise.
21887         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21888         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21889         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21890         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21891         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21892         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21893         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21894         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21895         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21896         Likewise.
21897         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21898         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21899         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21900         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21901         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21902         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21904         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21905         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21906         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21907
21908 2010-08-26  Bruno Haible  <bruno@clisp.org>
21909
21910         Modernize AC_TRY_LINK invocations.
21911         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21912         AC_TRY_LINK.
21913         * m4/argp.m4 (gl_ARGP): Likewise.
21914         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21915         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21916         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21917         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21918         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21919         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21920         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21921         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21922         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21923         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21924         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21925         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21926         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21927         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21928         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21929         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21930         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21931         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21932         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21933         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21934         Likewise.
21935         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21936         Likewise.
21937         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21938         Likewise.
21939         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21941         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21942         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21943         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21944         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21945         * m4/servent.m4 (gl_SERVENT): Likewise.
21946         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21947         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21948         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21949         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21950         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21951         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21952         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21953         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21954         * modules/tsearch-tests (configure.ac): Likewise.
21955
21956 2010-08-26  Bruno Haible  <bruno@clisp.org>
21957
21958         Modernize AC_TRY_COMPILE invocations.
21959         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21960         AC_TRY_COMPILE.
21961         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21962         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21963         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21964         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21965         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21966         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21967         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21968         * m4/lock.m4 (gl_LOCK): Likewise.
21969         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21970         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21971         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21972         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21973         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21974         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21975         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21976         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21977         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21978         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21979         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21980         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21981         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21982         extraneous semicolon.
21983
21984 2010-08-26  Jim Meyering  <meyering@redhat.com>
21985
21986         stat-time: relax license LGPL
21987         * modules/stat-time (License): Change from GPL to LGPL,
21988         with consent from all contributors, for use in libguile.
21989         Requested by Ludovic Courtès.
21990
21991 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21992
21993         poll: return immediately on POLLHUP.
21994         * lib/poll.c (poll): Always set timeout before wait_timeout is
21995         computed.
21996
21997 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21998
21999         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22000         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22001         rmdir ("dir/.//"), unlinkat.
22002
22003 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         stdbool: avoid spurious failure with modern xlc
22006         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22007
22008 2010-08-24  Bruno Haible  <bruno@clisp.org>
22009
22010         getloadavg: simplify code
22011         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22012         gl_have_func. Update comments.
22013
22014 2010-08-24  Eric Blake  <eblake@redhat.com>
22015
22016         getloadavg: don't define SVR4 on cygwin
22017         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22018         only define SVR4 when -lkvm is required.
22019         Reported by Yaakov Selkowitz.
22020
22021 2010-08-24  Bruno Haible  <bruno@clisp.org>
22022
22023         priv-set: fix comment
22024         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22025
22026 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         priv-set: fix comments
22029         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22030         to match code, as suggested by David Bartley in:
22031         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22032
22033 2010-08-23  Eric Blake  <eblake@redhat.com>
22034
22035         stdbool: avoid rejecting clang
22036         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22037         * tests/test-stdbool.c: Enable more tests if using the system
22038         <stdbool.h> instead of the gnulib replacement.
22039         (main): Move xlc bug test to a runtime test for all compilers.
22040         Reported by Anders Kaseorg.
22041
22042         argz: fix shell quoting issue
22043         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22044         Reported by Charles Wilson.
22045
22046 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22047             Erik Faye-Lund <kusmabite@gmail.com>
22048
22049         poll, select: handle ERROR_BROKEN_PIPE.
22050         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22051         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22052         * lib/select.c (win32_compute_revents): Do not mark a pipe
22053         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22054
22055 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22056
22057         fts: allow compilation with C++
22058         * lib/fts_.h: Specify extern "C" linkage with C++.
22059
22060 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22061
22062         Fix gnulib-tool sed script de-commentation for AIX sed.
22063         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22064         sed.
22065
22066 2010-08-17  Eric Blake  <eblake@redhat.com>
22067
22068         test-stddef: test for (some) offsetof bugs
22069         * tests/test-stddef.c: Enhance test to ensure correct type of
22070         offsetof.
22071         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22072         that we are not fixing at this time.
22073
22074 2010-08-15  Bruno Haible  <bruno@clisp.org>
22075
22076         stpncpy: Allow stpncpy to be defined as a macro.
22077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22078         if it's already correctly declared.
22079         * lib/string.in.h (stpncpy): Undefine before redefining.
22080         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22081
22082 2010-08-14  Bruno Haible  <bruno@clisp.org>
22083
22084         Rename module 'memxfrm' to 'amemxfrm'.
22085         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22086         (amemxfrm): Renamed from memxfrm.
22087         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22088         (amemxfrm): Renamed from memxfrm.
22089         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22090         * NEWS: Mention the change.
22091         * MODULES.html.sh (String handling <string.h>): Update.
22092         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22093         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22094         * lib/unicase/u16-casexfrm.c: Likewise.
22095         * lib/unicase/u32-casexfrm.c: Likewise.
22096         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22097         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22098         * lib/uninorm/u16-normxfrm.c: Likewise.
22099         * lib/uninorm/u32-normxfrm.c: Likewise.
22100         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22101         memxfrm.
22102         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22103         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22104         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22105         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22106         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22107         Suggested by Paul Eggert.
22108
22109 2010-08-14  Bruno Haible  <bruno@clisp.org>
22110
22111         Tests for module 'astrxfrm'.
22112         * modules/astrxfrm-tests: New file.
22113         * tests/test-astrxfrm.c: New file.
22114
22115         New module 'astrxfrm'.
22116         * lib/astrxfrm.h: New file.
22117         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22118         * modules/astrxfrm: New file.
22119
22120 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22121
22122         regex: Tweak doc.
22123         * doc/regex.texi (Overview): Don't mention regex.c.
22124         (GNU Regular Expression Compiling): Likewise.
22125         (Match-end-of-line Operator): Mention 'not_eol'.
22126
22127 2010-08-14  Brian Gough  <bjg@gnu.org>
22128             Bruno Haible  <bruno@clisp.org>
22129
22130         git-merge-changelog: add doc relating to use with bzr and hg.
22131         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22132
22133 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22134
22135         pthread: fix pthread.h creation for srcdir != builddir
22136         * modules/pthread (Makefile.am): Fix the rule to work also in a
22137         non-srcdir build.
22138
22139 2010-08-13  Karl Berry  <karl@gnu.org>
22140
22141         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22142         * doc/posix-*/*: force line break before @url of POSIX
22143         specifications.
22144         Suggested by Werner Lemberg.
22145
22146 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22147
22148         strtod: fix const diagnostic
22149         * lib/strtod.c (strtod): Don't assign const char * to char *,
22150         as this elicits a warning from GCC when warnings are enabled.
22151
22152 2010-08-10  Pádraig Brady <P@draigbrady.com>
22153         and Eric Blake  <eblake@redhat.com>
22154
22155         copy-acl: ignore ENOTSUP on HP-UX
22156         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22157         so that it is available for HP-UX.
22158         * lib/copy-acl.c (qcopy_acl): Use it.
22159         Reported by Patrick M. Callahan.
22160
22161 2010-08-10  Eric Blake  <eblake@redhat.com>
22162
22163         open, chown: relax license
22164         * modules/open (License): Change to LGPLv2+, with consent by all
22165         authors, for use in augeas.
22166         * modules/chown (License): Likewise.
22167         * modules/lchown (Likewise): Likewise.
22168         Requested by Adam Stokes.
22169
22170 2010-08-09  Karl Berry  <karl@gnu.org>
22171
22172         * build-aux/ar-lib: new file, import from Automake.
22173         * config/srclist.txt: autocheck for updates.
22174
22175 2010-08-09  Eric Blake  <eblake@redhat.com>
22176
22177         readlinkat: adjust client modules
22178         * modules/areadlinkat (Depends-on): Use readlinkat, not
22179         symlinkat.
22180         * modules/areadlinkat-with-size (Depends-on): Likewise.
22181
22182         mknod: be more vocal about danger of running tests as root
22183         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22184         root, since that is just asking for problems.
22185         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22186
22187         readlinkat: split into its own module
22188         * modules/symlinkat: Split readlinkat...
22189         * modules/readlinkat: ...into separate module.
22190         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22191         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22192         * lib/symlinkat.c (readlinkat): Move...
22193         * lib/readlinkat.c: ...into new file.
22194         * modules/symlinkat-tests: Split readlinkat test...
22195         * modules/readlinkat-tests: ...into separate module.
22196         * tests/test-symlinkat.c: Split...
22197         * tests/test-readlinkat.c: ...into new file.
22198         * NEWS: Document the split.
22199         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22200         * lib/unistd.in.h (readlinkat): Likewise.
22201         Suggested by Bruno Haible.
22202
22203 2010-08-08  Bruno Haible  <bruno@clisp.org>
22204
22205         memxfrm: Speed up.
22206         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22207         that usually only one call to strxfrm is necessary for each string
22208         part.
22209         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22210
22211 2010-08-07  Karl Berry  <karl@gnu.org>
22212
22213         * doc/posix-headers/limits.texi,
22214         * doc/posix-functions/malloc.texi,
22215         * doc/posix-functions/strsignal.texi: missing @item.
22216         * doc/ld-version-script.texi: spurious leading i.
22217         * doc/regex.texi (Interval Operators): no commas inside @var.
22218
22219 2010-08-01  Bruno Haible  <bruno@clisp.org>
22220
22221         Integrate the regex documentation.
22222         * doc/gnulib.texi: Define 'cn' index.
22223         (Regular expressions): New a chapter that includes regex.texi and
22224         regexprops-generic.texi.
22225         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22226         syntax.
22227
22228         Whitespace cleanup.
22229         * doc/regex.texi: Remove trailing spaces.
22230
22231         Add regex documentation.
22232         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22233         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22234         Written by Kathy A. Hargreaves and Karl Berry.
22235
22236 2010-08-01  Bruno Haible  <bruno@clisp.org>
22237
22238         link: Update documentation.
22239         * doc/posix-functions/link.texi: Update regarding Solaris.
22240
22241 2010-07-31  Bruno Haible  <bruno@clisp.org>
22242
22243         Update modules list.
22244         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22245         (String handling <string.h>): Add memcmp2, memxfrm.
22246         (Container data structures): Add xlist, xsublist, xoset.
22247         (Core language properties): Add alignof, unused-parameter.
22248         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22249         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22250         (Unibyte characters <ctype.h>): New section.
22251         (String handling <string.h>): New section.
22252         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22253         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22254         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22255         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22256         tan, tanh, tanl, y0, y1, yn.
22257         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22258         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22259         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22260         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22261         unlockpt, vdprintf, vdprintf-posix.
22262         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22263         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22264         xconcat-filename.
22265         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22266         getdtablesize, pipe2, pipe2-safer.
22267         (Security): New section.
22268         (Networking functions): Add accept4.
22269         (Signal handling): Add sigpipe.
22270         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22271         mbmemcasecoll.
22272         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22273         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22274         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22275         pipe-filter-ii.
22276         (Misc): Add argp-version-etc, login_tty, parse-duration.
22277
22278 2010-07-31  Bruno Haible  <bruno@clisp.org>
22279
22280         Improve doc in MODULES.html.
22281         * modules/linkat (Description): Add the word "function".
22282         * modules/mkfifo (Description): Likewise.
22283         * modules/mknod (Description): Likewise.
22284         * modules/remove (Description): Likewise.
22285         * modules/renameat (Description): Likewise.
22286         * modules/stat (Description): Likewise.
22287         * modules/symlink (Description): Likewise.
22288         * modules/unlink (Description): Likewise.
22289
22290 2010-07-31  Bruno Haible  <bruno@clisp.org>
22291
22292         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22293         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22294         option --enable/disable-c++ instead of --enable/disable-cxx.
22295         * NEWS: Mention the change.
22296
22297 2010-07-31  Bruno Haible  <bruno@clisp.org>
22298
22299         readlink, areadlink: Relax test a bit.
22300         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22301         alternative to ENOTDIR.
22302         * tests/test-areadlink.h (test_areadlink): Likewise.
22303         Reported by Rainer Tammer.
22304
22305 2010-07-31  Bruno Haible  <bruno@clisp.org>
22306
22307         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22308         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22309         character, perform the search using U_STRCHR.
22310         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22311         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22312         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22313         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22314         Suggested by Paolo Bonzini.
22315
22316 2010-07-31  Bruno Haible  <bruno@clisp.org>
22317
22318         unistr/u*-strstr: Fix dependencies.
22319         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22320         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22321         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22322
22323 2010-07-31  Bruno Haible  <bruno@clisp.org>
22324
22325         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22326         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22327         the beginning of the loop.
22328         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22329         cases in 'switch' statement.
22330
22331         unistr/u8-strchr: Fix several bugs.
22332         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22333         the string. When not found, return NULL, not a pointer near the end.
22334
22335         More tests for unistr/u8-strchr.
22336         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22337         that the function does not read past the first occurrence of the byte
22338         being searched.
22339         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22340         * tests/unistr/test-u16-strchr.c (main): New function.
22341         * tests/unistr/test-u32-strchr.c (main): New function.
22342
22343 2010-07-31  Bruno Haible  <bruno@clisp.org>
22344
22345         posix-modules: Ignore backup files of documentation files.
22346         * posix-modules: grep only through files named *.texi.
22347
22348 2010-07-31  Bruno Haible  <bruno@clisp.org>
22349
22350         symlinkat: Fix documentation.
22351         * doc/posix-functions/readlinkat.texi: Fix module name.
22352
22353 2010-07-31  Bruno Haible  <bruno@clisp.org>
22354
22355         fchownat: Replace also when chown has the trailing slash bug.
22356         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22357         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22358         introduced on 2010-04-10.
22359         Reported by Rainer Tammer.
22360
22361 2010-07-31  Bruno Haible  <bruno@clisp.org>
22362
22363         linkat: Work around AIX 7.1 bug.
22364         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22365         whether linkat handles trailing slash correctly. If not, replace linkat
22366         and define LINKAT_TRAILING_SLASH_BUG.
22367         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22368         check whether (fd1,file1) points to a directory if file1 or file2 ends
22369         in a slash. Code taken from lib/link.c.
22370         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22371         Reported by Rainer Tammer.
22372
22373 2010-07-31  Bruno Haible  <bruno@clisp.org>
22374
22375         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22376         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22377         This disables an xlc optimization that was causing wrong test results.
22378         Reported by Rainer Tammer.
22379
22380 2010-07-31  Bruno Haible  <bruno@clisp.org>
22381
22382         iconv: Work around AIX 6.1..7.1 bug.
22383         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22384         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22385         cross-compiling, guess no on all versions of AIX.
22386         Reported by Rainer Tammer.
22387
22388 2010-07-31  Bruno Haible  <bruno@clisp.org>
22389
22390         readlink: Relax test a bit.
22391         * tests/test-readlink.h (test_readlink): Allow different errno value
22392         when readlink is called with a file name that ends in / and refers to
22393         a file.
22394         Suggested by Eric Blake.
22395         Reported by Rainer Tammer.
22396
22397 2010-07-31  Bruno Haible  <bruno@clisp.org>
22398
22399         copysign: Does not require -lm on glibc systems.
22400         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22401         gl_COMMON_DOUBLE_MATHFUNC.
22402         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22403
22404 2010-07-31  Bruno Haible  <bruno@clisp.org>
22405
22406         duplocale: Work around AIX 7.1 bug.
22407         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22408         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22409         * lib/duplocale.c (rpl_duplocale): Update comment.
22410         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22411         Reported by Rainer Tammer.
22412
22413 2010-07-30  Bruno Haible  <bruno@clisp.org>
22414
22415         dirfd: Avoid link error on AIX 7.1.
22416         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22417         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22418         exist, set REPLACE_DIRFD.
22419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22420         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22421         * doc/posix-functions/dirfd.texi: Update.
22422         Reported by Rainer Tammer.
22423
22424 2010-07-30  Eric Blake  <eblake@redhat.com>
22425
22426         strtod: next round of AIX fixes
22427         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22428         exponent.
22429         * tests/test-strtod.c (main): Enhance tests.
22430         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22431         Reported by Rainer Tammer.
22432
22433         futimens: fix configure check
22434         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22435         Reported by Bruno Haible.
22436
22437 2010-07-30  Bruno Haible  <bruno@clisp.org>
22438
22439         getline: Update regarding AIX.
22440         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22441         Reported by Rainer Tammer.
22442
22443 2010-07-30  Bruno Haible  <bruno@clisp.org>
22444
22445         wcwidth: Drop replacement on AIX 7.
22446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22447         AIX 7.
22448         Reported by Rainer Tammer.
22449
22450 2010-07-30  Bruno Haible  <bruno@clisp.org>
22451
22452         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22453         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22454         a 'char *'.
22455         Reported by Rainer Tammer.
22456
22457 2010-07-30  Bruno Haible  <bruno@clisp.org>
22458
22459         unlink: Update regarding AIX.
22460         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22461         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22462         Reported by Rainer Tammer.
22463
22464 2010-07-30  Bruno Haible  <bruno@clisp.org>
22465
22466         symlink: Update regarding AIX.
22467         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22468         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22469         Reported by Rainer Tammer.
22470
22471 2010-07-30  Bruno Haible  <bruno@clisp.org>
22472
22473         strndup: Update regarding AIX.
22474         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22475         AIX 7.
22476         Reported by Rainer Tammer.
22477
22478 2010-07-30  Bruno Haible  <bruno@clisp.org>
22479
22480         stat: Update regarding AIX.
22481         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22482         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22483         Reported by Rainer Tammer.
22484
22485 2010-07-30  Bruno Haible  <bruno@clisp.org>
22486
22487         truncl: Fix autoconf test.
22488         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22489         whether truncl works.
22490         Reported by Rainer Tammer.
22491
22492 2010-07-30  Bruno Haible  <bruno@clisp.org>
22493
22494         round: Update regarding AIX.
22495         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22496         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22497         Reported by Rainer Tammer.
22498
22499 2010-07-30  Bruno Haible  <bruno@clisp.org>
22500
22501         rename: Update regarding AIX.
22502         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22503         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22504         Reported by Rainer Tammer.
22505
22506 2010-07-30  Bruno Haible  <bruno@clisp.org>
22507
22508         printf.m4: Update regarding AIX.
22509         * m4/printf.m4: Update comments regarding AIX.
22510         Reported by Rainer Tammer.
22511
22512 2010-07-30  Bruno Haible  <bruno@clisp.org>
22513
22514         iconv: Update regarding AIX.
22515         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22516         AIX 7.
22517         Reported by Rainer Tammer.
22518
22519 2010-07-30  Bruno Haible  <bruno@clisp.org>
22520
22521         getopt: Update regarding AIX.
22522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22523         no on AIX.
22524         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22525         Reported by Rainer Tammer.
22526
22527 2010-07-30  Bruno Haible  <bruno@clisp.org>
22528
22529         ldexpl; Update regarding AIX.
22530         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22531         on AIX 7.
22532         Reported by Rainer Tammer.
22533
22534 2010-07-30  Bruno Haible  <bruno@clisp.org>
22535
22536         frexpl: Update regarding AIX.
22537         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22538         on AIX 7.
22539         Reported by Rainer Tammer.
22540
22541 2010-07-30  Bruno Haible  <bruno@clisp.org>
22542
22543         open, fopen: Update regarding AIX.
22544         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22545         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22546         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22547         * doc/posix-functions/fopen.texi: Likewise.
22548         Reported by Rainer Tammer.
22549
22550 2010-07-30  Bruno Haible  <bruno@clisp.org>
22551
22552         chown: Update doc regarding AIX.
22553         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22554         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22555         Reported by Rainer Tammer.
22556
22557 2010-07-30  Eric Blake  <eblake@redhat.com>
22558
22559         strtod: fix bug in replacement function on AIX
22560         * lib/strtod.c (strtod): Special case broken "0x" parse in
22561         underlying strtod.
22562         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22563         * doc/posix-functions/strtod.texi (strtod): Likewise.
22564         Reported by Rainer Tammer.
22565
22566 2010-07-30  Bruno Haible  <bruno@clisp.org>
22567
22568         mbrlen: Fix cross-compilation guess for AIX.
22569         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22570         guess. Leftover from 2008-12-22.
22571
22572 2010-07-30  Bruno Haible  <bruno@clisp.org>
22573
22574         mbrtowc: Fix cross-compilation guess for AIX.
22575         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22576         guess. Leftover from 2008-12-21.
22577
22578 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22579
22580         init.sh: work around trap limitation of some shells
22581         * tests/init.sh (setup_): Move exit trap outside of shell function.
22582
22583 2010-07-29  Eric Blake  <eblake@redhat.com>
22584
22585         strtod: aid debugging
22586         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22587         understanding why strtod is rejected.
22588
22589 2010-07-28  Bruno Haible  <bruno@clisp.org>
22590
22591         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22592         * lib/unistr/u8-chr.c: Include <string.h>.
22593         * tests/unistr/test-u8-chr.c: Likewise.
22594         * tests/unistr/test-u16-chr.c: Likewise.
22595         * tests/unistr/test-u32-chr.c: Likewise.
22596         * tests/unistr/test-u8-strchr.c: Likewise.
22597         * tests/unistr/test-u16-strchr.c: Likewise.
22598         * tests/unistr/test-u32-strchr.c: Likewise.
22599         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22600         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22601         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22602         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22603
22604 2010-07-28  Bruno Haible  <bruno@clisp.org>
22605
22606         Use spaces for indentation, not tabs.
22607         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22608
22609 2010-07-27  Bruno Haible  <bruno@clisp.org>
22610
22611         mbspcasecmp: Fix function specification.
22612         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22613         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22614         Reported by Eric Blake <eblake@redhat.com>.
22615
22616 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22617
22618         timespec: use cast and not conditional, as truncation isn't possible
22619         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22620         instead of a conditional.  Comment about the situation in more detail.
22621         This undoes most of the 2009-10-29 patch.
22622
22623 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22624
22625         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22626         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22627         * lib/unistr/u8-strchr.c: Likewise.
22628         * modules/unistr/u8-chr: Depend on memchr.
22629
22630         unistr/u*-strchr: add tests
22631         * modules/unistr/u8-strchr-tests: New file.
22632         * modules/unistr/u16-strchr-tests: New file.
22633         * modules/unistr/u32-strchr-tests: New file.
22634         * tests/unistr/test-strchr.h: New file.
22635         * tests/unistr/test-u8-strchr.c: New file.
22636         * tests/unistr/test-u16-strchr.c: New file.
22637         * tests/unistr/test-u32-strchr.c: New file.
22638
22639         unistr/u*-chr: test multibyte sequences more
22640         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22641         test vector.
22642         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22643         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22644         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22645
22646         unistr/u*-chr: test multibyte sequences
22647         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22648
22649         unistr/u*-chr: prepare for multibyte tests
22650         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22651         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22652         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22653         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22654         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22655         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22656
22657 2010-07-18  Bruno Haible  <bruno@clisp.org>
22658
22659         unistr/u8-strchr: Optimize non-ASCII argument case.
22660         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22661         because the first byte often matches anyway.
22662         Reported by Pádraig Brady <P@draigbrady.com>.
22663
22664 2010-07-15  Karl Berry  <karl@gnu.org>
22665
22666         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22667
22668 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22669
22670         getcwd: on Solaris, work better if ancestors are inaccessible
22671         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22672         buffer and size, try again with a large buffer.  This works better
22673         on Solaris, since its getcwd succeeds even if the path to the root
22674         is inaccessible, and this is helpful in common cases such as .zfs
22675         hidden directories.  Problem reported by J Chapman Flack in
22676         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22677         Use system getcwd if it's declared, not merely if it's partly
22678         working; use the partly-working test only to avoid needless effort
22679         if the system getcwd fails.
22680         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22681         comment that was already obsolete and is now even more obsolete.
22682         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22683         now might call strdup.
22684
22685 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22686
22687         pthread: Add enough so that coreutils/src/sort.c compiles.
22688         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22689         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22690         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22691         Include <sys/types.h>, in case it defines pthread_t.
22692         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22693         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22694         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22695         (pthread_rwlockattr_t, pthread_spinlock_t):
22696         New typedefs, if HAVE_PTHREAD_T is not defined.
22697         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22698         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22699         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22700         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22701         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22702         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22703         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22704         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22705         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22706         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22707         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22708         New macros.
22709         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22710         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22711         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22712         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22713         (pthread_spin_unlock): New dummy functions.
22714         (pthread_create): Return EAGAIN; don't set errno.
22715         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22716         require AC_C_INLINE.
22717         * modules/pthread (Depends-on): Add sched, time.
22718         (pthread.h): Use AM_V_GEN.
22719
22720 2010-07-13  Bruno Haible  <bruno@clisp.org>
22721
22722         striconveh: Don't malloc memory if the result buffer is sufficient.
22723         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22724         buffer if its size is sufficient.
22725         Reported by Ludovic Courtès <ludo@gnu.org>.
22726
22727 2010-07-13  Bruno Haible  <bruno@clisp.org>
22728
22729         strtod: Add safety check.
22730         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22731
22732 2010-07-12  Bruno Haible  <bruno@clisp.org>
22733
22734         Unify tests that set gl_cv_func_ldexpl_no_libm.
22735         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22736         gl_FUNC_LDEXPL.
22737         (gl_FUNC_LDEXPL): Invoke it.
22738         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22739
22740 2010-07-12  Bruno Haible  <bruno@clisp.org>
22741
22742         Unify tests that set gl_cv_func_ldexp_no_libm.
22743         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22744         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22745         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22746         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22747         * modules/strtod (Files): Add m4/ldexp.m4.
22748
22749 2010-07-12  Bruno Haible  <bruno@clisp.org>
22750
22751         Unify tests that set gl_cv_func_frexpl_no_libm.
22752         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22753         gl_FUNC_FREXPL_NO_LIBM.
22754         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22755         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22756
22757 2010-07-12  Bruno Haible  <bruno@clisp.org>
22758
22759         Unify tests that set gl_cv_func_frexp_no_libm.
22760         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22761         gl_FUNC_FREXP_NO_LIBM.
22762         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22763         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22764
22765 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22766
22767         memcoll: clarify sizes versus lengths, document better, and tweak perf
22768         * lib/memcoll.c (strcoll_loop, memcoll0):
22769         Improve quality of descriptive comments.  Name variables
22770         consistently as to whether they are lengths (which do not include
22771         terminating null) versus sizes (which do).
22772         * lib/xmemcoll.c (xmemcoll0): Likewise.
22773         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22774         returned when s1size == 0; this is easier to compile and saves
22775         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22776
22777 2010-07-12  Bruno Haible  <bruno@clisp.org>
22778
22779         Tests for module '_Exit'.
22780         * modules/_Exit-tests: New file.
22781         * tests/test-_Exit.sh: New file.
22782         * tests/test-_Exit.c: New file.
22783
22784         New module '_Exit'.
22785         * lib/stdlib.in.h (__attribute__): New macro.
22786         (_Exit): New declaration.
22787         * lib/_Exit.c: New file.
22788         * m4/_Exit.m4: New file.
22789         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22790         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22791         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22792         * modules/_Exit: New file.
22793         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22794         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22795
22796 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22797
22798         strtod: make it more-accurate typically, and don't require libm
22799         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22800         Include limits.h.  Don't include string.h.
22801         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22802         (locale_isspace): New function, so that no casts are needed to
22803         check whether *s is a space.
22804         (ldexp): Provide an unused dummy if not available.
22805         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22806         (strtod): Use them.  This implementation prefers to use the
22807         underlying strtod if available, falling back on our own code
22808         only to fix known bugs.  This is more likely to produce an
22809         accurate result.  Also, it avoids the use of libm functions.
22810         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22811         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22812         was absent, but it caused a test failure with coreutils.
22813         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22814         with libm.
22815         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22816         * modules/strtod-tests (Makefile.am): Likewise.
22817
22818 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22819             Bruno Haible  <bruno@clisp.org>
22820
22821         unistr/u8-strchr: Optimize ASCII argument case.
22822         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22823
22824 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22825
22826         (x)memcoll: minor tweaks
22827         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22828         is after the type that it qualifies.
22829         (memcoll0): Likewise.
22830         * lib/memcoll.h (memcoll0): Likewise.
22831         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22832         * lib/xmemcoll.h (xmemcoll0): Likewise.
22833         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22834         differs from memcoll in that the NUL byte is part of the argument.
22835         Omit the abort-checks, as performance is a real issue here.  Plus,
22836         the checks were wrong anyway (an off-by-one error).  Omit local
22837         variable 'diff', as it's a bit clearer that way.
22838         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22839         no longer needed.
22840
22841 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22842
22843         (x)memcoll: speedup when input is known to be NUL delimited
22844         * lib/memcoll.c: Include stdlib.
22845         (memcoll0): New function.
22846         (strcoll_loop): New function, refactored for use in both memcoll
22847         and memcoll0.
22848         * lib/memcoll.h (memcoll0): Add prototype.
22849         * lib/xmemcoll.c (xmemcoll0): New function.
22850         (collate_error): New function, refactored for use in both xmemcoll
22851         and xmemcoll0.
22852         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22853         * m4/memcoll.m4: add inline invocation.
22854
22855 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22856
22857         * build-aux/bootstrap: Remove any local translations
22858         from the translation project synchronization directory,
22859         so that local only translations are not distributed.
22860
22861 2010-07-04  Bruno Haible  <bruno@clisp.org>
22862
22863         fsusage: Clarify which code applies to which platforms.
22864         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22865         platform.
22866         * lib/fsusage.c (get_fs_usage): Likewise.
22867
22868 2010-07-04  Bruno Haible  <bruno@clisp.org>
22869
22870         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22871         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22872         Reported by Martin Lambers <marlam@marlam.de>.
22873
22874 2010-07-04  Jim Meyering  <meyering@redhat.com>
22875
22876         hash: once again explicitly disallow insertion of NULL
22877         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22878         inserting a NULL pointer cannot work with these functions.
22879         Add a comment with details.
22880         This reverts part of the 2010-07-01 commit, 5bef1a35
22881         "hash: extend module to deal with non-pointer keys".
22882
22883 2010-07-01  Bruno Haible  <bruno@clisp.org>
22884
22885         stdbool: Update doc.
22886         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22887         Info from Christian Weisgerber <naddy@mips.inka.de>.
22888
22889 2010-07-01  Jim Meyering  <meyering@redhat.com>
22890
22891         hash: extend module to deal with non-pointer keys
22892         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22893         but that allows insertion of non-pointer entries.
22894         Do not disallow an ENTRY value of NULL.
22895         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22896         * lib/hash.h (hash_insert0): Declare.
22897
22898 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22899
22900         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22901         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22902         not present (i.e. with autoconf 2.59 and when using gettextize, not
22903         gnulib), require AC_GNU_SOURCE instead.
22904
22905 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22906
22907         idpriv-drop: Fix tests.
22908         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22909         not to the test-idpriv-droptemp program.
22910
22911 2010-06-29  Bruno Haible  <bruno@clisp.org>
22912
22913         string: Fix syntax error with g++ 2.96.
22914         * lib/string.in.h (__pure__): Remove definition.
22915         (_GL_ATTRIBUTE_PURE): New macro.
22916         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22917         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22918         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22919
22920 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22921
22922         unitypes: Fix bug introduced on 2010-05-18.
22923         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22924
22925 2010-06-22  Eric Blake  <eblake@redhat.com>
22926
22927         memmem: slight optimization
22928         * lib/str-two-way.h (critical_factorization): Update comments.
22929         Reduce work during factorization phase.
22930         Reported by Carlos Bueno <carlos@bueno.org>.
22931
22932 2010-06-21  Bruno Haible  <bruno@clisp.org>
22933
22934         Fix HAVE_CALLOC_POSIX misnomer.
22935         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22936         !HAVE_CALLOC_POSIX.
22937         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22938         HAVE_CALLOC_POSIX.
22939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22940         instead of HAVE_CALLOC_POSIX.
22941         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22942         HAVE_CALLOC_POSIX.
22943
22944         Use modern idiom for calloc() replacement.
22945         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22946         AC_FUNC_CALLOC.
22947         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22948         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22949         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22950         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22951         (gl_REPLACE_CALLOC): New macro.
22952
22953 2010-06-21  Bruno Haible  <bruno@clisp.org>
22954
22955         Fix HAVE_REALLOC_POSIX misnomer.
22956         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22957         !HAVE_REALLOC_POSIX.
22958         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22959         HAVE_REALLOC_POSIX.
22960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22961         instead of HAVE_REALLOC_POSIX.
22962         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22963         HAVE_REALLOC_POSIX.
22964
22965         Use modern idiom for realloc() replacement.
22966         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22967         AC_FUNC_REALLOC.
22968         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22969         Autoconf's AC_FUNC_REALLOC.
22970         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22971         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22972         (gl_REPLACE_REALLOC): New macro.
22973         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22974
22975 2010-06-21  Bruno Haible  <bruno@clisp.org>
22976
22977         Fix HAVE_MALLOC_POSIX misnomer.
22978         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22979         !HAVE_MALLOC_POSIX.
22980         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22981         HAVE_MALLOC_POSIX.
22982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22983         instead of HAVE_MALLOC_POSIX.
22984         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22985         HAVE_MALLOC_POSIX.
22986
22987         Use modern idiom for malloc() replacement.
22988         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22989         AC_FUNC_MALLOC.
22990         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22991         Autoconf's AC_FUNC_MALLOC.
22992         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22993         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22994         (gl_REPLACE_MALLOC): New macro.
22995         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22996
22997 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22998
22999         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23000         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23001         This macro takes 3 arguments, not 4.
23002
23003 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23004
23005         ipv6: fix detection under mingw
23006         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23007         in6_addr.
23008
23009 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23010
23011         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23012         that strtod() works when cross-compiling to a glibc version known
23013         to work.
23014
23015 2010-06-15  Bruno Haible  <bruno@clisp.org>
23016
23017         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23018
23019 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23020
23021         select: Correct timeout.
23022         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23023
23024 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23025
23026         git-version-gen: init shell var to avoid env var influence
23027         * build-aux/git-version-gen (v): Init shell var to empty.
23028
23029 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23030
23031         priv-set: Don't assume that priv.h exists merely because getppriv does.
23032         See Jan Andersen's bug report about AIX 5L in
23033         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23034         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23035         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23036         * lib/priv-set.h: Likewise.
23037         * tests/test-priv-set.c: Likewise.
23038
23039 2010-06-13  Bruno Haible  <bruno@clisp.org>
23040
23041         relocatable: Make it easier to test whether to install wrappers.
23042         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23043         RELOCATABLE_VIA_WRAPPER.
23044
23045 2010-06-13  Bruno Haible  <bruno@clisp.org>
23046
23047         gnulib-tool: Display specified modules and dependencies differently.
23048         * gnulib-tool (func_show_module_list): New function.
23049         (func_import, func_create_testdir): Invoke it.
23050         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23051
23052 2010-06-13  Bruno Haible  <bruno@clisp.org>
23053
23054         gnulib-tool: Align code of func_import and func_create_testdir.
23055         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23056         specified_modules.
23057
23058 2010-06-12  Jim Meyering  <meyering@redhat.com>
23059
23060         test-inttostr: avoid spurious failure on Solaris 9
23061         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23062         to accept "%ju".  Reported by Bruno Haible.
23063
23064 2010-06-11  Jim Meyering  <meyering@redhat.com>
23065
23066         test-sys_socket: mark variables as used more readably
23067         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23068         as "used" explicitly via (void) statement casts.  This is more
23069         readable than using them in an artificial return expression.
23070         Suggestion from Bruno Haible.
23071
23072 2010-06-11  Bruno Haible  <bruno@clisp.org>
23073
23074         Avoid some more warnings from "gcc -Wwrite-strings".
23075         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23076         to 'const char *'.
23077         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23078         * tests/test-c-strcasestr.c (main): Likewise.
23079         * tests/test-mbscasestr1.c (main): Likewise.
23080         * tests/test-mbscasestr2.c (main): Likewise.
23081         * tests/test-memmem.c (main): Likewise.
23082         * tests/test-strstr.c (main): Likewise.
23083         * tests/test-strcasestr.c (main): Likewise.
23084
23085 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23086
23087         init.sh: change framework_failure_ to fail with status 99, not 1
23088         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23089         automake's parallel-tests rule that this is an unexpected failure,
23090         even if the test is listed in XFAIL_TESTS.
23091
23092 2010-06-11  Jim Meyering  <meyering@redhat.com>
23093
23094         test-inttostr: avoid warnings about 4-6KB literal strings
23095         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23096         Include "macros.h", for its definition of ASSERT.
23097         (CK): s/assert/ASSERT/
23098         * modules/inttostr-tests (Files): Add macros.h.
23099
23100         init.sh: don't use $ME_ or skip_ before they are defined
23101         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23102         their first uses.  Also hoist their companions: warn_, fail_,
23103         framework_failure_, $stderr_fileno.  Prompted by a patch from
23104         Stefano Lattarini.
23105
23106         test-sys_socket: avoid set-but-not-used warnings from gcc
23107         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23108         avoid warning about set-but-not-used variables.
23109
23110         test-xvasprintf: avoid 'const' discard warnings
23111         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23112         "const" when assigning from literal strings.
23113         (test_xasprintf): Add "void" in function argument list to placate
23114         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23115
23116         tests: avoid compilation warnings in argmatch and exclude tests...
23117         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23118         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23119         Since it always exits, declare with the "noreturn" attribute.
23120         * tests/test-argmatch.c: Likewise.
23121
23122         tests: avoid 'const' discard warnings in mbsstr tests
23123         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23124         * tests/test-mbsstr2.c (main): Likewise.
23125
23126         test-verify: avoid warning from gcc's -Wmissing-declarations
23127         * tests/test-verify.c (function): Declare to be static.
23128
23129         test-inttostr.c: include <string.h> for use of strcmp
23130         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23131
23132         test-linkat: avoid failed assertion on "other" architectures
23133         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23134         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23135         sparc: https://bugs.launchpad.net/bugs/591968
23136
23137 2010-06-11  Jim Meyering  <meyering@redhat.com>
23138
23139         printf.m4: avoid autoconf's "Expanded Before Required" warning
23140         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23141         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23142         autoconf warning.
23143
23144 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23145
23146         Replacement header templates are now named with ".in", not "_".
23147         * doc/gnulib-intro.texi: Correct.
23148
23149 2010-06-10  Jim Meyering  <meyering@redhat.com>
23150
23151         inttostr-tests: depend on snprintf, not snprintf-posix
23152         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23153         snprintf-posix, to avoid this aclocal failure:
23154           missing file gnulib-tests/vasnprintf.c
23155           configure.ac:45: error: expected source file, required through \
23156           AC_LIBSOURCES, not found
23157
23158 2010-06-10  Jim Meyering  <meyering@redhat.com>
23159
23160         inttostr: add a new function, inttostr, and tests
23161         The namesake function was not available.  The existence of the
23162         template file, inttostr.c makes its addition nontrivial.
23163         * lib/anytostr.c: Rename from inttostr.c.
23164         (anytostr): Rename from inttostr.
23165         * lib/inttostr.c: New file.
23166         * modules/inttostr (Files): Add anytostr.c.
23167         (Makefile.am): Set lib_SOURCES instead of ...
23168         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23169         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23170         * lib/offtostr.c: Likewise.
23171         * lib/uinttostr.c: Likewise.
23172         * lib/umaxtostr.c: Likewise.
23173         * modules/inttostr-tests: New file.
23174         * tests/test-inttostr.c: New file.  Test these functions.
23175
23176 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23177             Bruno Haible  <bruno@clisp.org>
23178
23179         Add "Extending Gnulib" chapter to manual.
23180         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23181         chapter.
23182         (Extending Gnulib): New chapter.
23183         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23184         chapter.
23185
23186 2010-06-09  Bruno Haible  <bruno@clisp.org>
23187
23188         Avoid relocwrapper link errors due to gnulib replacement functions.
23189         * lib/areadlink.c: Use the system's malloc, realloc functions.
23190         (areadlink): Set errno to ENOMEM explicitly.
23191         * modules/areadlink (Depends-on): Remove malloc-posix.
23192         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23193
23194 2010-06-09  Bruno Haible  <bruno@clisp.org>
23195
23196         Avoid relocwrapper link errors due to gnulib replacement functions.
23197         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23198         * lib/malloca.c: Likewise.
23199         * lib/relocatable.c: Likewise.
23200         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23201         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23202         * lib/setenv.c: Use the system's malloc, realloc functions.
23203         * lib/strerror.c: Use the system's sprintf function.
23204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23205
23206 2010-06-04  Bruno Haible  <bruno@clisp.org>
23207
23208         Prefer documented low-level autoconf macro names.
23209         * m4/lib-link.m4: Use m4_translit instead of translit.
23210         * m4/environ.m4: Likewise.
23211         * m4/mathfunc.m4: Likewise.
23212         * m4/onceonly.m4: Likewise.
23213         * m4/stdint.m4: Likewise.
23214         Suggested by Eric Blake.
23215
23216 2010-06-04  Martin Lambers  <marlam@marlam.de>
23217             Bruno Haible  <bruno@clisp.org>
23218
23219         havelib: Allow library names with '+' characters.
23220         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23221         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23222
23223 2010-06-09  Bruno Haible  <bruno@clisp.org>
23224
23225         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23226         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23227         realloc failed.
23228
23229 2010-06-08  Peter Simons  <simons@cryp.to>
23230
23231         maint.mk: make the news-check rule more configurable
23232         * top/maint.mk (news-check-lines-spec): New variable.
23233         (news-check): Use "sed -n 1,10p" in place of "head".
23234
23235 2010-06-07  Jim Meyering  <meyering@redhat.com>
23236
23237         do-release-commit-and-tag: fix typo in --help
23238         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23239
23240         regex: avoid new dead-code warning with gcc-4.6.0
23241         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23242         if-block containing a while-loop.  It's been unused for at least
23243         5 years.
23244
23245 2010-06-05  Bruno Haible  <bruno@clisp.org>
23246
23247         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23248         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23249
23250 2010-06-04  Bruno Haible  <bruno@clisp.org>
23251
23252         Update to GNU gettext 0.18.1.
23253         * modules/gettext (configure.ac): Require gettext infrastructure from
23254         version 0.18.1.
23255
23256 2010-06-03  Bruno Haible  <bruno@clisp.org>
23257
23258         Don't use AC_LIBOBJ with file names in subdirectories.
23259         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23260         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23261         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23262         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23263         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23264         gl_LIBUNISTRING_LIBSOURCE.
23265         (Makefile.am): Augment lib_SOURCES here, conditionally.
23266         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23267
23268 2010-06-03  Bruno Haible  <bruno@clisp.org>
23269
23270         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23271         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23272         expansion does not end with a newline.
23273         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23274         unnecessary newline.
23275
23276 2010-06-03  Bruno Haible  <bruno@clisp.org>
23277
23278         Reduce dependencies.
23279         * tests/test-quotearg.h: New file, extracted from
23280         tests/test-quotearg.c.
23281         * tests/test-quotearg-simple.c: New file, extracted from
23282         tests/test-quotearg.c.
23283         * tests/test-quotearg.c: Don't include <ctype.h>.
23284         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23285         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23286         use_quote_double_quotes, use_quotearg_colon): Moved to
23287         tests/test-quotearg.h.
23288         (results_g, flag_results, custom_quotes, custom_results): Moved
23289         to tests/test-quotearg-simple.c.
23290         (main): Moved the part that does not depend on gettext to
23291         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23292         performed.
23293         * modules/quotearg-simple: New file.
23294         * modules/quotearg-simple-tests: New file.
23295         * modules/quotearg (Depends-on): Add quotearg-simple.
23296         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23297         (Files): Add tests/test-quotearg.h.
23298         Reported by Paolo Bonzini.
23299
23300 2010-06-03  Bruno Haible  <bruno@clisp.org>
23301
23302         Reduce dependencies.
23303         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23304
23305 2010-06-03  Bruno Haible  <bruno@clisp.org>
23306
23307         time: Undefine more broken macros.
23308         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23309         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23310         Reported by Eric Blake.
23311
23312 2010-06-03  Bruno Haible  <bruno@clisp.org>
23313
23314         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23315         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23316         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23317         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23318         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23319         Reported by Ludovic Courtès <ludo@gnu.org>.
23320
23321 2010-06-02  Eric Blake  <eblake@redhat.com>
23322
23323         time: work with mingw + pthreads-win32 library
23324         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23325         if timespec is defined only in pthread.h.
23326         * modules/time (Makefile.am): Substitute it.
23327         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23328         <pthread.h>, when needed.
23329         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23330         from the library.
23331
23332 2010-05-31  Bruno Haible  <bruno@clisp.org>
23333
23334         Avoid expanding two macros in the wrong order.
23335         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23336         gl_LIBUNISTRING if it is defined.
23337         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23338         autoconf >= 2.64.
23339         Reported by Ludovic Courtès <ludo@gnu.org>.
23340
23341 2010-05-27  Jim Meyering  <meyering@redhat.com>
23342
23343         maint.mk: also prohibit "#undef" of always-defined symbols
23344         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23345         Allow more than one space before the symbol name.
23346         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23347         the regexp uses alternation.
23348
23349 2010-05-26  Eric Blake  <eblake@redhat.com>
23350
23351         maint.mk: avoid echo -e
23352         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23353         Convert all uses of echo -* to printf.
23354         Reported by Matthias Bolte.
23355
23356 2010-05-25  Bruno Haible  <bruno@clisp.org>
23357
23358         Update to GNU gettext 0.18, part 2.
23359         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23360         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23361
23362 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23363
23364         Add missing include in test-pwrite.c.
23365         * tests/test-pwrite.c: Include string.h, for strcmp.
23366
23367 2010-05-24  Bruno Haible  <bruno@clisp.org>
23368
23369         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23370
23371 2010-05-24  Bruno Haible  <bruno@clisp.org>
23372
23373         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23374         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23375         iconveh_error argument.
23376         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23377         U_STRCONV_TO_LOCALE.
23378         * lib/unistr/u16-strcoll.c: Likewise.
23379         * lib/unistr/u32-strcoll.c: Likewise.
23380         * modules/unistr/u8-strcoll (Depends-on): Add
23381         uniconv/u8-strconv-to-enc, localcharset. Remove
23382         uniconv/u8-strconv-to-locale.
23383         (configure.ac): Bump version number.
23384         * modules/unistr/u16-strcoll (Depends-on): Add
23385         uniconv/u16-strconv-to-enc, localcharset. Remove
23386         uniconv/u16-strconv-to-locale.
23387         (configure.ac): Bump version number.
23388         * modules/unistr/u32-strcoll (Depends-on): Add
23389         uniconv/u32-strconv-to-enc, localcharset. Remove
23390         uniconv/u32-strconv-to-locale.
23391         (configure.ac): Bump version number.
23392
23393 2010-05-24  Bruno Haible  <bruno@clisp.org>
23394
23395         Avoid a test failure on NetBSD 5.0.
23396         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23397         an iconv() bug.
23398
23399 2010-05-24  Bruno Haible  <bruno@clisp.org>
23400
23401         Adjust #include directive style.
23402         * modules/regex (Includes): Recommend to write <regex.h>.
23403
23404 2010-05-24  Bruno Haible  <bruno@clisp.org>
23405
23406         regex: Don't require alloca.
23407         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23408         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23409         only inside if (0).
23410
23411 2010-05-23  Jim Meyering  <meyering@redhat.com>
23412
23413         test-renameat.c: include <sys/stat.h>
23414         * tests/test-renameat.c: Include <sys/stat.h>; required for
23415         definition of S_IS* macros.
23416
23417 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23418
23419         Update maintainer documentation for 'relocatable-prog' module.
23420         * doc/relocatable-maint.texi: Update.
23421         Comments by Bruno Haible.
23422
23423 2010-05-23  Bruno Haible  <bruno@clisp.org>
23424
23425         git-merge-changelog: Enable --split-merged-entry by default.
23426         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23427         (usage): Don't mention this option any more.
23428         Reported by Ralf Wildenhues.
23429
23430 2010-05-23  Jim Meyering  <meyering@redhat.com>
23431
23432         test-pwrite: do not leave behind a test file named "out"
23433         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23434         The trivial-looking use of init.sh is really necessary.
23435         It ensures that the temporary file, "out", is created in
23436         a temporary directory, and removed upon termination.
23437         * tests/test-pwrite.sh: Re-add file.
23438         * modules/pwrite-tests: Reference it.
23439
23440 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23441
23442         Fix output redirection buglet in init.sh.
23443         * tests/init.sh: Fix redirection of stderr.
23444
23445 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23446
23447         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23448
23449 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23450
23451         * modules/valgrind-tests: New file.
23452         * m4/valgrind-tests.m4: New file.
23453         * doc/valgrind-tests.texi: New file.
23454         * doc/gnulib.texi (Running self-tests under valgrind): New
23455         section.
23456
23457 2010-05-19  Bruno Haible  <bruno@clisp.org>
23458
23459         Clean up dead code in recent commit.
23460         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23461         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23462         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23463         Suggested by Paolo Bonzini.
23464
23465 2010-05-19  Bruno Haible  <bruno@clisp.org>
23466
23467         Avoid valgrind error reports from libunistring.
23468         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23469         * modules/libunistring (Files): Add it.
23470         * modules/libunistring-optional (Files): Likewise.
23471
23472 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23473             Bruno Haible  <bruno@clisp.org>
23474
23475         New module 'libunistring-optional'.
23476         * modules/libunistring-optional: New file.
23477         * m4/libunistring-base.m4: New file.
23478         * m4/libunistring-optional.m4: New file.
23479         * lib/unicase.in.h: Renamed from lib/unicase.h.
23480         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23481         * lib/unictype.in.h: Renamed from lib/unictype.h.
23482         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23483         * lib/uniname.in.h: Renamed from lib/uniname.h.
23484         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23485         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23486         * lib/unistr.in.h: Renamed from lib/unistr.h.
23487         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23488         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23489         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23490         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23491         gl_LIBUNISTRING. If the library was found, determine the installed
23492         version and set LIBUNISTRING_VERSION.
23493         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23494         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23495         handle a configuration option --with-included-libunistring.
23496         * modules/libunistring (Files): Add m4/absolute-header.m4.
23497         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23498         Add m4/libunistring-base.m4.
23499         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23500         (Makefile.am): Build unicase.h from unicase.in.h.
23501         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23502         Add m4/libunistring-base.m4.
23503         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23504         (Makefile.am): Build uniconv.h from uniconv.in.h.
23505         * modules/unictype/base (Files): Use unictype.in.h instead of
23506         unictype.h. Add m4/libunistring-base.m4.
23507         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23508         (Makefile.am): Build unictype.h from unictype.in.h.
23509         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23510         Add m4/libunistring-base.m4.
23511         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23512         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23513         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23514         Add m4/libunistring-base.m4.
23515         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23516         (Makefile.am): Build uniname.h from uniname.in.h.
23517         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23518         Add m4/libunistring-base.m4.
23519         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23520         (Makefile.am): Build uninorm.h from uninorm.in.h.
23521         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23522         unistdio.h. Add m4/libunistring-base.m4.
23523         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23524         (Makefile.am): Build unistdio.h from unistdio.in.h.
23525         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23526         Add m4/libunistring-base.m4.
23527         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23528         (Makefile.am): Build unistr.h from unistr.in.h.
23529         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23530         Add m4/libunistring-base.m4.
23531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23532         (Makefile.am): Build unitypes.h from unitypes.in.h.
23533         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23534         Add m4/libunistring-base.m4.
23535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23536         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23537         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23538         uniwidth.h. Add m4/libunistring-base.m4.
23539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23540         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23541         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23542         instead of augmenting lib_SOURCES.
23543         * modules/unicase/empty-suffix-context: Likewise.
23544         * modules/unicase/locale-language: Likewise.
23545         * modules/unicase/tolower: Likewise.
23546         * modules/unicase/totitle: Likewise.
23547         * modules/unicase/toupper: Likewise.
23548         * modules/unicase/u8-casecmp: Likewise.
23549         * modules/unicase/u8-casecoll: Likewise.
23550         * modules/unicase/u8-casefold: Likewise.
23551         * modules/unicase/u8-casexfrm: Likewise.
23552         * modules/unicase/u8-ct-casefold: Likewise.
23553         * modules/unicase/u8-ct-tolower: Likewise.
23554         * modules/unicase/u8-ct-totitle: Likewise.
23555         * modules/unicase/u8-ct-toupper: Likewise.
23556         * modules/unicase/u8-is-cased: Likewise.
23557         * modules/unicase/u8-is-casefolded: Likewise.
23558         * modules/unicase/u8-is-lowercase: Likewise.
23559         * modules/unicase/u8-is-titlecase: Likewise.
23560         * modules/unicase/u8-is-uppercase: Likewise.
23561         * modules/unicase/u8-prefix-context: Likewise.
23562         * modules/unicase/u8-suffix-context: Likewise.
23563         * modules/unicase/u8-tolower: Likewise.
23564         * modules/unicase/u8-totitle: Likewise.
23565         * modules/unicase/u8-toupper: Likewise.
23566         * modules/unicase/u16-casecmp: Likewise.
23567         * modules/unicase/u16-casecoll: Likewise.
23568         * modules/unicase/u16-casefold: Likewise.
23569         * modules/unicase/u16-casexfrm: Likewise.
23570         * modules/unicase/u16-ct-casefold: Likewise.
23571         * modules/unicase/u16-ct-tolower: Likewise.
23572         * modules/unicase/u16-ct-totitle: Likewise.
23573         * modules/unicase/u16-ct-toupper: Likewise.
23574         * modules/unicase/u16-is-cased: Likewise.
23575         * modules/unicase/u16-is-casefolded: Likewise.
23576         * modules/unicase/u16-is-lowercase: Likewise.
23577         * modules/unicase/u16-is-titlecase: Likewise.
23578         * modules/unicase/u16-is-uppercase: Likewise.
23579         * modules/unicase/u16-prefix-context: Likewise.
23580         * modules/unicase/u16-suffix-context: Likewise.
23581         * modules/unicase/u16-tolower: Likewise.
23582         * modules/unicase/u16-totitle: Likewise.
23583         * modules/unicase/u16-toupper: Likewise.
23584         * modules/unicase/u32-casecmp: Likewise.
23585         * modules/unicase/u32-casecoll: Likewise.
23586         * modules/unicase/u32-casefold: Likewise.
23587         * modules/unicase/u32-casexfrm: Likewise.
23588         * modules/unicase/u32-ct-casefold: Likewise.
23589         * modules/unicase/u32-ct-tolower: Likewise.
23590         * modules/unicase/u32-ct-totitle: Likewise.
23591         * modules/unicase/u32-ct-toupper: Likewise.
23592         * modules/unicase/u32-is-cased: Likewise.
23593         * modules/unicase/u32-is-casefolded: Likewise.
23594         * modules/unicase/u32-is-lowercase: Likewise.
23595         * modules/unicase/u32-is-titlecase: Likewise.
23596         * modules/unicase/u32-is-uppercase: Likewise.
23597         * modules/unicase/u32-prefix-context: Likewise.
23598         * modules/unicase/u32-suffix-context: Likewise.
23599         * modules/unicase/u32-tolower: Likewise.
23600         * modules/unicase/u32-totitle: Likewise.
23601         * modules/unicase/u32-toupper: Likewise.
23602         * modules/unicase/ulc-casecmp: Likewise.
23603         * modules/unicase/ulc-casecoll: Likewise.
23604         * modules/unicase/ulc-casexfrm: Likewise.
23605         * modules/uniconv/u8-conv-from-enc: Likewise.
23606         * modules/uniconv/u8-conv-to-enc: Likewise.
23607         * modules/uniconv/u8-strconv-from-enc: Likewise.
23608         * modules/uniconv/u8-strconv-from-locale: Likewise.
23609         * modules/uniconv/u8-strconv-to-enc: Likewise.
23610         * modules/uniconv/u8-strconv-to-locale: Likewise.
23611         * modules/uniconv/u16-conv-from-enc: Likewise.
23612         * modules/uniconv/u16-conv-to-enc: Likewise.
23613         * modules/uniconv/u16-strconv-from-enc: Likewise.
23614         * modules/uniconv/u16-strconv-from-locale: Likewise.
23615         * modules/uniconv/u16-strconv-to-enc: Likewise.
23616         * modules/uniconv/u16-strconv-to-locale: Likewise.
23617         * modules/uniconv/u32-conv-from-enc: Likewise.
23618         * modules/uniconv/u32-conv-to-enc: Likewise.
23619         * modules/uniconv/u32-strconv-from-enc: Likewise.
23620         * modules/uniconv/u32-strconv-from-locale: Likewise.
23621         * modules/uniconv/u32-strconv-to-enc: Likewise.
23622         * modules/uniconv/u32-strconv-to-locale: Likewise.
23623         * modules/unictype/bidicategory-byname: Likewise.
23624         * modules/unictype/bidicategory-name: Likewise.
23625         * modules/unictype/bidicategory-of: Likewise.
23626         * modules/unictype/bidicategory-test: Likewise.
23627         * modules/unictype/block-list: Likewise.
23628         * modules/unictype/block-test: Likewise.
23629         * modules/unictype/category-C: Likewise.
23630         * modules/unictype/category-Cc: Likewise.
23631         * modules/unictype/category-Cf: Likewise.
23632         * modules/unictype/category-Cn: Likewise.
23633         * modules/unictype/category-Co: Likewise.
23634         * modules/unictype/category-Cs: Likewise.
23635         * modules/unictype/category-L: Likewise.
23636         * modules/unictype/category-Ll: Likewise.
23637         * modules/unictype/category-Lm: Likewise.
23638         * modules/unictype/category-Lo: Likewise.
23639         * modules/unictype/category-Lt: Likewise.
23640         * modules/unictype/category-Lu: Likewise.
23641         * modules/unictype/category-M: Likewise.
23642         * modules/unictype/category-Mc: Likewise.
23643         * modules/unictype/category-Me: Likewise.
23644         * modules/unictype/category-Mn: Likewise.
23645         * modules/unictype/category-N: Likewise.
23646         * modules/unictype/category-Nd: Likewise.
23647         * modules/unictype/category-Nl: Likewise.
23648         * modules/unictype/category-No: Likewise.
23649         * modules/unictype/category-P: Likewise.
23650         * modules/unictype/category-Pc: Likewise.
23651         * modules/unictype/category-Pd: Likewise.
23652         * modules/unictype/category-Pe: Likewise.
23653         * modules/unictype/category-Pf: Likewise.
23654         * modules/unictype/category-Pi: Likewise.
23655         * modules/unictype/category-Po: Likewise.
23656         * modules/unictype/category-Ps: Likewise.
23657         * modules/unictype/category-S: Likewise.
23658         * modules/unictype/category-Sc: Likewise.
23659         * modules/unictype/category-Sk: Likewise.
23660         * modules/unictype/category-Sm: Likewise.
23661         * modules/unictype/category-So: Likewise.
23662         * modules/unictype/category-Z: Likewise.
23663         * modules/unictype/category-Zl: Likewise.
23664         * modules/unictype/category-Zp: Likewise.
23665         * modules/unictype/category-Zs: Likewise.
23666         * modules/unictype/category-and: Likewise.
23667         * modules/unictype/category-and-not: Likewise.
23668         * modules/unictype/category-byname: Likewise.
23669         * modules/unictype/category-name: Likewise.
23670         * modules/unictype/category-none: Likewise.
23671         * modules/unictype/category-of: Likewise.
23672         * modules/unictype/category-or: Likewise.
23673         * modules/unictype/category-test: Likewise.
23674         * modules/unictype/combining-class: Likewise.
23675         * modules/unictype/ctype-alnum: Likewise.
23676         * modules/unictype/ctype-alpha: Likewise.
23677         * modules/unictype/ctype-blank: Likewise.
23678         * modules/unictype/ctype-cntrl: Likewise.
23679         * modules/unictype/ctype-digit: Likewise.
23680         * modules/unictype/ctype-graph: Likewise.
23681         * modules/unictype/ctype-lower: Likewise.
23682         * modules/unictype/ctype-print: Likewise.
23683         * modules/unictype/ctype-punct: Likewise.
23684         * modules/unictype/ctype-space: Likewise.
23685         * modules/unictype/ctype-upper: Likewise.
23686         * modules/unictype/ctype-xdigit: Likewise.
23687         * modules/unictype/decimal-digit: Likewise.
23688         * modules/unictype/digit: Likewise.
23689         * modules/unictype/mirror: Likewise.
23690         * modules/unictype/numeric: Likewise.
23691         * modules/unictype/property-alphabetic: Likewise.
23692         * modules/unictype/property-ascii-hex-digit: Likewise.
23693         * modules/unictype/property-bidi-arabic-digit: Likewise.
23694         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23695         * modules/unictype/property-bidi-block-separator: Likewise.
23696         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23697         * modules/unictype/property-bidi-common-separator: Likewise.
23698         * modules/unictype/property-bidi-control: Likewise.
23699         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23700         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23701         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23702         * modules/unictype/property-bidi-european-digit: Likewise.
23703         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23704         * modules/unictype/property-bidi-left-to-right: Likewise.
23705         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23706         * modules/unictype/property-bidi-other-neutral: Likewise.
23707         * modules/unictype/property-bidi-pdf: Likewise.
23708         * modules/unictype/property-bidi-segment-separator: Likewise.
23709         * modules/unictype/property-bidi-whitespace: Likewise.
23710         * modules/unictype/property-byname: Likewise.
23711         * modules/unictype/property-combining: Likewise.
23712         * modules/unictype/property-composite: Likewise.
23713         * modules/unictype/property-currency-symbol: Likewise.
23714         * modules/unictype/property-dash: Likewise.
23715         * modules/unictype/property-decimal-digit: Likewise.
23716         * modules/unictype/property-default-ignorable-code-point: Likewise.
23717         * modules/unictype/property-deprecated: Likewise.
23718         * modules/unictype/property-diacritic: Likewise.
23719         * modules/unictype/property-extender: Likewise.
23720         * modules/unictype/property-format-control: Likewise.
23721         * modules/unictype/property-grapheme-base: Likewise.
23722         * modules/unictype/property-grapheme-extend: Likewise.
23723         * modules/unictype/property-grapheme-link: Likewise.
23724         * modules/unictype/property-hex-digit: Likewise.
23725         * modules/unictype/property-hyphen: Likewise.
23726         * modules/unictype/property-id-continue: Likewise.
23727         * modules/unictype/property-id-start: Likewise.
23728         * modules/unictype/property-ideographic: Likewise.
23729         * modules/unictype/property-ids-binary-operator: Likewise.
23730         * modules/unictype/property-ids-trinary-operator: Likewise.
23731         * modules/unictype/property-ignorable-control: Likewise.
23732         * modules/unictype/property-iso-control: Likewise.
23733         * modules/unictype/property-join-control: Likewise.
23734         * modules/unictype/property-left-of-pair: Likewise.
23735         * modules/unictype/property-line-separator: Likewise.
23736         * modules/unictype/property-logical-order-exception: Likewise.
23737         * modules/unictype/property-lowercase: Likewise.
23738         * modules/unictype/property-math: Likewise.
23739         * modules/unictype/property-non-break: Likewise.
23740         * modules/unictype/property-not-a-character: Likewise.
23741         * modules/unictype/property-numeric: Likewise.
23742         * modules/unictype/property-other-alphabetic: Likewise.
23743         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23744         * modules/unictype/property-other-grapheme-extend: Likewise.
23745         * modules/unictype/property-other-id-continue: Likewise.
23746         * modules/unictype/property-other-id-start: Likewise.
23747         * modules/unictype/property-other-lowercase: Likewise.
23748         * modules/unictype/property-other-math: Likewise.
23749         * modules/unictype/property-other-uppercase: Likewise.
23750         * modules/unictype/property-paired-punctuation: Likewise.
23751         * modules/unictype/property-paragraph-separator: Likewise.
23752         * modules/unictype/property-pattern-syntax: Likewise.
23753         * modules/unictype/property-pattern-white-space: Likewise.
23754         * modules/unictype/property-private-use: Likewise.
23755         * modules/unictype/property-punctuation: Likewise.
23756         * modules/unictype/property-quotation-mark: Likewise.
23757         * modules/unictype/property-radical: Likewise.
23758         * modules/unictype/property-sentence-terminal: Likewise.
23759         * modules/unictype/property-soft-dotted: Likewise.
23760         * modules/unictype/property-space: Likewise.
23761         * modules/unictype/property-terminal-punctuation: Likewise.
23762         * modules/unictype/property-test: Likewise.
23763         * modules/unictype/property-titlecase: Likewise.
23764         * modules/unictype/property-unassigned-code-value: Likewise.
23765         * modules/unictype/property-unified-ideograph: Likewise.
23766         * modules/unictype/property-uppercase: Likewise.
23767         * modules/unictype/property-variation-selector: Likewise.
23768         * modules/unictype/property-white-space: Likewise.
23769         * modules/unictype/property-xid-continue: Likewise.
23770         * modules/unictype/property-xid-start: Likewise.
23771         * modules/unictype/property-zero-width: Likewise.
23772         * modules/unictype/scripts: Likewise.
23773         * modules/unictype/syntax-c-ident: Likewise.
23774         * modules/unictype/syntax-c-whitespace: Likewise.
23775         * modules/unictype/syntax-java-ident: Likewise.
23776         * modules/unictype/syntax-java-whitespace: Likewise.
23777         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23778         * modules/unilbrk/u8-width-linebreaks: Likewise.
23779         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23780         * modules/unilbrk/u16-width-linebreaks: Likewise.
23781         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23782         * modules/unilbrk/u32-width-linebreaks: Likewise.
23783         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23784         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23785         * modules/uniname/uniname: Likewise.
23786         * modules/uninorm/canonical-decomposition: Likewise.
23787         * modules/uninorm/composition: Likewise.
23788         * modules/uninorm/decomposing-form: Likewise.
23789         * modules/uninorm/decomposition: Likewise.
23790         * modules/uninorm/filter: Likewise.
23791         * modules/uninorm/nfc: Likewise.
23792         * modules/uninorm/nfd: Likewise.
23793         * modules/uninorm/nfkc: Likewise.
23794         * modules/uninorm/nfkd: Likewise.
23795         * modules/uninorm/u8-normalize: Likewise.
23796         * modules/uninorm/u8-normcmp: Likewise.
23797         * modules/uninorm/u8-normcoll: Likewise.
23798         * modules/uninorm/u8-normxfrm: Likewise.
23799         * modules/uninorm/u16-normalize: Likewise.
23800         * modules/uninorm/u16-normcmp: Likewise.
23801         * modules/uninorm/u16-normcoll: Likewise.
23802         * modules/uninorm/u16-normxfrm: Likewise.
23803         * modules/uninorm/u32-normalize: Likewise.
23804         * modules/uninorm/u32-normcmp: Likewise.
23805         * modules/uninorm/u32-normcoll: Likewise.
23806         * modules/uninorm/u32-normxfrm: Likewise.
23807         * modules/unistdio/u8-asnprintf: Likewise.
23808         * modules/unistdio/u8-asprintf: Likewise.
23809         * modules/unistdio/u8-snprintf: Likewise.
23810         * modules/unistdio/u8-sprintf: Likewise.
23811         * modules/unistdio/u8-u8-asnprintf: Likewise.
23812         * modules/unistdio/u8-u8-asprintf: Likewise.
23813         * modules/unistdio/u8-u8-snprintf: Likewise.
23814         * modules/unistdio/u8-u8-sprintf: Likewise.
23815         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23816         * modules/unistdio/u8-u8-vasprintf: Likewise.
23817         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23818         * modules/unistdio/u8-u8-vsprintf: Likewise.
23819         * modules/unistdio/u8-vasnprintf: Likewise.
23820         * modules/unistdio/u8-vasprintf: Likewise.
23821         * modules/unistdio/u8-vsnprintf: Likewise.
23822         * modules/unistdio/u8-vsprintf: Likewise.
23823         * modules/unistdio/u16-asnprintf: Likewise.
23824         * modules/unistdio/u16-asprintf: Likewise.
23825         * modules/unistdio/u16-snprintf: Likewise.
23826         * modules/unistdio/u16-sprintf: Likewise.
23827         * modules/unistdio/u16-u16-asnprintf: Likewise.
23828         * modules/unistdio/u16-u16-asprintf: Likewise.
23829         * modules/unistdio/u16-u16-snprintf: Likewise.
23830         * modules/unistdio/u16-u16-sprintf: Likewise.
23831         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23832         * modules/unistdio/u16-u16-vasprintf: Likewise.
23833         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23834         * modules/unistdio/u16-u16-vsprintf: Likewise.
23835         * modules/unistdio/u16-vasnprintf: Likewise.
23836         * modules/unistdio/u16-vasprintf: Likewise.
23837         * modules/unistdio/u16-vsnprintf: Likewise.
23838         * modules/unistdio/u16-vsprintf: Likewise.
23839         * modules/unistdio/u32-asnprintf: Likewise.
23840         * modules/unistdio/u32-asprintf: Likewise.
23841         * modules/unistdio/u32-snprintf: Likewise.
23842         * modules/unistdio/u32-sprintf: Likewise.
23843         * modules/unistdio/u32-u32-asnprintf: Likewise.
23844         * modules/unistdio/u32-u32-asprintf: Likewise.
23845         * modules/unistdio/u32-u32-snprintf: Likewise.
23846         * modules/unistdio/u32-u32-sprintf: Likewise.
23847         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23848         * modules/unistdio/u32-u32-vasprintf: Likewise.
23849         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23850         * modules/unistdio/u32-u32-vsprintf: Likewise.
23851         * modules/unistdio/u32-vasnprintf: Likewise.
23852         * modules/unistdio/u32-vasprintf: Likewise.
23853         * modules/unistdio/u32-vsnprintf: Likewise.
23854         * modules/unistdio/u32-vsprintf: Likewise.
23855         * modules/unistdio/ulc-asnprintf: Likewise.
23856         * modules/unistdio/ulc-asprintf: Likewise.
23857         * modules/unistdio/ulc-fprintf: Likewise.
23858         * modules/unistdio/ulc-snprintf: Likewise.
23859         * modules/unistdio/ulc-sprintf: Likewise.
23860         * modules/unistdio/ulc-vasnprintf: Likewise.
23861         * modules/unistdio/ulc-vasprintf: Likewise.
23862         * modules/unistdio/ulc-vfprintf: Likewise.
23863         * modules/unistdio/ulc-vsnprintf: Likewise.
23864         * modules/unistdio/ulc-vsprintf: Likewise.
23865         * modules/unistr/u8-check: Likewise.
23866         * modules/unistr/u8-chr: Likewise.
23867         * modules/unistr/u8-cmp: Likewise.
23868         * modules/unistr/u8-cmp2: Likewise.
23869         * modules/unistr/u8-cpy: Likewise.
23870         * modules/unistr/u8-cpy-alloc: Likewise.
23871         * modules/unistr/u8-endswith: Likewise.
23872         * modules/unistr/u8-mblen: Likewise.
23873         * modules/unistr/u8-mbsnlen: Likewise.
23874         * modules/unistr/u8-mbtouc: Likewise.
23875         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23876         * modules/unistr/u8-mbtoucr: Likewise.
23877         * modules/unistr/u8-move: Likewise.
23878         * modules/unistr/u8-next: Likewise.
23879         * modules/unistr/u8-prev: Likewise.
23880         * modules/unistr/u8-set: Likewise.
23881         * modules/unistr/u8-startswith: Likewise.
23882         * modules/unistr/u8-stpcpy: Likewise.
23883         * modules/unistr/u8-stpncpy: Likewise.
23884         * modules/unistr/u8-strcat: Likewise.
23885         * modules/unistr/u8-strchr: Likewise.
23886         * modules/unistr/u8-strcmp: Likewise.
23887         * modules/unistr/u8-strcoll: Likewise.
23888         * modules/unistr/u8-strcpy: Likewise.
23889         * modules/unistr/u8-strcspn: Likewise.
23890         * modules/unistr/u8-strdup: Likewise.
23891         * modules/unistr/u8-strlen: Likewise.
23892         * modules/unistr/u8-strmblen: Likewise.
23893         * modules/unistr/u8-strmbtouc: Likewise.
23894         * modules/unistr/u8-strncat: Likewise.
23895         * modules/unistr/u8-strncmp: Likewise.
23896         * modules/unistr/u8-strncpy: Likewise.
23897         * modules/unistr/u8-strnlen: Likewise.
23898         * modules/unistr/u8-strpbrk: Likewise.
23899         * modules/unistr/u8-strrchr: Likewise.
23900         * modules/unistr/u8-strspn: Likewise.
23901         * modules/unistr/u8-strstr: Likewise.
23902         * modules/unistr/u8-strtok: Likewise.
23903         * modules/unistr/u8-to-u16: Likewise.
23904         * modules/unistr/u8-to-u32: Likewise.
23905         * modules/unistr/u8-uctomb: Likewise.
23906         * modules/unistr/u16-check: Likewise.
23907         * modules/unistr/u16-chr: Likewise.
23908         * modules/unistr/u16-cmp: Likewise.
23909         * modules/unistr/u16-cmp2: Likewise.
23910         * modules/unistr/u16-cpy: Likewise.
23911         * modules/unistr/u16-cpy-alloc: Likewise.
23912         * modules/unistr/u16-endswith: Likewise.
23913         * modules/unistr/u16-mblen: Likewise.
23914         * modules/unistr/u16-mbsnlen: Likewise.
23915         * modules/unistr/u16-mbtouc: Likewise.
23916         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23917         * modules/unistr/u16-mbtoucr: Likewise.
23918         * modules/unistr/u16-move: Likewise.
23919         * modules/unistr/u16-next: Likewise.
23920         * modules/unistr/u16-prev: Likewise.
23921         * modules/unistr/u16-set: Likewise.
23922         * modules/unistr/u16-startswith: Likewise.
23923         * modules/unistr/u16-stpcpy: Likewise.
23924         * modules/unistr/u16-stpncpy: Likewise.
23925         * modules/unistr/u16-strcat: Likewise.
23926         * modules/unistr/u16-strchr: Likewise.
23927         * modules/unistr/u16-strcmp: Likewise.
23928         * modules/unistr/u16-strcoll: Likewise.
23929         * modules/unistr/u16-strcpy: Likewise.
23930         * modules/unistr/u16-strcspn: Likewise.
23931         * modules/unistr/u16-strdup: Likewise.
23932         * modules/unistr/u16-strlen: Likewise.
23933         * modules/unistr/u16-strmblen: Likewise.
23934         * modules/unistr/u16-strmbtouc: Likewise.
23935         * modules/unistr/u16-strncat: Likewise.
23936         * modules/unistr/u16-strncmp: Likewise.
23937         * modules/unistr/u16-strncpy: Likewise.
23938         * modules/unistr/u16-strnlen: Likewise.
23939         * modules/unistr/u16-strpbrk: Likewise.
23940         * modules/unistr/u16-strrchr: Likewise.
23941         * modules/unistr/u16-strspn: Likewise.
23942         * modules/unistr/u16-strstr: Likewise.
23943         * modules/unistr/u16-strtok: Likewise.
23944         * modules/unistr/u16-to-u32: Likewise.
23945         * modules/unistr/u16-to-u8: Likewise.
23946         * modules/unistr/u16-uctomb: Likewise.
23947         * modules/unistr/u32-check: Likewise.
23948         * modules/unistr/u32-chr: Likewise.
23949         * modules/unistr/u32-cmp: Likewise.
23950         * modules/unistr/u32-cmp2: Likewise.
23951         * modules/unistr/u32-cpy: Likewise.
23952         * modules/unistr/u32-cpy-alloc: Likewise.
23953         * modules/unistr/u32-endswith: Likewise.
23954         * modules/unistr/u32-mblen: Likewise.
23955         * modules/unistr/u32-mbsnlen: Likewise.
23956         * modules/unistr/u32-mbtouc: Likewise.
23957         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23958         * modules/unistr/u32-mbtoucr: Likewise.
23959         * modules/unistr/u32-move: Likewise.
23960         * modules/unistr/u32-next: Likewise.
23961         * modules/unistr/u32-prev: Likewise.
23962         * modules/unistr/u32-set: Likewise.
23963         * modules/unistr/u32-startswith: Likewise.
23964         * modules/unistr/u32-stpcpy: Likewise.
23965         * modules/unistr/u32-stpncpy: Likewise.
23966         * modules/unistr/u32-strcat: Likewise.
23967         * modules/unistr/u32-strchr: Likewise.
23968         * modules/unistr/u32-strcmp: Likewise.
23969         * modules/unistr/u32-strcoll: Likewise.
23970         * modules/unistr/u32-strcpy: Likewise.
23971         * modules/unistr/u32-strcspn: Likewise.
23972         * modules/unistr/u32-strdup: Likewise.
23973         * modules/unistr/u32-strlen: Likewise.
23974         * modules/unistr/u32-strmblen: Likewise.
23975         * modules/unistr/u32-strmbtouc: Likewise.
23976         * modules/unistr/u32-strncat: Likewise.
23977         * modules/unistr/u32-strncmp: Likewise.
23978         * modules/unistr/u32-strncpy: Likewise.
23979         * modules/unistr/u32-strnlen: Likewise.
23980         * modules/unistr/u32-strpbrk: Likewise.
23981         * modules/unistr/u32-strrchr: Likewise.
23982         * modules/unistr/u32-strspn: Likewise.
23983         * modules/unistr/u32-strstr: Likewise.
23984         * modules/unistr/u32-strtok: Likewise.
23985         * modules/unistr/u32-to-u16: Likewise.
23986         * modules/unistr/u32-to-u8: Likewise.
23987         * modules/unistr/u32-uctomb: Likewise.
23988         * modules/uniwbrk/u8-wordbreaks: Likewise.
23989         * modules/uniwbrk/u16-wordbreaks: Likewise.
23990         * modules/uniwbrk/u32-wordbreaks: Likewise.
23991         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23992         * modules/uniwbrk/wordbreak-property: Likewise.
23993         * modules/uniwidth/u8-strwidth: Likewise.
23994         * modules/uniwidth/u8-width: Likewise.
23995         * modules/uniwidth/u16-strwidth: Likewise.
23996         * modules/uniwidth/u16-width: Likewise.
23997         * modules/uniwidth/u32-strwidth: Likewise.
23998         * modules/uniwidth/u32-width: Likewise.
23999         * modules/uniwidth/width: Likewise.
24000         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24001         with $(LIBUNISTRING).
24002         * modules/unicase/ignorable-tests: Likewise.
24003         * modules/unicase/locale-language-tests: Likewise.
24004         * modules/unicase/tolower-tests: Likewise.
24005         * modules/unicase/totitle-tests: Likewise.
24006         * modules/unicase/toupper-tests: Likewise.
24007         * modules/unicase/u8-casecmp-tests: Likewise.
24008         * modules/unicase/u8-casecoll-tests: Likewise.
24009         * modules/unicase/u8-casefold-tests: Likewise.
24010         * modules/unicase/u8-is-cased-tests: Likewise.
24011         * modules/unicase/u8-is-casefolded-tests: Likewise.
24012         * modules/unicase/u8-is-lowercase-tests: Likewise.
24013         * modules/unicase/u8-is-titlecase-tests: Likewise.
24014         * modules/unicase/u8-is-uppercase-tests: Likewise.
24015         * modules/unicase/u8-tolower-tests: Likewise.
24016         * modules/unicase/u8-totitle-tests: Likewise.
24017         * modules/unicase/u8-toupper-tests: Likewise.
24018         * modules/unicase/u16-casecmp-tests: Likewise.
24019         * modules/unicase/u16-casecoll-tests: Likewise.
24020         * modules/unicase/u16-casefold-tests: Likewise.
24021         * modules/unicase/u16-is-cased-tests: Likewise.
24022         * modules/unicase/u16-is-casefolded-tests: Likewise.
24023         * modules/unicase/u16-is-lowercase-tests: Likewise.
24024         * modules/unicase/u16-is-titlecase-tests: Likewise.
24025         * modules/unicase/u16-is-uppercase-tests: Likewise.
24026         * modules/unicase/u16-tolower-tests: Likewise.
24027         * modules/unicase/u16-totitle-tests: Likewise.
24028         * modules/unicase/u16-toupper-tests: Likewise.
24029         * modules/unicase/u32-casecmp-tests: Likewise.
24030         * modules/unicase/u32-casecoll-tests: Likewise.
24031         * modules/unicase/u32-casefold-tests: Likewise.
24032         * modules/unicase/u32-is-cased-tests: Likewise.
24033         * modules/unicase/u32-is-casefolded-tests: Likewise.
24034         * modules/unicase/u32-is-lowercase-tests: Likewise.
24035         * modules/unicase/u32-is-titlecase-tests: Likewise.
24036         * modules/unicase/u32-is-uppercase-tests: Likewise.
24037         * modules/unicase/u32-tolower-tests: Likewise.
24038         * modules/unicase/u32-totitle-tests: Likewise.
24039         * modules/unicase/u32-toupper-tests: Likewise.
24040         * modules/unicase/ulc-casecmp-tests: Likewise.
24041         * modules/unicase/ulc-casecoll-tests: Likewise.
24042         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24043         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24044         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24045         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24046         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24047         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24048         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24049         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24050         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24051         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24052         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24053         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24054         * modules/unictype/bidicategory-byname-tests: Likewise.
24055         * modules/unictype/bidicategory-name-tests: Likewise.
24056         * modules/unictype/bidicategory-of-tests: Likewise.
24057         * modules/unictype/bidicategory-test-tests: Likewise.
24058         * modules/unictype/block-list-tests: Likewise.
24059         * modules/unictype/block-of-tests: Likewise.
24060         * modules/unictype/block-test-tests: Likewise.
24061         * modules/unictype/category-C-tests: Likewise.
24062         * modules/unictype/category-Cc-tests: Likewise.
24063         * modules/unictype/category-Cf-tests: Likewise.
24064         * modules/unictype/category-Cn-tests: Likewise.
24065         * modules/unictype/category-Co-tests: Likewise.
24066         * modules/unictype/category-Cs-tests: Likewise.
24067         * modules/unictype/category-L-tests: Likewise.
24068         * modules/unictype/category-Ll-tests: Likewise.
24069         * modules/unictype/category-Lm-tests: Likewise.
24070         * modules/unictype/category-Lo-tests: Likewise.
24071         * modules/unictype/category-Lt-tests: Likewise.
24072         * modules/unictype/category-Lu-tests: Likewise.
24073         * modules/unictype/category-M-tests: Likewise.
24074         * modules/unictype/category-Mc-tests: Likewise.
24075         * modules/unictype/category-Me-tests: Likewise.
24076         * modules/unictype/category-Mn-tests: Likewise.
24077         * modules/unictype/category-N-tests: Likewise.
24078         * modules/unictype/category-Nd-tests: Likewise.
24079         * modules/unictype/category-Nl-tests: Likewise.
24080         * modules/unictype/category-No-tests: Likewise.
24081         * modules/unictype/category-P-tests: Likewise.
24082         * modules/unictype/category-Pc-tests: Likewise.
24083         * modules/unictype/category-Pd-tests: Likewise.
24084         * modules/unictype/category-Pe-tests: Likewise.
24085         * modules/unictype/category-Pf-tests: Likewise.
24086         * modules/unictype/category-Pi-tests: Likewise.
24087         * modules/unictype/category-Po-tests: Likewise.
24088         * modules/unictype/category-Ps-tests: Likewise.
24089         * modules/unictype/category-S-tests: Likewise.
24090         * modules/unictype/category-Sc-tests: Likewise.
24091         * modules/unictype/category-Sk-tests: Likewise.
24092         * modules/unictype/category-Sm-tests: Likewise.
24093         * modules/unictype/category-So-tests: Likewise.
24094         * modules/unictype/category-Z-tests: Likewise.
24095         * modules/unictype/category-Zl-tests: Likewise.
24096         * modules/unictype/category-Zp-tests: Likewise.
24097         * modules/unictype/category-Zs-tests: Likewise.
24098         * modules/unictype/category-and-not-tests: Likewise.
24099         * modules/unictype/category-and-tests: Likewise.
24100         * modules/unictype/category-byname-tests: Likewise.
24101         * modules/unictype/category-name-tests: Likewise.
24102         * modules/unictype/category-none-tests: Likewise.
24103         * modules/unictype/category-of-tests: Likewise.
24104         * modules/unictype/category-or-tests: Likewise.
24105         * modules/unictype/category-test-withtable-tests: Likewise.
24106         * modules/unictype/combining-class-tests: Likewise.
24107         * modules/unictype/ctype-alnum-tests: Likewise.
24108         * modules/unictype/ctype-alpha-tests: Likewise.
24109         * modules/unictype/ctype-blank-tests: Likewise.
24110         * modules/unictype/ctype-cntrl-tests: Likewise.
24111         * modules/unictype/ctype-digit-tests: Likewise.
24112         * modules/unictype/ctype-graph-tests: Likewise.
24113         * modules/unictype/ctype-lower-tests: Likewise.
24114         * modules/unictype/ctype-print-tests: Likewise.
24115         * modules/unictype/ctype-punct-tests: Likewise.
24116         * modules/unictype/ctype-space-tests: Likewise.
24117         * modules/unictype/ctype-upper-tests: Likewise.
24118         * modules/unictype/ctype-xdigit-tests: Likewise.
24119         * modules/unictype/decimal-digit-tests: Likewise.
24120         * modules/unictype/digit-tests: Likewise.
24121         * modules/unictype/mirror-tests: Likewise.
24122         * modules/unictype/numeric-tests: Likewise.
24123         * modules/unictype/property-alphabetic-tests: Likewise.
24124         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24125         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24126         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24127         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24128         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24129         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24130         * modules/unictype/property-bidi-control-tests: Likewise.
24131         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24132         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24133         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24134         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24135         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24136         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24137         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24138         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24139         * modules/unictype/property-bidi-pdf-tests: Likewise.
24140         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24141         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24142         * modules/unictype/property-byname-tests: Likewise.
24143         * modules/unictype/property-combining-tests: Likewise.
24144         * modules/unictype/property-composite-tests: Likewise.
24145         * modules/unictype/property-currency-symbol-tests: Likewise.
24146         * modules/unictype/property-dash-tests: Likewise.
24147         * modules/unictype/property-decimal-digit-tests: Likewise.
24148         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24149         * modules/unictype/property-deprecated-tests: Likewise.
24150         * modules/unictype/property-diacritic-tests: Likewise.
24151         * modules/unictype/property-extender-tests: Likewise.
24152         * modules/unictype/property-format-control-tests: Likewise.
24153         * modules/unictype/property-grapheme-base-tests: Likewise.
24154         * modules/unictype/property-grapheme-extend-tests: Likewise.
24155         * modules/unictype/property-grapheme-link-tests: Likewise.
24156         * modules/unictype/property-hex-digit-tests: Likewise.
24157         * modules/unictype/property-hyphen-tests: Likewise.
24158         * modules/unictype/property-id-continue-tests: Likewise.
24159         * modules/unictype/property-id-start-tests: Likewise.
24160         * modules/unictype/property-ideographic-tests: Likewise.
24161         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24162         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24163         * modules/unictype/property-ignorable-control-tests: Likewise.
24164         * modules/unictype/property-iso-control-tests: Likewise.
24165         * modules/unictype/property-join-control-tests: Likewise.
24166         * modules/unictype/property-left-of-pair-tests: Likewise.
24167         * modules/unictype/property-line-separator-tests: Likewise.
24168         * modules/unictype/property-logical-order-exception-tests: Likewise.
24169         * modules/unictype/property-lowercase-tests: Likewise.
24170         * modules/unictype/property-math-tests: Likewise.
24171         * modules/unictype/property-non-break-tests: Likewise.
24172         * modules/unictype/property-not-a-character-tests: Likewise.
24173         * modules/unictype/property-numeric-tests: Likewise.
24174         * modules/unictype/property-other-alphabetic-tests: Likewise.
24175         * modules/unictype/property-other-default-ignorable-code-point-tests:
24176         Likewise.
24177         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24178         * modules/unictype/property-other-id-continue-tests: Likewise.
24179         * modules/unictype/property-other-id-start-tests: Likewise.
24180         * modules/unictype/property-other-lowercase-tests: Likewise.
24181         * modules/unictype/property-other-math-tests: Likewise.
24182         * modules/unictype/property-other-uppercase-tests: Likewise.
24183         * modules/unictype/property-paired-punctuation-tests: Likewise.
24184         * modules/unictype/property-paragraph-separator-tests: Likewise.
24185         * modules/unictype/property-pattern-syntax-tests: Likewise.
24186         * modules/unictype/property-pattern-white-space-tests: Likewise.
24187         * modules/unictype/property-private-use-tests: Likewise.
24188         * modules/unictype/property-punctuation-tests: Likewise.
24189         * modules/unictype/property-quotation-mark-tests: Likewise.
24190         * modules/unictype/property-radical-tests: Likewise.
24191         * modules/unictype/property-sentence-terminal-tests: Likewise.
24192         * modules/unictype/property-soft-dotted-tests: Likewise.
24193         * modules/unictype/property-space-tests: Likewise.
24194         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24195         * modules/unictype/property-test-tests: Likewise.
24196         * modules/unictype/property-titlecase-tests: Likewise.
24197         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24198         * modules/unictype/property-unified-ideograph-tests: Likewise.
24199         * modules/unictype/property-uppercase-tests: Likewise.
24200         * modules/unictype/property-variation-selector-tests: Likewise.
24201         * modules/unictype/property-white-space-tests: Likewise.
24202         * modules/unictype/property-xid-continue-tests: Likewise.
24203         * modules/unictype/property-xid-start-tests: Likewise.
24204         * modules/unictype/property-zero-width-tests: Likewise.
24205         * modules/unictype/scripts-tests: Likewise.
24206         * modules/unictype/syntax-c-ident-tests: Likewise.
24207         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24208         * modules/unictype/syntax-java-ident-tests: Likewise.
24209         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24210         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24211         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24212         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24213         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24214         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24215         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24216         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24217         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24218         * modules/uniname/uniname-tests: Likewise.
24219         * modules/uninorm/canonical-decomposition-tests: Likewise.
24220         * modules/uninorm/compat-decomposition-tests: Likewise.
24221         * modules/uninorm/composition-tests: Likewise.
24222         * modules/uninorm/decomposing-form-tests: Likewise.
24223         * modules/uninorm/decomposition-tests: Likewise.
24224         * modules/uninorm/filter-tests: Likewise.
24225         * modules/uninorm/nfc-tests: Likewise.
24226         * modules/uninorm/nfd-tests: Likewise.
24227         * modules/uninorm/nfkc-tests: Likewise.
24228         * modules/uninorm/nfkd-tests: Likewise.
24229         * modules/uninorm/u8-normcmp-tests: Likewise.
24230         * modules/uninorm/u8-normcoll-tests: Likewise.
24231         * modules/uninorm/u16-normcmp-tests: Likewise.
24232         * modules/uninorm/u16-normcoll-tests: Likewise.
24233         * modules/uninorm/u32-normcmp-tests: Likewise.
24234         * modules/uninorm/u32-normcoll-tests: Likewise.
24235         * modules/unistdio/u8-asnprintf-tests: Likewise.
24236         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24237         * modules/unistdio/u8-vasprintf-tests: Likewise.
24238         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24239         * modules/unistdio/u8-vsprintf-tests: Likewise.
24240         * modules/unistdio/u16-asnprintf-tests: Likewise.
24241         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24242         * modules/unistdio/u16-vasprintf-tests: Likewise.
24243         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24244         * modules/unistdio/u16-vsprintf-tests: Likewise.
24245         * modules/unistdio/u32-asnprintf-tests: Likewise.
24246         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24247         * modules/unistdio/u32-vasprintf-tests: Likewise.
24248         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24249         * modules/unistdio/u32-vsprintf-tests: Likewise.
24250         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24251         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24252         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24253         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24254         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24255         * modules/unistr/u8-check-tests: Likewise.
24256         * modules/unistr/u8-chr-tests: Likewise.
24257         * modules/unistr/u8-cmp-tests: Likewise.
24258         * modules/unistr/u8-cmp2-tests: Likewise.
24259         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24260         * modules/unistr/u8-cpy-tests: Likewise.
24261         * modules/unistr/u8-mblen-tests: Likewise.
24262         * modules/unistr/u8-mbsnlen-tests: Likewise.
24263         * modules/unistr/u8-mbtouc-tests: Likewise.
24264         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24265         * modules/unistr/u8-mbtoucr-tests: Likewise.
24266         * modules/unistr/u8-move-tests: Likewise.
24267         * modules/unistr/u8-next-tests: Likewise.
24268         * modules/unistr/u8-prev-tests: Likewise.
24269         * modules/unistr/u8-set-tests: Likewise.
24270         * modules/unistr/u8-stpcpy-tests: Likewise.
24271         * modules/unistr/u8-stpncpy-tests: Likewise.
24272         * modules/unistr/u8-strcat-tests: Likewise.
24273         * modules/unistr/u8-strcmp-tests: Likewise.
24274         * modules/unistr/u8-strcoll-tests: Likewise.
24275         * modules/unistr/u8-strcpy-tests: Likewise.
24276         * modules/unistr/u8-strdup-tests: Likewise.
24277         * modules/unistr/u8-strlen-tests: Likewise.
24278         * modules/unistr/u8-strmblen-tests: Likewise.
24279         * modules/unistr/u8-strmbtouc-tests: Likewise.
24280         * modules/unistr/u8-strncat-tests: Likewise.
24281         * modules/unistr/u8-strncmp-tests: Likewise.
24282         * modules/unistr/u8-strncpy-tests: Likewise.
24283         * modules/unistr/u8-strnlen-tests: Likewise.
24284         * modules/unistr/u8-to-u16-tests: Likewise.
24285         * modules/unistr/u8-to-u32-tests: Likewise.
24286         * modules/unistr/u8-uctomb-tests: Likewise.
24287         * modules/unistr/u16-check-tests: Likewise.
24288         * modules/unistr/u16-chr-tests: Likewise.
24289         * modules/unistr/u16-cmp-tests: Likewise.
24290         * modules/unistr/u16-cmp2-tests: Likewise.
24291         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24292         * modules/unistr/u16-cpy-tests: Likewise.
24293         * modules/unistr/u16-mblen-tests: Likewise.
24294         * modules/unistr/u16-mbsnlen-tests: Likewise.
24295         * modules/unistr/u16-mbtouc-tests: Likewise.
24296         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24297         * modules/unistr/u16-mbtoucr-tests: Likewise.
24298         * modules/unistr/u16-move-tests: Likewise.
24299         * modules/unistr/u16-next-tests: Likewise.
24300         * modules/unistr/u16-prev-tests: Likewise.
24301         * modules/unistr/u16-set-tests: Likewise.
24302         * modules/unistr/u16-stpcpy-tests: Likewise.
24303         * modules/unistr/u16-stpncpy-tests: Likewise.
24304         * modules/unistr/u16-strcat-tests: Likewise.
24305         * modules/unistr/u16-strcmp-tests: Likewise.
24306         * modules/unistr/u16-strcoll-tests: Likewise.
24307         * modules/unistr/u16-strcpy-tests: Likewise.
24308         * modules/unistr/u16-strdup-tests: Likewise.
24309         * modules/unistr/u16-strlen-tests: Likewise.
24310         * modules/unistr/u16-strmblen-tests: Likewise.
24311         * modules/unistr/u16-strmbtouc-tests: Likewise.
24312         * modules/unistr/u16-strncat-tests: Likewise.
24313         * modules/unistr/u16-strncmp-tests: Likewise.
24314         * modules/unistr/u16-strncpy-tests: Likewise.
24315         * modules/unistr/u16-strnlen-tests: Likewise.
24316         * modules/unistr/u16-to-u32-tests: Likewise.
24317         * modules/unistr/u16-to-u8-tests: Likewise.
24318         * modules/unistr/u16-uctomb-tests: Likewise.
24319         * modules/unistr/u32-check-tests: Likewise.
24320         * modules/unistr/u32-chr-tests: Likewise.
24321         * modules/unistr/u32-cmp-tests: Likewise.
24322         * modules/unistr/u32-cmp2-tests: Likewise.
24323         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24324         * modules/unistr/u32-cpy-tests: Likewise.
24325         * modules/unistr/u32-mblen-tests: Likewise.
24326         * modules/unistr/u32-mbsnlen-tests: Likewise.
24327         * modules/unistr/u32-mbtouc-tests: Likewise.
24328         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24329         * modules/unistr/u32-mbtoucr-tests: Likewise.
24330         * modules/unistr/u32-move-tests: Likewise.
24331         * modules/unistr/u32-next-tests: Likewise.
24332         * modules/unistr/u32-prev-tests: Likewise.
24333         * modules/unistr/u32-set-tests: Likewise.
24334         * modules/unistr/u32-stpcpy-tests: Likewise.
24335         * modules/unistr/u32-stpncpy-tests: Likewise.
24336         * modules/unistr/u32-strcat-tests: Likewise.
24337         * modules/unistr/u32-strcmp-tests: Likewise.
24338         * modules/unistr/u32-strcoll-tests: Likewise.
24339         * modules/unistr/u32-strcpy-tests: Likewise.
24340         * modules/unistr/u32-strdup-tests: Likewise.
24341         * modules/unistr/u32-strlen-tests: Likewise.
24342         * modules/unistr/u32-strmblen-tests: Likewise.
24343         * modules/unistr/u32-strmbtouc-tests: Likewise.
24344         * modules/unistr/u32-strncat-tests: Likewise.
24345         * modules/unistr/u32-strncmp-tests: Likewise.
24346         * modules/unistr/u32-strncpy-tests: Likewise.
24347         * modules/unistr/u32-strnlen-tests: Likewise.
24348         * modules/unistr/u32-to-u16-tests: Likewise.
24349         * modules/unistr/u32-to-u8-tests: Likewise.
24350         * modules/unistr/u32-uctomb-tests: Likewise.
24351         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24352         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24353         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24354         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24355         * modules/uniwidth/u8-strwidth-tests: Likewise.
24356         * modules/uniwidth/u8-width-tests: Likewise.
24357         * modules/uniwidth/u16-strwidth-tests: Likewise.
24358         * modules/uniwidth/u16-width-tests: Likewise.
24359         * modules/uniwidth/u32-strwidth-tests: Likewise.
24360         * modules/uniwidth/u32-width-tests: Likewise.
24361         * modules/uniwidth/width-tests: Likewise.
24362
24363 2010-05-18  Richard Jones  <rjones@redhat.com>
24364
24365         doc: users.txt: list hivex
24366         * users.txt: Add hivex.
24367
24368 2010-05-18  Richard Jones  <rjones@redhat.com>
24369
24370         doc: users.txt: list febootstrap
24371         * users.txt: Add febootstrap.
24372
24373 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24374
24375         bootstrap: fix an error when gnulib is not used as a git submodule
24376         * build-aux/bootstrap (gnulib_path): If its length is zero then
24377         assign "gnulib" to it.
24378         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24379
24380 2010-05-16  Bruno Haible  <bruno@clisp.org>
24381
24382         Avoid autoconf warnings about AM_ICONV.
24383         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24384         2.64.
24385
24386 2010-05-16  Bruno Haible  <bruno@clisp.org>
24387
24388         absolute-header: Make the macro usable in more situations.
24389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24390         from gl_ABSOLUTE_HEADER.
24391         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24392
24393 2010-05-16  James Youngman  <jay@gnu.org>
24394
24395         doc: update users.txt
24396         * users.txt: Add CSSC.
24397
24398 2010-05-16  Jim Meyering  <meyering@redhat.com>
24399
24400         init.sh: fix an error in the previous change; add more comments
24401         * tests/init.sh: Compare exit code in loop against 9, not 2.
24402         Patch by Bruno Haible.
24403         Make the two tests more similar by adding an empty "then" clause.
24404         Add comments.
24405
24406         init.sh: avoid unnecessary shell re-exec
24407         * tests/init.sh: Improve the re-exec-required check to first test the
24408         current shell.  If it passes the test, do not search for a shell that
24409         does pass, and do not re-exec.  This test is particularly contorted to
24410         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24411         of $(...) evokes a syntax error and causes immediate shell exit with
24412         status 2.  Bruno Haible reported that the re-exec made it impossible
24413         to single-step through any init.sh-using script.
24414
24415 2010-05-16  Bruno Haible  <bruno@clisp.org>
24416
24417         Fix collision between gnulib's and libintl's printf replacements.
24418         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24419         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24420         (printf): When using GNU C, map the __printf__ function to rpl_printf
24421         via __asm__. When not using GNU C, define rpl_printf instead of
24422         __printf__.
24423         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24424         commit.
24425         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24426         commit.
24427         * m4/asm-underscore.m4: New file.
24428         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24429         * modules/stdio (Files): Add m4/asm-underscore.m4.
24430         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24431         Reported by Ben Pfaff.
24432
24433 2010-05-16  Bruno Haible  <bruno@clisp.org>
24434
24435         verify: Avoid skipping the test on openSUSE 11.0.
24436         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24437
24438 2010-05-13  Bruno Haible  <bruno@clisp.org>
24439
24440         Avoid useless warnings from G++.
24441         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24442         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24443         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24444
24445 2010-05-11  Jim Meyering  <meyering@redhat.com>
24446
24447         maint.mk: tweak preceding change
24448         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24449         regexps tighter by anchoring at EOL, and make the new group "shy"
24450         for slightly decreased overhead.
24451
24452 2010-05-11  Eric Blake  <eblake@redhat.com>
24453
24454         maint.mk: gnulib doesn't guarantee NSIG
24455         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24456
24457 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24458
24459         test-pwrite.c: Remove unused variable declaration.
24460         * tests/test-pwrite.c (main): Remove read_buf declaration.
24461
24462         Remove useless test-pwrite.sh file.
24463         * tests/test-pwrite.sh: Delete file.
24464         * modules/pwrite-tests: Remove references.
24465         Reported by Bruno Haible.
24466
24467 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24468
24469         init.sh: fix a typo
24470         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24471
24472 2010-05-10  Jim Meyering  <meyering@redhat.com>
24473
24474         maint.mk: avoid using a temporary file in the always-defined-macros check
24475         * top/maint.mk (.re-defmac): Remove rule.
24476         (gl_trap_): Remove definition.
24477         (sc_prohibit_always-defined_macros): Rewrite not to create and
24478         depend on a temporary file.  Instead, depend on GNU grep's ability
24479         to read a list of regular expressions from stdin when given "-f -".
24480
24481 2010-05-09  Bruno Haible  <bruno@clisp.org>
24482
24483         Update to GNU gettext 0.18, part 1.
24484         * m4/gettext.m4: Update to GNU gettext 0.18.
24485         * m4/intl.m4: Likewise.
24486         * m4/po.m4: Likewise.
24487         * modules/gettext (Files): Add m4/fcntl-o.m4.
24488         (configure.ac): Require gettext infrastructure from version 0.18.
24489
24490 2010-05-09  Jim Meyering  <meyering@redhat.com>
24491
24492         init.sh: enable MALLOC_PERTURB_
24493         * tests/init.sh: Enable glibc's malloc-perturbing option.
24494
24495         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24496         With my recent change in init.sh from the two-line form:
24497             -#   : ${srcdir=.}
24498             -#   . "$srcdir/init.sh"; path_prepend_ .
24499             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24500         I noticed that using the one-line form would cause this test
24501         to fail with a false-positive, or to stop working altogether,
24502         depending on whether help-version changed or all the tests did.
24503         * top/maint.mk (_hv_regex): Remove this definition.
24504         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24505         (_hv_regex_strong): Use a stronger regex to check for conformance.
24506         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24507         Give a separate diagnostic for lack of conforming use.
24508
24509         maint.mk: prohibit definition of symbols defined by gnulib
24510         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24511         definition of symbols defined by gnulib.
24512
24513 2010-05-09  Bruno Haible  <bruno@clisp.org>
24514
24515         acl: Avoid test failure on Cygwin-hosted mingw.
24516         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24517
24518 2010-05-09  Bruno Haible  <bruno@clisp.org>
24519
24520         error: Use system's fcntl function.
24521         * lib/error.c (fcntl): Undefine.
24522
24523 2010-05-09  Jim Meyering  <meyering@redhat.com>
24524
24525         verify: adjust formatting to be more consistent
24526         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24527         argument-list '('s, and after one comma.
24528
24529 2010-05-09  Bruno Haible  <bruno@clisp.org>
24530
24531         error: More reliable output on mingw.
24532         * lib/error.c: Include <windows.h>.
24533         (is_open): New function.
24534         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24535         defined.
24536
24537 2010-05-09  Bruno Haible  <bruno@clisp.org>
24538
24539         vasnprintf: Fix syntax errors in libintl build on mingw.
24540         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24541         pad_ourselves and prec_ourselves after use.
24542
24543 2010-05-08  Bruno Haible  <bruno@clisp.org>
24544
24545         * lib/config.charset: Update comments for Cygwin 1.7.
24546         * lib/localcharset.c: Likewise.
24547
24548 2010-05-07  Jim Meyering  <meyering@redhat.com>
24549
24550         init.sh: improve comments
24551         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24552         . "${srcdir=.}/init.sh"; path_prepend_ .
24553         Add a note about path_prepend_ and the alternative of using
24554         TESTS_ENVIRONMENT.
24555
24556 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24557
24558         exclude: Unescape hashed patterns in wildcard mode.
24559         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24560         to the hash list.
24561         * tests/test-exclude8.sh: New test case.
24562         * modules/exclude-tests: Add new test.
24563
24564 2010-05-05  Eric Blake  <eblake@redhat.com>
24565
24566         verify: automate tests
24567         * modules/verify-tests: New module.
24568         * tests/test-verify.sh: New file.
24569         * tests/test-verify.c: Guard each negative test with a unique id.
24570         Also avoid warning about unused left hand of comma expressions.
24571
24572 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24573
24574         Further improvements to verify.h, suggested by Eric Blake.
24575         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24576         the GL_* versions, to avoid collision with OpenGL.
24577         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24578         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24579         than testing merely whether it's defined.
24580
24581         Modify verify.h to pacify gcc -Wredundant_decls.
24582         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24583         These use the prefix "GL_" since they're likely to be useful elsewhere.
24584         We may need to break them out into a different .h file.
24585         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24586         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24587         of verify_function__.
24588
24589 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24590
24591         Tests for module pwrite.
24592         * modules/pwrite-tests: New file.
24593         * tests/test-pwrite.sh: New file.
24594         * tests/test-pwrite.c: New file.
24595
24596         New module pwrite.
24597         * lib/unistd.in.h (pwrite): New declaration.
24598         * lib/pwrite.c: New file, from glibc with modifications.
24599         * m4/pwrite.m4: New file.
24600         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24601         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24602         REPLACE_PWRITE.
24603         * modules/pwrite: New file.
24604         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24605         REPLACE_PWRITE.
24606         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24607         * doc/posix-functions/pwrite.texi: Mention the new module.
24608
24609 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24610
24611         pread: Update documentation.
24612         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24613
24614 2010-05-04  Eric Blake  <eblake@redhat.com>
24615
24616         docs: update cygwin progress
24617         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24618         this bug.
24619         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24620         Added in cygwin 1.7.2.
24621         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24622         Likewise.
24623         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24624         Likewise.
24625         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24626         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24627         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24628         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24629         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24630         Mention nproc module.
24631         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24632         bug in cygwin 1.7.5 addition.
24633         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24634         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24635         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24636         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24637         1.7.5.
24638         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24639         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24640         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24641         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24642         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24643         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24644         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24645         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24646         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24647         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24648         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24649         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24650         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24651         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24652         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24653         Likewise.
24654         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24655         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24656         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24657         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24658         Likewise.
24659         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24660         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24661         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24662         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24663         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24664         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24665         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24666         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24667         Likewise.
24668         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24669         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24670         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24671         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24672         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24673         Likewise.
24674         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24675         Likewise.
24676         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24677         Likewise.
24678         * doc/glibc-functions/xdrrec_endofrecord.texi
24679         (xdrrec_endofrecord): Likewise.
24680         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24681         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24682         Likewise.
24683         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24684         Likewise.
24685
24686 2010-05-04  Jim Meyering  <meyering@redhat.com>
24687
24688         gendocs.sh: make its "-s FILE" option more useful
24689         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24690         $PACKAGE to reflect the probably-different basename of "FILE".
24691
24692 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24693
24694         bootstrap: don't ignore download_po_files failure
24695         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24696         failure.
24697
24698 2010-05-03  Jim Meyering  <meyering@redhat.com>
24699
24700         maint.mk: allow to pass options to gendocs.sh
24701         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24702         (gendocs_options_): New overridable variable.
24703
24704         gnu-web-doc-update: don't ignore configure or build failure
24705         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24706
24707         announce-gen: backslash-escape '@'s in --help output
24708         * build-aux/announce-gen: Fix syntax errors.
24709
24710         maint.mk, announce-gen: allow project-specific announcement mail headers
24711         * top/maint.mk (translation_project_): Define default.
24712         (announcement_Cc_, announcement_mail_headers_): Likewise.
24713         (announcement): Invoke announce-gen with new --mail-headers option.
24714         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24715
24716         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24717         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24718         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24719         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24720         line in the "err2" output file when running "make check" in verbose
24721         mode (i.e., with set -x enabled).
24722
24723 2010-05-03  Bruno Haible  <bruno@clisp.org>
24724
24725         wctob: Fix for weird platforms.
24726         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24727         argument value.
24728
24729 2010-05-03  Jim Meyering  <meyering@redhat.com>
24730
24731         maint.mk: prohibit unwarranted use of <strings.h>
24732         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24733         strings.h in a file that does not also use strcasecmp, strncasecmp,
24734         ffs or ffsll.
24735
24736         maint.mk: remove obsolete comments
24737         * top/maint.mk: Remove stale, commented-out rules.
24738
24739 2010-05-02  Bruno Haible  <bruno@clisp.org>
24740
24741         wcwidth: Declare also when it's aliased.
24742         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24743         macro.
24744
24745 2010-05-02  Bruno Haible  <bruno@clisp.org>
24746
24747         Fix regression from 2010-04-25.
24748         * gnulib-tool (func_modules_transitive_closure): Check the status of
24749         all modules, not only of the tests that are of the form foo-tests where
24750         foo is a module.
24751
24752 2010-05-02  Bruno Haible  <bruno@clisp.org>
24753
24754         wctob: Work around nasty Cygwin 1.7.2 bug.
24755         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24756         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24757
24758 2010-05-01  Bruno Haible  <bruno@clisp.org>
24759
24760         fpurge: Sharper test.
24761         * tests/test-fpurge.c (main): Add one more ftell check.
24762         * modules/fpurge-tests (Depends-on): Add ftell.
24763         Suggested by Eric Blake.
24764
24765 2010-05-01  Bruno Haible  <bruno@clisp.org>
24766
24767         ftello: Another test.
24768         * tests/test-ftello3.c: New file.
24769         * modules/ftello-tests (Files): Add it.
24770         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24771         MOSTLYCLEANFILES.
24772
24773         ftell: Another test.
24774         * tests/test-ftell3.c: New file.
24775         * modules/ftell-tests (Files): Add it.
24776         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24777         MOSTLYCLEANFILES.
24778
24779 2010-05-01  Bruno Haible  <bruno@clisp.org>
24780
24781         ftell, ftello: Work around Solaris bug.
24782         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24783         * lib/ftello.c: Include stdio-impl.h.
24784         (ftello): On Solaris, when _IOWRT is set, compute the result without
24785         looking at _IOREAD.
24786         * modules/ftello (Files): Add lib/stdio-impl.h.
24787         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24788         * doc/posix-functions/ftello.texi: Likewise.
24789         Reported by Eric Blake.
24790
24791 2010-05-01  Bruno Haible  <bruno@clisp.org>
24792
24793         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24794         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24795         the _IOWRT flag is also set.
24796
24797 2010-05-01  Bruno Haible  <bruno@clisp.org>
24798
24799         Fix doc about a HP-UX stdio bug.
24800         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24801         * doc/posix-functions/ftello.texi: Likewise.
24802
24803 2010-05-01  Bruno Haible  <bruno@clisp.org>
24804
24805         lseek test: Fix failure on Solaris.
24806         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24807         output.
24808
24809 2010-04-30  Jim Meyering  <meyering@redhat.com>
24810
24811         bootstrap: don't ignore failure to generate po*/Makevars
24812         * build-aux/bootstrap (with_gettext): Don't ignore failure
24813         to create po/Makevars or runtime-po/Makevars.
24814
24815 2010-04-29  Eric Blake  <eblake@redhat.com>
24816
24817         headers: relax license to LGPLv2+
24818         * modules/fcntl-h (License): Relax license.
24819         * modules/getopt-posix (License): Likewise.
24820         * modules/locale (License): Likewise.
24821         * modules/math (License): Likewise.
24822         * modules/pty (License): Likewise.
24823         * modules/sched (License): Likewise.
24824         * modules/search (License): Likewise.
24825         * modules/spawn (License): Likewise.
24826         * modules/stdarg (License): Likewise.
24827         * modules/sysexits (License): Likewise.
24828
24829 2010-04-29  Jim Meyering  <meyering@redhat.com>
24830
24831         inttypes: relax license to LGPLv2+
24832         * modules/inttypes (License): Relax license.
24833
24834 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24835
24836         * top/maint.mk (indent): Run twice to produce idempotent results.
24837
24838 2010-04-28  Bruno Haible  <bruno@clisp.org>
24839
24840         getdate: Generate getdate.c in the source directory.
24841         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24842         MOSTLYCLEANFILES.
24843         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24844
24845 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24846
24847         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24848         is not declared as a const *; avoid warnings in that case.
24849
24850 2010-04-28  Eric Blake  <eblake@redhat.com>
24851
24852         canonicalize-lgpl: avoid compiler warning
24853         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24854         declaration' / 'extraneous semicolon' warning with some compilers.
24855         Reported by Andreas Gruenbacher.
24856
24857 2010-04-28  Jim Meyering  <meyering@redhat.com>
24858
24859         init.sh: ensure a more reliable exit status when exiting via trap
24860         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24861         Inspired by patches from Dmitry V. Levin.
24862         Also trap on signal 3 (SIGQUIT).
24863
24864 2010-04-27  Bruno Haible  <bruno@clisp.org>
24865
24866         Update doc about utimes().
24867         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24868         'utimens' module.
24869         Reported by Andreas Gruenbacher <agruen@suse.de>.
24870
24871 2010-04-27  Eric Blake  <eblake@redhat.com>
24872
24873         full-read, full-write: relax license
24874         * modules/full-read (License): Drop to LGPLv2+.
24875         * modules/full-write (License): Likewise.
24876         * modules/safe-read (License): Likewise.
24877         * modules/safe-write (License): Likewise.
24878
24879         pthread: mention library for linking
24880         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24881
24882 2010-04-27  Jim Meyering  <meyering@redhat.com>
24883
24884         maint.mk: fix a bug introduced in last change
24885         * top/maint.mk (gl_assured_headers_): Now that all names are on
24886         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24887         is not anchored to end of word, it should be adequate.
24888
24889         maint.mk: avoid side-effect in latest syntax-check
24890         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24891         to run commands via $(shell...), and hence to incur cost only when
24892         the new rule is actually run.
24893
24894         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24895         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24896         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24897         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24898         (gl_assured_headers_, az_, AZ_): Define.
24899         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24900
24901 2010-04-26  Jim Meyering  <jim@meyering.net>
24902             Bruno Haible  <bruno@clisp.org>
24903
24904         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24905         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24906         Prompted by an exchange with Gilles Espinasse.
24907
24908 2010-04-26  Jim Meyering  <meyering@redhat.com>
24909
24910         git-version-gen: aesthetic tweak
24911         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24912         so that the command remains on a single line.
24913
24914 2010-04-26  Eric Blake  <eblake@redhat.com>
24915
24916         git-version-gen: allow use on EBCDIC hosts
24917         * build-aux/git-version-gen (dirty): Use literal rather than tying
24918         ourselves to ascii.
24919         Reported by Steve Goetze.
24920
24921 2010-04-25  Bruno Haible  <bruno@clisp.org>
24922
24923         netdb: Add support for GNULIB_POSIXCHECK.
24924         * lib/netdb.in.h: Include warn-on-use.h.
24925         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24926         functions are used when GNULIB_POSIXCHECK is defined and the
24927         getaddrinfo module is not in use.
24928         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24929         freeaddrinfo, gai_strerror, getnameinfo are declared.
24930         * modules/netdb (Depends-on): Add warn-on-use.
24931         (Makefile.am): Include warn-on-use.h in netdb.h.
24932
24933 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24934
24935         build: avoid "make check" failure without .git/ directory
24936         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24937         there is no .git/ directory.
24938
24939 2010-04-25  Bruno Haible  <bruno@clisp.org>
24940
24941         ptsname: Fix misuse of ttyname_r.
24942         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24943         of errno.
24944
24945 2010-04-25  Bruno Haible  <bruno@clisp.org>
24946
24947         ttyname_r: Make it work on Solaris 10.
24948         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24949         if the system function has the POSIX declaration. Test whether the
24950         function fails if the buffer is less than 128 bytes large.
24951         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24952         system's ttyname_r function. Provide a reasonably large buffer.
24953         * modules/ttyname_r (Depends-on): Add extensions.
24954         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24955
24956 2010-04-25  Bruno Haible  <bruno@clisp.org>
24957
24958         Use the 'extensions' module for some more functions on Solaris.
24959         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24960         module.
24961         * doc/posix-functions/ctime_r.texi: Likewise.
24962         * doc/posix-functions/getgrgid_r.texi: Likewise.
24963         * doc/posix-functions/getgrnam_r.texi: Likewise.
24964         * doc/posix-functions/getpwnam_r.texi: Likewise.
24965         * doc/posix-functions/getpwuid_r.texi: Likewise.
24966         * doc/posix-functions/readdir_r.texi: Likewise.
24967         * doc/posix-functions/sigwait.texi: Likewise.
24968         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24969         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24970
24971 2010-04-25  Bruno Haible  <bruno@clisp.org>
24972
24973         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24974         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24975         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24976         * lib/ttyname_r.c: Include <limits.h>.
24977         (ttyname_r): Define using the system's ttyname_r function, if it exists
24978         and not on Solaris.
24979         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24980         set.
24981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24982         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24983         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24984         Reported by Simon Josefsson.
24985
24986 2010-04-25  Bruno Haible  <bruno@clisp.org>
24987
24988         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24989         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24990         * doc/posix-functions/ctime_r.texi: Likewise.
24991         * doc/posix-functions/getgrgid_r.texi: Likewise.
24992         * doc/posix-functions/getgrnam_r.texi: Likewise.
24993         * doc/posix-functions/getlogin_r.texi: Likewise.
24994         * doc/posix-functions/getpwnam_r.texi: Likewise.
24995         * doc/posix-functions/getpwuid_r.texi: Likewise.
24996         * doc/posix-functions/readdir_r.texi: Likewise.
24997         * doc/posix-functions/sigwait.texi: Likewise.
24998         * doc/posix-functions/ttyname_r.texi: Likewise.
24999         Reported by Simon Josefsson.
25000
25001 2010-04-25  Bruno Haible  <bruno@clisp.org>
25002
25003         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25004         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25005         also to --create-testdir.
25006         (func_acceptable): Don't consider the status of *-tests modules here.
25007         (func_modules_transitive_closure): Consider it here, before including a
25008         test module.
25009         (func_import, func_create_testdir): Set inc_all_direct_tests,
25010         inc_all_indirect_tests.
25011         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25012         --create-testdir and --create-megatestdir.
25013
25014 2010-04-25  Bruno Haible  <bruno@clisp.org>
25015
25016         gnulib-tool: Add --without-*-tests options.
25017         * gnulib-tool (func_usage): Document the --without-*-tests options.
25018         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25019         excl_unportable_tests): New variables.
25020         Fail if they are specified with --import or --update.
25021         (func_acceptable): Respect the excl_*_tests variables.
25022         (func_import): Set the excl_*_tests variables to empty.
25023
25024 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25025             Bruno Haible  <bruno@clisp.org>
25026
25027         Work around a MacOS X 10.4 bug with openpty.
25028         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25029         * tests/test-openpty.c (main): Close the master side explicitly.
25030
25031 2010-04-25  Bruno Haible  <bruno@clisp.org>
25032
25033         strnlen: Fix a C++ test error on MacOS X and Solaris.
25034         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25035         the function is not declared.
25036         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25037         Simon Josefsson.
25038
25039 2010-04-24  Bruno Haible  <bruno@clisp.org>
25040
25041         Avoid a gcc warning.
25042         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25043         of correct type for %08lx directive.
25044         Reported by Eric Blake.
25045
25046 2010-04-24  Bruno Haible  <bruno@clisp.org>
25047
25048         vasnprintf: Correct errno value in case of out-of-memory.
25049         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25050         or sprintf. Use the errno value from SNPRINTF or sprintf.
25051         Reported by Ian Beckwith <ianb@erislabs.net>.
25052
25053 2010-04-24  Bruno Haible  <bruno@clisp.org>
25054
25055         ansi-c++-opt: Find correct compiler when cross-compiling.
25056         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25057         AC_CHECK_PROGS.
25058         Reported by Simon Josefsson.
25059
25060 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25061
25062         vc-list-files: Add support for subversion
25063         * build-aux/vc-list-files: Use "svn list" to generate the list of
25064         files controlled by subversion.
25065
25066 2010-04-23  Jim Meyering  <meyering@redhat.com>
25067
25068         vc-list-files tests: convert to use init.sh
25069         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25070         path_prepend_.
25071         Use Exit, not exit.
25072         Use skip_ rather than open coding it.
25073         Remove trap set-up and compare definitions.
25074         * tests/test-vc-list-files-git.sh: Likewise.
25075         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25076
25077 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25078
25079         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25080         backup files.
25081
25082 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25083
25084         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25085
25086 2010-04-20  Eric Blake  <eblake@redhat.com>
25087
25088         tests: be robust to ignored SIGPIPE
25089         * tests/test-select-in.sh: Consume all output.
25090         * tests/test-lseek.sh: Check correct exit status, while avoiding
25091         EPIPE.
25092
25093 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25094             Bruno Haible  <bruno@clisp.org>
25095
25096         visibility: Don't use -fvisibility if it leads to a warning.
25097         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25098         yes, don't pretend that visibility works if it leads to a warning.
25099         Reported by Mike Gran <spk121@yahoo.com>.
25100
25101 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25102
25103         * build-aux/bootstrap: Use "git -h" for testing for supported options
25104         instead of "git --help".  The short-form option only shows a summary,
25105         and doesn't layout the full man page.  Grep for the full option name
25106         in the summary, too.
25107
25108 2010-04-19  Bruno Haible  <bruno@clisp.org>
25109
25110         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25111         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25112         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25113         mention of RELOCATABLE_STRIP.
25114         Reported by Sylvain Beucler <beuc@beuc.net>.
25115
25116 2010-04-19  Bruno Haible  <bruno@clisp.org>
25117
25118         * lib/diffseq.h: Fix typo in comment.
25119         Reported by Eric Blake.
25120
25121 2010-04-19  Bruno Haible  <bruno@clisp.org>
25122
25123         ioctl: Move autoconf macro to a .m4 file.
25124         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25125         * modules/ioctl (Files): Add it.
25126         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25127         Reported by Ian Beckwith <ianb@erislabs.net>.
25128
25129 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25130             Bruno Haible  <bruno@clisp.org>
25131
25132         diffseq: Accommodate use-case with abstract arrays.
25133         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25134         is not defined.
25135         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25136         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25137
25138 2010-04-18  Bruno Haible  <bruno@clisp.org>
25139
25140         * doc/posix-headers/stdbool.texi: More precise wording.
25141
25142 2010-04-17  Jim Meyering  <meyering@redhat.com>
25143
25144         maint.mk: use gnu-style indentation in an embedded perl script
25145         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25146         Rename variable: s/two/last_two_bytes/
25147
25148 2010-04-16  Eric Blake  <eblake@redhat.com>
25149
25150         test-stdbool: skip test that fails with Solaris CC
25151         * tests/test-stdbool.c (f): Skip test that causes compilation
25152         error under buggy C++ compiler.
25153         * lib/stdbool.in.h: Document the limitation.
25154         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25155
25156         setenv: allow compilation with C++
25157         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25158         register keyword.
25159
25160         stdint: allow test to pass with C++
25161         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25162
25163         getopt: allow compilation with C++
25164         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25165         struct.
25166         * lib/getopt.c (_getopt_internal_r): Use correct type.
25167         Reported by Dagobert Michelson, via Joel E. Denny.
25168
25169 2010-04-16  Bruno Haible  <bruno@clisp.org>
25170
25171         Override netdb.h always.
25172         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25173         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25174         Reported by Ludovic Courtès <ludo@gnu.org>.
25175
25176 2010-04-15  Bruno Haible  <bruno@clisp.org>
25177
25178         openpty: Fix mistake from 2010-03-21.
25179         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25180         Reported by Simon Josefsson.
25181
25182 2010-04-15  Eric Blake  <eblake@redhat.com>
25183
25184         test-forkpty: fix expected signature
25185         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25186         Reported by Simon Josefsson.
25187
25188 2010-04-15  Jim Meyering  <meyering@redhat.com>
25189
25190         maint.mk: texinfo_suffix_re_: correct the default regexp
25191         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25192
25193         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25194         make it configurable via texinfo_suffix_re_.
25195
25196 2010-04-14  Eric Blake  <eblake@redhat.com>
25197
25198         strtok_r: relax license to LGPLv2+
25199         * modules/strtok_r (License): Relax license.
25200         Reported by Matthias Bolte.
25201
25202 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25203
25204         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25205         version 1.4.4 by default instead of requiring the libgcrypt
25206         version used during build.  This makes it possible to use the
25207         application with older but still binary compatible libgcrypt
25208         versions.
25209
25210 2010-04-13  Eric Blake  <eblake@redhat.com>
25211
25212         getopt-gnu: match recent glibc fixes and posix ruling
25213         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25214         '+' handling, when requesting extensions.
25215         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25216         'W;' handling.
25217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25218         * doc/posix-functions/getopt.texi (getopt): Document this.
25219         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25220         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25221         Likewise.
25222
25223         getopt: merge bug fixes from glibc
25224         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25225         diagnostics.  Honor '+:' correctly.  Reject ';'.
25226
25227         getopt-posix: detect MacOS bug
25228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25229         optind when missing a required argument.
25230         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25231         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25232         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25233         Likewise.
25234
25235         getopt-posix: avoid spurious failure on Solaris
25236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25237         an indicator that setting optind=1 is sufficient for reset.
25238
25239         getopt-posix: avoid spurious failure on FreeBSD
25240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25241         in POSIX mode, since the m4 test uses it.
25242
25243         gnulib-tool: silence warning on BSD sh
25244         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25245
25246 2010-04-13  Jim Meyering  <meyering@redhat.com>
25247
25248         doc: users.txt: GNU patch now uses gnulib
25249         * users.txt: Add patch.
25250
25251 2010-04-12  Jim Meyering  <meyering@redhat.com>
25252
25253         maint.mk: generate more concise timing data for syntax-check rules
25254         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25255         " done" from each line that reports a syntax-check test duration.
25256
25257 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25258
25259         git-version-gen: use "git update-index..." rather than "git status"
25260         * build-aux/git-version-gen: Use git update-index --refresh, not
25261         "git status".  With some versions of git, "git status" would fail
25262         to update the index and result in an unwarranted "-dirty" suffix.
25263
25264 2010-04-11  Jim Meyering  <meyering@redhat.com>
25265
25266         openat: correct formatting (no semantic change)
25267         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25268         Suggested by Bruno Haible.
25269
25270 2010-04-11  Bruno Haible  <bruno@clisp.org>
25271
25272         Stricter declaration checking in testdirs.
25273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25274         If for_tests is true, augment AM_CPPFLAGS to define
25275         GNULIB_STRICT_CHECKING.
25276         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25277         GNULIB_STRICT_CHECKING is defined, verify that the function is
25278         declared.
25279
25280 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25281             Bruno Haible  <bruno@clisp.org>
25282
25283         libunistring: Improve configure output.
25284         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25285         Don't say "consider installing GNU libunistring" when checking again
25286         with libiconv.
25287
25288 2010-04-11  Bruno Haible  <bruno@clisp.org>
25289
25290         libunistring: Correct value of $LTLIBUNISTRING.
25291         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25292         correct the value of $LTLIBUNISTRING.
25293
25294 2010-04-11  Bruno Haible  <bruno@clisp.org>
25295
25296         havelib: Add static libraries to LIBS in the right order.
25297         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25298         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25299
25300 2010-04-11  Bruno Haible  <bruno@clisp.org>
25301
25302         libunistring: Detect libunistring also when it depends on libiconv.
25303         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25304         the second AC_LIB_HAVE_LINKFLAGS invocation.
25305
25306 2010-04-11  James Youngman  <jay@gnu.org>
25307
25308         close-stream: declare local scalars to be "const"
25309         * lib/close-stream.c (close_stream): Make boolean variables const
25310         to document the fact that we set but do not change them.
25311
25312 2010-04-11  Bruno Haible  <bruno@clisp.org>
25313
25314         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25315
25316 2010-04-11  Jim Meyering  <meyering@redhat.com>
25317
25318         maint.mk: don't include dist-check.mk
25319         * top/maint.mk: Remove bogus include directive.
25320
25321         maint.mk: improve empty-line-at-EOF check
25322         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25323         solution, rather than tail+Perl-based one.  The latter would read
25324         a few kilobytes from the end of each file, and did not handle empty
25325         files properly.
25326
25327         maint.mk: print the elapsed time for each syntax-check rule
25328         * top/maint.mk (sc_m_rules_): Save start time in a file.
25329         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25330         (local-check): Interpose the .z rules
25331
25332 2010-04-11  Jim Meyering  <meyering@redhat.com>
25333
25334         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25335         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25336         empty file with one that ends in an empty line.
25337
25338 2010-04-10  Bruno Haible  <bruno@clisp.org>
25339
25340         mkdir: Make it work on mingw64.
25341         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25342         * lib/mkdir.c: Update comment.
25343         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25344
25345 2010-04-10  Bruno Haible  <bruno@clisp.org>
25346
25347         Don't override improved macro from newer autoconf.
25348         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25349         autoconf >= 2.62.
25350         Reported by Joel E. Denny <jdenny@clemson.edu>.
25351
25352 2010-04-10  Jim Meyering  <meyering@redhat.com>
25353
25354         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25355         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25356
25357         maint.mk: correct a diagnostic
25358         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25359         in diagnostic; now use $prohibit.
25360
25361 2010-04-10  Bruno Haible  <address@hidden>
25362
25363         fchownat: Fix a C++ test error on Solaris 8.
25364         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25365         the function does not exist.
25366
25367 2010-04-10  Bruno Haible  <bruno@clisp.org>
25368
25369         vasnprintf: Add more tests.
25370         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25371         (test_function): Test converting an invalid wide string.
25372
25373         vasnprintf: Correct handling of unconvertible wide string arguments.
25374         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25375         VASNPRINTF.
25376         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25377         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25378         smaller than the expected maximum need for the directive. Set errno to
25379         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25380         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25382         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25383         * modules/vasnprintf (Files): Add m4/printf.m4.
25384         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25385
25386 2010-04-10  Bruno Haible  <bruno@clisp.org>
25387
25388         vasnprintf: Fix crash in %ls directive.
25389         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25390         string is passed as argument to %ls, with no precision and no width.
25391         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25392
25393 2010-04-10  Bruno Haible  <bruno@clisp.org>
25394
25395         vasnprintf: Fix multiple test failures on mingw.
25396         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25397         _snprintf, or snwprintf, not _snwprintf.
25398
25399 2010-04-10  Bruno Haible  <bruno@clisp.org>
25400
25401         write: Fix a C++ test error on mingw.
25402         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25403
25404 2010-04-10  Bruno Haible  <bruno@clisp.org>
25405
25406         vasnprintf test: Reduce code duplication.
25407         * tests/test-vasnprintf.c (test_function): New function, extracted from
25408         test_vasnprintf.
25409         (test_vasnprintf, test_asnprintf): Invoke it.
25410
25411 2010-04-10  Bruno Haible  <bruno@clisp.org>
25412
25413         strnlen: Fix warning in C++ mode on MacOS X.
25414         * lib/string.in.h (strnlen): Use the modern idiom.
25415         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25416         defining strnlen as a macro already in <config.h>.
25417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25418         REPLACE_STRNLEN.
25419         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25420         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25421
25422 2010-04-08  James Youngman  <jay@gnu.org>
25423
25424         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25425         the example.
25426
25427 2010-04-09  Jim Meyering  <meyering@redhat.com>
25428
25429         maint.mk: print better diagnostic when there is no $(_hv_file)
25430         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25431         announce that when $(_hv_file) (aka help-version) does not exist.
25432
25433         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25434         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25435         not try to interpret its random input bytes.  Jarno Rajahalme reported
25436         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25437         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25438         (mktempd_): Likewise, just in case.
25439
25440         ftruncate: add two years to projected module removal date: 2012
25441         * m4/ftruncate.m4: Adjust comments.
25442
25443         ftruncate: mark module as obsolete; even MinGW provides it, now
25444         * modules/ftruncate (Status): Obsolete.
25445         (Notice): Say that.
25446         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25447         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25448
25449 2010-04-08  Bruno Haible  <bruno@clisp.org>
25450
25451         Fix side effects from tests-related modules.
25452         * modules/dprintf-posix (Comment): New section.
25453         * modules/fprintf-posix (Comment): Likewise.
25454         * modules/obstack-printf-posix (Comment): Likewise.
25455         * modules/printf-posix (Comment): Likewise.
25456         * modules/snprintf-posix (Comment): Likewise.
25457         * modules/sprintf-posix (Comment): Likewise.
25458         * modules/vasnprintf-posix (Comment): Likewise.
25459         * modules/vasprintf-posix (Comment): Likewise.
25460         * modules/vdprintf-posix (Comment): Likewise.
25461         * modules/vfprintf-posix (Comment): Likewise.
25462         * modules/vprintf-posix (Comment): Likewise.
25463         * modules/vsnprintf-posix (Comment): Likewise.
25464         * modules/vsprintf-posix (Comment): Likewise.
25465         * modules/xprintf-posix (Comment): Likewise.
25466         * modules/xvasprintf-posix (Comment): Likewise.
25467         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25468         * modules/floorf-tests (Depends-on): Likewise.
25469         * modules/round-tests (Depends-on): Likewise.
25470         * modules/roundf-tests (Depends-on): Likewise.
25471         * modules/trunc-tests (Depends-on): Likewise.
25472         * modules/truncf-tests (Depends-on): Likewise.
25473         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25474         'fprintf-posix' module is not present.
25475         * tests/test-floorf2.c (check): Likewise.
25476         * tests/test-trunc2.c (check): Likewise.
25477         * tests/test-truncf2.c (check): Likewise.
25478         * tests/test-round2.c (equal): Likewise.
25479         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25480
25481 2010-04-07  Karl Berry  <karl@gnu.org>
25482
25483         * config/srclist.txt,
25484         * config/srclistvars.sh,
25485         * config/srclist-update: doc fixes.
25486
25487 2010-04-07  Jim Meyering  <meyering@redhat.com>
25488
25489         maint.mk: add a PATH crosschecking syntax-check rule
25490         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25491         Useful if you use a test like the one in help-version (coreutils,
25492         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25493         printed by prog --version.
25494
25495 2010-04-06  Bruno Haible  <bruno@clisp.org>
25496
25497         Fix link error on mingw.
25498         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25499         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25500
25501 2010-04-06  Bruno Haible  <bruno@clisp.org>
25502
25503         Assume rmdir exists.
25504         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25505
25506 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25507
25508         doc: update users.txt
25509         * users.txt: Add gcal.
25510
25511 2010-04-06  Jim Meyering  <meyering@redhat.com>
25512
25513         init.sh: simply unset TMPDIR rather than risking env -i
25514         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25515         although it probably works fine on all Unix-based systems, some
25516         systems (Cygwin?) cannot tolerate a totally cleared environment.
25517         Suggestion from Eric Blake.
25518
25519 2010-04-06  Jim Meyering  <meyering@redhat.com>
25520
25521         init.sh: portability fix: use env's POSIX-specified -i option not -u
25522         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25523         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25524
25525 2010-04-05  Bruno Haible  <bruno@clisp.org>
25526
25527         btowc: Work around Cygwin 1.7.2 bug.
25528         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25529         does not map NUL to 0.
25530         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25531
25532 2010-04-05  Bruno Haible  <bruno@clisp.org>
25533
25534         Make the multithread modules work on Cygwin 1.7.2.
25535         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25536         imported symbols can be declared weak, so that it returns "no" on
25537         Cygwin 1.7.2.
25538
25539 2010-04-05  Bruno Haible  <bruno@clisp.org>
25540
25541         Use the module 'strncat'.
25542         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25543
25544         Tests for module 'strncat'.
25545         * modules/strncat-tests: New file.
25546         * tests/test-strncat.c: New file.
25547
25548         New module 'strncat'.
25549         * lib/string.in.h (strncat): New declaration.
25550         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25551         * m4/strncat.m4: New file, based on m4/memchr.m4.
25552         * modules/strncat: New file.
25553         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25554         is declared.
25555         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25556         REPLACE_STRNCAT.
25557         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25558         REPLACE_STRNCAT.
25559         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25560         module.
25561         * tests/test-string-c++.cc: Check signature of strncat.
25562
25563 2010-04-05  Jim Meyering  <meyering@redhat.com>
25564
25565         xstrtoumax-tests: convert to use init.sh
25566         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25567         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25568         Use Exit, not exit.
25569         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25570
25571         xstrtoimax-tests: convert to use init.sh
25572         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25573         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25574         Use Exit, not exit.
25575         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25576
25577 2010-04-05  Bruno Haible  <bruno@clisp.org>
25578
25579         sys_socket: Avoid #define replacements in C++ mode.
25580         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25581         warning to the function if possible, rather than #defining the symbol
25582         to a dysfunctional alias.
25583
25584 2010-04-05  Bruno Haible  <bruno@clisp.org>
25585
25586         fseeko: Fix C++ test error on mingw.
25587         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25588         gl_FUNC_FSEEKO.
25589         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25590         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25591         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25592         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25593
25594 2010-04-05  Bruno Haible  <bruno@clisp.org>
25595
25596         duplocale: Improve test output.
25597         * tests/test-duplocale.c (main): Print reason for skipped test.
25598
25599 2010-04-05  Bruno Haible  <bruno@clisp.org>
25600
25601         Assume rmdir exists.
25602         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25603         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25604
25605 2010-04-05  Bruno Haible  <bruno@clisp.org>
25606
25607         Fix link error on Solaris 8 with cc.
25608         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25609
25610 2010-04-05  Bruno Haible  <bruno@clisp.org>
25611
25612         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25613         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25614
25615 2010-04-05  Bruno Haible  <bruno@clisp.org>
25616
25617         vasprintf: Update documentation.
25618         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25619
25620 2010-04-05  Bruno Haible  <bruno@clisp.org>
25621
25622         ptsname: Improve test.
25623         * tests/test-ptsname.c (main): Also try the various master names of BSD
25624         systems.
25625
25626 2010-04-05  Bruno Haible  <bruno@clisp.org>
25627
25628         memchr: Avoid a possible C++ test error.
25629         * lib/string.in.h (memchr): Provide declaration if function is missing.
25630         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25631         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25633         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25634
25635 2010-04-05  Bruno Haible  <bruno@clisp.org>
25636
25637         strtok_r: Improve idiom.
25638         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25639         AC_LIBOBJ is used.
25640
25641 2010-04-05  Bruno Haible  <bruno@clisp.org>
25642
25643         strdup: Improve idiom.
25644         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25645         AC_LIBOBJ is used.
25646         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25647         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25648         when AC_LIBOBJ is used.
25649
25650 2010-04-05  Bruno Haible  <bruno@clisp.org>
25651
25652         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25653         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25654         don't set REPLACE_MBSINIT to 1.
25655         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25656         don't set REPLACE_MBRTOWC to 1.
25657         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25658         exist, don't set REPLACE_MBSRTOWCS to 1.
25659         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25660         exist, don't set REPLACE_MBSNRTOWCS to 1.
25661         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25662         don't set REPLACE_WCRTOMB to 1.
25663         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25664         exist, don't set REPLACE_WCSRTOMBS to 1.
25665         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25666         exist, don't set REPLACE_WCSNRTOMBS to 1.
25667
25668 2010-04-05  Bruno Haible  <bruno@clisp.org>
25669
25670         ldexpl: Improve idiom.
25671         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25672         make sure to set HAVE_DECL_LDEXPL to 0.
25673
25674 2010-04-05  Jim Meyering  <meyering@redhat.com>
25675
25676         xstrtol-tests: convert to use init.sh
25677         * modules/xstrtol-tests (Files): Add tests/init.sh.
25678         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25679         Use Exit, not exit.
25680         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25681
25682         atexit-tests: convert to use init.sh
25683         * modules/atexit-tests (Files): Add tests/init.sh.
25684         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25685         Use Exit, not exit.
25686         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25687
25688         init.sh: fix typo
25689         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25690
25691         init.sh: make it easier for a test script to write to the tty, ...
25692         when using automake's parallel-tests mode.
25693         * tests/init.sh (stderr_fileno_): Define overridable variable.
25694         (warn_): New function, to use it.
25695         (fail_, skip_, framework_failure_): Use warn_.
25696
25697 2010-04-04  Bruno Haible  <bruno@clisp.org>
25698
25699         btowc: Avoid warning.
25700         * lib/btowc.c: Include <stdlib.h>.
25701         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25702
25703 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25704             Bruno Haible  <bruno@clisp.org>
25705
25706         wchar: Port to NetBSD 1.5.
25707         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25708         * lib/wctype.in.h (WEOF): Likewise.
25709
25710 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25711             Bruno Haible  <bruno@clisp.org>
25712
25713         Port extended stdio to NetBSD 1.5.
25714         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25715         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25716         older.
25717
25718 2010-04-04  Bruno Haible  <bruno@clisp.org>
25719
25720         string: Remove unused substitution.
25721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25722         HAVE_DECL_STRERROR.
25723         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25724
25725 2010-04-04  Bruno Haible  <bruno@clisp.org>
25726
25727         strtod: Avoid a possible C++ test error.
25728         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25729         set REPLACE_STRTOD.
25730
25731 2010-04-04  Bruno Haible  <bruno@clisp.org>
25732
25733         strerror: Update documentation.
25734         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25735
25736 2010-04-04  Bruno Haible  <bruno@clisp.org>
25737
25738         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25739         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25740         _GL_CXXALIAS_SYS_CAST.
25741
25742 2010-04-04  Bruno Haible  <bruno@clisp.org>
25743
25744         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25745         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25746         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25747         REPLACE_FREXPL to 1.
25748         * doc/posix-functions/frexpl.texi: Update documentation.
25749
25750 2010-04-04  Bruno Haible  <bruno@clisp.org>
25751
25752         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25753         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25754
25755 2010-04-04  Bruno Haible  <bruno@clisp.org>
25756
25757         Implement nanosleep for native Windows.
25758         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25759
25760 2010-04-04  Bruno Haible  <bruno@clisp.org>
25761
25762         math: Fix some C++ test errors on Solaris 8.
25763         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25764
25765 2010-04-04  Bruno Haible  <bruno@clisp.org>
25766
25767         math: Fix some C++ test errors on Cygwin.
25768         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25769         truncl): Provide declaration if the system does not have it.
25770         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25771         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25772         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25773         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25774         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25775         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25776         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25777         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25778         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25779         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25780         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25781         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25782         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25783         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25784         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25785         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25787         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25788         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25789         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25790         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25791         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25792
25793 2010-04-04  Bruno Haible  <bruno@clisp.org>
25794
25795         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25796         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25797         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25798         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25799         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25800         * m4/isinf.m4 (gl_ISINF): Likewise.
25801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25802
25803 2010-04-04  Bruno Haible  <bruno@clisp.org>
25804
25805         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25806         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25807
25808 2010-04-04  Bruno Haible  <bruno@clisp.org>
25809
25810         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25811         * modules/tmpfile (configure.ac): Update.
25812
25813         tmpfile: Fix C++ test error on mingw.
25814         * lib/stdio.in.h (tmpfile): New declaration.
25815         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25816         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25817         * modules/tmpfile (Depends-on): Add stdio.
25818         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25819         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25820         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25821         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25822         REPLACE_TMPFILE.
25823         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25824
25825 2010-04-04  Bruno Haible  <bruno@clisp.org>
25826
25827         ioctl: Fix C++ test error on mingw.
25828         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25829         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25830         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25831
25832 2010-04-03  Bruno Haible  <bruno@clisp.org>
25833
25834         wcwidth: Fix C++ test error on mingw.
25835         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25837         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25838
25839 2010-04-03  Bruno Haible  <bruno@clisp.org>
25840
25841         nanosleep: Fix C++ test error on mingw.
25842         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25843         * lib/time.in.h (nanosleep): Use modern idiom.
25844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25845         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25846         REPLACE_NANOSLEEP to 1.
25847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25848         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25849
25850 2010-04-03  Bruno Haible  <bruno@clisp.org>
25851
25852         strptime: Fix C++ test error on mingw.
25853         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25854         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25855         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25856         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25858         not REPLACE_STRPTIME.
25859         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25860         REPLACE_STRPTIME.
25861
25862 2010-04-03  Bruno Haible  <bruno@clisp.org>
25863
25864         timegm: Fix C++ test error on mingw.
25865         * lib/time.in.h (timegm): Use modern idiom.
25866         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25867         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25868         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25869         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25870
25871 2010-04-03  Bruno Haible  <bruno@clisp.org>
25872
25873         timegm: Assume declaration if function exists.
25874         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25875         if it exists. Don't clobber ac_cv_func_timegm.
25876
25877 2010-04-03  Bruno Haible  <bruno@clisp.org>
25878
25879         time_r: Fix C++ test error on mingw.
25880         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25881         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25882         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25883         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25884         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25885
25886 2010-04-03  Bruno Haible  <bruno@clisp.org>
25887
25888         time_r: Minor updates.
25889         * modules/time_r (Description): Mention the provided functions.
25890         * lib/time_r.c: Don't include <string.h>.
25891         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25892         * doc/posix-functions/localtime_r.texi: Likewise.
25893
25894 2010-04-03  Bruno Haible  <bruno@clisp.org>
25895
25896         time: Fix regression introduced on 2010-03-08.
25897         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25898         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25899
25900 2010-04-03  Jim Meyering  <meyering@redhat.com>
25901
25902         maint.mk: don't silently disable project-specific syntax-check rules
25903         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25904         that they need to convert their project-specific syntax-check rules
25905         to use the new _sc_search_regexp.
25906
25907 2010-04-03  Bruno Haible  <bruno@clisp.org>
25908
25909         fchdir: Fix regression introduced on 2010-03-08.
25910         * lib/unistd.in.h (fchdir): Fix declaration.
25911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25913         REPLACE_FCHDIR.
25914         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25915         REPLACE_FCHDIR.
25916
25917 2010-04-03  Bruno Haible  <bruno@clisp.org>
25918
25919         getpagesize: Fix C++ test error on mingw.
25920         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25921         system does not declare the function.
25922         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25923         declared.
25924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25925         HAVE_DECL_GETPAGESIZE.
25926         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25927
25928 2010-04-03  Bruno Haible  <bruno@clisp.org>
25929
25930         stdio: Make C++ tests work on mingw.
25931         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25932         does not declare the function.
25933
25934 2010-04-03  Bruno Haible  <bruno@clisp.org>
25935
25936         ftello: Fix C++ test error on mingw.
25937         * lib/stdio.in.h (ftello): Use modern idiom.
25938         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25939         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25940         is missing and that it needs to be replaced.
25941         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25943         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25944
25945 2010-04-03  Bruno Haible  <bruno@clisp.org>
25946
25947         fseeko: Fix C++ test error on mingw.
25948         * lib/stdio.in.h (fseeko): Use modern idiom.
25949         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25950         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25951         is missing and that it needs to be replaced.
25952         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25954         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25955
25956 2010-04-03  Bruno Haible  <bruno@clisp.org>
25957
25958         mkstemp: Fix C++ test error on mingw.
25959         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25960         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25961         function is missing and that it needs to be replaced.
25962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25963         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25964
25965 2010-04-03  Bruno Haible  <bruno@clisp.org>
25966
25967         stpncpy: Fix C++ test error on mingw.
25968         * lib/string.in.h (stpncpy): Use modern idiom.
25969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25970         function is missing and that it needs to be replaced.
25971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25972         REPLACE_STPNCPY.
25973         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25974
25975 2010-04-03  Bruno Haible  <bruno@clisp.org>
25976
25977         sys_stat: Fix C++ test error on mingw.
25978         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25979         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25980
25981 2010-04-03  Bruno Haible  <bruno@clisp.org>
25982
25983         pty: Update doc.
25984         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25985
25986 2010-04-03  Bruno Haible  <bruno@clisp.org>
25987
25988         unistd: Fix C++ test error on mingw.
25989         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25990
25991 2010-04-03  Bruno Haible  <bruno@clisp.org>
25992
25993         Update doc regarding mingw.
25994         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25995         * doc/glibc-functions/login_tty.texi: Likewise.
25996         * doc/glibc-functions/forkpty.texi: Likewise.
25997
25998 2010-04-03  Bruno Haible  <bruno@clisp.org>
25999
26000         stdlib: Avoid compilation failure of c-strtold on mingw.
26001         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26002
26003 2010-04-03  Bruno Haible  <bruno@clisp.org>
26004
26005         locale: Make C++ tests work on Cygwin and mingw.
26006         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26007         cannot provide the function.
26008         Reported by Simon Josefsson.
26009
26010 2010-04-03  Bruno Haible  <bruno@clisp.org>
26011
26012         localename: Port to MacOS X 10.6.
26013         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26014         memory layout of the locales in MacOS X 10.6 as well.
26015         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26016
26017 2010-04-02  Bruno Haible  <bruno@clisp.org>
26018
26019         gnulib-tool: Ensure that long-running tests are executed last.
26020         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26021         running tests after the one for the other tests.
26022
26023 2010-04-02  Bruno Haible  <bruno@clisp.org>
26024
26025         gnulib-tool: Ensure the tests in the main directory are executed first.
26026         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26027         start with the current directory.
26028
26029 2010-04-02  Bruno Haible  <bruno@clisp.org>
26030
26031         Tests for module 'havelib', moved here from GNU gettext.
26032         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26033         modifications.
26034         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26035         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26036         with modifications.
26037         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26038         modifications.
26039         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26040         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26041         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26042         with modifications.
26043         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26044         with modifications.
26045         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26046         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26047         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26048         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26049         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26050         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26051         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26052         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26053         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26054         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26055         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26056         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26057         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26058         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26059         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26060         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26061         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26062         with modifications.
26063         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26064         with modifications.
26065         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26066         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26067         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26068         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26069         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26070         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26071         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26072         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26073         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26074         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26075         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26076         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26077         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26078         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26079         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26080         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26081         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26082         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26083         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26084         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26085         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26086         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26087         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26088         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26089         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26090         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26091         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26092         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26093         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26094         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26095         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26096         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26097         * tests/havelib/rpathx/rpathx.c: New file, from
26098         gettext/autoconf-lib-link.
26099         * tests/havelib/rpathx/Makefile.am: New file, from
26100         gettext/autoconf-lib-link.
26101         * tests/havelib/rpathx/configure.ac: New file, from
26102         gettext/autoconf-lib-link with modifications.
26103         * tests/havelib/rpathy/rpathy.c: New file, from
26104         gettext/autoconf-lib-link.
26105         * tests/havelib/rpathy/Makefile.am: New file, from
26106         gettext/autoconf-lib-link.
26107         * tests/havelib/rpathy/configure.ac: New file, from
26108         gettext/autoconf-lib-link with modifications.
26109         * tests/havelib/rpathz/rpathz.c: New file, from
26110         gettext/autoconf-lib-link.
26111         * tests/havelib/rpathz/Makefile.am: New file, from
26112         gettext/autoconf-lib-link.
26113         * tests/havelib/rpathz/configure.ac: New file, from
26114         gettext/autoconf-lib-link with modifications.
26115         * tests/havelib/rpathlx/usex.c: New file, from
26116         gettext/autoconf-lib-link.
26117         * tests/havelib/rpathlx/Makefile.am: New file, from
26118         gettext/autoconf-lib-link.
26119         * tests/havelib/rpathlx/configure.ac: New file, from
26120         gettext/autoconf-lib-link with modifications.
26121         * tests/havelib/rpathly/usey.c: New file, from
26122         gettext/autoconf-lib-link.
26123         * tests/havelib/rpathly/Makefile.am: New file, from
26124         gettext/autoconf-lib-link.
26125         * tests/havelib/rpathly/configure.ac: New file, from
26126         gettext/autoconf-lib-link with modifications.
26127         * tests/havelib/rpathlz/usez.c: New file, from
26128         gettext/autoconf-lib-link.
26129         * tests/havelib/rpathlz/Makefile.am: New file, from
26130         gettext/autoconf-lib-link.
26131         * tests/havelib/rpathlz/configure.ac: New file, from
26132         gettext/autoconf-lib-link with modifications.
26133         * tests/havelib/rpathlyx/usey.c: New file, from
26134         gettext/autoconf-lib-link.
26135         * tests/havelib/rpathlyx/Makefile.am: New file, from
26136         gettext/autoconf-lib-link.
26137         * tests/havelib/rpathlyx/configure.ac: New file, from
26138         gettext/autoconf-lib-link with modifications.
26139         * tests/havelib/rpathlzyx/usez.c: New file, from
26140         gettext/autoconf-lib-link.
26141         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26142         gettext/autoconf-lib-link.
26143         * tests/havelib/rpathlzyx/configure.ac: New file, from
26144         gettext/autoconf-lib-link with modifications.
26145         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26146         with modifications.
26147
26148 2010-04-02  Bruno Haible  <bruno@clisp.org>
26149
26150         gnulib-tool: Create distributed built sources also for the tests.
26151         * gnulib-tool (func_create_testdir): Also generate distributed built
26152         sources in the tests directory.
26153
26154 2010-04-02  Bruno Haible  <bruno@clisp.org>
26155
26156         gnulib-tool: Obey user's environment variables.
26157         * gnulib-tool (func_create_testdir): When creating built sources,
26158         respect the environment variables for autoconf, automake, etc. given by
26159         the user.
26160
26161 2010-04-02  Bruno Haible  <bruno@clisp.org>
26162
26163         gnulib-tool: Provide the value of --m4-base to modules.
26164         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26165         of gl_m4_base.
26166
26167 2010-04-02  Eric Blake  <eblake@redhat.com>
26168
26169         maint.mk: fix some fallout
26170         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26171         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26172
26173 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26174
26175         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26176         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26177         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26178         (sc_cast_of_x_alloc_return_value): Likewise.
26179         (sc_cast_of_alloca_return_value): Likewise.
26180         (sc_space_tab): Likewise.
26181         (sc_prohibit_atoi_atof): Likewise.
26182         (sc_prohibit_magic_number_exit): Likewise.
26183         (sc_error_exit_success): Likewise.
26184         (sc_file_system): Likewise.
26185         (sc_prohibit_have_config_h): Likewise.
26186         (sc_require_config_h): Likewise.
26187         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26188         (sc_obsolete_symbols): Likewise.
26189         (sc_changelog): Likewise.
26190         (sc_program_name): Likewise.
26191         (sc_the_the): Likewise.
26192         (sc_trailing_blank): Likewise.
26193         (sc_two_space_separator_in_usage): Likewise.
26194         (sc_useless_cpp_parens): Likewise.
26195         (sc_GPL_version): Likewise.
26196         (sc_GFDL_version): Likewise.
26197         (sc_texinfo_acronym): Likewise.
26198         (sc_prohibit_cvs_keyword): Likewise.
26199         (sc_prohibit_stat_st_blocks): Likewise.
26200         (sc_prohibit_S_IS_definition): Likewise.
26201         (sc_redundant_const): Likewise.
26202         (sc_makefile_TAB_only_indentation): Likewise.
26203         (sc_m4_quote_check): Likewise.
26204         (sc_makefile_path_separator_check): Likewise.
26205         (sc_copyright_check): Likewise.
26206         (sc_Wundef_boolean): Likewise.
26207         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26208
26209         maint.mk: match 0 or more whitespace-before-function-call '('
26210         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26211         that have zero or two-and-more spaces between the function name
26212         and the open parenthesis.
26213         (sc_error_message_warn_fatal): Likewise.
26214         (sc_error_message_uppercase): Likewise.
26215         (sc_error_message_period): Likewise.
26216
26217 2010-03-31  Eric Blake  <eblake@redhat.com>
26218
26219         maint.mk: check for [ as well as test
26220         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26221         Based on a libvirt report by Matthias Bolte.
26222
26223         gnumakefile: don't squelch _version output
26224         * top/GNUmakefile (_version): Create one-shot dependency rather
26225         than using $(shell) when version must be regenerated.
26226         (_autoreconf): Run verbosely, by default.
26227
26228         sys_time: avoid compiler warnings
26229         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26230         unconditional, fixing regression from 2010-03-29.
26231         Reported by Simon Josefsson.
26232
26233 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26234
26235         maint.mk: s/_header_without_use/_sc_header_without_use/
26236         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26237         (sc_prohibit_assert_without_use): Use the new name.
26238         (sc_prohibit_close_stream_without_use): Likewise.
26239         (sc_prohibit_getopt_without_use): Likewise.
26240         (sc_prohibit_quotearg_without_use): Likewise.
26241         (sc_prohibit_quote_without_use): Likewise.
26242         (sc_prohibit_long_options_without_use): Likewise.
26243         (sc_prohibit_inttostr_without_use): Likewise.
26244         (sc_prohibit_ignore_value_without_use): Likewise.
26245         (sc_prohibit_error_without_use): Likewise.
26246         (sc_prohibit_xalloc_without_use): Likewise.
26247         (sc_prohibit_hash_without_use): Likewise.
26248         (sc_prohibit_hash_pjw_without_use): Likewise.
26249         (sc_prohibit_safe_read_without_use): Likewise.
26250         (sc_prohibit_argmatch_without_use): Likewise.
26251         (sc_prohibit_canonicalize_without_use): Likewise.
26252         (sc_prohibit_root_dev_ino_without_use): Likewise.
26253         (sc_prohibit_openat_without_use): Likewise.
26254         (sc_prohibit_c_ctype_without_use): Likewise.
26255         (sc_prohibit_signal_without_use): Likewise.
26256         (sc_prohibit_intprops_without_use): Likewise.
26257
26258 2010-03-30  Eric Blake  <eblake@redhat.com>
26259
26260         maint: improve module indicators
26261         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26262         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26263         columns, and avoid extra macro expansion.
26264
26265         fdopendir: work around FreeBSD bug
26266         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26267         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26268         * modules/dirent (Makefile.am): Substitute it.
26269         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26270         declaration.
26271         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26272         fix.
26273         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26274
26275 2010-03-29  Bruno Haible  <bruno@clisp.org>
26276
26277         Emit #pragma system_header after the inclusion guard, not before.
26278         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26279         guard that spans the entire file, not before. This enables an
26280         optimization in GCC's preprocessor.
26281         * lib/ctype.in.h: Likewise.
26282         * lib/dirent.in.h: Likewise.
26283         * lib/errno.in.h: Likewise.
26284         * lib/float.in.h: Likewise.
26285         * lib/getopt.in.h: Likewise.
26286         * lib/iconv.in.h: Likewise.
26287         * lib/langinfo.in.h: Likewise.
26288         * lib/locale.in.h: Likewise.
26289         * lib/math.in.h: Likewise.
26290         * lib/netdb.in.h: Likewise.
26291         * lib/netinet_in.in.h: Likewise.
26292         * lib/pty.in.h: Likewise.
26293         * lib/sched.in.h: Likewise.
26294         * lib/se-selinux.in.h: Likewise.
26295         * lib/search.in.h: Likewise.
26296         * lib/spawn.in.h: Likewise.
26297         * lib/stdarg.in.h: Likewise.
26298         * lib/stdint.in.h: Likewise.
26299         * lib/string.in.h: Likewise.
26300         * lib/strings.in.h: Likewise.
26301         * lib/sys_file.in.h: Likewise.
26302         * lib/sys_ioctl.in.h: Likewise.
26303         * lib/sys_time.in.h: Likewise.
26304         * lib/sys_times.in.h: Likewise.
26305         * lib/sys_utsname.in.h: Likewise.
26306         * lib/sys_wait.in.h: Likewise.
26307         * lib/sysexits.in.h: Likewise.
26308         * lib/wctype.in.h: Likewise.
26309
26310 2010-03-28  James Youngman  <jay@gnu.org>
26311
26312         save-cwd: don't leak a file descriptor when the caller execs.
26313         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26314         saved file descriptor.
26315         * modules/save-cwd (Depends-on): Depend on cloexec.
26316
26317 2010-03-29  Bruno Haible  <bruno@clisp.org>
26318
26319         Remove vestiges of fts-lgpl module.
26320         * lib/fts_.h: Assume GNULIB_FTS is 1.
26321         * lib/fts.c: Likewise.
26322         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26323
26324 2010-03-28  Bruno Haible  <bruno@clisp.org>
26325
26326         Fix definition of tests witness macro.
26327         * gnulib-tool (func_import): Fix definition of witness macro.
26328
26329 2010-03-28  Bruno Haible  <bruno@clisp.org>
26330
26331         Fix ioctl's protoype on glibc systems.
26332         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26333         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26334         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26335         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26336         signature. If not, arrange to replace the ioctl function.
26337         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26338         REPLACE_IOCTL.
26339         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26340         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26341         Reported by Ludovic Courtès <ludo@gnu.org>.
26342
26343 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26344
26345         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26346         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26347         made it so grep -r --include=GLOB* ... did not work.
26348
26349 2010-03-26  Jim Meyering  <meyering@redhat.com>
26350             Eric Blake  <eblake@redhat.com>
26351
26352         maint.mk: prohibit use of test's -o and -a operators
26353         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26354
26355 2010-03-28  Bruno Haible  <bruno@clisp.org>
26356
26357         Remove unused GNULIB_XYZ macro definitions.
26358         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26359         invocation.
26360
26361 2010-03-28  Bruno Haible  <bruno@clisp.org>
26362
26363         Mark privileged tests modules.
26364         * modules/idpriv-drop-tests (Status): New section.
26365         * modules/idpriv-droptemp-tests (Status): New section.
26366
26367 2010-03-28  Bruno Haible  <bruno@clisp.org>
26368
26369         Split C++ tests into separate tests modules.
26370         * modules/dirent-c++-tests: New file, extracted from
26371         modules/dirent-tests.
26372         * modules/dirent-tests: Depend on it.
26373         * modules/fcntl-h-c++-tests: New file, extracted from
26374         modules/fcntl-h-tests.
26375         * modules/fcntl-h-tests: Depend on it.
26376         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26377         * modules/glob-tests: Depend on it.
26378         * modules/iconv-h-c++-tests: New file, extracted from
26379         modules/iconv-h-tests.
26380         * modules/iconv-h-tests: Depend on it.
26381         * modules/langinfo-c++-tests: New file, extracted from
26382         modules/langinfo-tests.
26383         * modules/langinfo-tests: Depend on it.
26384         * modules/locale-c++-tests: New file, extracted from
26385         modules/locale-tests.
26386         * modules/locale-tests: Depend on it.
26387         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26388         * modules/math-tests: Depend on it.
26389         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26390         * modules/pty-tests: Depend on it.
26391         * modules/search-c++-tests: New file, extracted from
26392         modules/search-tests.
26393         * modules/search-tests: Depend on it.
26394         * modules/signal-c++-tests: New file, extracted from
26395         modules/signal-tests.
26396         * modules/signal-tests: Depend on it.
26397         * modules/spawn-c++-tests: New file, extracted from
26398         modules/spawn-tests.
26399         * modules/spawn-tests: Depend on it.
26400         * modules/stdio-c++-tests: New file, extracted from
26401         modules/stdio-tests.
26402         * modules/stdio-tests: Depend on it.
26403         * modules/stdlib-c++-tests: New file, extracted from
26404         modules/stdlib-tests.
26405         * modules/stdlib-tests: Depend on it.
26406         * modules/string-c++-tests: New file, extracted from
26407         modules/string-tests.
26408         * modules/string-tests: Depend on it.
26409         * modules/sys_ioctl-c++-tests: New file, extracted from
26410         modules/sys_ioctl-tests.
26411         * modules/sys_ioctl-tests: Depend on it.
26412         * modules/sys_select-c++-tests: New file, extracted from
26413         modules/sys_select-tests.
26414         * modules/sys_select-tests: Depend on it.
26415         * modules/sys_socket-c++-tests: New file, extracted from
26416         modules/sys_socket-tests.
26417         * modules/sys_socket-tests: Depend on it.
26418         * modules/sys_stat-c++-tests: New file, extracted from
26419         modules/sys_stat-tests.
26420         * modules/sys_stat-tests: Depend on it.
26421         * modules/sys_time-c++-tests: New file, extracted from
26422         modules/sys_time-tests.
26423         * modules/sys_time-tests: Depend on it.
26424         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26425         * modules/time-tests: Depend on it.
26426         * modules/unistd-c++-tests: New file, extracted from
26427         modules/unistd-tests.
26428         * modules/unistd-tests: Depend on it.
26429         * modules/wchar-c++-tests: New file, extracted from
26430         modules/wchar-tests.
26431         * modules/wchar-tests: Depend on it.
26432         * modules/wctype-c++-tests: New file, extracted from
26433         modules/wctype-tests.
26434         * modules/wctype-tests: Depend on it.
26435         Reported by Simon Josefsson.
26436
26437 2010-03-28  Bruno Haible  <bruno@clisp.org>
26438
26439         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26440         * gnulib-tool (func_exists_module): New function, extracted from
26441         func_verify_module.
26442         (func_verify_module): Use it.
26443         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26444         'foo' only if 'foo' exists.
26445         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26446         module.
26447
26448 2010-03-28  Bruno Haible  <bruno@clisp.org>
26449
26450         gnulib-tool: Add support for special categories of tests.
26451         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26452         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26453         (func_usage): Document them.
26454         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26455         inc_unportable_tests, inc_all_tests): New variables.
26456         (func_acceptable): Consider these variables.
26457         (func_modules_transitive_closure): Make it work when the 'Status' field
26458         consists of multiple words.
26459         (func_import): Store and restore the values of inc_cxx_tests,
26460         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26461         inc_all_tests in gnulib-comp.m4.
26462         (func_create_testdir): Set inc_all_tests to true.
26463         * doc/gnulib.texi (Extra tests modules): New section.
26464         Suggested by Jim Meyering.
26465
26466 2010-03-28  Bruno Haible  <bruno@clisp.org>
26467
26468         ansi-c++-opt: Allow turning off the C++ build by default.
26469         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26470         gl_CXX_CHOICE_DEFAULT_NO is defined.
26471         Requested by Eric Blake.
26472
26473 2010-03-28  Bruno Haible  <bruno@clisp.org>
26474
26475         unistd: Avoid #define replacements in C++ mode.
26476         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26477         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26478         setsockopt, shutdown, select): In C++, attach a warning to the function
26479         if possible, rather than #defining the symbol to a dysfunctional alias.
26480         Reported by John W. Eaton <jwe@gnu.org>.
26481
26482 2010-03-28  Bruno Haible  <bruno@clisp.org>
26483
26484         Fix link errors on mingw.
26485         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26486         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26487         $(LIBSOCKET).
26488         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26489         $(LIBSOCKET).
26490
26491 2010-03-28  Bruno Haible  <bruno@clisp.org>
26492             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26493
26494         lib-ignore: Determine different options for different compilers.
26495         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26496         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26497         Add comments.
26498         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26499         * NEWS: Mention the change.
26500
26501 2010-03-27  Bruno Haible  <bruno@clisp.org>
26502
26503         Remove unused GNULIB_XYZ macro definitions.
26504         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26505         * modules/fseek (configure.ac): Likewise.
26506         * modules/ioctl (configure.ac): Likewise.
26507         * modules/open (configure.ac): Likewise.
26508         * modules/stdlib-safer (configure.ac): Likewise.
26509
26510 2010-03-27  Bruno Haible  <bruno@clisp.org>
26511
26512         Add a remark about certain modules.
26513         * modules/malloc (Comment): New section.
26514         * modules/realloc (Comment): Likewise.
26515         * modules/sigpipe (Comment): Likewise.
26516
26517 2010-03-27  Bruno Haible  <bruno@clisp.org>
26518
26519         Resolve conflict between the two kinds of module indicators.
26520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26521         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26522         * modules/canonicalize (configure.ac): Invoke
26523         gl_MODULE_INDICATOR_FOR_TESTS.
26524         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26525         GNULIB_XYZ.
26526         * tests/test-dirent-c++.cc: Likewise.
26527         * tests/test-dirent-safer.c: Likewise.
26528         * tests/test-dup2.c: Likewise.
26529         * tests/test-fchdir.c: Likewise.
26530         * tests/test-fcntl-h-c++.cc: Likewise.
26531         * tests/test-getopt.c: Likewise.
26532         * tests/test-getopt.h: Likewise.
26533         * tests/test-langinfo-c++.cc: Likewise.
26534         * tests/test-locale-c++.cc: Likewise.
26535         * tests/test-math-c++.cc: Likewise.
26536         * tests/test-pty-c++.cc: Likewise.
26537         * tests/test-search-c++.cc: Likewise.
26538         * tests/test-signal-c++.cc: Likewise.
26539         * tests/test-spawn-c++.cc: Likewise.
26540         * tests/test-stdio-c++.cc: Likewise.
26541         * tests/test-stdlib-c++.cc: Likewise.
26542         * tests/test-string-c++.cc: Likewise.
26543         * tests/test-sys_ioctl-c++.cc: Likewise.
26544         * tests/test-sys_select-c++.cc: Likewise.
26545         * tests/test-sys_socket-c++.cc: Likewise.
26546         * tests/test-sys_stat-c++.cc: Likewise.
26547         * tests/test-sys_time-c++.cc: Likewise.
26548         * tests/test-time-c++.cc: Likewise.
26549         * tests/test-unistd-c++.cc: Likewise.
26550         * tests/test-wchar-c++.cc: Likewise.
26551         * tests/uninorm/test-u8-nfc.c: Likewise.
26552         * tests/uninorm/test-u8-nfd.c: Likewise.
26553         * tests/uninorm/test-u8-nfkc.c: Likewise.
26554         * tests/uninorm/test-u8-nfkd.c: Likewise.
26555         * tests/uninorm/test-u16-nfc.c: Likewise.
26556         * tests/uninorm/test-u16-nfd.c: Likewise.
26557         * tests/uninorm/test-u16-nfkc.c: Likewise.
26558         * tests/uninorm/test-u16-nfkd.c: Likewise.
26559         * tests/uninorm/test-u32-nfc.c: Likewise.
26560         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26561         * tests/uninorm/test-u32-nfd.c: Likewise.
26562         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26563         * tests/uninorm/test-u32-nfkc.c: Likewise.
26564         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26565         * tests/uninorm/test-u32-nfkd.c: Likewise.
26566         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26567         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26568
26569 2010-03-27  Bruno Haible  <bruno@clisp.org>
26570
26571         Distinguish two kinds of module indicators.
26572         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26573         gl_MODULE_INDICATOR.
26574         (gl_MODULE_INDICATOR): New macro.
26575         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26576         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26577         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26578         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26579         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26580         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26581         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26582         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26583         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26584         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26585         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26586         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26587         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26588         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26589         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26590         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26591         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26592         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26593         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26594         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26595         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26596         * modules/cloexec (configure.ac): Likewise.
26597         * modules/getopt-gnu (configure.ac): Likewise.
26598         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26599         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26600         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26601         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26602
26603 2010-03-27  Bruno Haible  <bruno@clisp.org>
26604
26605         New module description field 'Comment'.
26606         * gnulib-tool: New option --extract-comment.
26607         (func_usage): Document it.
26608         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26609         (func_get_comment): New function.
26610         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26611
26612 2010-03-27  Bruno Haible  <bruno@clisp.org>
26613
26614         Addendum to 2010-02-07 commit.
26615         * gnulib-tool (func_usage): Document --extract-applicability option.
26616
26617 2010-03-27  Bruno Haible  <bruno@clisp.org>
26618
26619         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26620         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26621         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26622         rather than link errors.
26623
26624 2010-03-27  Bruno Haible  <bruno@clisp.org>
26625
26626         Avoid side effects from tests-related modules on the compilation of lib.
26627         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26628         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26629         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26630         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26631         macro.
26632         (func_import): Define a witness macro. Assign it a value that depends
26633         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26634         tests-related modules.
26635         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26636         Reported by Jim Meyering.
26637
26638 2010-03-27  Bruno Haible  <bruno@clisp.org>
26639
26640         Factorize common .m4 code.
26641         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26642         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26643         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26644         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26645         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26646         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26647         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26648         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26649         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26650         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26651         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26652         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26653         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26654         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26655         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26656         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26657         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26658         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26660         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26661         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26662         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26663         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26665         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26666         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26667         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26668         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26669         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26670         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26671         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26672         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26673
26674 2010-03-27  Bruno Haible  <bruno@clisp.org>
26675
26676         Fix a compilation error on Cygwin with g++ >= 4.3.
26677         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26678         if it is undefined or if we alias it to chmod.
26679         (lstat): Don't warn about the use of this function if it is undefined
26680         or if we alias it to stat.
26681         Reported by Simon Josefsson.
26682
26683 2010-03-27  Bruno Haible  <bruno@clisp.org>
26684
26685         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26686         * modules/getlogin (configure.ac): Update.
26687
26688         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26689         * modules/getlogin_r (configure.ac): Update.
26690
26691         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26693         * modules/inet_ntop (configure.ac): Update.
26694
26695         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26696         * modules/inet_pton (configure.ac): Update.
26697
26698         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26699         * modules/mbslen (configure.ac): Update.
26700
26701         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26702         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26703         * modules/forkpty (configure.ac): Update.
26704         * modules/openpty (configure.ac): Update.
26705
26706 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26707
26708         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26709         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26710
26711 2010-03-25  Eric Blake  <eblake@redhat.com>
26712
26713         maint: use pragma consistently across replacement headers
26714         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26715         * lib/dirent.in.h (system_header): Likewise.
26716         * lib/errno.in.h (system_header): Likewise.
26717         * lib/float.in.h (system_header): Likewise.
26718         * lib/getopt.in.h (system_header): Likewise.
26719         * lib/iconv.in.h (system_header): Likewise.
26720         * lib/inttypes.in.h (system_header): Likewise.
26721         * lib/langinfo.in.h (system_header): Likewise.
26722         * lib/locale.in.h (system_header): Likewise.
26723         * lib/math.in.h (system_header): Likewise.
26724         * lib/netdb.in.h (system_header): Likewise.
26725         * lib/netinet_in.in.h (system_header): Likewise.
26726         * lib/pty.in.h (system_header): Likewise.
26727         * lib/sched.in.h (system_header): Likewise.
26728         * lib/se-selinux.in.h (system_header): Likewise.
26729         * lib/search.in.h (system_header): Likewise.
26730         * lib/spawn.in.h (system_header): Likewise.
26731         * lib/stdarg.in.h (system_header): Likewise.
26732         * lib/stdint.in.h (system_header): Likewise.
26733         * lib/string.in.h (system_header): Likewise.
26734         * lib/strings.in.h (system_header): Likewise.
26735         * lib/sys_file.in.h (system_header): Likewise.
26736         * lib/sys_ioctl.in.h (system_header): Likewise.
26737         * lib/sys_socket.in.h (system_header): Likewise.
26738         * lib/sys_times.in.h (system_header): Likewise.
26739         * lib/sys_utsname.in.h (system_header): Likewise.
26740         * lib/sys_wait.in.h (system_header): Likewise.
26741         * lib/sysexits.in.h (system_header): Likewise.
26742         * lib/unistd.in.h (system_header): Likewise.
26743         * lib/wctype.in.h (system_header): Likewise.
26744
26745         arpa/inet: fix mingw compilation warning
26746         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26747         Reported by Matthew Bolte.
26748
26749 2010-03-25  Bruno Haible  <bruno@clisp.org>
26750
26751         Avoid collision between gnulib wrapper and libintl wrapper.
26752         * lib/printf.c (printf): Don't define if a printf wrapper is already
26753         defined in intl/printf.c.
26754         Reported by Michel Boaventura <michel@michelboaventura.com>.
26755
26756 2010-03-25  Bruno Haible  <bruno@clisp.org>
26757
26758         Use ANSI C.
26759         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26760
26761 2010-03-25  Bruno Haible  <bruno@clisp.org>
26762
26763         Minor formatting changes.
26764         * lib/acosl.c: Insert space before function argument list.
26765         * lib/argz.c: Likewise.
26766         * lib/asinl.c: Likewise.
26767         * lib/expl.c: Likewise.
26768         * lib/gen-uni-tables.c: Likewise.
26769         * lib/gettext.h: Likewise.
26770         * lib/glthread/lock.h: Likewise.
26771         * lib/tanl.c: Likewise.
26772         * lib/uniname/uniname.c: Likewise.
26773         * tests/test-idpriv-drop.c: Likewise.
26774         * tests/test-idpriv-droptemp.c: Likewise.
26775         * tests/test-lock.c: Likewise.
26776         * tests/test-tls.c: Likewise.
26777         * lib/argp-help.c: Insert space before function-like macro argument
26778         list.
26779         * lib/memcmp.c: Likewise.
26780         * tests/test-base64.c: Likewise.
26781         * lib/localename.c: Insert space before sizeof's argument list.
26782         * lib/safe-alloc.h: Likewise.
26783         * lib/file-set.h: Insert space before macro argument list.
26784         * tests/test-argp.c: Likewise.
26785         * lib/argp-namefrob.h: Insert space before function parameter list.
26786         * lib/getaddrinfo.c: Likewise.
26787         * lib/netdb.in.h: Likewise.
26788         * lib/parse-duration.h: Likewise.
26789         * lib/parse-duration.c: Likewise.
26790         * lib/poll.c: Likewise.
26791         * lib/select.c: Likewise.
26792         * lib/trim.h: Likewise.
26793         * tests/test-usleep.c: Likewise.
26794         * lib/ldexpl.c: Insert space before function parameter list and before
26795         function argument list.
26796         * lib/logl.c: Likewise.
26797         * lib/sqrtl.c: Likewise.
26798         * lib/trim.c: Likewise.
26799         * lib/cosl.c: Use GNU style indentation. Insert space before function
26800         argument list.
26801         * lib/sinl.c: Likewise.
26802         * lib/tsearch.c: Insert space after 'for'.
26803         Reported by Jim Meyering.
26804
26805 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26806
26807         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26808         config header before grepping, as it's not present before
26809         autoreconf/configure are run.  Reported by Simon Josefsson.
26810
26811 2010-03-23  Bruno Haible  <bruno@clisp.org>
26812
26813         pt_chown: Make it work with automake < 1.11.
26814         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26815         Reported by Simon Josefsson.
26816
26817 2010-03-23  Bruno Haible  <bruno@clisp.org>
26818
26819         pt_chown: Don't depend on GPLed modules.
26820         * lib/pt_chown.c: Don't include idpriv.h.
26821         (main): Don't drop privileges.
26822         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26823         Reported by Simon Josefsson.
26824
26825 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26826
26827         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26828         suggestions from karl@freefriends.org (Karl Berry).
26829
26830 2010-03-22  Eric Blake  <eblake@redhat.com>
26831
26832         gethostname: further tweaks
26833         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26834         are overriding gethostname.
26835         Suggested by Bruno Haible.
26836
26837 2010-03-21  Bruno Haible  <bruno@clisp.org>
26838
26839         Fix comments.
26840         * lib/forkpty.c (rpl_forkpty): Fix comment.
26841         * lib/openpty.c (rpl_openpty): Likewise.
26842         Reported by Eric Blake.
26843
26844 2010-03-22  Eric Blake  <eblake@redhat.com>
26845
26846         gethostname: fix build on mingw
26847         * lib/unistd.in.h (includes): Work around fact that mingw
26848         <winsock2.h> re-includes <unistd.h>, by avoiding any
26849         redeclarations if we are being included by <winsock2.h>.
26850         Reported by Matthias Bolte.
26851
26852 2010-03-21  Bruno Haible  <bruno@clisp.org>
26853
26854         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26855         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26856         modifications.
26857         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26858         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26859         provide the replacement.
26860         * modules/forkpty (Depends-on): Add openpty, login_tty.
26861         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26862         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26863         * doc/glibc-functions/forkpty.texi: More supported platforms.
26864         * config/srclist.txt: Add forkpty.c (commented).
26865
26866 2010-03-21  Bruno Haible  <bruno@clisp.org>
26867
26868         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26869         (Makefile.am): Verify that PTY_LIB is defined.
26870
26871         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26872
26873 2010-03-21  Bruno Haible  <bruno@clisp.org>
26874
26875         Tests for module 'login_tty'.
26876         * modules/login_tty-tests: New file.
26877         * tests/test-login_tty.c: New file.
26878
26879         New module 'login_tty'.
26880         * lib/login_tty.c: New file.
26881         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26882         * modules/login_tty: New file.
26883         * doc/glibc-functions/login_tty.texi: Mention the new module.
26884
26885 2010-03-21  Bruno Haible  <bruno@clisp.org>
26886
26887         login_tty: Documentation.
26888         * doc/glibc-functions/login_tty.texi: New file.
26889         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26890
26891 2010-03-21  Bruno Haible  <bruno@clisp.org>
26892
26893         pty: Consistent macro naming.
26894         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26895         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26896         * modules/pty (configure.ac): Update.
26897
26898 2010-03-21  Bruno Haible  <bruno@clisp.org>
26899
26900         Tests for openpty: Make stricter.
26901         * tests/test-openpty.c (main): Add test of canonical processing and
26902         erase.
26903         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26904
26905         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26906         * lib/openpty.c (openpty): New replacement function.
26907         * lib/pty.in.h: Include <termios.h>.
26908         (openpty): Update declaration. Add comments.
26909         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26910         is not declared, arrange to provide the replacement. Check for _getpty
26911         and posix_openpt.
26912         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26913         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26914         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26915         * modules/pty-tests (test_pty_c___LDADD): New variable.
26916         * doc/glibc-functions/openpty.texi: More supported platforms.
26917
26918 2010-03-21  Bruno Haible  <bruno@clisp.org>
26919
26920         setenv: Tweaks.
26921         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26922         the test program.
26923         * doc/posix-functions/setenv.texi: Update platforms list.
26924
26925 2010-03-21  Bruno Haible  <bruno@clisp.org>
26926
26927         New module 'unlockpt'.
26928         * lib/unlockpt.c: New file, from glibc with modifications.
26929         * m4/unlockpt.m4: New file.
26930         * modules/unlockpt: New file.
26931         * lib/stdlib.in.h (unlockpt): New declaration.
26932         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26933         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26934         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26935         HAVE_UNLOCKPT.
26936         * doc/posix-functions/unlockpt.texi: Mention the new module.
26937         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26938         * config/srclist.txt: Add unlockpt.c (commented).
26939
26940 2010-03-21  Jim Meyering  <meyering@redhat.com>
26941
26942         maint.mk: prohibit inclusion of "intprops.h" without use
26943         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26944
26945 2010-03-21  Bruno Haible  <bruno@clisp.org>
26946
26947         New module 'grantpt'.
26948         * lib/grantpt.c: New file, from glibc with modifications.
26949         * m4/grantpt.m4: New file.
26950         * modules/grantpt: New file.
26951         * lib/stdlib.in.h (grantpt): New declaration.
26952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26953         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26954         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26955         HAVE_GRANTPT.
26956         * doc/posix-functions/grantpt.texi: Mention the new module.
26957         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26958         * config/srclist.txt: Add grantpt.c (commented).
26959
26960 2010-03-21  Bruno Haible  <bruno@clisp.org>
26961
26962         New module 'pt_chown'.
26963         * lib/pt_chown.c: New file, from glibc with modifications.
26964         * lib/pty-private.h: New file, from glibc with modifications.
26965         * modules/pt_chown: New file.
26966         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26967
26968 2010-03-21  Bruno Haible  <bruno@clisp.org>
26969
26970         Tests for module 'ptsname'.
26971         * modules/ptsname-tests: New file.
26972         * tests/test-ptsname.c: New file.
26973
26974         New module 'ptsname'.
26975         * lib/ptsname.c: New file, from glibc with modifications.
26976         * m4/ptsname.m4: New file.
26977         * modules/ptsname: New file.
26978         * lib/stdlib.in.h (ptsname): New declaration.
26979         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26980         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26981         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26982         HAVE_PTSNAME.
26983         * doc/posix-functions/ptsname.texi: Mention the new module.
26984         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26985         * config/srclist.txt: Add ptsname.c (commented).
26986
26987 2010-03-21  Bruno Haible  <bruno@clisp.org>
26988
26989         Tests for module 'ttyname_r'.
26990         * modules/ttyname_r-tests: New file.
26991         * tests/test-ttyname_r.c: New file.
26992
26993         New module 'ttyname_r'.
26994         * lib/ttyname_r.c: New file.
26995         * m4/ttyname_r.m4: New file.
26996         * modules/ttyname_r: New file.
26997         * lib/unistd.in.h (ttyname_r): New declaration.
26998         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26999         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27000         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27001         HAVE_TTYNAME_R.
27002         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27003         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27004
27005 2010-03-20  Bruno Haible  <bruno@clisp.org>
27006
27007         signal: Undefine macro definitions in C++ mode.
27008         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27009         sigfillset): Undefine macro definitions from the system header in C++
27010         mode.
27011         Reported by John W. Eaton <jwe@gnu.org>.
27012
27013 2010-03-20  Bruno Haible  <bruno@clisp.org>
27014
27015         Ensure no #include statements inside extern "C" { ... }.
27016         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27017         contain #include statements.
27018         * lib/time.in.h: Likewise.
27019
27020 2010-03-20  Bruno Haible  <bruno@clisp.org>
27021
27022         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27023         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27024         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27025         Reported by John W. Eaton <jwe@gnu.org>.
27026
27027 2010-03-20  Bruno Haible  <bruno@clisp.org>
27028
27029         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27030         Reported by Jim Meyering.
27031
27032 2010-03-20  Bruno Haible  <bruno@clisp.org>
27033
27034         pipe: Set errno upon failure.
27035         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27036         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27037         errno value in error message.
27038
27039 2010-03-20  Bruno Haible  <bruno@clisp.org>
27040             Jim Meyering  <meyering@redhat.com>
27041
27042         lchown: Avoid "unused variable" warning.
27043         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27044
27045 2010-03-20  Bruno Haible  <bruno@clisp.org>
27046
27047         Work around unlink() bug on MacOS X 10.5.6.
27048         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27049         attempting to unlink a parent directory.
27050         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27051         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27052         activate for the replacement function.
27053         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27054
27055 2010-03-20  Bruno Haible  <bruno@clisp.org>
27056
27057         Fix link errors on Solaris 8.
27058         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27059         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27060
27061 2010-03-19  Jim Meyering  <meyering@redhat.com>
27062
27063         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27064         The _LIBC implementation of build_range_exp correctly honors the
27065         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27066         However, the non-_LIBC implementation would ignore that syntax-bit
27067         flag and return REG_ERANGE unconditionally.
27068         This change makes it honor that flag.
27069         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27070         Make two pointer parameters "const".
27071         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27072         (parse_bracket_exp): Update caller.
27073
27074         regex.m4: correct the reversed range endpoint ([b-a]) test
27075         * m4/regex.m4: When requiring that [b-a] evoke failure,
27076         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27077         test pass once again for x86-based systems.
27078
27079 2010-03-19  Bruno Haible  <bruno@clisp.org>
27080
27081         scandir: Fix link error on Solaris 8.
27082         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27083         macros.
27084
27085 2010-03-19  Bruno Haible  <bruno@clisp.org>
27086
27087         getusershell: Fix documentation.
27088         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27089         module.
27090         * doc/glibc-functions/setusershell.texi: Likewise.
27091
27092         getusershell: Provide declaration, missing on Solaris 9.
27093         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27094         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27095         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27096         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27098         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27099         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27100         HAVE_GETUSERSHELL.
27101         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27102
27103 2010-03-19  Bruno Haible  <bruno@clisp.org>
27104
27105         wctype: Provide iswblank function.
27106         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27107         exists and is fine.
27108         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27109         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27110         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27111         * doc/posix-functions/iswblank.texi: Update.
27112
27113 2010-03-19  Bruno Haible  <bruno@clisp.org>
27114
27115         Tests of module 'pty' in C++ mode.
27116         * modules/pty-tests: New file.
27117         * tests/test-pty-c++.cc: New file.
27118         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27119
27120 2010-03-19  Eric Blake  <eblake@redhat.com>
27121
27122         logb: fix documentation
27123         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27124         1.5 declaration bug.
27125
27126         forkpty, openpty: prefer glibc's const-safe prototype
27127         * lib/forkpty.c (rpl_forkpty): New file.
27128         * lib/openpty.c (rpl_openpty): Likewise.
27129         * modules/forkpty (Files): Distribute it.
27130         * modules/openpty (Files): Likewise.
27131         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27132         check...
27133         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27134         replacement for for non-const BSD signature.
27135         * modules/pty (Makefile.am): Substitute witnesses.
27136         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27137         * tests/test-forkpty.c: Update signature check.
27138         * tests/test-openpty.c: Likewise.
27139         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27140         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27141
27142         forkpty, openpty: split functions into new modules
27143         * modules/pty (Makefile.am): Substitute new witnesses.
27144         (Libraries): Move library detection...
27145         * modules/forkpty: ...into new module.
27146         * modules/openpty: Another new module.
27147         * modules/pty-tests: Rename and split...
27148         * modules/forkpty-tests: ...to this...
27149         * modules/openpty-tests: ...and this.
27150         * tests/test-pty.c: Rename and split...
27151         * tests/test-forkpty.c: ...to this...
27152         * tests/test-openpty.c: ...and this.
27153         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27154         (gl_PTY): Split library searching...
27155         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27156         (gl_FORKPTY, gl_OPENPTY): New macros.
27157         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27158         * NEWS: Mention the split.
27159         * MODULES.html.sh (Misc): Document the modules.
27160         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27161         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27162
27163         pty: improve replacement header
27164         * lib/pty.in.h: New file.
27165         * modules/pty (Files): Ship it.
27166         (Makefile.am): Always build replacement.
27167         * m4/pty.m4: Rename...
27168         * m4/pty_h.m4: ...to this.
27169         (gl_PTY): Modernize setting of witness macros; update check of
27170         forkpty to take proper advantage of cache.
27171         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27172
27173         getopt: avoid compiler warning
27174         * lib/getopt.c (attribute_hidden): Remove unused macro.
27175
27176 2010-03-18  Bruno Haible  <bruno@clisp.org>
27177
27178         Fix link errors on Solaris 8.
27179         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27180         * modules/search-tests (test_search_c___LDADD): Likewise.
27181         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27182         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27183         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27184         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27185         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27186         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27187         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27188
27189 2010-03-18  Bruno Haible  <bruno@clisp.org>
27190
27191         Fix bug introduced on 2010-03-14.
27192         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27193         (gl_SPAWN_H): Require it.
27194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27195         Reported by Simon Josefsson.
27196
27197 2010-03-18  Bruno Haible  <bruno@clisp.org>
27198
27199         Fix typo introduced on 2009-12-31.
27200         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27201         posix_spawn_file_actions_adddup2.
27202
27203 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27204         and Eric Blake  <eblake@redhat.com>
27205
27206         test-vc-list-files-git: make more robust
27207         * tests/test-vc-list-files-git.sh: Unset problematic environment
27208         variables.  Chain commands together.
27209
27210 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27211
27212         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27213         `AC_CHECK_DECL' invocation.
27214
27215 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27216
27217         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27218         appears before executable statements. Suggested by Petr Sumbera
27219         <Petr.Sumbera@Sun.COM>.
27220
27221 2010-03-14  Bruno Haible  <bruno@clisp.org>
27222
27223         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27224         portability problems. Instead use a simpler test.
27225         (main): Check that invalid arguments are rejected only on Linux.
27226
27227 2010-03-14  Bruno Haible  <bruno@clisp.org>
27228
27229         Fix bug introduced on 2009-12-31.
27230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27231         gl_PREREQ_SYS_H_WINSOCK2 always.
27232         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27233         SYS_SOCKET_H variable.
27234         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27235         Update comments.
27236         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27237         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27238         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27239         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27240         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27241
27242 2010-03-14  Bruno Haible  <bruno@clisp.org>
27243
27244         Fix values returned by sinl, cosl.
27245         * lib/trigl.h: Add specification comments.
27246         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27247         that combines the values from the precomputed table with the values of
27248         the Chebyshev polynomials.
27249
27250 2010-03-14  Bruno Haible  <bruno@clisp.org>
27251
27252         Fix compilation error when modules 'posix_spawn[p]' are not used.
27253         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27254         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27255
27256 2010-03-14  Bruno Haible  <bruno@clisp.org>
27257
27258         Fix compilation error on mingw when module 'time_r' is not used.
27259         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27260         is 1.
27261         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27262         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27263         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27264         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27265
27266 2010-03-14  Bruno Haible  <bruno@clisp.org>
27267
27268         Fix compilation error with Sun C.
27269         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27270         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27271         instead of GCC specific ULONG_LONG_MAX.
27272         * lib/xstrtoll.c: Likewise.
27273         * lib/xstrtoull.c: Likewise.
27274
27275 2010-03-13  Bruno Haible  <bruno@clisp.org>
27276
27277         Allow the user to disable C++ code and tests.
27278         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27279         (gl_PROG_ANSI_CXX): Require it.
27280
27281 2010-03-13  Bruno Haible  <bruno@clisp.org>
27282
27283         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27284         cases.
27285
27286 2010-03-13  Bruno Haible  <bruno@clisp.org>
27287
27288         Test that gnulib does not break the standard C++ headers.
27289         * tests/test-locale-c++2.cc: New file.
27290         * modules/locale-tests (Files): Add it.
27291         (Makefile.am): Compile it for test-locale-c++.
27292         * tests/test-math-c++2.cc: New file.
27293         * modules/math-tests (Files): Add it.
27294         (Makefile.am): Compile it for test-math-c++.
27295         * tests/test-signal-c++2.cc: New file.
27296         * modules/signal-tests (Files): Add it.
27297         (Makefile.am): Compile it for test-signal-c++.
27298         * tests/test-stdio-c++2.cc: New file.
27299         * modules/stdio-tests (Files): Add it.
27300         (Makefile.am): Compile it for test-stdio-c++.
27301         * tests/test-stdlib-c++2.cc: New file.
27302         * modules/stdlib-tests (Files): Add it.
27303         (Makefile.am): Compile it for test-stdlib-c++.
27304         * tests/test-string-c++2.cc: New file.
27305         * modules/string-tests (Files): Add it.
27306         (Makefile.am): Compile it for test-string-c++.
27307         * tests/test-time-c++2.cc: New file.
27308         * modules/time-tests (Files): Add it.
27309         (Makefile.am): Compile it for test-time-c++.
27310         Reported by John W. Eaton <jwe@gnu.org>.
27311
27312 2010-03-13  Bruno Haible  <bruno@clisp.org>
27313
27314         * gnulib-tool (func_usage): Clarify which options are available for
27315         --create-testdir and --create-megatestdir.
27316
27317 2010-03-13  Bruno Haible  <bruno@clisp.org>
27318
27319         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27320         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27321         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27322         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27323         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27324         when appropriate.
27325         Reported by Jim Meyering.
27326
27327 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27328
27329         * gnulib-tool (func_import): Explain origin of code.
27330
27331 2010-03-12  Bruno Haible  <bruno@clisp.org>
27332
27333         Fix problem with automake's definition of CXXLINK.
27334         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27335         Reported by Simon Josefsson and Ludovic Courtès.
27336
27337 2010-03-12  Bruno Haible  <bruno@clisp.org>
27338
27339         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27340         stable releases.
27341
27342 2010-03-11  Bruno Haible  <bruno@clisp.org>
27343
27344         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27345         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27346         whether the system provides one variant or multiple variants of the
27347         function.
27348         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27349         C++ compilers.
27350         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27351         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27352         Reported by Jim Meyering.
27353
27354 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27355
27356         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27357
27358 2010-03-08  Bruno Haible  <bruno@clisp.org>
27359
27360         gnulib-tool: Add support for --libtool in --create-testdir.
27361         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27362         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27363
27364 2010-03-08  Eric Blake  <eblake@redhat.com>
27365
27366         gnulib-tool.texi: mention possibility of git submodule
27367         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27368         submodules.
27369         * doc/.gitignore: Ignore another generated file.
27370
27371 2010-03-08  Karl Berry  <karl@gnu.org>
27372
27373         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27374         of committing gnulib files while skipping others.
27375
27376 2010-03-07  Bruno Haible  <bruno@clisp.org>
27377
27378         Tests of module 'wctype' in C++ mode.
27379         * tests/test-wctype-c++.cc: New file.
27380         * modules/wctype-tests (Files): Add it and tests/signature.h.
27381         (Depends-on): Add ansi-c++-opt.
27382         (Makefile.am): Arrange to compile and run test-wctype-c++.
27383
27384         Tests of module 'wchar' in C++ mode.
27385         * tests/test-wchar-c++.cc: New file.
27386         * modules/wchar-tests (Files): Add it and tests/signature.h.
27387         (Depends-on): Add ansi-c++-opt.
27388         (Makefile.am): Arrange to compile and run test-wchar-c++.
27389         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27390         gl_MODULE_INDICATOR.
27391
27392         Tests of module 'unistd' in C++ mode.
27393         * tests/test-unistd-c++.cc: New file.
27394         * modules/unistd-tests (Files): Add it and tests/signature.h.
27395         (Depends-on): Add ansi-c++-opt.
27396         (Makefile.am): Arrange to compile and run test-unistd-c++.
27397         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27398         gl_MODULE_INDICATOR.
27399
27400         Tests of module 'time' in C++ mode.
27401         * tests/test-time-c++.cc: New file.
27402         * modules/time-tests (Files): Add it and tests/signature.h.
27403         (Depends-on): Add ansi-c++-opt.
27404         (Makefile.am): Arrange to compile and run test-time-c++.
27405         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27406
27407         Tests of module 'sys_time' in C++ mode.
27408         * tests/test-sys_time-c++.cc: New file.
27409         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27410         (Depends-on): Add ansi-c++-opt.
27411         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27412         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27413         gl_MODULE_INDICATOR.
27414
27415         Tests of module 'sys_stat' in C++ mode.
27416         * tests/test-sys_stat-c++.cc: New file.
27417         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27418         (Depends-on): Add ansi-c++-opt.
27419         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27420         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27421         gl_MODULE_INDICATOR.
27422
27423         Tests of module 'sys_socket' in C++ mode.
27424         * tests/test-sys_socket-c++.cc: New file.
27425         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27426         (Depends-on): Add ansi-c++-opt.
27427         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27428         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27429         gl_MODULE_INDICATOR.
27430
27431         Tests of module 'sys_select' in C++ mode.
27432         * tests/test-sys_select-c++.cc: New file.
27433         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27434         (Depends-on): Add ansi-c++-opt.
27435         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27436         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27437         gl_MODULE_INDICATOR.
27438
27439         Tests of module 'sys_ioctl' in C++ mode.
27440         * tests/test-sys_ioctl-c++.cc: New file.
27441         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27442         (Depends-on): Add ansi-c++-opt.
27443         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27445         gl_MODULE_INDICATOR.
27446
27447         Tests of module 'string' in C++ mode.
27448         * tests/test-string-c++.cc: New file.
27449         * modules/string-tests (Files): Add it and tests/signature.h.
27450         (Depends-on): Add ansi-c++-opt.
27451         (Makefile.am): Arrange to compile and run test-string-c++.
27452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27453         gl_MODULE_INDICATOR.
27454
27455         Tests of module 'stdlib' in C++ mode.
27456         * tests/test-stdlib-c++.cc: New file.
27457         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27458         (Depends-on): Add ansi-c++-opt.
27459         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27460         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27461         gl_MODULE_INDICATOR.
27462
27463         Tests of module 'stdio' in C++ mode.
27464         * tests/test-stdio-c++.cc: New file.
27465         * modules/stdio-tests (Files): Add it and tests/signature.h.
27466         (Depends-on): Add ansi-c++-opt.
27467         (Makefile.am): Arrange to compile and run test-stdio-c++.
27468         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27469         gl_MODULE_INDICATOR.
27470
27471         Tests of module 'spawn' in C++ mode.
27472         * tests/test-spawn-c++.cc: New file.
27473         * modules/spawn-tests (Files): Add it and tests/signature.h.
27474         (Depends-on): Add ansi-c++-opt.
27475         (Makefile.am): Arrange to compile and run test-spawn-c++.
27476         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27477         gl_MODULE_INDICATOR.
27478
27479         Tests of module 'signal' in C++ mode.
27480         * tests/test-signal-c++.cc: New file.
27481         * modules/signal-tests (Files): Add it and tests/signature.h.
27482         (Depends-on): Add ansi-c++-opt.
27483         (Makefile.am): Arrange to compile and run test-signal-c++.
27484         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27485         gl_MODULE_INDICATOR.
27486
27487         Tests of module 'search' in C++ mode.
27488         * tests/test-search-c++.cc: New file.
27489         * modules/search-tests (Files): Add it and tests/signature.h.
27490         (Depends-on): Add ansi-c++-opt.
27491         (Makefile.am): Arrange to compile and run test-search-c++.
27492         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27493         gl_MODULE_INDICATOR.
27494
27495         Tests of module 'math' in C++ mode.
27496         * tests/test-math-c++.cc: New file.
27497         * modules/math-tests (Files): Add it and tests/signature.h.
27498         (Depends-on): Add ansi-c++-opt.
27499         (Makefile.am): Arrange to compile and run test-math-c++.
27500         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27501
27502         Tests of module 'locale' in C++ mode.
27503         * tests/test-locale-c++.cc: New file.
27504         * modules/locale-tests (Files): Add it and tests/signature.h.
27505         (Depends-on): Add ansi-c++-opt.
27506         (Makefile.am): Arrange to compile and run test-locale-c++.
27507         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27508         gl_MODULE_INDICATOR.
27509
27510         Tests of module 'langinfo' in C++ mode.
27511         * tests/test-langinfo-c++.cc: New file.
27512         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27513         (Depends-on): Add ansi-c++-opt.
27514         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27515         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27516         gl_MODULE_INDICATOR.
27517
27518         Tests of module 'iconv-h' in C++ mode.
27519         * tests/test-iconv-h-c++.cc: New file.
27520         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27521         (Depends-on): Add ansi-c++-opt.
27522         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27523
27524         Tests of module 'glob' in C++ mode.
27525         * tests/test-glob-c++.cc: New file.
27526         * modules/glob-tests (Files): Add it.
27527         (Depends-on): Add ansi-c++-opt.
27528         (Makefile.am): Arrange to compile and run test-glob-c++.
27529
27530         Tests of module 'fcntl-h' in C++ mode.
27531         * tests/test-fcntl-h-c++.cc: New file.
27532         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27533         (Depends-on): Add ansi-c++-opt.
27534         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27535         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27536         gl_MODULE_INDICATOR.
27537
27538         Tests of module 'dirent' in C++ mode.
27539         * tests/test-dirent-c++.cc: New file.
27540         * modules/dirent-tests (Files): Add it and tests/signature.h.
27541         (Depends-on): Add ansi-c++-opt.
27542         (Makefile.am): Arrange to compile and run test-dirent-c++.
27543         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27544         gl_MODULE_INDICATOR.
27545
27546         New module 'ansi-c++-opt'.
27547         * modules/ansi-c++-opt: New file.
27548         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27549
27550         Document C++ namespace mode.
27551         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27552
27553         wctype: Avoid #define replacements in C++ mode.
27554         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27555         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27556         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27557         In C++, define a namespaced alias symbol.
27558         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27559         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27560         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27561         rule.
27562
27563         wchar: Avoid #define replacements in C++ mode.
27564         * lib/wchar.in.h: Include c++defs.h.
27565         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27566         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27567         symbol.
27568         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27569         * modules/wchar (Depends-on): Add c++defs.
27570         (Makefile.am): Update wchar.h rule.
27571
27572         unistd: Avoid #define replacements in C++ mode.
27573         * lib/unistd.in.h: Include c++defs.h.
27574         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27575         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27576         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27577         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27578         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27579         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27580         symbol.
27581         (environ): Update.
27582         * modules/unistd (Depends-on): Add c++defs.
27583         (Makefile.am): Update unistd.h rule.
27584
27585         time: Avoid #define replacements in C++ mode.
27586         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27587         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27588         define a namespaced alias symbol.
27589         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27590         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27591         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27592         * modules/time (Depends-on): Add c++defs, warn-on-use.
27593         (Makefile.am): Update time.h rule.
27594         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27595         * modules/nanosleep (configure.ac): Likewise.
27596         * modules/strptime (configure.ac): Likewise.
27597         * modules/timegm (configure.ac): Likewise.
27598
27599         sys_time: Avoid #define replacements in C++ mode.
27600         * lib/sys_time.in.h: Include c++defs.h.
27601         (gettimeofday): In C++, define a namespaced alias symbol.
27602         * modules/sys_time (Depends-on): Add c++defs.
27603         (Makefile.am): Update sys/time.h rule.
27604
27605         sys_stat: Avoid #define replacements in C++ mode.
27606         * lib/sys_stat.in.h: Include c++defs.h.
27607         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27608         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27609         namespaced alias symbol.
27610         In C++, define a namespaced alias symbol.
27611         * modules/sys_stat (Depends-on): Add c++defs.
27612         (Makefile.am): Update sys/stat.h rule.
27613
27614         sys_socket: Avoid #define replacements in C++ mode.
27615         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27616         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27617         definitions also when the system has a <sys/socket.h>.
27618         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27619         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27620         In C++, define a namespaced alias symbol.
27621         * modules/sys_socket (Depends-on): Add c++defs.
27622         (Makefile.am): Update sys/socket.h rule.
27623
27624         sys_select: Avoid #define replacements in C++ mode.
27625         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27626         definitions also when the system has a <sys/select.h>.
27627         (select): In C++, define a namespaced alias symbol.
27628         * modules/sys_select (Depends-on): Add c++defs.
27629         (Makefile.am): Update sys/select.h rule.
27630
27631         sys_ioctl: Avoid #define replacements in C++ mode.
27632         * lib/sys_ioctl.in.h: Include c++defs.h.
27633         (ioctl): In C++, define a namespaced alias symbol.
27634         * modules/sys_ioctl (Depends-on): Add c++defs.
27635         (Makefile.am): Update sys/ioctl.h rule.
27636
27637         string: Avoid #define replacements in C++ mode.
27638         * lib/string.in.h: Include c++defs.h.
27639         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27640         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27641         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27642         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27643         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27644         * modules/string (Depends-on): Add c++defs.
27645         (Makefile.am): Update string.h rule.
27646
27647         stdlib: Avoid #define replacements in C++ mode.
27648         * lib/stdlib.in.h: Include c++defs.h.
27649         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27650         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27651         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27652         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27653         symbol.
27654         * modules/stdlib (Depends-on): Add c++defs.
27655         (Makefile.am): Update stdlib.h rule.
27656
27657         stdio: Avoid #define replacements in C++ mode.
27658         * lib/stdio.in.h: Include c++defs.h.
27659         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27660         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27661         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27662         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27663         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27664         namespaced alias symbol.
27665         * modules/stdio (Depends-on): Add c++defs.
27666         (Makefile.am): Update stdio.h rule.
27667
27668         spawn: Avoid #define replacements in C++ mode.
27669         * lib/spawn.in.h: Include c++defs.h.
27670         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27671         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27672         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27673         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27674         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27675         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27676         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27677         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27678         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27679         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27680         In C++, define a namespaced alias symbol.
27681         * modules/spawn (Depends-on): Add c++defs.
27682         (Makefile.am): Update spawn.h rule.
27683
27684         signal: Avoid #define replacements in C++ mode.
27685         * lib/signal.in.h: Include c++defs.h.
27686         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27687         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27688         namespaced alias symbol.
27689         * modules/signal (Depends-on): Add c++defs.
27690         (Makefile.am): Update signal.h rule.
27691
27692         search: Avoid #define replacements in C++ mode.
27693         * lib/search.in.h: Include c++defs.h.
27694         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27695         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27696         symbol.
27697         * modules/search (Depends-on): Add c++defs.
27698         (Makefile.am): Update search.h rule.
27699
27700         math: Avoid #define replacements in C++ mode.
27701         * lib/math.in.h: Include c++defs.h.
27702         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27703         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27704         trunc, truncl): In C++, define a namespaced alias symbol.
27705         * modules/math (Depends-on): Add c++defs.
27706         (Makefile.am): Update math.h rule.
27707
27708         locale: Avoid #define replacements in C++ mode.
27709         * lib/locale.in.h: Include c++defs.h.
27710         (duplocale): In C++, define a namespaced alias symbol.
27711         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27712         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27713         * modules/locale (Depends-on): Add c++defs.
27714         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27715
27716         langinfo: Avoid #define replacements in C++ mode.
27717         * lib/langinfo.in.h: Include c++defs.h.
27718         (nl_langinfo): In C++, define a namespaced alias symbol.
27719         * modules/langinfo (Depends-on): Add c++defs.
27720         (Makefile.am): Update langinfo.h rule.
27721
27722         iconv-h: Avoid #define replacements in C++ mode.
27723         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27724         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27725         symbol.
27726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27727         whenever iconv is present.
27728         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27729         (Makefile.am): Update iconv.h rule.
27730
27731         glob: Avoid #define replacements in C++ mode.
27732         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27733         (_gl_glob_errfunc_fn): New type.
27734         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27735         symbol.
27736         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27737         (Makefile.am): Update glob.h rule.
27738
27739         fcntl-h: Avoid #define replacements in C++ mode.
27740         * lib/fcntl.in.h: Include c++defs.h.
27741         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27742         * modules/fcntl-h (Depends-on): Add c++defs.
27743         (Makefile.am): Update fcntl.h rule.
27744
27745         dirent: Avoid #define replacements in C++ mode.
27746         * lib/dirent.in.h: Include c++defs.h.
27747         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27748         namespaced alias symbol.
27749         (dirfd): Update declaration.
27750         * modules/dirent (Depends-on): Add c++defs.
27751         (Makefile.am): Update dirent.h rule.
27752
27753         ctype: Make it usable in C++ code.
27754         * lib/ctype.in.h: Include c++defs.h.
27755         (isblank): Declare as extern "C".
27756         * modules/ctype (Depends-on): Add c++defs.
27757         (Makefile.am): Update ctype.h rule.
27758
27759         New module 'c++defs'.
27760         * modules/c++defs: New file.
27761         * build-aux/c++defs.h: New file.
27762         Reported by John W. Eaton <jwe@gnu.org>.
27763
27764 2010-03-07  Bruno Haible  <bruno@clisp.org>
27765
27766         logb: Provide missing declaration for Cygwin.
27767         * lib/math.in.h (logb): New declaration.
27768         * m4/logb.m4: New file.
27769         * modules/logb (Files): Add m4/logb.m4.
27770         (Depends-on): Add math.
27771         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27772         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27774         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27775         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27776
27777 2010-03-07  Bruno Haible  <bruno@clisp.org>
27778
27779         Fix test-cond link error.
27780         * tests/test-cond.c: Include <stdio.h>.
27781
27782 2010-03-07  Bruno Haible  <bruno@clisp.org>
27783
27784         Fix test-dirent-safer link error.
27785         * modules/dirent-safer-tests (Makefile.am): Define
27786         test_dirent_safer_LDADD.
27787
27788 2010-03-07  Bruno Haible  <bruno@clisp.org>
27789
27790         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27791         among default module list.
27792
27793 2010-03-07  Bruno Haible  <bruno@clisp.org>
27794
27795         Fix link error on platforms with GNU libiconv.
27796         * modules/unistr/u8-strcoll-tests (Makefile): Define
27797         test_u8_strcoll_LDADD.
27798         * modules/unistr/u16-strcoll-tests (Makefile): Define
27799         test_u16_strcoll_LDADD.
27800         * modules/unistr/u32-strcoll-tests (Makefile): Define
27801         test_u32_strcoll_LDADD.
27802
27803 2010-03-07  Bruno Haible  <bruno@clisp.org>
27804
27805         Use POSIX declarations for socket functions.
27806         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27807         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27808         rpl_sendto): Change declaration to match POSIX.
27809         * lib/connect.c (rpl_connect): Likewise.
27810         * lib/accept.c (rpl_accept): Likewise.
27811         * lib/bind.c (rpl_bind): Likewise.
27812         * lib/getpeername.c (rpl_getpeername): Likewise.
27813         * lib/getsockname.c (rpl_getsockname): Likewise.
27814         * lib/recv.c (rpl_recv): Likewise.
27815         * lib/send.c (rpl_send): Likewise.
27816         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27817         * lib/sendto.c (rpl_sendto): Likewise.
27818
27819 2010-03-06  Bruno Haible  <bruno@clisp.org>
27820
27821         Clarify access, euidaccess, faccessat.
27822         * doc/posix-functions/faccessat.texi: Mention security problem under
27823         "Other problems", not "Portability problems".
27824         * doc/posix-functions/access.texi: Likewise. Mention a related security
27825         problem.
27826         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27827         * lib/euidaccess.c: Add comments about platforms.
27828         * lib/unistd.in.h (access, euidaccess): Add warnings.
27829
27830 2010-03-07  Bruno Haible  <bruno@clisp.org>
27831
27832         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27833         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27834         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27835         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27836         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27837         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27838         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27839         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27840         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27842         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27843         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27844         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27845         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27846         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27847         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27848         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27849         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27850         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27851         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27852         Likewise.
27853         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27854         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27855         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27856         Likewise.
27857         * tests/test-spawn.c (main): Make it work when
27858         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27859
27860 2010-03-07  Bruno Haible  <bruno@clisp.org>
27861
27862         Fix incorrect Makefile.am generation in German locale.
27863         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27864         Execute sed command with character range in C locale.
27865
27866 2010-03-06  Bruno Haible  <bruno@clisp.org>
27867
27868         Tests for module 'iconv-h'.
27869         * modules/iconv-h-tests: New file.
27870         * tests/test-iconv-h.c: New file.
27871
27872         New module 'iconv-h'.
27873         * modules/iconv-h: New file.
27874         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27875         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27876         (configure.ac): Remove gl_ICONV_H.
27877         (Makefile.am): Remove rule for iconv.h.
27878
27879 2010-03-06  Bruno Haible  <bruno@clisp.org>
27880
27881         More consistent naming of *.m4 files.
27882         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27883         * modules/wctype (Files): Update.
27884
27885         More consistent naming of *.m4 files.
27886         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27887         * modules/wchar (Files): Update.
27888
27889 2010-03-06  Jim Meyering  <meyering@redhat.com>
27890
27891         euidaccess: relax license to LGPLv2+
27892         * modules/euidaccess (License): Relax to LGPLv2+.
27893
27894 2010-03-06  Bruno Haible  <bruno@clisp.org>
27895
27896         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27897         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27898         (Makefile.am): Augment lib_SOURCES instead.
27899
27900 2010-03-04  Jim Meyering  <meyering@redhat.com>
27901
27902         utime: remove obsolete module
27903         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27904         unnecessary for years, and has been marked as obsolete for 10 months.
27905         * modules/utime: Remove file.
27906         * lib/utime.c: Remove file.
27907         * m4/utime.m4: Remove file.
27908         * m4/utimes-null.m4: Remove file.
27909         * doc/posix-functions/utime.texi (utime): Remove reference to
27910         the module.  Move the sole "fixed by gnulib" item into the
27911         "problems not fixed by Gnulib" list.
27912         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27913
27914 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27915
27916         * modules/exit (License): Relax license to LGPLv2+.
27917         (Status): Mark as obsolete.
27918         * NEWS: Mention deprecated 'exit' module.
27919         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27920         of now obsolete 'exit'.
27921
27922 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27923
27924         fts-lgpl: remove unused module
27925         * modules/fts-lgpl: Remove.
27926         * MODULES.html.sh (func_all_modules): Adjust.
27927         * check-module (find_included_lib_files): Adjust.
27928         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27929
27930 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27931
27932         copy-acl: enhance Solaris ACL error handling
27933         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27934         * lib/set-mode-acl.c (qset_acl): Likewise.
27935
27936 2010-03-02  Bruno Haible  <bruno@clisp.org>
27937
27938         spawn: Don't override the system defined values on FreeBSD 8.
27939         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27940         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27941         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27942         if HAVE_POSIX_SPAWN is 1.
27943         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27944
27945 2010-03-01  Bruno Haible  <bruno@clisp.org>
27946
27947         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27948         regarding Automake.
27949
27950 2010-02-25  Bruno Haible  <bruno@clisp.org>
27951
27952         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27953         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27954         setting, not afterwards.
27955         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27956
27957 2010-02-24  Eric Blake  <eblake@redhat.com>
27958
27959         bootstrap, git-version-gen: use timestamp
27960         * build-aux/git-version-gen (scriptversion): Force UTC.
27961         * build-aux/bootstrap (scriptversion): New variable.
27962
27963         bootstrap: allow older git
27964         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27965         older than 1.6.4.  Requested by the libvirt project.
27966
27967 2010-02-23  Eric Blake  <eblake@redhat.com>
27968
27969         warn-on-use: work with old autoconf
27970         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27971         AS_VAR semantics of autoconf 2.60.
27972         Reported by Bruno Haible.
27973
27974         bootstrap: improve some comments
27975         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27976         clarification comments.
27977
27978         gettimeofday: provide correct function
27979         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27980         when replacement is declared, otherwise provide gettimeofday.
27981         Reported by Michael Goffioul.
27982
27983 2010-02-23  Jim Meyering  <meyering@redhat.com>
27984
27985         lib-ignore: relax license to "unlimited", not LGPLv2+
27986         * modules/lib-ignore (License): Relax to "unlimited".
27987
27988 2010-02-23  Jim Meyering  <meyering@redhat.com>
27989
27990         lib-ignore: relax license to LGPLv2+
27991         * modules/lib-ignore (License): Relax to LGPLv2+.
27992
27993 2010-02-22  Eric Blake  <eblake@redhat.com>
27994
27995         lseek: avoid bash 3.2 broken pipe bug
27996         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27997         warning from bash 3.2.
27998         Reported by Ben Pfaff, with analysis from Bruno Haible.
27999
28000         bootstrap: support non-FSF copyright holder
28001         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28002         bootstrap.conf override of COPYRIGHT_HOLDER.
28003         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28004
28005         bootstrap: interoperate with gettext 0.14.1
28006         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28007
28008         bootstrap: allow for alternate submodule location
28009         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28010         hardcoding submodule location.
28011         (gnulib_mk): Allow direct use of Makefile.am.
28012
28013         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28014         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28015         rather than reconfiguring where the submodule points.
28016
28017         gettimeofday: restore support for platforms that lack function
28018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28019         replacement if function is missing.
28020         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28021         * modules/sys_time (Makefile.am): Substitute it.
28022         * lib/sys_time.in.h (gettimeofday): Check it.
28023         Reported by Michael Goffioul.
28024
28025 2010-02-21  Bruno Haible  <bruno@clisp.org>
28026
28027         * lib/stdio.in.h (obstack_printf): Fix typo.
28028
28029 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28030
28031         vc-list-files: use bzr ls's -R option
28032         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28033         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28034
28035 2010-02-21  Jim Meyering  <meyering@redhat.com>
28036
28037         init.sh: fix EXEEXT shims to work also for names like test-prog
28038         * tests/init.sh: Re-exec a better shell, when needed.
28039         If the current shell lacks support for posix $(...), an init.sh-using
28040         test will now try to find a shell that supports that.  If EXEEXT is
28041         nonempty, we also require support for hyphen-in-alias-name and shell
28042         substitutions like ${var#glob}.  Failure to find such a shell results
28043         in a skipped test.
28044
28045 2010-02-21  Bruno Haible  <bruno@clisp.org>
28046
28047         Really work around around "broken pipe" error message from bash 3.2.
28048         * gnulib-tool (func_reset_sigpipe): Remove function.
28049         (echo): In bash 3.2, define to a function that uses printf.
28050         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28051
28052 2010-02-20  Bruno Haible  <bruno@clisp.org>
28053
28054         Restore support for automake 1.9.6 with autoconf 2.61.
28055         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28056         Reported by James Youngman <jay@gnu.org>.
28057
28058 2010-02-20  Bruno Haible  <bruno@clisp.org>
28059
28060         Improve *printf warning condition.
28061         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28062         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28063         and the function is overridden due to SIGPIPE emulation.
28064
28065 2010-02-20  Bruno Haible  <bruno@clisp.org>
28066
28067         * lib/stdio.in.h: Tweak comments.
28068
28069 2010-02-19  Bruno Haible  <bruno@clisp.org>
28070
28071         Make it easier to find modules. New gnulib-tool option '--find'.
28072         * gnulib-tool: New option --find.
28073         (func_usage): Document it.
28074         (func_sanitize_modulelist): New function, extracted from
28075         func_all_modules.
28076         (func_all_modules): Invoke it.
28077         * doc/gnulib-tool.texi (Which modules?): New node.
28078
28079 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28080
28081         * lib/sys_select.in.h: Provide select replacement even if
28082         sys/select.h exists on a system, for Interix.
28083
28084 2010-02-18  Jim Meyering  <meyering@redhat.com>
28085
28086         init.sh: don't use $(...) just yet
28087         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28088         to accommodate e.g., Solaris' /bin/sh.
28089
28090 2010-02-17  Bruno Haible  <bruno@clisp.org>
28091
28092         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28093         Reported by Ludovic Courtès <ludo@gnu.org>.
28094
28095 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28096
28097         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28098         linking with -lintl.
28099
28100 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28101
28102         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28103         if not provided by the system's netdb.h.  Reported by
28104         ludo@gnu.org (Ludovic Courtès).
28105
28106 2010-02-15  Jim Meyering  <meyering@redhat.com>
28107
28108         init.sh: improve portability and efficiency
28109         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28110         "dummy" in a for loop.
28111         Use '!', not '^' to select the complement of a character set used
28112         in a "case" statement.
28113         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28114         Suggestions from Eric Blake.
28115
28116         init.sh: automatically accommodate programs with the .exe suffix
28117         Automatically arrange for an invocation of "prog" to execute the
28118         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28119         may use the simpler "prog", yet still work when built on a system
28120         that requires specifying the added suffix.
28121         Do this by constructing a function named "prog" that invokes
28122         "prog.exe" for each .exe file in selected directories.
28123         * tests/init.sh (find_exe_basenames_): New function.
28124         (create_exe_shim_functions_): New function.
28125         (path_prepend_): Use it.
28126
28127         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28128         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28129         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28130
28131 2010-02-14  Jim Meyering  <meyering@redhat.com>
28132
28133         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28134         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28135         (sc_prohibit_hash_pjw_without_use): New rule.
28136
28137         maint.mk: allow the default upload destination dir to be overridden
28138         * top/maint.mk (upload_dest_dir_): Define with a default that
28139         preserves the status quo.
28140         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28141         Reported by Peter Simons.
28142
28143         maint.mk: prohibit inclusion of "hash.h" without_use
28144         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28145
28146 2010-02-10  Jim Meyering  <meyering@redhat.com>
28147
28148         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28149         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28150
28151 2010-02-09  Eric Blake  <ebb9@byu.net>
28152         and Bruno Haible  <bruno@clisp.org>
28153
28154         obstack-printf-posix: ensure declaration
28155         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28156         extracted from gl_FUNC_OBSTACK_PRINTF.
28157         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28158         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28159         Likewise.
28160         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28161         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28162         0.
28163
28164 2010-02-08  Bruno Haible  <bruno@clisp.org>
28165
28166         gnulib-tool: Fix typo in 2010-02-07 commit.
28167         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28168         Reported by Eric Blake.
28169
28170 2010-02-07  Bruno Haible  <bruno@clisp.org>
28171
28172         gnulib-tool: Fix up caching patches.
28173         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28174         option --no-cache. Use associative arrays when supported by the shell.
28175         (sed_comments): New variable.
28176         (modcache): Renamed from do_cache.
28177         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28178         abbreviate unnecessarily.
28179         (have_associative): New variable.
28180         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28181         way also for ksh and zsh.
28182         (func_init_sed_convert_to_cache_statements): New function, extracted
28183         from func_cache_lookup_module. Add support for associative arrays.
28184         Don't set the c_MODULE_cached variable here. Ignore all lines before
28185         the first field header. Remove only the final newline, not all trailing
28186         newlines. Support empty fields correctly. Limit the use of 'eval' to
28187         assignments.
28188         (func_get_description, func_get_status, func_get_notice,
28189         func_get_applicability, func_get_filelist, func_get_dependencies,
28190         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28191         func_get_automake_snippet, func_get_include_directive,
28192         func_get_link_directive, func_get_license, func_get_maintainer):
28193         Update documentation. List the unoptimized code first. Add support for
28194         associative arrays. Limit the use of 'eval' to assignments.
28195         (func_get_applicability): Undo stylistic pessimisations.
28196         (func_get_automake_snippet, func_get_include_directive): Reduce code
28197         duplication.
28198         (func_modules_transitive_closure, func_modules_add_dummy,
28199         func_modules_notice, func_modules_to_filelist, func_add_file,
28200         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28201         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28202         func_create_testdir, func_create_megatestdir): Update documentation.
28203
28204 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28205
28206         * gnulib-tool (func_cache_lookup_module): Store the module name
28207         belonging to the cache variable; error out if two different
28208         module names map to the same cache variable name.
28209
28210 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28211
28212         gnulib-tool: Make caching optional.
28213         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28214         Update matching short versions of --no-changelog.
28215         (func_usage): Update.
28216         (sed_extract_cache_prog): Renamed from ...
28217         (sed_extract_prog): ... this; revert to old extraction script.
28218         (func_get_description, func_get_status)
28219         (func_get_notice, func_get_applicability, func_get_filelist)
28220         (func_get_dependencies, func_get_autoconf_early_snippet)
28221         (func_get_autoconf_snippet, func_get_automake_snippet)
28222         (func_get_include_directive, func_get_link_directive)
28223         (func_get_license, func_get_maintainer): If $do_cache is false,
28224         use old, non-caching extraction scripts.
28225         Suggestion by Bruno Haible.
28226
28227 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28228
28229         gnulib-tool: cache module metainformation.
28230         * gnulib-tool (sed_extract_prog): Match newline before each
28231         header, and rewrite header to a shell variable suffix.
28232         (func_cache_var, func_cache_lookup_module): New functions,
28233         to turn a module name into a cache variable prefix, and to
28234         look up and cache module metainformation.
28235         (func_get_description, func_get_status)
28236         (func_get_notice, func_get_applicability, func_get_filelist)
28237         (func_get_dependencies, func_get_autoconf_early_snippet)
28238         (func_get_autoconf_snippet, func_get_automake_snippet)
28239         (func_get_include_directive, func_get_link_directive)
28240         (func_get_license, func_get_maintainer): Use
28241         func_cache_lookup_module.
28242
28243 2010-02-07  Bruno Haible  <bruno@clisp.org>
28244
28245         fnctl: Fix missing dependency.
28246         * modules/fcntl (Depends-on): Add getdtablesize.
28247         Reported by John W. Eaton <jwe@gnu.org>.
28248
28249 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28250
28251         Argp: fix recognition of short alias options.
28252
28253         * lib/argp-parse.c (convert_options): Fix improper use of
28254         `|' between character values.
28255         * tests/test-argp.c (group1_option): New alias option
28256         --read (-r).
28257         (group1_parser): Special handling for 'r'.
28258         (test15): New test case.
28259         (test_fun): Add test15.
28260         * tests/test-argp-2.sh: Update expected --help and --usage
28261         outputs.
28262
28263 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28264
28265         * tests/test-argp.c: Fix indentation.
28266
28267 2010-02-04  Eric Blake  <ebb9@byu.net>
28268
28269         gettimeofday: expose type of second argument
28270         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28271         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28272         * tests/test-gettimeofday.c: Use it to silence warning.
28273         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28274         the issue.
28275
28276 2010-02-03  Jim Meyering  <meyering@redhat.com>
28277
28278         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28279         * lib/regcomp.c (TYPE_SIGNED): Define.
28280         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28281
28282         regcomp.c: avoid a new -Wshadow warning
28283         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28284
28285 2010-02-01  Jim Meyering  <meyering@redhat.com>
28286
28287         removing useless parentheses in cpp #define directives
28288         For motivation, see commit c0221df4, "define STREQ(a,b)
28289         consistently, removing useless parentheses"
28290         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28291         * lib/mountlist.c (MNT_IGNORE): Likewise.
28292         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28293
28294 2010-02-01  Eric Blake  <ebb9@byu.net>
28295
28296         sys_time: use link-warning
28297         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28298         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28299         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28300         * modules/sys_time (Depends-on): Add warn-on-use.
28301         (Makefile.am): Always build replacement.
28302         (configure.ac): Update substitutions.
28303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28304         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28305         bother with SYS_TIME_H.
28306         * modules/gettimeofday (configure.ac): Declare indicator.
28307         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28308         in use.
28309
28310         closein-tests: silence compiler warning
28311         * tests/test-closein.c (main): Ignore fread result.
28312         * modules/closein-tests (Depends-on): Add ignore-value.
28313
28314         tests: silence warning about system return
28315         * tests/test-areadlink-with-size.c (main): Ignore system result.
28316         * tests/test-areadlink.c (main): Likewise.
28317         * tests/test-areadlinkat-with-size.c (main): Likewise.
28318         * tests/test-areadlinkat.c (main): Likewise.
28319         * tests/test-canonicalize-lgpl.c (main): Likewise.
28320         * tests/test-canonicalize.c (main): Likewise.
28321         * tests/test-chown.c (main): Likewise.
28322         * tests/test-fchownat.c (main): Likewise.
28323         * tests/test-fdutimensat.c (main): Likewise.
28324         * tests/test-fstatat.c (main): Likewise.
28325         * tests/test-futimens.c (main): Likewise.
28326         * tests/test-lchown.c (main): Likewise.
28327         * tests/test-link.c (main): Likewise.
28328         * tests/test-linkat.c (main): Likewise.
28329         * tests/test-lstat.c (main): Likewise.
28330         * tests/test-mkdir.c (main): Likewise.
28331         * tests/test-mkdirat.c (main): Likewise.
28332         * tests/test-mkfifo.c (main): Likewise.
28333         * tests/test-mkfifoat.c (main): Likewise.
28334         * tests/test-mknod.c (main): Likewise.
28335         * tests/test-readlink.c (main): Likewise.
28336         * tests/test-remove.c (main): Likewise.
28337         * tests/test-rename.c (main): Likewise.
28338         * tests/test-renameat.c (main): Likewise.
28339         * tests/test-rmdir.c (main): Likewise.
28340         * tests/test-symlink.c (main): Likewise.
28341         * tests/test-symlinkat.c (main): Likewise.
28342         * tests/test-unlink.c (main): Likewise.
28343         * tests/test-unlinkat.c (main): Likewise.
28344         * tests/test-utimens.c (main): Likewise.
28345         * tests/test-utimensat.c (main): Likewise.
28346         * modules/areadlink-tests (Depends-on): Add ignore-value.
28347         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28348         * modules/areadlinkat-tests (Depends-on): Likewise.
28349         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28350         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28351         * modules/canonicalize-tests (Depends-on): Likewise.
28352         * modules/chown-tests (Depends-on): Likewise.
28353         * modules/fdutimensat-tests (Depends-on): Likewise.
28354         * modules/futimens-tests (Depends-on): Likewise.
28355         * modules/lchown-tests (Depends-on): Likewise.
28356         * modules/link-tests (Depends-on): Likewise.
28357         * modules/linkat-tests (Depends-on): Likewise.
28358         * modules/lstat-tests (Depends-on): Likewise.
28359         * modules/mkdir-tests (Depends-on): Likewise.
28360         * modules/mkfifo-tests (Depends-on): Likewise.
28361         * modules/mkfifoat-tests (Depends-on): Likewise.
28362         * modules/mknod-tests (Depends-on): Likewise.
28363         * modules/openat-tests (Depends-on): Likewise.
28364         * modules/readlink-tests (Depends-on): Likewise.
28365         * modules/remove-tests (Depends-on): Likewise.
28366         * modules/rename-tests (Depends-on): Likewise.
28367         * modules/renameat-tests (Depends-on): Likewise.
28368         * modules/rmdir-tests (Depends-on): Likewise.
28369         * modules/symlink-tests (Depends-on): Likewise.
28370         * modules/symlinkat-tests (Depends-on): Likewise.
28371         * modules/unlink-tests (Depends-on): Likewise.
28372         * modules/utimens-tests (Depends-on): Likewise.
28373         * modules/utimensat-tests (Depends-on): Likewise.
28374
28375 2010-01-31  Bruno Haible  <bruno@clisp.org>
28376
28377         Perform the same test for many <math.h> functions.
28378         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28379         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28380         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28381         of gl_MATHFUNC.
28382         * modules/acos (configure.ac): Likewise.
28383         * modules/asin (configure.ac): Likewise.
28384         * modules/atan (configure.ac): Likewise.
28385         * modules/atan2 (configure.ac): Likewise.
28386         * modules/cbrt (configure.ac): Likewise.
28387         * modules/copysign (configure.ac): Likewise.
28388         * modules/cos (configure.ac): Likewise.
28389         * modules/cosh (configure.ac): Likewise.
28390         * modules/erf (configure.ac): Likewise.
28391         * modules/erfc (configure.ac): Likewise.
28392         * modules/exp (configure.ac): Likewise.
28393         * modules/fmod (configure.ac): Likewise.
28394         * modules/hypot (configure.ac): Likewise.
28395         * modules/j0 (configure.ac): Likewise.
28396         * modules/j1 (configure.ac): Likewise.
28397         * modules/jn (configure.ac): Likewise.
28398         * modules/lgamma (configure.ac): Likewise.
28399         * modules/log (configure.ac): Likewise.
28400         * modules/log10 (configure.ac): Likewise.
28401         * modules/log1p (configure.ac): Likewise.
28402         * modules/pow (configure.ac): Likewise.
28403         * modules/remainder (configure.ac): Likewise.
28404         * modules/sin (configure.ac): Likewise.
28405         * modules/sinh (configure.ac): Likewise.
28406         * modules/tan (configure.ac): Likewise.
28407         * modules/tanh (configure.ac): Likewise.
28408         * modules/y0 (configure.ac): Likewise.
28409         * modules/y1 (configure.ac): Likewise.
28410         * modules/yn (configure.ac): Likewise.
28411         Suggested by Paolo Bonzini.
28412
28413 2010-01-31  Bruno Haible  <bruno@clisp.org>
28414
28415         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28416
28417 2010-01-31  Bruno Haible  <bruno@clisp.org>
28418
28419         Work around getdelim() bug on FreeBSD 8.0.
28420         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28421         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28422         not work.
28423         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28424         is 1.
28425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28426         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28427         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28428         a non-zero size.
28429         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28430
28431 2010-01-31  Bruno Haible  <bruno@clisp.org>
28432
28433         Work around getline() bug on FreeBSD 8.0.
28434         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28435         and a non-zero size.
28436         * tests/test-getline.c (main): Likewise.
28437         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28438         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28439
28440 2010-01-28  Eric Blake  <ebb9@byu.net>
28441
28442         regex: fix build failure
28443         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28444         platforms.
28445
28446 2010-01-28  Jim Meyering  <meyering@redhat.com>
28447
28448         regex: do not ignore memory allocation failure
28449         * lib/regex_internal.c (create_cd_newstate): Detect
28450         re_node_set_init_copy failure.   Extracted from glibc commit
28451         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28452
28453         regex: sync more white-space changes from libc
28454         * lib/regex_internal.c: White-space only changes.
28455         * lib/regexec.c: Likewise.
28456
28457         regex: add many uses of __attribute_warn_unused_result__
28458         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28459         * lib/regexec.c: Likewise.
28460         Extracted from a messy glibc commit.
28461
28462         regcomp.c: spelling and merge-artifact from glibc
28463         * lib/regcomp.c: Merge remainder of glibc's
28464         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28465
28466         regcomp.c: sync white-space changes from glibc
28467         * lib/regcomp.c: Merge to accommodate white space
28468         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28469
28470         regcomp.c: do not ignore internal return values
28471         * lib/regcomp.c: Do not ignore internal return values.
28472         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28473         but without its white-space changes and spelling fixes.
28474
28475         regex_internal.h: define __attribute_warn_unused_result__
28476         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28477
28478         maint: add a syntax-check rule to check for vulnerable Makefile.in
28479         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28480
28481 2010-01-27  Jim Meyering  <meyering@redhat.com>
28482
28483         ncftpput-ftp: clean up spaces
28484         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28485         Remove trailing blanks.
28486
28487 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28488
28489         * build-aux/git-version-gen: Fix copyright statement.
28490         * build-aux/gnupload: Likewise.
28491         * tests/test-arcfour.c: Likewise.
28492         * tests/test-arctwo.c: Likewise.
28493         * tests/test-count-one-bits.c: Likewise.
28494         * tests/test-crc.c: Likewise.
28495         * tests/test-des.c: Likewise.
28496         * tests/test-gc-arcfour.c: Likewise.
28497         * tests/test-gc-arctwo.c: Likewise.
28498         * tests/test-gc-des.c: Likewise.
28499         * tests/test-gc-hmac-md5.c: Likewise.
28500         * tests/test-gc-hmac-sha1.c: Likewise.
28501         * tests/test-gc-md2.c: Likewise.
28502         * tests/test-gc-md4.c: Likewise.
28503         * tests/test-gc-md5.c: Likewise.
28504         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28505         * tests/test-gc-rijndael.c: Likewise.
28506         * tests/test-gc-sha1.c: Likewise.
28507         * tests/test-gc.c: Likewise.
28508         * tests/test-gethostname.c: Likewise.
28509         * tests/test-gettimeofday.c: Likewise.
28510         * tests/test-hash.c: Likewise.
28511         * tests/test-hmac-md5.c: Likewise.
28512         * tests/test-hmac-sha1.c: Likewise.
28513         * tests/test-md2.c: Likewise.
28514         * tests/test-md4.c: Likewise.
28515         * tests/test-md5.c: Likewise.
28516         * tests/test-memchr.c: Likewise.
28517         * tests/test-memchr2.c: Likewise.
28518         * tests/test-memcmp.c: Likewise.
28519         * tests/test-memmem.c: Likewise.
28520         * tests/test-memrchr.c: Likewise.
28521         * tests/test-rawmemchr.c: Likewise.
28522         * tests/test-read-file.c: Likewise.
28523         * tests/test-rijndael.c: Likewise.
28524         * tests/test-sockets.c: Likewise.
28525         * tests/test-strchrnul.c: Likewise.
28526         * tests/test-strstr.c: Likewise.
28527         * tests/test-strtod.c: Likewise.
28528         * build-aux/ncftpput-ftp: Likewise.
28529
28530 2010-01-26  Eric Blake  <ebb9@byu.net>
28531
28532         ignore-value: update recommended header name
28533         * modules/ignore-value (Include): Only use <> for headers that
28534         exist in glibc.
28535
28536 2010-01-26  Jim Meyering  <meyering@redhat.com>
28537
28538         test-userspec.c: avoid compiler warnings
28539         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28540         and "initialization discards qualifiers..." warnings.
28541         Put the first "uid" in its own scope, and make char* members "const".
28542
28543 2010-01-25  Bruno Haible  <bruno@clisp.org>
28544
28545         gnulib-tool: Make warning diagnostics consistent.
28546         * gnulib-tool (func_warning): New function.
28547         Use it everywhere where gnulib-tool produces output to stderr and it is
28548         not a fatal error.
28549
28550 2010-01-25  Bruno Haible  <bruno@clisp.org>
28551
28552         Fix test dependencies.
28553         * modules/xstrtol-tests (Depends-on): Add inttypes.
28554         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28555
28556 2010-01-25 Pádraig Brady <P@draigBrady.com>
28557
28558         syntax-check: detect incorrect boolean macro values in config.h
28559         * modules/maintainer-makefile (configure.ac): Parameterize the location
28560         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28561         The logic is from Eric Blake and the location indicated by Jim Meyering.
28562         Note the more natural CONFIG_HEADER name is prohibited by automake
28563         for backwards compatibility reasons.
28564         * top/maint.mk (sc_Wundef_boolean): New rule.
28565
28566 2010-01-25  Jim Meyering  <meyering@redhat.com>
28567
28568         bootstrap: detect MacOS 10.6's shasum, too
28569         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28570         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28571
28572 2010-01-23  Jim Meyering  <meyering@redhat.com>
28573
28574         xstrtoll: new module
28575         * modules/xstrtoll: New file.
28576         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28577         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28578         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28579         ./configure fails if you use this module and lack "long long".
28580         * modules/xstrtoll-tests: New module.
28581         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28582         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28583         new init.sh-based test framework.
28584
28585 2010-01-24  Bruno Haible  <bruno@clisp.org>
28586
28587         Tests for module 'yn'.
28588         * modules/yn-tests: New file.
28589         * tests/test-yn.c: New file.
28590
28591         Tests for module 'y1'.
28592         * modules/y1-tests: New file.
28593         * tests/test-y1.c: New file.
28594
28595         Tests for module 'y0'.
28596         * modules/y0-tests: New file.
28597         * tests/test-y0.c: New file.
28598
28599         Tests for module 'tanh'.
28600         * modules/tanh-tests: New file.
28601         * tests/test-tanh.c: New file.
28602
28603         Tests for module 'tan'.
28604         * modules/tan-tests: New file.
28605         * tests/test-tan.c: New file.
28606
28607         Tests for module 'sqrt'.
28608         * modules/sqrt-tests: New file.
28609         * tests/test-sqrt.c: New file.
28610
28611         Tests for module 'sinh'.
28612         * modules/sinh-tests: New file.
28613         * tests/test-sinh.c: New file.
28614
28615         Tests for module 'sin'.
28616         * modules/sin-tests: New file.
28617         * tests/test-sin.c: New file.
28618
28619         Tests for module 'rint'.
28620         * modules/rint-tests: New file.
28621         * tests/test-rint.c: New file.
28622
28623         Tests for module 'remainder'.
28624         * modules/remainder-tests: New file.
28625         * tests/test-remainder.c: New file.
28626
28627         Tests for module 'pow'.
28628         * modules/pow-tests: New file.
28629         * tests/test-pow.c: New file.
28630
28631         Tests for module 'nextafter'.
28632         * modules/nextafter-tests: New file.
28633         * tests/test-nextafter.c: New file.
28634
28635         Tests for module 'modf'.
28636         * modules/modf-tests: New file.
28637         * tests/test-modf.c: New file.
28638
28639         Tests for module 'logb'.
28640         * modules/logb-tests: New file.
28641         * tests/test-logb.c: New file.
28642
28643         Tests for module 'log1p'.
28644         * modules/log1p-tests: New file.
28645         * tests/test-log1p.c: New file.
28646
28647         Tests for module 'log10'.
28648         * modules/log10-tests: New file.
28649         * tests/test-log10.c: New file.
28650
28651         Tests for module 'log'.
28652         * modules/log-tests: New file.
28653         * tests/test-log.c: New file.
28654
28655         Tests for module 'lgamma'.
28656         * modules/lgamma-tests: New file.
28657         * tests/test-lgamma.c: New file.
28658
28659         Tests for module 'ldexp'.
28660         * modules/ldexp-tests: New file.
28661         * tests/test-ldexp.c: New file.
28662
28663         Tests for module 'jn'.
28664         * modules/jn-tests: New file.
28665         * tests/test-jn.c: New file.
28666
28667         Tests for module 'j1'.
28668         * modules/j1-tests: New file.
28669         * tests/test-j1.c: New file.
28670
28671         Tests for module 'j0'.
28672         * modules/j0-tests: New file.
28673         * tests/test-j0.c: New file.
28674
28675         Tests for module 'hypot'.
28676         * modules/hypot-tests: New file.
28677         * tests/test-hypot.c: New file.
28678
28679         Tests for module 'fmod'.
28680         * modules/fmod-tests: New file.
28681         * tests/test-fmod.c: New file.
28682
28683         Tests for module 'fabs'.
28684         * modules/fabs-tests: New file.
28685         * tests/test-fabs.c: New file.
28686
28687         Tests for module 'exp'.
28688         * modules/exp-tests: New file.
28689         * tests/test-exp.c: New file.
28690
28691         Tests for module 'erfc'.
28692         * modules/erfc-tests: New file.
28693         * tests/test-erfc.c: New file.
28694
28695         Tests for module 'erf'.
28696         * modules/erf-tests: New file.
28697         * tests/test-erf.c: New file.
28698
28699         Tests for module 'cosh'.
28700         * modules/cosh-tests: New file.
28701         * tests/test-cosh.c: New file.
28702
28703         Tests for module 'cos'.
28704         * modules/cos-tests: New file.
28705         * tests/test-cos.c: New file.
28706
28707         Tests for module 'copysign'.
28708         * modules/copysign-tests: New file.
28709         * tests/test-copysign.c: New file.
28710
28711         Tests for module 'cbrt'.
28712         * modules/cbrt-tests: New file.
28713         * tests/test-cbrt.c: New file.
28714
28715         Tests for module 'atan2'.
28716         * modules/atan2-tests: New file.
28717         * tests/test-atan2.c: New file.
28718
28719         Tests for module 'atan'.
28720         * modules/atan-tests: New file.
28721         * tests/test-atan.c: New file.
28722
28723         Tests for module 'asin'.
28724         * modules/asin-tests: New file.
28725         * tests/test-asin.c: New file.
28726
28727         Tests for module 'acos'.
28728         * modules/acos-tests: New file.
28729         * tests/test-acos.c: New file.
28730
28731 2010-01-24  Bruno Haible  <bruno@clisp.org>
28732
28733         Fix tests for common <math.h> functions.
28734         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28735         code snippet that references the function pointer, rather than merely
28736         calling the function. Substitute the FUNC_LIBM variable.
28737         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28738         * modules/acos (configure.ac): Likewise.
28739         * modules/asin (configure.ac): Likewise.
28740         * modules/atan (configure.ac): Likewise.
28741         * modules/atan2 (configure.ac): Likewise.
28742         * modules/cbrt (configure.ac): Likewise.
28743         * modules/copysign (configure.ac): Likewise.
28744         * modules/cos (configure.ac): Likewise.
28745         * modules/cosh (configure.ac): Likewise.
28746         * modules/erf (configure.ac): Likewise.
28747         * modules/erfc (configure.ac): Likewise.
28748         * modules/exp (configure.ac): Likewise.
28749         * modules/fabs (configure.ac): Likewise.
28750         * modules/fmod (configure.ac): Likewise.
28751         * modules/hypot (configure.ac): Likewise.
28752         * modules/j0 (configure.ac): Likewise.
28753         * modules/j1 (configure.ac): Likewise.
28754         * modules/jn (configure.ac): Likewise.
28755         * modules/ldexp (configure.ac): Likewise.
28756         * modules/lgamma (configure.ac): Likewise.
28757         * modules/log (configure.ac): Likewise.
28758         * modules/log10 (configure.ac): Likewise.
28759         * modules/log1p (configure.ac): Likewise.
28760         * modules/logb (configure.ac): Likewise.
28761         * modules/modf (configure.ac): Likewise.
28762         * modules/nextafter (configure.ac): Likewise.
28763         * modules/pow (configure.ac): Likewise.
28764         * modules/remainder (configure.ac): Likewise.
28765         * modules/rint (configure.ac): Likewise.
28766         * modules/sin (configure.ac): Likewise.
28767         * modules/sinh (configure.ac): Likewise.
28768         * modules/tan (configure.ac): Likewise.
28769         * modules/tanh (configure.ac): Likewise.
28770         * modules/y0 (configure.ac): Likewise.
28771         * modules/y1 (configure.ac): Likewise.
28772         * modules/yn (configure.ac): Likewise.
28773
28774 2010-01-24  Bruno Haible  <bruno@clisp.org>
28775
28776         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28777         * tests/test-acosl.c (x): New variable.
28778         (main): Store argument in x and fetch it from x.
28779         * tests/test-asinl.c (x): New variable.
28780         (main): Store argument in x and fetch it from x.
28781         * tests/test-atanl.c (x): New variable.
28782         (main): Store argument in x and fetch it from x.
28783         * tests/test-cosl.c (x): New variable.
28784         (main): Store argument in x and fetch it from x.
28785         * tests/test-expl.c (x): New variable.
28786         (main): Store argument in x and fetch it from x.
28787         * tests/test-logl.c (x): New variable.
28788         (main): Store argument in x and fetch it from x.
28789         * tests/test-sinl.c (x): New variable.
28790         (main): Store argument in x and fetch it from x.
28791         * tests/test-sqrtl.c (x): New variable.
28792         (main): Store argument in x and fetch it from x.
28793         * tests/test-tanl.c (x): New variable.
28794         (main): Store argument in x and fetch it from x.
28795
28796 2010-01-24  Bruno Haible  <bruno@clisp.org>
28797
28798         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28799         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28800         assignments to the initial TESTS_ENVIRONMENT.
28801         * doc/gnulib.texi (Unit test modules): Document it.
28802         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28803         TESTS_ENVIRONMENT.
28804         * modules/btowc-tests (Makefile.am): Likewise.
28805         * modules/c-stack-tests (Makefile.am): Likewise.
28806         * modules/c-strcase-tests (Makefile.am): Likewise.
28807         * modules/copy-file-tests (Makefile.am): Likewise.
28808         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28809         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28810         * modules/mbrtowc-tests (Makefile.am): Likewise.
28811         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28812         * modules/mbscasestr-tests (Makefile.am): Likewise.
28813         * modules/mbschr-tests (Makefile.am): Likewise.
28814         * modules/mbscspn-tests (Makefile.am): Likewise.
28815         * modules/mbsinit-tests (Makefile.am): Likewise.
28816         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28817         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28818         * modules/mbspbrk-tests (Makefile.am): Likewise.
28819         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28820         * modules/mbsrchr-tests (Makefile.am): Likewise.
28821         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28822         * modules/mbsspn-tests (Makefile.am): Likewise.
28823         * modules/mbsstr-tests (Makefile.am): Likewise.
28824         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28825         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28826         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28827         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28828         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28829         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28830         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28831         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28832         * modules/wcrtomb-tests (Makefile.am): Likewise.
28833         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28834         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28835         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28836         assignments from TESTS_ENVIRONMENT.
28837         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28838         augmentation.
28839         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28840         * modules/atexit-tests (Makefile.am): Likewise.
28841         * modules/binary-io-tests (Makefile.am): Likewise.
28842         * modules/closein-tests (Makefile.am): Likewise.
28843         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28844         * modules/exclude-tests (Makefile.am): Likewise.
28845         * modules/fflush-tests (Makefile.am): Likewise.
28846         * modules/fpending-tests (Makefile.am): Likewise.
28847         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28848         * modules/freadahead-tests (Makefile.am): Likewise.
28849         * modules/freadptr-tests (Makefile.am): Likewise.
28850         * modules/freadseek-tests (Makefile.am): Likewise.
28851         * modules/fseek-tests (Makefile.am): Likewise.
28852         * modules/fseeko-tests (Makefile.am): Likewise.
28853         * modules/ftell-tests (Makefile.am): Likewise.
28854         * modules/ftello-tests (Makefile.am): Likewise.
28855         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28856         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28857         * modules/lseek-tests (Makefile.am): Likewise.
28858         * modules/parse-duration-tests (Makefile.am): Likewise.
28859         * modules/perror-tests (Makefile.am): Likewise.
28860         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28861         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28862         * modules/pipe-tests (Makefile.am): Likewise.
28863         * modules/pread-tests (Makefile.am): Likewise.
28864         * modules/printf-posix-tests (Makefile.am): Likewise.
28865         * modules/select-tests (Makefile.am): Likewise.
28866         * modules/sigpipe-tests (Makefile.am): Likewise.
28867         * modules/tsearch-tests (Makefile.am): Likewise.
28868         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28869         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28870         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28871         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28872         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28873         * modules/version-etc-tests (Makefile.am): Likewise.
28874         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28875         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28876         * modules/xalloc-die-tests (Makefile.am): Likewise.
28877         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28878         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28879         * modules/xstrtol-tests (Makefile.am): Likewise.
28880         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28881         * modules/yesno-tests (Makefile.am): Likewise.
28882         Suggested by Jim Meyering.
28883
28884 2010-01-24  Bruno Haible  <bruno@clisp.org>
28885
28886         More documentation.
28887         * doc/gnulib.texi (Writing modules): New chapter.
28888         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28889         the new chapter.
28890
28891 2010-01-24  Jim Meyering  <meyering@redhat.com>
28892
28893         maint.mk: do not prepend "./" after filtering
28894         * top/maint.mk (_prepend_srcdir_prefix): New variable
28895         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28896         "./" when $(srcdir) is ".".
28897
28898         define STREQ(a,b) consistently, removing useless parentheses
28899         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28900         since the only risk is that "a" or "b" contains an unparenthesized
28901         comma, but if either did that, STREQ would have 3 or more arguments.
28902         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28903         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28904         * lib/hash-triple.c (STREQ): Likewise.
28905         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28906         * lib/getugroups.c (STREQ): Likewise.
28907
28908 2010-01-23  Jim Meyering  <meyering@redhat.com>
28909
28910         maint.mk: fix syntax-check in a non-srcdir build directory
28911         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28912         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28913
28914 2010-01-22  Jim Meyering  <meyering@redhat.com>
28915
28916         userspec: add unit tests
28917         * tests/test-userspec.c: New file.
28918         * modules/userspec-tests: Likewise.
28919
28920 2010-01-21  Jim Meyering  <meyering@redhat.com>
28921
28922         maint.mk: handle source file names containing "." robustly
28923         * top/maint.mk (_dot_escaped_srcdir): Define.
28924         (VC_LIST): Use it in LHS of sed substitution.
28925
28926 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28927
28928         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28929         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28930         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28931         from a non-srcdir build.
28932
28933 2010-01-20  Eric Blake  <ebb9@byu.net>
28934
28935         warn-on-use: use instead of link-warning
28936         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28937         * modules/unistd (Depends-on, Makefile.am): Likewise.
28938         * modules/arpa_inet (Depends-on): Replace link-warning with
28939         warn-on-use.
28940         (Makefile.am): Update rules accordingly.
28941         * modules/ctype (Depends-on, Makefile.am): Likewise.
28942         * modules/dirent (Depends-on, Makefile.am): Likewise.
28943         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28944         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28945         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28946         * modules/locale (Depends-on, Makefile.am): Likewise.
28947         * modules/math (Depends-on, Makefile.am): Likewise.
28948         * modules/search (Depends-on, Makefile.am): Likewise.
28949         * modules/signal (Depends-on, Makefile.am): Likewise.
28950         * modules/spawn (Depends-on, Makefile.am): Likewise.
28951         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28952         * modules/string (Depends-on, Makefile.am): Likewise.
28953         * modules/strings (Depends-on, Makefile.am): Likewise.
28954         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28955         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28956         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28957         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28958         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28959         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28960         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28961         * modules/wchar (Depends-on, Makefile.am): Likewise.
28962         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28963         should be poisoned.
28964         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28965         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28966         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28967         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28968         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28969         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28970         * m4/math_h.m4 (gl_MATH_H): Likewise.
28971         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28972         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28973         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28974         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28975         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28976         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28977         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28978         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28979         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28981         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28983         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28984         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28985         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28986         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28987         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28988         GL_LINK_WARNING.
28989         * lib/ctype.in.h: Likewise.
28990         * lib/dirent.in.h: Likewise.
28991         * lib/fcntl.in.h: Likewise.
28992         * lib/inttypes.in.h: Likewise.
28993         * lib/langinfo.in.h: Likewise.
28994         * lib/locale.in.h: Likewise.
28995         * lib/math.in.h: Likewise.
28996         * lib/search.in.h: Likewise.
28997         * lib/signal.in.h: Likewise.
28998         * lib/spawn.in.h: Likewise.
28999         * lib/stdio.in.h: Likewise.
29000         * lib/stdlib.in.h: Likewise.
29001         * lib/string.in.h: Likewise.
29002         * lib/strings.in.h: Likewise.
29003         * lib/sys_file.in.h: Likewise.
29004         * lib/sys_ioctl.in.h: Likewise.
29005         * lib/sys_select.in.h: Likewise.
29006         * lib/sys_socket.in.h: Likewise.
29007         * lib/sys_stat.in.h: Likewise.
29008         * lib/sys_times.in.h: Likewise.
29009         * lib/sys_utsname.in.h: Likewise.
29010         * lib/unistd.in.h: Likewise.
29011         * lib/wchar.in.h: Likewise.
29012
29013 2010-01-20  Bruno Haible  <bruno@clisp.org>
29014
29015         Avoid duplicate -lm.
29016         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29017         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29019         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29020         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29021         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29022         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29023         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29024         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29025         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29026         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29027         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29028         Reported by Paolo Bonzini.
29029
29030 2010-01-19  Bruno Haible  <bruno@clisp.org>
29031
29032         langinfo, nl_langinfo: Relicense under LGPLv2+.
29033         * modules/langinfo (License): Change to LGPLv2+.
29034         * modules/nl_langinfo (License): Likewise.
29035         Patch by David Lutterkort <lutter@redhat.com>.
29036
29037 2010-01-19  Bruno Haible  <bruno@clisp.org>
29038
29039         Avoid compilation error with cc on OSF/1 5.1.
29040         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29041         statement, not before.
29042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29043
29044 2010-01-18  Bruno Haible  <bruno@clisp.org>
29045
29046         Avoid a link error due to the __printf__ symbol.
29047         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29048         and 2.6.x.
29049         (__format__, __printf__): Remove definitions.
29050         * lib/argp-fmtstream.h: Likewise.
29051         * lib/argp.h: Likewise.
29052         * lib/error.h: Likewise.
29053         * lib/vasnprintf.h: Likewise.
29054         * lib/xprintf.h: Likewise.
29055         * lib/xvasprintf.h: Likewise.
29056         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29057
29058 2010-01-18  Bruno Haible  <bruno@clisp.org>
29059
29060         Tests for module 'tanl'.
29061         * modules/tanl-tests: New file.
29062         * tests/test-tanl.c: New file.
29063
29064         Tests for module 'sqrtl'.
29065         * modules/sqrtl-tests: New file.
29066         * tests/test-sqrtl.c: New file.
29067
29068         Tests for module 'sinl'.
29069         * modules/sinl-tests: New file.
29070         * tests/test-sinl.c: New file.
29071
29072         Tests for module 'logl'.
29073         * modules/logl-tests: New file.
29074         * tests/test-logl.c: New file.
29075
29076         Tests for module 'expl'.
29077         * modules/expl-tests: New file.
29078         * tests/test-expl.c: New file.
29079
29080         Tests for module 'cosl'.
29081         * modules/cosl-tests: New file.
29082         * tests/test-cosl.c: New file.
29083
29084         Tests for module 'atanl'.
29085         * modules/atanl-tests: New file.
29086         * tests/test-atanl.c: New file.
29087
29088         Tests for module 'asinl'.
29089         * modules/asinl-tests: New file.
29090         * tests/test-asinl.c: New file.
29091
29092         Tests for module 'acosl'.
29093         * modules/acosl-tests: New file.
29094         * tests/test-acosl.c: New file.
29095
29096         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29097         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29098         tanl): Use the standard gnulib idiom.
29099         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29100         * lib/sinl.c: Likewise.
29101         * lib/tanl.c: Don't include trigl.c.
29102         (kernel_tanl): Make static.
29103         * lib/sincosl.c: Include trigl.h first.
29104         * lib/trigl.c: Likewise.
29105         * m4/acosl.m4: New file.
29106         * m4/asinl.m4: New file.
29107         * m4/atanl.m4: New file.
29108         * m4/cosl.m4: New file.
29109         * m4/expl.m4: New file.
29110         * m4/logl.m4: New file.
29111         * m4/sinl.m4: New file.
29112         * m4/sqrtl.m4: New file.
29113         * m4/tanl.m4: New file.
29114         * m4/mathl.m4: Remove file.
29115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29116         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29117         Don't initialize GNULIB_MATHL.
29118         * modules/acosl: New file.
29119         * modules/asinl: New file.
29120         * modules/atanl: New file.
29121         * modules/cosl: New file.
29122         * modules/expl: New file.
29123         * modules/logl: New file.
29124         * modules/sinl: New file.
29125         * modules/sqrtl: New file.
29126         * modules/tanl: New file.
29127         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29128         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29129         substitute GNULIB_MATHL.
29130         * modules/mathl: Rewritten.
29131         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29132         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29133         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29134         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29135         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29136         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29137         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29138         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29139         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29140
29141 2010-01-18  Bruno Haible  <bruno@clisp.org>
29142
29143         sqrt: Make gl_FUNC_SQRT requirable.
29144         * m4/sqrt.m4: New file.
29145         * modules/sqrt (Files): Add it.
29146         (configure.ac): Invoke gl_FUNC_SQRT.
29147
29148 2010-01-18  Bruno Haible  <bruno@clisp.org>
29149
29150         New modules for common <math.h> functions.
29151         * m4/mathfunc.m4: New file.
29152         * modules/acos: New file.
29153         * modules/asin: New file.
29154         * modules/atan: New file.
29155         * modules/atan2: New file.
29156         * modules/cbrt: New file.
29157         * modules/copysign: New file.
29158         * modules/cos: New file.
29159         * modules/cosh: New file.
29160         * modules/erf: New file.
29161         * modules/erfc: New file.
29162         * modules/exp: New file.
29163         * modules/fabs: New file.
29164         * modules/fmod: New file.
29165         * modules/hypot: New file.
29166         * modules/j0: New file.
29167         * modules/j1: New file.
29168         * modules/jn: New file.
29169         * modules/ldexp: New file.
29170         * modules/lgamma: New file.
29171         * modules/log: New file.
29172         * modules/log10: New file.
29173         * modules/log1p: New file.
29174         * modules/logb: New file.
29175         * modules/modf: New file.
29176         * modules/nextafter: New file.
29177         * modules/pow: New file.
29178         * modules/remainder: New file.
29179         * modules/rint: New file.
29180         * modules/sin: New file.
29181         * modules/sinh: New file.
29182         * modules/sqrt: New file.
29183         * modules/tan: New file.
29184         * modules/tanh: New file.
29185         * modules/y0: New file.
29186         * modules/y1: New file.
29187         * modules/yn: New file.
29188         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29189         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29190         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29191         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29192         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29193         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29194         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29195         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29196         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29197         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29198         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29199         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29200         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29201         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29202         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29203         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29204         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29205         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29206         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29207         * doc/posix-functions/log.texi: Mention the 'log' module.
29208         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29209         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29210         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29211         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29212         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29213         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29214         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29215         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29216         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29217         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29218         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29219         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29220         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29221         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29222         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29223         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29224
29225 2010-01-18  Jim Meyering  <meyering@redhat.com>
29226
29227         ignore-value: relax license to LGPLv2+
29228         * modules/ignore-value (License): Relax to LGPLv2+.
29229
29230         getdate: don't leak when TZ contains two or more '"'s
29231         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29232         double quote in TZ after the first one.
29233
29234         readtokens: do not leak internal token_lengths buffer
29235         * lib/readtokens.c (readtokens): Free the local, lengths,
29236         when the supplied "token_lengths" parameter is NULL.
29237
29238 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29239
29240         Fix a couple of missing LIBTHREAD link failures on AIX.
29241         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29242         $(LIBTHREAD).
29243         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29244
29245         Link test-poll against INET_PTON_LIB.
29246         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29247         for inet_pton on Solaris 10.
29248
29249 2010-01-17  Bruno Haible  <bruno@clisp.org>
29250
29251         unistdio/*-sprintf: Fix typo in module description.
29252         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29253         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29254         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29255         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29256         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29257         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29258         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29260
29261 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29262
29263         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29264         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29265         variables in shell case patterns, for AIX and HP-UX ksh.
29266
29267         Split large sed scripts, for HP-UX sed.
29268         * modules/stdio: Split sed scripts around 50 sed commands,
29269         to avoid HP-UX limit of 99 commands, in the near future.
29270         * modules/string: Likewise.
29271         * modules/unistd: Likewise.
29272
29273         gnulib-tool: avoid writing in the current directory.
29274         * gnulib-tool (func_emit_lib_Makefile_am)
29275         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29276         not in the current directory, so concurrent gnulib-tool
29277         instances do not interfere.
29278
29279 2010-01-16  Jim Meyering  <meyering@redhat.com>
29280
29281         doc: update users.txt
29282         * users.txt: Add grep.
29283         (diffutils, gzip): Update URLs.
29284
29285 2010-01-12  Bruno Haible  <bruno@clisp.org>
29286
29287         posix_spawn: Avoid test failure on Cygwin.
29288         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29289         characters.
29290         Reported by Simon Josefsson.
29291
29292 2010-01-12  Bruno Haible  <bruno@clisp.org>
29293
29294         * tests/test-cond.c (main): When skipping the test, show the reason.
29295
29296 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29297
29298         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29299
29300 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29301
29302         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29303         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29304
29305 2010-01-12  Eric Blake  <ebb9@byu.net>
29306
29307         build: guarantee AS_VAR_IF
29308         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29309         (gl_AS_VAR_IF): Move...
29310         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29311         Reported by Simon Josefsson.
29312
29313 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29314
29315         * lib/stdio.in.h: Fix typo.
29316
29317 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29318
29319         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29320         libgpg-error.
29321
29322 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29323
29324         * tests/test-xalloc-die.sh: Use $EXEEXT.
29325
29326 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29327             Bruno Haible  <bruno@clisp.org>
29328
29329         getlogin, getlogin_r: Avoid test failure.
29330         * tests/test-getlogin.c: Include <stdio.h>.
29331         (main): Skip the test when the function fails because stdin is not a
29332         tty.
29333         * tests/test-getlogin_r.c: Include <stdio.h>.
29334         (main): Skip the test when the function fails because stdin is not a
29335         tty.
29336
29337 2010-01-11  Eric Blake  <ebb9@byu.net>
29338
29339         tests: avoid more large file warnings
29340         * tests/test-fflush.c: Avoid warning about ftell use.
29341         * tests/test-fseek.c: Avoid warning about fseek use.
29342
29343 2010-01-10  Bruno Haible  <bruno@clisp.org>
29344
29345         nproc: Work better on Linux when /proc and /sys are not mounted.
29346         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29347         as lower bound when, on glibc/Linux systems,
29348         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29349         Suggested by Pádraig Brady <P@draigbrady.com>.
29350         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29351
29352         nproc: Refactor.
29353         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29354         extracted from num_processors.
29355         (num_processors): Call it.
29356
29357 2010-01-11  Jim Meyering  <meyering@redhat.com>
29358
29359         utimecmp: avoid new warning from upcoming gcc-4.5.0
29360         * lib/utimecmp.c (BILLION): Define using #define rather than an
29361         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29362
29363 2010-01-11  Eric Blake  <ebb9@byu.net>
29364
29365         math: add portability warnings for classification macros
29366         * modules/math (Depends-on): Add warn-on-use.
29367         (Makefile.am): Provide new substitutions.
29368         * m4/math_h.m4 (gl_MATH_H): Require inline.
29369         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29370         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29371         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29372         implement warnings.
29373
29374         unistd: warn on use of environ without module
29375         * modules/unistd (Depends-on): Add warn-on-use.
29376         (Makefile.am): Provide new substitutions.
29377         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29378         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29379
29380         stdio: warn on suspicious uses
29381         * modules/stdio (Depends-on): Add warn-on-use.
29382         (Makefile.am): Provide new substitutions.
29383         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29384         fseeko.
29385         * lib/stdio.in.h (gets): Always warn on use.
29386         (fseek, ftell): Adjust when warnings are issued, and honor
29387         _GL_NO_LARGE_FILES as a way to silence the warning.
29388         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29389         any warning about large file offsets.
29390         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29391         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29392         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29393         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29394         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29395         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29396         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29397         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29398
29399         warn-on-use: new module
29400         * modules/warn-on-use: New file.
29401         * build-aux/warn-on-use.h: Likewise.
29402         * m4/warn-on-use.m4: Likewise.
29403         * MODULES.html.sh (Support for building): Mention it.
29404
29405 2010-01-10  Bruno Haible  <bruno@clisp.org>
29406
29407         Tests for module 'unistr/u32-strdup'.
29408         * modules/unistr/u32-strdup-tests: New file.
29409         * tests/unistr/test-u32-strdup.c: New file.
29410
29411         Tests for module 'unistr/u16-strdup'.
29412         * modules/unistr/u16-strdup-tests: New file.
29413         * tests/unistr/test-u16-strdup.c: New file.
29414
29415         Tests for module 'unistr/u8-strdup'.
29416         * modules/unistr/u8-strdup-tests: New file.
29417         * tests/unistr/test-u8-strdup.c: New file.
29418         * tests/unistr/test-strdup.h: New file.
29419
29420         Tests for module 'unistr/u32-strncmp'.
29421         * modules/unistr/u32-strncmp-tests: New file.
29422         * tests/unistr/test-u32-strncmp.c: New file.
29423
29424         Tests for module 'unistr/u16-strncmp'.
29425         * modules/unistr/u16-strncmp-tests: New file.
29426         * tests/unistr/test-u16-strncmp.c: New file.
29427
29428         Tests for module 'unistr/u8-strncmp'.
29429         * modules/unistr/u8-strncmp-tests: New file.
29430         * tests/unistr/test-u8-strncmp.c: New file.
29431         * tests/unistr/test-strncmp.h: New file.
29432
29433         Tests for module 'unistr/u32-strcoll'.
29434         * modules/unistr/u32-strcoll-tests: New file.
29435         * tests/unistr/test-u32-strcoll.c: New file.
29436
29437         Tests for module 'unistr/u16-strcoll'.
29438         * modules/unistr/u16-strcoll-tests: New file.
29439         * tests/unistr/test-u16-strcoll.c: New file.
29440
29441         Tests for module 'unistr/u8-strcoll'.
29442         * modules/unistr/u8-strcoll-tests: New file.
29443         * tests/unistr/test-u8-strcoll.c: New file.
29444
29445         Tests for module 'unistr/u32-strcmp'.
29446         * modules/unistr/u32-strcmp-tests: New file.
29447         * tests/unistr/test-u32-strcmp.c: New file.
29448         * tests/unistr/test-u32-strcmp.h: New file.
29449
29450         Tests for module 'unistr/u16-strcmp'.
29451         * modules/unistr/u16-strcmp-tests: New file.
29452         * tests/unistr/test-u16-strcmp.c: New file.
29453         * tests/unistr/test-u16-strcmp.h: New file.
29454
29455         Tests for module 'unistr/u8-strcmp'.
29456         * modules/unistr/u8-strcmp-tests: New file.
29457         * tests/unistr/test-u8-strcmp.c: New file.
29458         * tests/unistr/test-u8-strcmp.h: New file.
29459         * tests/unistr/test-strcmp.h: New file.
29460
29461         Tests for module 'unistr/u32-strncat'.
29462         * modules/unistr/u32-strncat-tests: New file.
29463         * tests/unistr/test-u32-strncat.c: New file.
29464
29465         Tests for module 'unistr/u16-strncat'.
29466         * modules/unistr/u16-strncat-tests: New file.
29467         * tests/unistr/test-u16-strncat.c: New file.
29468
29469         Tests for module 'unistr/u8-strncat'.
29470         * modules/unistr/u8-strncat-tests: New file.
29471         * tests/unistr/test-u8-strncat.c: New file.
29472         * tests/unistr/test-strncat.h: New file.
29473
29474         Tests for module 'unistr/u32-strcat'.
29475         * modules/unistr/u32-strcat-tests: New file.
29476         * tests/unistr/test-u32-strcat.c: New file.
29477
29478         Tests for module 'unistr/u16-strcat'.
29479         * modules/unistr/u16-strcat-tests: New file.
29480         * tests/unistr/test-u16-strcat.c: New file.
29481
29482         Tests for module 'unistr/u8-strcat'.
29483         * modules/unistr/u8-strcat-tests: New file.
29484         * tests/unistr/test-u8-strcat.c: New file.
29485         * tests/unistr/test-strcat.h: New file.
29486
29487         Tests for module 'unistr/u32-stpncpy'.
29488         * modules/unistr/u32-stpncpy-tests: New file.
29489         * tests/unistr/test-u32-stpncpy.c: New file.
29490
29491         Tests for module 'unistr/u16-stpncpy'.
29492         * modules/unistr/u16-stpncpy-tests: New file.
29493         * tests/unistr/test-u16-stpncpy.c: New file.
29494
29495         Tests for module 'unistr/u8-stpncpy'.
29496         * modules/unistr/u8-stpncpy-tests: New file.
29497         * tests/unistr/test-u8-stpncpy.c: New file.
29498         * tests/unistr/test-stpncpy.h: New file.
29499
29500         Tests for module 'unistr/u32-strncpy'.
29501         * modules/unistr/u32-strncpy-tests: New file.
29502         * tests/unistr/test-u32-strncpy.c: New file.
29503
29504         Tests for module 'unistr/u16-strncpy'.
29505         * modules/unistr/u16-strncpy-tests: New file.
29506         * tests/unistr/test-u16-strncpy.c: New file.
29507
29508         Tests for module 'unistr/u8-strncpy'.
29509         * modules/unistr/u8-strncpy-tests: New file.
29510         * tests/unistr/test-u8-strncpy.c: New file.
29511         * tests/unistr/test-strncpy.h: New file.
29512
29513         Tests for module 'unistr/u32-stpcpy'.
29514         * modules/unistr/u32-stpcpy-tests: New file.
29515         * tests/unistr/test-u32-stpcpy.c: New file.
29516
29517         Tests for module 'unistr/u16-stpcpy'.
29518         * modules/unistr/u16-stpcpy-tests: New file.
29519         * tests/unistr/test-u16-stpcpy.c: New file.
29520
29521         Tests for module 'unistr/u8-stpcpy'.
29522         * modules/unistr/u8-stpcpy-tests: New file.
29523         * tests/unistr/test-u8-stpcpy.c: New file.
29524         * tests/unistr/test-stpcpy.h: New file.
29525
29526         Tests for module 'unistr/u32-strcpy'.
29527         * modules/unistr/u32-strcpy-tests: New file.
29528         * tests/unistr/test-u32-strcpy.c: New file.
29529
29530         Tests for module 'unistr/u16-strcpy'.
29531         * modules/unistr/u16-strcpy-tests: New file.
29532         * tests/unistr/test-u16-strcpy.c: New file.
29533
29534         Tests for module 'unistr/u8-strcpy'.
29535         * modules/unistr/u8-strcpy-tests: New file.
29536         * tests/unistr/test-u8-strcpy.c: New file.
29537         * tests/unistr/test-strcpy.h: New file.
29538
29539         Tests for module 'unistr/u32-strnlen'.
29540         * modules/unistr/u32-strnlen-tests: New file.
29541         * tests/unistr/test-u32-strnlen.c: New file.
29542
29543         Tests for module 'unistr/u16-strnlen'.
29544         * modules/unistr/u16-strnlen-tests: New file.
29545         * tests/unistr/test-u16-strnlen.c: New file.
29546
29547         Tests for module 'unistr/u8-strnlen'.
29548         * modules/unistr/u8-strnlen-tests: New file.
29549         * tests/unistr/test-u8-strnlen.c: New file.
29550         * tests/unistr/test-strnlen.h: New file.
29551
29552         Tests for module 'unistr/u32-strlen'.
29553         * modules/unistr/u32-strlen-tests: New file.
29554         * tests/unistr/test-u32-strlen.c: New file.
29555
29556         Tests for module 'unistr/u16-strlen'.
29557         * modules/unistr/u16-strlen-tests: New file.
29558         * tests/unistr/test-u16-strlen.c: New file.
29559
29560         Tests for module 'unistr/u8-strlen'.
29561         * modules/unistr/u8-strlen-tests: New file.
29562         * tests/unistr/test-u8-strlen.c: New file.
29563
29564         Tests for module 'unistr/u32-prev'.
29565         * modules/unistr/u32-prev-tests: New file.
29566         * tests/unistr/test-u32-prev.c: New file.
29567
29568         Tests for module 'unistr/u16-prev'.
29569         * modules/unistr/u16-prev-tests: New file.
29570         * tests/unistr/test-u16-prev.c: New file.
29571
29572         Tests for module 'unistr/u8-prev'.
29573         * modules/unistr/u8-prev-tests: New file.
29574         * tests/unistr/test-u8-prev.c: New file.
29575
29576         Tests for module 'unistr/u32-next'.
29577         * modules/unistr/u32-next-tests: New file.
29578         * tests/unistr/test-u32-next.c: New file.
29579
29580         Tests for module 'unistr/u16-next'.
29581         * modules/unistr/u16-next-tests: New file.
29582         * tests/unistr/test-u16-next.c: New file.
29583
29584         Tests for module 'unistr/u8-next'.
29585         * modules/unistr/u8-next-tests: New file.
29586         * tests/unistr/test-u8-next.c: New file.
29587
29588         Tests for module 'unistr/u32-strmbtouc'.
29589         * modules/unistr/u32-strmbtouc-tests: New file.
29590         * tests/unistr/test-u32-strmbtouc.c: New file.
29591
29592         Tests for module 'unistr/u16-strmbtouc'.
29593         * modules/unistr/u16-strmbtouc-tests: New file.
29594         * tests/unistr/test-u16-strmbtouc.c: New file.
29595
29596         Tests for module 'unistr/u8-strmbtouc'.
29597         * modules/unistr/u8-strmbtouc-tests: New file.
29598         * tests/unistr/test-u8-strmbtouc.c: New file.
29599
29600         Tests for module 'unistr/u32-strmblen'.
29601         * modules/unistr/u32-strmblen-tests: New file.
29602         * tests/unistr/test-u32-strmblen.c: New file.
29603
29604         Tests for module 'unistr/u16-strmblen'.
29605         * modules/unistr/u16-strmblen-tests: New file.
29606         * tests/unistr/test-u16-strmblen.c: New file.
29607
29608         Tests for module 'unistr/u8-strmblen'.
29609         * modules/unistr/u8-strmblen-tests: New file.
29610         * tests/unistr/test-u8-strmblen.c: New file.
29611
29612         Tests for module 'unistr/u32-cpy-alloc'.
29613         * modules/unistr/u32-cpy-alloc-tests: New file.
29614         * tests/unistr/test-u32-cpy-alloc.c: New file.
29615
29616         Tests for module 'unistr/u16-cpy-alloc'.
29617         * modules/unistr/u16-cpy-alloc-tests: New file.
29618         * tests/unistr/test-u16-cpy-alloc.c: New file.
29619
29620         Tests for module 'unistr/u8-cpy-alloc'.
29621         * modules/unistr/u8-cpy-alloc-tests: New file.
29622         * tests/unistr/test-u8-cpy-alloc.c: New file.
29623         * tests/unistr/test-cpy-alloc.h: New file.
29624
29625         Tests for module 'unistr/u32-mbsnlen'.
29626         * modules/unistr/u32-mbsnlen-tests: New file.
29627         * tests/unistr/test-u32-mbsnlen.c: New file.
29628
29629         Tests for module 'unistr/u16-mbsnlen'.
29630         * modules/unistr/u16-mbsnlen-tests: New file.
29631         * tests/unistr/test-u16-mbsnlen.c: New file.
29632
29633         Tests for module 'unistr/u8-mbsnlen'.
29634         * modules/unistr/u8-mbsnlen-tests: New file.
29635         * tests/unistr/test-u8-mbsnlen.c: New file.
29636
29637         Tests for module 'unistr/u32-chr'.
29638         * modules/unistr/u32-chr-tests: New file.
29639         * tests/unistr/test-u32-chr.c: New file.
29640
29641         Tests for module 'unistr/u16-chr'.
29642         * modules/unistr/u16-chr-tests: New file.
29643         * tests/unistr/test-u16-chr.c: New file.
29644
29645         Tests for module 'unistr/u8-chr'.
29646         * modules/unistr/u8-chr-tests: New file.
29647         * tests/unistr/test-u8-chr.c: New file.
29648         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29649
29650         Tests for module 'unistr/u32-cmp2'.
29651         * modules/unistr/u32-cmp2-tests: New file.
29652         * tests/unistr/test-u32-cmp2.c: New file.
29653
29654         Tests for module 'unistr/u16-cmp2'.
29655         * modules/unistr/u16-cmp2-tests: New file.
29656         * tests/unistr/test-u16-cmp2.c: New file.
29657
29658         Tests for module 'unistr/u8-cmp2'.
29659         * modules/unistr/u8-cmp2-tests: New file.
29660         * tests/unistr/test-u8-cmp2.c: New file.
29661         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29662
29663         Tests for module 'unistr/u32-cmp'.
29664         * modules/unistr/u32-cmp-tests: New file.
29665         * tests/unistr/test-u32-cmp.c: New file.
29666
29667         Tests for module 'unistr/u16-cmp'.
29668         * modules/unistr/u16-cmp-tests: New file.
29669         * tests/unistr/test-u16-cmp.c: New file.
29670
29671         Tests for module 'unistr/u8-cmp'.
29672         * modules/unistr/u8-cmp-tests: New file.
29673         * tests/unistr/test-u8-cmp.c: New file.
29674         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29675
29676         Tests for module 'unistr/u32-set'.
29677         * modules/unistr/u32-set-tests: New file.
29678         * tests/unistr/test-u32-set.c: New file.
29679
29680         Tests for module 'unistr/u16-set'.
29681         * modules/unistr/u16-set-tests: New file.
29682         * tests/unistr/test-u16-set.c: New file.
29683
29684         Tests for module 'unistr/u8-set'.
29685         * modules/unistr/u8-set-tests: New file.
29686         * tests/unistr/test-u8-set.c: New file.
29687         * tests/unistr/test-set.h: New file.
29688
29689         Tests for module 'unistr/u32-move'.
29690         * modules/unistr/u32-move-tests: New file.
29691         * tests/unistr/test-u32-move.c: New file.
29692
29693         Tests for module 'unistr/u16-move'.
29694         * modules/unistr/u16-move-tests: New file.
29695         * tests/unistr/test-u16-move.c: New file.
29696
29697         Tests for module 'unistr/u8-move'.
29698         * modules/unistr/u8-move-tests: New file.
29699         * tests/unistr/test-u8-move.c: New file.
29700         * tests/unistr/test-move.h: New file.
29701
29702         Tests for module 'unistr/u32-cpy'.
29703         * modules/unistr/u32-cpy-tests: New file.
29704         * tests/unistr/test-u32-cpy.c: New file.
29705
29706         Tests for module 'unistr/u16-cpy'.
29707         * modules/unistr/u16-cpy-tests: New file.
29708         * tests/unistr/test-u16-cpy.c: New file.
29709
29710         Tests for module 'unistr/u8-cpy'.
29711         * modules/unistr/u8-cpy-tests: New file.
29712         * tests/unistr/test-u8-cpy.c: New file.
29713         * tests/unistr/test-cpy.h: New file.
29714
29715 2010-01-09  Bruno Haible  <bruno@clisp.org>
29716
29717         Tests for module 'unistr/u32-uctomb'.
29718         * modules/unistr/u32-uctomb-tests: New file.
29719         * tests/unistr/test-u32-uctomb.c: New file.
29720
29721         Tests for module 'unistr/u16-uctomb'.
29722         * modules/unistr/u16-uctomb-tests: New file.
29723         * tests/unistr/test-u16-uctomb.c: New file.
29724
29725         Tests for module 'unistr/u8-uctomb'.
29726         * modules/unistr/u8-uctomb-tests: New file.
29727         * tests/unistr/test-u8-uctomb.c: New file.
29728
29729         Tests for module 'unistr/u32-mbtoucr'.
29730         * modules/unistr/u32-mbtoucr-tests: New file.
29731         * tests/unistr/test-u32-mbtoucr.c: New file.
29732
29733         Tests for module 'unistr/u16-mbtoucr'.
29734         * modules/unistr/u16-mbtoucr-tests: New file.
29735         * tests/unistr/test-u16-mbtoucr.c: New file.
29736
29737         Tests for module 'unistr/u8-mbtoucr'.
29738         * modules/unistr/u8-mbtoucr-tests: New file.
29739         * tests/unistr/test-u8-mbtoucr.c: New file.
29740
29741         Tests for module 'unistr/u32-mbtouc'.
29742         * modules/unistr/u32-mbtouc-tests: New file.
29743         * tests/unistr/test-u32-mbtouc.c: New file.
29744
29745         Tests for module 'unistr/u16-mbtouc'.
29746         * modules/unistr/u16-mbtouc-tests: New file.
29747         * tests/unistr/test-u16-mbtouc.c: New file.
29748
29749         Tests for module 'unistr/u8-mbtouc'.
29750         * modules/unistr/u8-mbtouc-tests: New file.
29751         * tests/unistr/test-u8-mbtouc.c: New file.
29752
29753         Tests for module 'unistr/u32-mbtouc-unsafe'.
29754         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29755         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29756         * tests/unistr/test-u32-mbtouc.h: New file.
29757
29758         Tests for module 'unistr/u16-mbtouc-unsafe'.
29759         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29760         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29761         * tests/unistr/test-u16-mbtouc.h: New file.
29762
29763         Tests for module 'unistr/u8-mbtouc-unsafe'.
29764         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29765         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29766         * tests/unistr/test-u8-mbtouc.h: New file.
29767
29768         Tests for module 'unistr/u32-mblen'.
29769         * modules/unistr/u32-mblen-tests: New file.
29770         * tests/unistr/test-u32-mblen.c: New file.
29771
29772         Tests for module 'unistr/u16-mblen'.
29773         * modules/unistr/u16-mblen-tests: New file.
29774         * tests/unistr/test-u16-mblen.c: New file.
29775
29776         Tests for module 'unistr/u8-mblen'.
29777         * modules/unistr/u8-mblen-tests: New file.
29778         * tests/unistr/test-u8-mblen.c: New file.
29779
29780         Tests for module 'unistr/u32-to-u16'.
29781         * modules/unistr/u32-to-u16-tests: New file.
29782         * tests/unistr/test-u32-to-u16.c: New file.
29783
29784         Tests for module 'unistr/u32-to-u8'.
29785         * modules/unistr/u32-to-u8-tests: New file.
29786         * tests/unistr/test-u32-to-u8.c: New file.
29787
29788         Tests for module 'unistr/u16-to-u32'.
29789         * modules/unistr/u16-to-u32-tests: New file.
29790         * tests/unistr/test-u16-to-u32.c: New file.
29791
29792         Tests for module 'unistr/u16-to-u8'.
29793         * modules/unistr/u16-to-u8-tests: New file.
29794         * tests/unistr/test-u16-to-u8.c: New file.
29795
29796         Tests for module 'unistr/u8-to-u32'.
29797         * modules/unistr/u8-to-u32-tests: New file.
29798         * tests/unistr/test-u8-to-u32.c: New file.
29799
29800         Tests for module 'unistr/u8-to-u16'.
29801         * modules/unistr/u8-to-u16-tests: New file.
29802         * tests/unistr/test-u8-to-u16.c: New file.
29803
29804         Tests for module 'unistr/u32-check'.
29805         * modules/unistr/u32-check-tests: New file.
29806         * tests/unistr/test-u32-check.c: New file.
29807
29808         Tests for module 'unistr/u16-check'.
29809         * modules/unistr/u16-check-tests: New file.
29810         * tests/unistr/test-u16-check.c: New file.
29811
29812         Tests for module 'unistr/u8-check'.
29813         * modules/unistr/u8-check-tests: New file.
29814         * tests/unistr/test-u8-check.c: New file.
29815
29816         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29817         (category_equals): New function.
29818         (main): Add more tests.
29819         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29820
29821         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29822
29823 2010-01-10  Bruno Haible  <bruno@clisp.org>
29824
29825         unistr/u*-strcoll: Try harder to distinguish different strings.
29826         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29827         compare s1 and s2 to see if they are different.
29828
29829 2010-01-10  Bruno Haible  <bruno@clisp.org>
29830
29831         unistr/u*-stpncpy: Fix the return value.
29832         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29833         description of the return value consistent with stpncpy in glibc.
29834         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29835         written non-NUL unit.
29836
29837 2010-01-10  Bruno Haible  <bruno@clisp.org>
29838
29839         unistr/u*-next: Add missing dependencies.
29840         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29841         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29842         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29843
29844 2010-01-10  Bruno Haible  <bruno@clisp.org>
29845
29846         unistr/u8-mbsnlen: Fix return value for incomplete character.
29847         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29848         u8_mblen.
29849         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29850         Remove unistr/u8-mblen.
29851         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29852         u16_mblen.
29853         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29854         Remove unistr/u16-mblen.
29855
29856 2010-01-10  Bruno Haible  <bruno@clisp.org>
29857
29858         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29859         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29860         Reported by Brian Gough <bjg@gnu.org> and
29861         Chris Clayton <chris2553@googlemail.com> via
29862         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29863
29864 2010-01-09  Bruno Haible  <bruno@clisp.org>
29865
29866         unistr/u16-to-u32: Reject invalid input.
29867         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29868         u16_mbtouc.
29869         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29870         Remove unistr/u16-mbtouc.
29871
29872         unistr/u16-to-u8: Reject invalid input.
29873         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29874         u16_mbtouc.
29875         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29876         Remove unistr/u16-mbtouc.
29877
29878         unistr/u8-to-u32: Reject invalid input.
29879         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29880         u8_mbtouc.
29881         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29882         Remove unistr/u8-mbtouc.
29883
29884         unistr/u8-to-u16: Reject invalid input.
29885         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29886         u8_mbtouc.
29887         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29888         Remove unistr/u8-mbtouc.
29889
29890 2010-01-09  Bruno Haible  <bruno@clisp.org>
29891
29892         Tests for module 'getlogin'.
29893         * modules/getlogin-tests: New file.
29894         * tests/test-getlogin.c: New file.
29895
29896         New module 'getlogin'.
29897         * lib/unistd.in.h (getlogin): New declaration.
29898         * lib/getlogin.c: New file.
29899         * m4/getlogin.m4: New file.
29900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29901         HAVE_GETLOGIN.
29902         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29903         HAVE_GETLOGIN.
29904         * modules/getlogin: New file.
29905         * doc/posix-functions/getlogin.texi: Mention the new module.
29906         Reported by John W. Eaton <jwe@gnu.org>.
29907
29908 2010-01-09  Bruno Haible  <bruno@clisp.org>
29909
29910         getlogin_r: Support for native Windows.
29911         * lib/getlogin_r.c: Include <windows.h>
29912         (getlogin_r): Implement for native Windows.
29913         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29914         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29915         via John W. Eaton <jwe@gnu.org>.
29916
29917 2010-01-09  Bruno Haible  <bruno@clisp.org>
29918
29919         getlogin_r: Small fixes.
29920         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29921         succeeds.
29922         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29923         before testing whether getlogin_r is declared. No need to set
29924         HAVE_DECL_GETLOGIN_R to 1.
29925         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29926
29927 2010-01-09  Bruno Haible  <bruno@clisp.org>
29928
29929         * lib/unistd.in.h (getlogin_r): Add comment.
29930
29931 2010-01-09  Bruno Haible  <bruno@clisp.org>
29932
29933         Tests for module 'getlogin_r'.
29934         * modules/getlogin_r-tests: New file.
29935         * tests/test-getlogin_r.c: New file.
29936
29937 2010-01-09  Jim Meyering  <meyering@redhat.com>
29938
29939         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29940         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29941         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29942
29943 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29944
29945         * lib/dup2.c (rpl_dup2): Improve comment.
29946
29947 2010-01-08  Eric Blake  <ebb9@byu.net>
29948
29949         maint.mk: allow packages to add makefile @@ exceptions
29950         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29951         (sc_makefile_check): Rename...
29952         (sc_makefile_at_at_check): ...to this, and use hook.
29953
29954         dup2: work around mingw bug
29955         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29956         Reported by Simon Josefsson.
29957
29958 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29959
29960         glob: Fix C++ compilation.
29961         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29962         C++.
29963
29964 2010-01-07  Bruno Haible  <bruno@clisp.org>
29965
29966         Fix indentation of wctype.in.h, broken since 2007-01-06.
29967         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29968
29969 2010-01-07  Bruno Haible  <bruno@clisp.org>
29970
29971         mbslen: Avoid collision with system function.
29972         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29973         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29974         * m4/mbslen.m4: New file.
29975         * modules/mbslen (Files): Add it.
29976         (configure.ac): Invoke gl_MBSLEN.
29977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29978         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29979         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29980         via Ian Beckwith <ianb@erislabs.net>.
29981
29982 2010-01-07  Bruno Haible  <bruno@clisp.org>
29983
29984         dirent: Document the last fix.
29985         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29986
29987 2010-01-07  Bruno Haible  <bruno@clisp.org>
29988
29989         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29990         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29991         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29992         va_list are defined.
29993         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29994         Reported by Eric Blake.
29995
29996 2010-01-07  Bruno Haible  <bruno@clisp.org>
29997
29998         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29999         * modules/xlist (Depends-on): Add 'list',
30000         * modules/xoset (Depends-on): Add 'oset'.
30001         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30002
30003 2010-01-07  Bruno Haible  <bruno@clisp.org>
30004
30005         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30006         * doc/posix-functions/strncasecmp.texi: Likewise.
30007
30008 2010-01-07  Bruno Haible  <bruno@clisp.org>
30009
30010         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30011
30012 2010-01-07  John W. Eaton  <jwe@octave.org>
30013
30014         wctype: allow C++ use
30015         * lib/wctype.in.h: Add extern "C" block for C++.
30016
30017 2010-01-06  Eric Blake  <ebb9@byu.net>
30018
30019         maint.mk: detect incorrect GFDL usage
30020         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30021
30022 2010-01-06  Jim Meyering  <meyering@redhat.com>
30023         and Eric Blake  <ebb9@byu.net>
30024
30025         maint.mk: ignore multi-line copyright in NEWS
30026         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30027
30028 2010-01-06  Eric Blake  <ebb9@byu.net>
30029
30030         select: add missing dependency
30031         * modules/select-tests (Depends-on): Move sockets dependency...
30032         * modules/select (Depends-on): ...here.
30033         Reported by Ian Beckwith.
30034
30035         doc: regenerate INSTALL
30036         * doc/INSTALL: Reflect recent autoconf update.
30037         * doc/INSTALL.ISO: Likewise.
30038         * doc/INSTALL.UTF-8: Likewise.
30039
30040         pread: fix compilation on glibc
30041         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30042         Reported by Ralf Wildenhues.
30043
30044         dirent: fix test failure
30045         * lib/dirent.in.h (includes): Guarantee ino_t.
30046         Reported by Ralf Wildenhues.
30047
30048 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30049
30050         linkat, renameat: avoid bad free
30051         * lib/at-func2.c (at_func2): Fix typo.
30052         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30053
30054 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30055
30056         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30057         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30058         to avoid failure of symlink test later.
30059
30060 2010-01-06  Eric Blake  <ebb9@byu.net>
30061
30062         stdio, unistd: guarantee ssize_t
30063         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30064         2008 are exposed when needed.
30065         * lib/stdio.in.h (includes): Likewise.
30066         Reported by Ralf Wildenhues.
30067
30068 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30069
30070         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30071         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30072         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30073
30074 2010-01-06  Jim Meyering  <meyering@redhat.com>
30075
30076         readtokens: this module *does* require xalloc.h
30077         It uses only functions that were omitted by the old syntax-check rule.
30078         * lib/readtokens.c: Include "xalloc.h" once again.
30079         * modules/readtokens (Depends-on): Add xalloc.
30080         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30081
30082 2010-01-05  Eric Blake  <ebb9@byu.net>
30083
30084         maint: support 'make announcement' from a VPATH build
30085         * top/maint.mk (announcement): Look for correct NEWS file.
30086
30087 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30088
30089         utimens (fdutimens): ignore a negative FD, per contract
30090         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30091         when we have a valid file descriptor.  Otherwise, using a brand
30092         new glibc (with just-patched futimens that now fails with EBADF)
30093         would cause this function to fail with ENOSYS.
30094         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30095         See also http://bugzilla.redhat.com/552320.
30096
30097 2010-01-05  Eric Blake  <ebb9@byu.net>
30098
30099         strcase: document what it provides
30100         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30101         gnulib module.
30102         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30103         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30104
30105 2010-01-05  Jim Meyering  <meyering@redhat.com>
30106
30107         maint: remove useless inclusions of "xalloc.h"
30108         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30109         * lib/readtokens.c: Likewise.
30110         * lib/same.c: Likewise.
30111         * modules/getloadavg (Depends-on): Remove xalloc.
30112         * modules/readtokens: Likewise.
30113         * modules/same: Likewise.
30114
30115         maint.mk: include 4 more function names in alloca.h-checking regexp
30116         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30117         regexp.  Before, we would give a false-positive (saying alloca.h
30118         is included unnecessarily) when the only uses involved omitted symbols.
30119
30120         xalloc.h: use consistent formatting
30121         * lib/xalloc.h: Move declarations to start in the first column.
30122
30123 2010-01-05  Eric Blake  <ebb9@byu.net>
30124
30125         mkdir: avoid xalloc
30126         * lib/mkdir.c (includes): Drop unused header.
30127         Reported by John W. Eaton.
30128
30129 2010-01-04  Jim Meyering  <meyering@redhat.com>
30130
30131         nl_langinfo: avoid configure-time syntax error
30132         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30133         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30134         the empty string.  Don't let that provoke a shell syntax error.
30135
30136         regcomp, regexec, fnmatch: avoid array bounds read error
30137         * lib/regcomp.c (build_equiv_class): From glibc:
30138         Use only the low 24 bits of a findidx return value as an index
30139         into the weights array.  Patch by Ulrich Drepper:
30140         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30141         * lib/regexec.c (check_node_accept_bytes): Likewise.
30142         * lib/fnmatch_loop.c (FCT): Likewise.
30143
30144         regcomp: skip collseq lookup when there are no rules
30145         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30146         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30147
30148         regcomp: recognize ill-formed { } expressions
30149         * lib/regcomp.c (parse_dup_op): From glibc:
30150         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30151
30152         regcomp: fix typo in comment
30153         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30154         s/satisfy/satisfies/.
30155
30156         regcomp: sync from glibc: remove dead store
30157         * lib/regcomp.c (duplicate_node_closure): Remove useless
30158         search_duplicated_node call and dead store.
30159
30160         regcomp: sync from glibc; always use nl_langinfo
30161         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30162         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30163         * modules/regex (Depends-on): Add nl_langinfo.
30164
30165 2010-01-04  Eric Blake  <ebb9@byu.net>
30166
30167         fdopendir: fix configure test
30168         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30169
30170 2010-01-01  Bruno Haible  <bruno@clisp.org>
30171
30172         wchar: Remove unused configure check.
30173         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30174
30175 2010-01-01  Eric Blake  <ebb9@byu.net>
30176
30177         headers: make check of system header explicit
30178         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30179         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30180         ourselves.
30181         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30182         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30183         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30184         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30185         internals.
30186         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30187         missing.
30188         Suggested by Bruno Haible.
30189
30190 2010-01-01  Jim Meyering  <meyering@redhat.com>
30191
30192         ChangeLog: tweak to eliminate unnecessary copyright line
30193         * ChangeLog: Remove a copyright line that was mistakenly updated
30194         by today's update-copyright run.  Reported by Eric Blake.
30195
30196         test-update-copyright: don't let envvar setting cause test failure
30197         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30198
30199 2010-01-01  Bruno Haible  <bruno@clisp.org>
30200
30201         localename: Avoid gcc warning.
30202         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30203         function if it is not used.
30204
30205 2010-01-01  Jim Meyering  <meyering@redhat.com>
30206
30207         update nearly all FSF copyright year lists to include 2010
30208         Use the same procedure as for 2009, outlined in
30209         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30210
30211         version-etc: set COPYRIGHT_YEAR to 2010
30212         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30213
30214 2009-12-31  Eric Blake  <ebb9@byu.net>
30215
30216         doc: correct availability of cygwin 1.5.x getopt
30217         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30218         variables.
30219         * doc/posix-functions/opterr.texi (opterr): Likewise.
30220         * doc/posix-functions/optind.texi (optind): Likewise.
30221         * doc/posix-functions/optopt.texi (optopt): Likewise.
30222         * doc/posix-functions/tzname.texi (tzname): Likewise.
30223
30224         openat: update maintainer
30225         * modules/openat (Maintainer): Add myself.
30226
30227         utimens: avoid shadowing warning
30228         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30229         buffers into one, to avoid shadowing, as well as avoiding a
30230         redundant stat.
30231         Reported by Jim Meyering.
30232
30233         test-dup2: avoid compiler warning
30234         * tests/test-dup2.c (is_inheritable): Only define if used.
30235
30236 2010-01-01  Bruno Haible  <bruno@clisp.org>
30237
30238         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30239         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30240         defined, use wctomb instead of wcrtomb.
30241
30242 2010-01-01  Bruno Haible  <bruno@clisp.org>
30243
30244         iconv: Reject native Solaris iconv.
30245         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30246         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30247
30248 2009-12-31  Bruno Haible  <bruno@clisp.org>
30249
30250         * tests/test-signal.c (main): Remove test of 'SIG'.
30251
30252 2009-12-31  Bruno Haible  <bruno@clisp.org>
30253
30254         spawn: Fix incomplete fix.
30255         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30256         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30257         warnings for GNULIB_POSIXCHECK again.
30258         Reported by Eric Blake.
30259
30260 2009-12-31  Bruno Haible  <bruno@clisp.org>
30261
30262         Avoid namespace pollution on glibc systems.
30263         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30264         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30265         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30266         glibc systems.
30267
30268 2009-12-31  Bruno Haible  <bruno@clisp.org>
30269
30270         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30271         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30272         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30273         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30274         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30275         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30276         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30277
30278 2009-12-31  Bruno Haible  <bruno@clisp.org>
30279
30280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30281         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30282         afterwards.
30283
30284 2009-12-31  Bruno Haible  <bruno@clisp.org>
30285
30286         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30287         SYS_UTSNAME_H.
30288
30289 2009-12-31  Bruno Haible  <bruno@clisp.org>
30290
30291         spawn: Fix misapplied patch.
30292         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30293         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30294         warnings for GNULIB_POSIXCHECK.
30295
30296 2009-12-31  Bruno Haible  <bruno@clisp.org>
30297
30298         times: Update after sys_times changed.
30299         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30300         * modules/times (Files): Add it.
30301         (configure.ac): Invoke gl_FUNC_TIMES.
30302
30303 2009-12-31  Bruno Haible  <bruno@clisp.org>
30304
30305         Use AC_C_INLINE where necessary.
30306         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30307         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30308         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30309         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30310         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30311         * m4/mbiter.m4 (gl_MBITER): Likewise.
30312         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30313         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30314         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30315         * modules/u64 (configure.ac): Likewise.
30316
30317 2009-12-31  Bruno Haible  <bruno@clisp.org>
30318
30319         Use AC_C_INLINE instead of module 'inline' where possible.
30320         * modules/inline (Description): Clarify purpose.
30321         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30322         * modules/count-one-bits (Depends-on): Remove inline.
30323         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30324         * modules/openat (Depends-on): Remove inline.
30325         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30326         instead of depending on module 'inline'.
30327         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30328         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30329         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30330         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30331         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30332         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30333         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30334         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30335         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30336         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30337         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30338         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30339         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30340         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30341         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30342         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30343         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30344         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30345         Likewise.
30346         * modules/unictype/property-ascii-hex-digit (Depends-on,
30347         configure.ac): Likewise.
30348         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30349         configure.ac): Likewise.
30350         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30351         configure.ac): Likewise.
30352         * modules/unictype/property-bidi-block-separator (Depends-on,
30353         configure.ac): Likewise.
30354         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30355         configure.ac): Likewise.
30356         * modules/unictype/property-bidi-common-separator (Depends-on,
30357         configure.ac): Likewise.
30358         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30359         Likewise.
30360         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30361         configure.ac): Likewise.
30362         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30363         configure.ac): Likewise.
30364         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30365         configure.ac): Likewise.
30366         * modules/unictype/property-bidi-european-digit (Depends-on,
30367         configure.ac): Likewise.
30368         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30369         configure.ac): Likewise.
30370         * modules/unictype/property-bidi-left-to-right (Depends-on,
30371         configure.ac): Likewise.
30372         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30373         configure.ac): Likewise.
30374         * modules/unictype/property-bidi-other-neutral (Depends-on,
30375         configure.ac): Likewise.
30376         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30377         Likewise.
30378         * modules/unictype/property-bidi-segment-separator (Depends-on,
30379         configure.ac): Likewise.
30380         * modules/unictype/property-bidi-whitespace (Depends-on,
30381         configure.ac): Likewise.
30382         * modules/unictype/property-combining (Depends-on, configure.ac):
30383         Likewise.
30384         * modules/unictype/property-composite (Depends-on, configure.ac):
30385         Likewise.
30386         * modules/unictype/property-currency-symbol (Depends-on,
30387         configure.ac): Likewise.
30388         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30389         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30390         Likewise.
30391         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30392         configure.ac): Likewise.
30393         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30394         Likewise.
30395         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30396         Likewise.
30397         * modules/unictype/property-extender (Depends-on, configure.ac):
30398         Likewise.
30399         * modules/unictype/property-format-control (Depends-on, configure.ac):
30400         Likewise.
30401         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30402         Likewise.
30403         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30404         Likewise.
30405         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30406         Likewise.
30407         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30408         Likewise.
30409         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30410         Likewise.
30411         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30412         Likewise.
30413         * modules/unictype/property-id-start (Depends-on, configure.ac):
30414         Likewise.
30415         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30416         Likewise.
30417         * modules/unictype/property-ids-binary-operator (Depends-on,
30418         configure.ac): Likewise.
30419         * modules/unictype/property-ids-trinary-operator (Depends-on,
30420         configure.ac): Likewise.
30421         * modules/unictype/property-ignorable-control (Depends-on,
30422         configure.ac): Likewise.
30423         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30424         Likewise.
30425         * modules/unictype/property-join-control (Depends-on, configure.ac):
30426         Likewise.
30427         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30428         Likewise.
30429         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30430         Likewise.
30431         * modules/unictype/property-logical-order-exception (Depends-on,
30432         configure.ac): Likewise.
30433         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30434         Likewise.
30435         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30436         * modules/unictype/property-non-break (Depends-on, configure.ac):
30437         Likewise.
30438         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30439         Likewise.
30440         * modules/unictype/property-numeric (Depends-on, configure.ac):
30441         Likewise.
30442         * modules/unictype/property-other-alphabetic (Depends-on,
30443         configure.ac): Likewise.
30444         * modules/unictype/property-other-default-ignorable-code-point
30445         (Depends-on, configure.ac): Likewise.
30446         * modules/unictype/property-other-grapheme-extend (Depends-on,
30447         configure.ac): Likewise.
30448         * modules/unictype/property-other-id-continue (Depends-on,
30449         configure.ac): Likewise.
30450         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30451         Likewise.
30452         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30453         Likewise.
30454         * modules/unictype/property-other-math (Depends-on, configure.ac):
30455         Likewise.
30456         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30457         Likewise.
30458         * modules/unictype/property-paired-punctuation (Depends-on,
30459         configure.ac): Likewise.
30460         * modules/unictype/property-paragraph-separator (Depends-on,
30461         configure.ac): Likewise.
30462         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30463         Likewise.
30464         * modules/unictype/property-pattern-white-space (Depends-on,
30465         configure.ac): Likewise.
30466         * modules/unictype/property-private-use (Depends-on, configure.ac):
30467         Likewise.
30468         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30469         Likewise.
30470         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30471         Likewise.
30472         * modules/unictype/property-radical (Depends-on, configure.ac):
30473         Likewise.
30474         * modules/unictype/property-sentence-terminal (Depends-on,
30475         configure.ac): Likewise.
30476         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30477         Likewise.
30478         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30479         * modules/unictype/property-terminal-punctuation (Depends-on,
30480         configure.ac): Likewise.
30481         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30482         Likewise.
30483         * modules/unictype/property-unassigned-code-value (Depends-on,
30484         configure.ac): Likewise.
30485         * modules/unictype/property-unified-ideograph (Depends-on,
30486         configure.ac): Likewise.
30487         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30488         Likewise.
30489         * modules/unictype/property-variation-selector (Depends-on,
30490         configure.ac): Likewise.
30491         * modules/unictype/property-white-space (Depends-on, configure.ac):
30492         Likewise.
30493         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30494         Likewise.
30495         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30496         Likewise.
30497         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30498         Likewise.
30499         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30500         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30501         Likewise.
30502
30503 2009-12-31  Bruno Haible  <bruno@clisp.org>
30504
30505         Remove unnecessary AC_C_INLINE invocation.
30506         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30507         since 2009-08-21.
30508
30509 2009-12-31  Jim Meyering  <meyering@redhat.com>
30510
30511         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30512         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30513         With this change, we can all remove the gpg_key_ID = ... definition
30514         from our respective cfg.mk files.
30515
30516         maint.mk: create announcement template in ~/, not in /tmp
30517         * top/maint.mk (emit_upload_commands): Adjust.
30518         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30519         Remove temporary file, .ci-msg.
30520
30521 2009-12-31  Eric Blake  <ebb9@byu.net>
30522
30523         link-warning: always build headers with link warnings
30524         * modules/arpa_inet (Makefile.am): Always build replacement
30525         header.
30526         * modules/ctype (Makefile.am): Likewise.
30527         * modules/dirent (Makefile.am): Likewise.
30528         * modules/inttypes (Makefile.am): Likewise.
30529         * modules/langinfo (Makefile.am): Likewise.
30530         * modules/locale (Makefile.am): Likewise.
30531         * modules/spawn (Makefile.am): Likewise.
30532         * modules/sys_file (Makefile.am): Likewise.
30533         * modules/sys_ioctl (Makefile.am): Likewise.
30534         * modules/sys_select (Makefile.am): Likewise.
30535         * modules/sys_socket (Makefile.am): Likewise.
30536         * modules/sys_times (Makefile.am): Likewise.
30537         * modules/sys_utsname (Makefile.am): Likewise.
30538         * modules/sys_wait (Makefile.am): Likewise.
30539         * modules/wchar (Makefile.am): Likewise.
30540         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30541         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30542         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30543         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30544         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30545         Likewise.
30546         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30547         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30548         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30549         Likewise.
30550         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30551         Likewise.
30552         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30553         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30554         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30556         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30558         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30559         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30560         (gl_WCHAR_H_DEFAULTS): Likewise.
30561
30562 2009-12-31  Eric Blake  <ebb9@byu.net>
30563
30564         signal, spawn: use link warnings
30565         * lib/signal.in.h (sigset_t): Make unconditional.
30566         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30567         (sigpending, sigprocmask, sigaction): Add link warnings.
30568         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30569         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30570         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30571         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30572         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30573         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30574         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30575         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30576         (posix_spawn_file_actions_destroy)
30577         (posix_spawn_file_actions_addopen)
30578         (posix_spawn_file_actions_addclose)
30579         (posix_spawn_file_actions_adddup2): Likewise.
30580         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30581         * tests/test-signal.c (main): Enhance test.
30582
30583         spawn: improve wrapper support
30584         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30585         (gl_SPAWN_H_DEFAULTS): New defaults.
30586         * modules/spawn (Makefile.am): Substitute them.
30587         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30588         Only declare if missing or broken.
30589
30590         sys_times, sys_utsname: use include_next
30591         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30592         header.
30593         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30594         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30595         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30596         * modules/sys_times (Depends-on): Add include_next.
30597         (Makefile.am): Substitute additional values.
30598         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30599         * lib/sys_times.in.h (includes): Include native header, if
30600         available.
30601         * lib/sys_utsname.in.h (includes): Likewise.
30602         * tests/test-sys_times.c (main): Enhance test.
30603
30604         fdutimensat: revert prior patch
30605         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30606         utimens.h.
30607         Reported by Bruno Haible.
30608
30609 2009-12-30  Eric Blake  <ebb9@byu.net>
30610
30611         sys_wait: drop link-warning dependency
30612         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30613         link-warning efforts.
30614         * lib/sys_wait.in.h: Likewise.
30615
30616         fdutimensat: remove bogus dependency
30617         * modules/fdutimensat (Depends-on): Drop inline.
30618
30619         unistd: fix typo
30620         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30621
30622 2009-12-30  Bruno Haible  <bruno@clisp.org>
30623
30624         Fix compilation error with Solaris cc.
30625         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30626         * lib/unicase/u16-is-invariant.c: Likewise.
30627         * lib/unicase/u32-is-invariant.c: Likewise.
30628         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30629
30630 2009-12-30  Bruno Haible  <bruno@clisp.org>
30631
30632         Fix test crash.
30633         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30634         locales.
30635         Reported by Simon Josefsson <simon@josefsson.org>.
30636
30637 2009-12-30  Bruno Haible  <bruno@clisp.org>
30638
30639         Fix compilation error on most platforms.
30640         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30641         Reported by Simon Josefsson <simon@josefsson.org>
30642         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30643
30644 2009-12-30  Eric Blake  <ebb9@byu.net>
30645
30646         futimens, utimensat: work around ntfs-3g bug
30647         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30648         a ctime bug is present, and expand workaround to cover ntfs-3g.
30649         * lib/utimens.c (fdutimens, lutimens): Likewise.
30650         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30651         (validate_timespec): Adjust return value.
30652         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30653         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30654         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30655
30656 2009-12-29  Eric Blake  <ebb9@byu.net>
30657
30658         link-warning: make usage consistent
30659         * modules/ctype (Depends-on): Add link-warning.
30660         (Makefile.am): Update rules accordingly.
30661         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30662         * modules/locale (Depends-on, Makefile.am): Likewise.
30663         * modules/sys_file (Makefile.am): Likewise.
30664         * modules/getopt-posix (Makefile.am): Delete unused link warning
30665         efforts.
30666         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30667         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30668         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30669         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30670
30671         stdio: remove unused variables
30672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30674         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30675
30676         tests: test more substitute headers
30677         * modules/ctype-tests: New file.
30678         * modules/dirent-tests: Likewise.
30679         * modules/spawn-tests: Likewise.
30680         * modules/sys_file-tests: Likewise.
30681         * modules/sys_ioctl-tests: Likewise.
30682         * modules/sys_wait-tests: Likewise.
30683         * tests/test-ctype.c: Likewise.
30684         * tests/test-dirent.c: Likewise.
30685         * tests/test-spawn.c: Likewise.
30686         * tests/test-sys_file.c: Likewise.
30687         * tests/test-sys_ioctl.c: Likewise.
30688         * tests/test-sys_wait.c: Likewise.
30689         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30690         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30691         whether or not flock is in use.
30692
30693         tests: remove License section from module
30694         * modules/arpa_inet-tests: Remove unneeded section.
30695         * modules/byteswap-tests: Likewise.
30696         * modules/ceilf-tests: Likewise.
30697         * modules/ceill-tests: Likewise.
30698         * modules/crypto/des-tests: Likewise.
30699         * modules/crypto/gc-arcfour-tests: Likewise.
30700         * modules/crypto/gc-arctwo-tests: Likewise.
30701         * modules/crypto/gc-des-tests: Likewise.
30702         * modules/crypto/gc-hmac-md5-tests: Likewise.
30703         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30704         * modules/crypto/gc-md2-tests: Likewise.
30705         * modules/crypto/gc-md4-tests: Likewise.
30706         * modules/crypto/gc-md5-tests: Likewise.
30707         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30708         * modules/crypto/gc-rijndael-tests: Likewise.
30709         * modules/crypto/gc-sha1-tests: Likewise.
30710         * modules/crypto/gc-tests: Likewise.
30711         * modules/crypto/md2-tests: Likewise.
30712         * modules/crypto/md4-tests: Likewise.
30713         * modules/fcntl-h-tests: Likewise.
30714         * modules/floorf-tests: Likewise.
30715         * modules/floorl-tests: Likewise.
30716         * modules/frexp-nolibm-tests: Likewise.
30717         * modules/frexp-tests: Likewise.
30718         * modules/frexpl-nolibm-tests: Likewise.
30719         * modules/frexpl-tests: Likewise.
30720         * modules/getaddrinfo-tests: Likewise.
30721         * modules/inttypes-tests: Likewise.
30722         * modules/isfinite-tests: Likewise.
30723         * modules/isinf-tests: Likewise.
30724         * modules/ldexpl-tests: Likewise.
30725         * modules/locale-tests: Likewise.
30726         * modules/math-tests: Likewise.
30727         * modules/netdb-tests: Likewise.
30728         * modules/netinet_in-tests: Likewise.
30729         * modules/printf-frexp-tests: Likewise.
30730         * modules/printf-frexpl-tests: Likewise.
30731         * modules/priv-set-tests: Likewise.
30732         * modules/random_r-tests: Likewise.
30733         * modules/round-tests: Likewise.
30734         * modules/roundf-tests: Likewise.
30735         * modules/roundl-tests: Likewise.
30736         * modules/search-tests: Likewise.
30737         * modules/select-tests: Likewise.
30738         * modules/signal-tests: Likewise.
30739         * modules/stdbool-tests: Likewise.
30740         * modules/stddef-tests: Likewise.
30741         * modules/stdint-tests: Likewise.
30742         * modules/stdio-tests: Likewise.
30743         * modules/stdlib-tests: Likewise.
30744         * modules/string-tests: Likewise.
30745         * modules/strings-tests: Likewise.
30746         * modules/sys_select-tests: Likewise.
30747         * modules/sys_socket-tests: Likewise.
30748         * modules/sys_stat-tests: Likewise.
30749         * modules/sys_time-tests: Likewise.
30750         * modules/sys_utsname-tests: Likewise.
30751         * modules/sysexits-tests: Likewise.
30752         * modules/time-tests: Likewise.
30753         * modules/trunc-tests: Likewise.
30754         * modules/truncf-tests: Likewise.
30755         * modules/truncl-tests: Likewise.
30756         * modules/tsearch-tests: Likewise.
30757         * modules/unistd-tests: Likewise.
30758         * modules/wchar-tests: Likewise.
30759         * modules/wctype-tests: Likewise.
30760
30761         tests: fix license on several tests
30762         * tests/test-des.c: Update to GPLv3+.
30763         * tests/test-flock.c: Likewise.
30764         * tests/test-fsync.c: Likewise.
30765         * tests/test-futimens.h: Likewise.
30766         * tests/test-gc-arcfour.c: Likewise.
30767         * tests/test-gc-arctwo.c: Likewise.
30768         * tests/test-gc-des.c: Likewise.
30769         * tests/test-gc-hmac-md5.c: Likewise.
30770         * tests/test-gc-hmac-sha1.c: Likewise.
30771         * tests/test-gc-md2.c: Likewise.
30772         * tests/test-gc-md4.c: Likewise.
30773         * tests/test-gc-md5.c: Likewise.
30774         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30775         * tests/test-gc-rijndael.c: Likewise.
30776         * tests/test-gc-sha1.c: Likewise.
30777         * tests/test-gc.c: Likewise.
30778         * tests/test-getcwd.c: Likewise.
30779         * tests/test-link.c: Likewise.
30780         * tests/test-link.h: Likewise.
30781         * tests/test-lutimens.h: Likewise.
30782         * tests/test-md2.c: Likewise.
30783         * tests/test-md4.c: Likewise.
30784         * tests/test-mkdir.h: Likewise.
30785         * tests/test-rename.c: Likewise.
30786         * tests/test-rename.h: Likewise.
30787         * tests/test-safe-alloc.c: Likewise.
30788         * tests/test-utimens-common.h: Likewise.
30789         * tests/test-utimens.h: Likewise.
30790
30791         maint: sync license texts
30792         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30793         * doc/gpl-3.0.texi: Revert copyright year update.
30794         * doc/lgpl-3.0.texi: Likewise.
30795
30796 2009-12-29  Jim Meyering  <meyering@redhat.com>
30797
30798         update nearly all FSF copyright year lists to include 2009
30799         The files named by the following are exempted:
30800             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30801               test -f "$dst" && { echo "$dst"; continue; }
30802               test -d "$dst" || continue
30803               echo "$dst"/$(basename "$src")
30804             done > exempt
30805             git ls-files tests/unictype >> exempt
30806         In the remaining files, convert to all-interval notation if
30807         - there is already at least one year interval like 2000-2003
30808         - the file is maintained by me
30809         - the file is in lib/uni*/, where that style already prevails
30810         Otherwise, use update-copyright's default.
30811
30812 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30813         and Eric Blake  <ebb9@byu.net>
30814
30815         tests: don't require debug system() to pass
30816         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30817         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30818         * tests/test-unlink.h (test_unlink_func): Likewise.
30819         * tests/test-fstatat.c (main): ...into callers.
30820         * tests/test-lstat.c (main): Likewise.
30821         * tests/test-rmdir.c (main): Likewise.
30822         * tests/test-unlink.c (main): Likewise.
30823         * tests/test-unlinkat.c (main): Likewise.
30824         * tests/test-areadlink-with-size.c (main): Don't require a
30825         debug-only system call to pass, aiding cross-testing to mingw.
30826         * tests/test-areadlink.c (main): Likewise.
30827         * tests/test-areadlinkat-with-size.c (main): Likewise.
30828         * tests/test-areadlinkat.c (main): Likewise.
30829         * tests/test-canonicalize-lgpl.c (main): Likewise.
30830         * tests/test-canonicalize.c (main): Likewise.
30831         * tests/test-chown.c (main): Likewise.
30832         * tests/test-fchownat.c (main): Likewise.
30833         * tests/test-lchown.c (main): Likewise.
30834         * tests/test-fdutimensat.c (main): Likewise.
30835         * tests/test-futimens.c (main): Likewise.
30836         * tests/test-link.c (main): Likewise.
30837         * tests/test-linkat.c (main): Likewise.
30838         * tests/test-mkdir.c (main): Likewise.
30839         * tests/test-mkdirat.c (main): Likewise.
30840         * tests/test-mkfifo.c (main): Likewise.
30841         * tests/test-mkfifoat.c (main): Likewise.
30842         * tests/test-mknod.c (main): Likewise.
30843         * tests/test-readlink.c (main): Likewise.
30844         * tests/test-remove.c (main): Likewise.
30845         * tests/test-rename.c (main): Likewise.
30846         * tests/test-renameat.c (main): Likewise.
30847         * tests/test-symlink.c (main): Likewise.
30848         * tests/test-symlinkat.c (main): Likewise.
30849         * tests/test-utimens.c (main): Likewise.
30850         * tests/test-utimensat.c (main): Likewise.
30851
30852 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30853
30854         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30855         on $(UNUSED_PARAMETER_H) to avoid build failure.
30856
30857 2009-12-28  Jim Meyering  <meyering@redhat.com>
30858
30859         update-copyright: you may specify a max. line length other than 72
30860         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30861
30862         maint: use consistent FSF copyright line syntax
30863         * lib/posixtm.c: Add missing comma in FSF copyright line.
30864         * lib/posixtm.h: Likewise.
30865         * lib/getugroups.c: Add missing ", Inc.".
30866
30867         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30868         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30869         FSF copyright line.  Remove trailing blanks.
30870
30871 2009-12-28  Eric Blake  <ebb9@byu.net>
30872
30873         test-dup2: reduce dependencies
30874         * modules/cloexec (Configure.ac): Set witness.
30875         * modules/dup2-tests (Depends-on): Drop cloexec.
30876         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30877         not present.
30878         Suggested by Bruno Haible.
30879
30880 2009-12-26  Bruno Haible  <bruno@clisp.org>
30881
30882         Remove an unneeded dependency.
30883         * modules/fseterr (Depends-on): Remove dup2.
30884
30885 2009-12-26  Eric Blake  <ebb9@byu.net>
30886
30887         tests: use macros.h in more places
30888         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30889         (ASSERT_STREAM): Provide default of stderr.
30890         * tests/test-dirent-safer.c: Include macros.h, using alternate
30891         stream for assertions.
30892         * tests/test-dup-safer.c: Likewise.
30893         * tests/test-freopen-safer.c: Likewise.
30894         * tests/test-getopt.c: Likewise.
30895         * tests/test-openat-safer.c: Likewise.
30896         * tests/test-pipe.c: Likewise.
30897         * tests/test-popen-safer.c: Likewise.
30898         * modules/dirent-safer-tests (Files): Include macros.h.
30899         * modules/unistd-safer-tests (Files): Likewise.
30900         * modules/freopen-safer-tests (Files): Likewise.
30901         * modules/getopt-posix-tests (Files): Likewise.
30902         * modules/openat-safer-tests (Files): Likewise.
30903         * modules/pipe-tests (Files): Likewise.
30904
30905 2009-12-26  Bruno Haible  <bruno@clisp.org>
30906
30907         javacomp: Portability fix.
30908         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30909         that it also works on Solaris.
30910
30911 2009-12-26  Bruno Haible  <bruno@clisp.org>
30912
30913         localename: Fix storage allocation of gl_locale_name_thread's result.
30914         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30915         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30916         all platforms that have 'uselocale'.
30917         (gl_locale_name_thread_unsafe): New function, extracted from
30918         gl_locale_name_thread.
30919         (gl_locale_name_thread): Call struniq on all platforms that have
30920         'uselocale'.
30921         * tests/test-localename.c (test_locale_name_thread): Check that the
30922         resulting strings are permanently allocated.
30923         * modules/localename-tests (Depends-on): Add strdup.
30924
30925 2009-12-26  Bruno Haible  <bruno@clisp.org>
30926
30927         * tests/test-localename.c (categories): Fill in the strings.
30928
30929 2009-12-26  Jim Meyering  <meyering@redhat.com>
30930
30931         isdir: complete the removal of m4/isdir.m4
30932         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30933
30934         isdir: clean up, since at least grep still uses it
30935         * lib/isdir.c: Include "isdir.h".
30936         (S_ISDIR): Remove now-unneeded definition.
30937         * modules/isdir (Files): Add lib/isdir.h.
30938         * lib/isdir.h: New file, with declaration.
30939         * m4/isdir.m4: Remove file -- unneeded.
30940
30941 2009-12-25  Bruno Haible  <bruno@clisp.org>
30942
30943         selinux-h: Make generated .h files standalone.
30944         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30945         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30946         * lib/se-selinux.in.h: Likewise.
30947         * modules/selinux-h (Depends-on): Add unused-parameter.
30948         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30949         selinux/selinux.h and selinux/context.h.
30950         Suggested by Eric Blake.
30951
30952 2009-12-25  Bruno Haible  <bruno@clisp.org>
30953
30954         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30955         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30956         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30957         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30958         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30959
30960 2009-12-24  Bruno Haible  <bruno@clisp.org>
30961
30962         openat: Fix warning.
30963         * lib/openat-proc.c: Include <unistd.h>.
30964
30965 2009-12-24  Bruno Haible  <bruno@clisp.org>
30966
30967         New module 'unused-parameter'.
30968         * build-aux/unused-parameter.h: New file, extracted from earlier
30969         gnulib-common.m4.
30970         * modules/unused-parameter: New file.
30971         * lib/unistr.h: Include unused-parameter.h.
30972         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30973         _GL_UNUSED.
30974         * modules/unistr/base (Depends-on): Add unused-parameter.
30975
30976 2009-12-24  Bruno Haible  <bruno@clisp.org>
30977
30978         Add missing dependencies to 'extensions' module.
30979         * m4/extensions.m4: Add comment.
30980         * modules/accept4 (Depends-on): Add extensions.
30981         * modules/dup3 (Depends-on): Likewise.
30982         * modules/fcntl (Depends-on): Likewise.
30983         * modules/futimens (Depends-on): Likewise.
30984         * modules/mknod (Depends-on): Likewise.
30985         * modules/pipe2 (Depends-on): Likewise.
30986         * modules/stat-time (Depends-on): Likewise.
30987         * modules/strcasestr-simple (Depends-on): Likewise.
30988         * modules/strsignal (Depends-on): Likewise.
30989         * modules/utimensat (Depends-on): Likewise.
30990         * modules/localcharset (Depends-on): Likewise. Needed because of
30991         gl_FCNTL_O_FLAGS.
30992         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30993         AC_TYPE_MBSTATE_T.
30994         * modules/wcsnrtombs (Depends-on): Likewise.
30995         * modules/wcsrtombs (Depends-on): Likewise.
30996
30997 2009-12-24  Bruno Haible  <bruno@clisp.org>
30998
30999         binary-io: Avoid gcc warning due to SET_BINARY.
31000         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31001         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31002
31003 2009-12-24  Bruno Haible  <bruno@clisp.org>
31004
31005         Avoid future namespace pollution on glibc systems.
31006         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31007         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31008         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31009         glibc systems.
31010
31011 2009-12-24  Bruno Haible  <bruno@clisp.org>
31012
31013         Refactor common macros used in tests.
31014         * tests/macros.h: New file.
31015         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31016         and/or <stdlib.h>, if appropriate.
31017         (ASSERT, SIZEOF): Remove macros.
31018         * tests/test-areadlink-with-size.c: Likewise.
31019         * tests/test-areadlinkat.c: Likewise.
31020         * tests/test-areadlinkat-with-size.c: Likewise.
31021         * tests/test-argmatch.c: Likewise.
31022         * tests/test-argv-iter.c: Likewise.
31023         * tests/test-array-mergesort.c: Likewise.
31024         * tests/test-array_list.c: Likewise.
31025         * tests/test-array_oset.c: Likewise.
31026         * tests/test-avltree_list.c: Likewise.
31027         * tests/test-avltree_oset.c: Likewise.
31028         * tests/test-avltreehash_list.c: Likewise.
31029         * tests/test-base64.c: Likewise.
31030         * tests/test-binary-io.c: Likewise.
31031         * tests/test-bitrotate.c: Likewise.
31032         * tests/test-btowc.c: Likewise.
31033         * tests/test-byteswap.c: Likewise.
31034         * tests/test-c-ctype.c: Likewise.
31035         * tests/test-c-stack.c: Likewise.
31036         * tests/test-c-strcasecmp.c: Likewise.
31037         * tests/test-c-strcasestr.c: Likewise.
31038         * tests/test-c-strncasecmp.c: Likewise.
31039         * tests/test-c-strstr.c: Likewise.
31040         * tests/test-canonicalize-lgpl.c: Likewise.
31041         * tests/test-canonicalize.c: Likewise.
31042         * tests/test-carray_list.c: Likewise.
31043         * tests/test-ceilf1.c: Likewise.
31044         * tests/test-ceilf2.c: Likewise.
31045         * tests/test-ceill.c: Likewise.
31046         * tests/test-chown.c: Likewise.
31047         * tests/test-cloexec.c: Likewise.
31048         * tests/test-copy-acl.c: Likewise.
31049         * tests/test-copy-file.c: Likewise.
31050         * tests/test-count-one-bits.c: Likewise.
31051         * tests/test-dprintf-posix.c: Likewise.
31052         * tests/test-dup2.c: Likewise.
31053         * tests/test-dup3.c: Likewise.
31054         * tests/test-duplocale.c: Likewise.
31055         * tests/test-fbufmode.c: Likewise.
31056         * tests/test-fchdir.c: Likewise.
31057         * tests/test-fchownat.c: Likewise.
31058         * tests/test-fcntl-safer.c: Likewise.
31059         * tests/test-fcntl.c: Likewise.
31060         * tests/test-fdopendir.c: Likewise.
31061         * tests/test-fdutimensat.c: Likewise.
31062         * tests/test-fflush2.c: Likewise.
31063         * tests/test-file-has-acl.c: Likewise.
31064         * tests/test-filevercmp.c: Likewise.
31065         * tests/test-flock.c: Likewise.
31066         * tests/test-floorf1.c: Likewise.
31067         * tests/test-floorf2.c: Likewise.
31068         * tests/test-floorl.c: Likewise.
31069         * tests/test-fnmatch.c: Likewise.
31070         * tests/test-fopen.h: Likewise.
31071         * tests/test-fpending.c: Likewise.
31072         * tests/test-fprintf-posix.c: Likewise.
31073         * tests/test-fpurge.c: Likewise.
31074         * tests/test-freadable.c: Likewise.
31075         * tests/test-freadahead.c: Likewise.
31076         * tests/test-freading.c: Likewise.
31077         * tests/test-freadptr.c: Likewise.
31078         * tests/test-freadptr2.c: Likewise.
31079         * tests/test-freadseek.c: Likewise.
31080         * tests/test-freopen.c: Likewise.
31081         * tests/test-frexp.c: Likewise.
31082         * tests/test-frexpl.c: Likewise.
31083         * tests/test-fseek.c: Likewise.
31084         * tests/test-fseeko.c: Likewise.
31085         * tests/test-fstatat.c: Likewise.
31086         * tests/test-fstrcmp.c: Likewise.
31087         * tests/test-fsync.c: Likewise.
31088         * tests/test-ftell.c: Likewise.
31089         * tests/test-ftello.c: Likewise.
31090         * tests/test-func.c: Likewise.
31091         * tests/test-futimens.c: Likewise.
31092         * tests/test-fwritable.c: Likewise.
31093         * tests/test-fwriting.c: Likewise.
31094         * tests/test-getcwd.c: Likewise.
31095         * tests/test-getdate.c: Likewise.
31096         * tests/test-getdelim.c: Likewise.
31097         * tests/test-getdtablesize.c: Likewise.
31098         * tests/test-getgroups.c: Likewise.
31099         * tests/test-getline.c: Likewise.
31100         * tests/test-getndelim2.c: Likewise.
31101         * tests/test-glob.c: Likewise.
31102         * tests/test-hash.c: Likewise.
31103         * tests/test-i-ring.c: Likewise.
31104         * tests/test-iconv-utf.c: Likewise.
31105         * tests/test-iconv.c: Likewise.
31106         * tests/test-idpriv-drop.c: Likewise.
31107         * tests/test-idpriv-droptemp.c: Likewise.
31108         * tests/test-inet_ntop.c: Likewise.
31109         * tests/test-inet_pton.c: Likewise.
31110         * tests/test-isblank.c: Likewise.
31111         * tests/test-isfinite.c: Likewise.
31112         * tests/test-isinf.c: Likewise.
31113         * tests/test-isnan.c: Likewise.
31114         * tests/test-isnand.h: Likewise.
31115         * tests/test-isnanf.h: Likewise.
31116         * tests/test-isnanl.h: Likewise.
31117         * tests/test-lchown.c: Likewise.
31118         * tests/test-ldexpl.c: Likewise.
31119         * tests/test-link.c: Likewise.
31120         * tests/test-linkat.c: Likewise.
31121         * tests/test-linked_list.c: Likewise.
31122         * tests/test-linkedhash_list.c: Likewise.
31123         * tests/test-localename.c: Likewise.
31124         * tests/test-lseek.c: Likewise.
31125         * tests/test-lstat.c: Likewise.
31126         * tests/test-mbmemcasecmp.c: Likewise.
31127         * tests/test-mbmemcasecoll.c: Likewise.
31128         * tests/test-mbrtowc.c: Likewise.
31129         * tests/test-mbscasecmp.c: Likewise.
31130         * tests/test-mbscasestr1.c: Likewise.
31131         * tests/test-mbscasestr2.c: Likewise.
31132         * tests/test-mbscasestr3.c: Likewise.
31133         * tests/test-mbscasestr4.c: Likewise.
31134         * tests/test-mbschr.c: Likewise.
31135         * tests/test-mbscspn.c: Likewise.
31136         * tests/test-mbsinit.c: Likewise.
31137         * tests/test-mbsncasecmp.c: Likewise.
31138         * tests/test-mbsnrtowcs.c: Likewise.
31139         * tests/test-mbspbrk.c: Likewise.
31140         * tests/test-mbspcasecmp.c: Likewise.
31141         * tests/test-mbsrchr.c: Likewise.
31142         * tests/test-mbsrtowcs.c: Likewise.
31143         * tests/test-mbsspn.c: Likewise.
31144         * tests/test-mbsstr1.c: Likewise.
31145         * tests/test-mbsstr2.c: Likewise.
31146         * tests/test-mbsstr3.c: Likewise.
31147         * tests/test-memchr.c: Likewise.
31148         * tests/test-memchr2.c: Likewise.
31149         * tests/test-memcmp.c: Likewise.
31150         * tests/test-memmem.c: Likewise.
31151         * tests/test-memrchr.c: Likewise.
31152         * tests/test-mkdir.c: Likewise.
31153         * tests/test-mkdirat.c: Likewise.
31154         * tests/test-mkfifo.c: Likewise.
31155         * tests/test-mkfifoat.c: Likewise.
31156         * tests/test-mknod.c: Likewise.
31157         * tests/test-nanosleep.c: Likewise.
31158         * tests/test-nl_langinfo.c: Likewise.
31159         * tests/test-obstack-printf.c: Likewise.
31160         * tests/test-open.c: Likewise.
31161         * tests/test-openat.c: Likewise.
31162         * tests/test-pipe-filter-gi1.c: Likewise.
31163         * tests/test-pipe-filter-gi2-main.c: Likewise.
31164         * tests/test-pipe-filter-ii1.c: Likewise.
31165         * tests/test-pipe-filter-ii2-main.c: Likewise.
31166         * tests/test-pipe2.c: Likewise.
31167         * tests/test-popen.h: Likewise.
31168         * tests/test-posixtm.c: Likewise.
31169         * tests/test-pread.c: Likewise.
31170         * tests/test-printf-frexp.c: Likewise.
31171         * tests/test-printf-frexpl.c: Likewise.
31172         * tests/test-printf-posix.c: Likewise.
31173         * tests/test-priv-set.c: Likewise.
31174         * tests/test-quotearg.c: Likewise.
31175         * tests/test-random_r.c: Likewise.
31176         * tests/test-rawmemchr.c: Likewise.
31177         * tests/test-rbtree_list.c: Likewise.
31178         * tests/test-rbtree_oset.c: Likewise.
31179         * tests/test-rbtreehash_list.c: Likewise.
31180         * tests/test-readlink.c: Likewise.
31181         * tests/test-remove.c: Likewise.
31182         * tests/test-rename.c: Likewise.
31183         * tests/test-renameat.c: Likewise.
31184         * tests/test-rmdir.c: Likewise.
31185         * tests/test-round1.c: Likewise.
31186         * tests/test-roundf1.c: Likewise.
31187         * tests/test-roundl.c: Likewise.
31188         * tests/test-safe-alloc.c: Likewise.
31189         * tests/test-sameacls.c: Likewise.
31190         * tests/test-set-mode-acl.c: Likewise.
31191         * tests/test-setenv.c: Likewise.
31192         * tests/test-sigaction.c: Likewise.
31193         * tests/test-signbit.c: Likewise.
31194         * tests/test-sleep.c: Likewise.
31195         * tests/test-snprintf-posix.c: Likewise.
31196         * tests/test-snprintf.c: Likewise.
31197         * tests/test-sprintf-posix.c: Likewise.
31198         * tests/test-stat-time.c: Likewise.
31199         * tests/test-stat.c: Likewise.
31200         * tests/test-strcasestr.c: Likewise.
31201         * tests/test-strchrnul.c: Likewise.
31202         * tests/test-strerror.c: Likewise.
31203         * tests/test-striconv.c: Likewise.
31204         * tests/test-striconveh.c: Likewise.
31205         * tests/test-striconveha.c: Likewise.
31206         * tests/test-strsignal.c: Likewise.
31207         * tests/test-strstr.c: Likewise.
31208         * tests/test-strtod.c: Likewise.
31209         * tests/test-strverscmp.c: Likewise.
31210         * tests/test-symlink.c: Likewise.
31211         * tests/test-symlinkat.c: Likewise.
31212         * tests/test-trunc1.c: Likewise.
31213         * tests/test-trunc2.c: Likewise.
31214         * tests/test-truncf1.c: Likewise.
31215         * tests/test-truncf2.c: Likewise.
31216         * tests/test-truncl.c: Likewise.
31217         * tests/test-uname.c: Likewise.
31218         * tests/test-unlink.c: Likewise.
31219         * tests/test-unlinkat.c: Likewise.
31220         * tests/test-unsetenv.c: Likewise.
31221         * tests/test-usleep.c: Likewise.
31222         * tests/test-utimens.c: Likewise.
31223         * tests/test-utimensat.c: Likewise.
31224         * tests/test-vasnprintf-posix.c: Likewise.
31225         * tests/test-vasnprintf-posix2.c: Likewise.
31226         * tests/test-vasnprintf.c: Likewise.
31227         * tests/test-vasprintf-posix.c: Likewise.
31228         * tests/test-vasprintf.c: Likewise.
31229         * tests/test-vdprintf-posix.c: Likewise.
31230         * tests/test-vfprintf-posix.c: Likewise.
31231         * tests/test-vprintf-posix.c: Likewise.
31232         * tests/test-vsnprintf-posix.c: Likewise.
31233         * tests/test-vsnprintf.c: Likewise.
31234         * tests/test-vsprintf-posix.c: Likewise.
31235         * tests/test-wcrtomb.c: Likewise.
31236         * tests/test-wcsnrtombs.c: Likewise.
31237         * tests/test-wcsrtombs.c: Likewise.
31238         * tests/test-wctype.c: Likewise.
31239         * tests/test-wcwidth.c: Likewise.
31240         * tests/test-xfprintf-posix.c: Likewise.
31241         * tests/test-xmemdup0.c: Likewise.
31242         * tests/test-xprintf-posix.c: Likewise.
31243         * tests/test-xvasprintf.c: Likewise.
31244         * tests/unicase/test-locale-language.c: Likewise.
31245         * tests/unicase/test-mapping-part1.h: Likewise.
31246         * tests/unicase/test-predicate-part1.h: Likewise.
31247         * tests/unicase/test-u8-casecmp.c: Likewise.
31248         * tests/unicase/test-u8-casecoll.c: Likewise.
31249         * tests/unicase/test-u8-casefold.c: Likewise.
31250         * tests/unicase/test-u8-is-cased.c: Likewise.
31251         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31252         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31253         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31254         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31255         * tests/unicase/test-u8-tolower.c: Likewise.
31256         * tests/unicase/test-u8-totitle.c: Likewise.
31257         * tests/unicase/test-u8-toupper.c: Likewise.
31258         * tests/unicase/test-u16-casecmp.c: Likewise.
31259         * tests/unicase/test-u16-casecoll.c: Likewise.
31260         * tests/unicase/test-u16-casefold.c: Likewise.
31261         * tests/unicase/test-u16-is-cased.c: Likewise.
31262         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31263         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31264         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31265         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31266         * tests/unicase/test-u16-tolower.c: Likewise.
31267         * tests/unicase/test-u16-totitle.c: Likewise.
31268         * tests/unicase/test-u16-toupper.c: Likewise.
31269         * tests/unicase/test-u32-casecmp.c: Likewise.
31270         * tests/unicase/test-u32-casecoll.c: Likewise.
31271         * tests/unicase/test-u32-casefold.c: Likewise.
31272         * tests/unicase/test-u32-is-cased.c: Likewise.
31273         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31274         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31275         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31276         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31277         * tests/unicase/test-u32-tolower.c: Likewise.
31278         * tests/unicase/test-u32-totitle.c: Likewise.
31279         * tests/unicase/test-u32-toupper.c: Likewise.
31280         * tests/unicase/test-ulc-casecmp.c: Likewise.
31281         * tests/unicase/test-ulc-casecoll.c: Likewise.
31282         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31283         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31284         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31285         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31286         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31287         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31288         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31289         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31290         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31291         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31292         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31293         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31294         * tests/unictype/test-bidi_byname.c: Likewise.
31295         * tests/unictype/test-bidi_name.c: Likewise.
31296         * tests/unictype/test-bidi_of.c: Likewise.
31297         * tests/unictype/test-bidi_test.c: Likewise.
31298         * tests/unictype/test-block_list.c: Likewise.
31299         * tests/unictype/test-block_of.c: Likewise.
31300         * tests/unictype/test-block_test.c: Likewise.
31301         * tests/unictype/test-categ_and.c: Likewise.
31302         * tests/unictype/test-categ_and_not.c: Likewise.
31303         * tests/unictype/test-categ_byname.c: Likewise.
31304         * tests/unictype/test-categ_name.c: Likewise.
31305         * tests/unictype/test-categ_none.c: Likewise.
31306         * tests/unictype/test-categ_of.c: Likewise.
31307         * tests/unictype/test-categ_or.c: Likewise.
31308         * tests/unictype/test-categ_test_withtable.c: Likewise.
31309         * tests/unictype/test-combining.c: Likewise.
31310         * tests/unictype/test-decdigit.c: Likewise.
31311         * tests/unictype/test-digit.c: Likewise.
31312         * tests/unictype/test-mirror.c: Likewise.
31313         * tests/unictype/test-numeric.c: Likewise.
31314         * tests/unictype/test-pr_byname.c: Likewise.
31315         * tests/unictype/test-pr_test.c: Likewise.
31316         * tests/unictype/test-predicate-part1.h: Likewise.
31317         * tests/unictype/test-scripts.c: Likewise.
31318         * tests/unictype/test-sy_c_ident.c: Likewise.
31319         * tests/unictype/test-sy_java_ident.c: Likewise.
31320         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31321         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31322         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31323         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31324         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31325         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31326         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31327         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31328         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31329         * tests/uninorm/test-compat-decomposition.c: Likewise.
31330         * tests/uninorm/test-composition.c: Likewise.
31331         * tests/uninorm/test-decomposing-form.c: Likewise.
31332         * tests/uninorm/test-decomposition.c: Likewise.
31333         * tests/uninorm/test-u8-nfc.c: Likewise.
31334         * tests/uninorm/test-u8-nfd.c: Likewise.
31335         * tests/uninorm/test-u8-nfkc.c: Likewise.
31336         * tests/uninorm/test-u8-nfkd.c: Likewise.
31337         * tests/uninorm/test-u8-normcmp.c: Likewise.
31338         * tests/uninorm/test-u8-normcoll.c: Likewise.
31339         * tests/uninorm/test-u16-nfc.c: Likewise.
31340         * tests/uninorm/test-u16-nfd.c: Likewise.
31341         * tests/uninorm/test-u16-nfkc.c: Likewise.
31342         * tests/uninorm/test-u16-nfkd.c: Likewise.
31343         * tests/uninorm/test-u16-normcmp.c: Likewise.
31344         * tests/uninorm/test-u16-normcoll.c: Likewise.
31345         * tests/uninorm/test-u32-nfc.c: Likewise.
31346         * tests/uninorm/test-u32-nfd.c: Likewise.
31347         * tests/uninorm/test-u32-nfkc.c: Likewise.
31348         * tests/uninorm/test-u32-nfkd.c: Likewise.
31349         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31350         * tests/uninorm/test-u32-normcmp.c: Likewise.
31351         * tests/uninorm/test-u32-normcoll.c: Likewise.
31352         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31353         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31354         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31355         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31356         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31357         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31358         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31359         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31360         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31361         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31362         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31363         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31364         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31365         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31366         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31367         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31368         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31369         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31370         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31371         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31372         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31373         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31374         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31375         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31376         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31377         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31378         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31379         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31380         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31381         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31382         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31383         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31384         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31385         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31386         * tests/uniwidth/test-u8-width.c: Likewise.
31387         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31388         * tests/uniwidth/test-u16-width.c: Likewise.
31389         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31390         * tests/uniwidth/test-u32-width.c: Likewise.
31391         * tests/uniwidth/test-uc_width.c: Likewise.
31392         * tests/uniwidth/test-uc_width2.c: Likewise.
31393         * modules/acl-tests (Files): Add tests/macros.h.
31394         * modules/areadlink-tests (Files): Likewise.
31395         * modules/areadlink-with-size-tests (Files): Likewise.
31396         * modules/areadlinkat-tests (Files): Likewise.
31397         * modules/areadlinkat-with-size-tests (Files): Likewise.
31398         * modules/argmatch-tests (Files): Likewise.
31399         * modules/argv-iter-tests (Files): Likewise.
31400         * modules/array-list-tests (Files): Likewise.
31401         * modules/array-mergesort-tests (Files): Likewise.
31402         * modules/array-oset-tests (Files): Likewise.
31403         * modules/avltree-list-tests (Files): Likewise.
31404         * modules/avltree-oset-tests (Files): Likewise.
31405         * modules/avltreehash-list-tests (Files): Likewise.
31406         * modules/base64-tests (Files): Likewise.
31407         * modules/binary-io-tests (Files): Likewise.
31408         * modules/bitrotate-tests (Files): Likewise.
31409         * modules/btowc-tests (Files): Likewise.
31410         * modules/byteswap-tests (Files): Likewise.
31411         * modules/c-ctype-tests (Files): Likewise.
31412         * modules/c-stack-tests (Files): Likewise.
31413         * modules/c-strcase-tests (Files): Likewise.
31414         * modules/c-strcasestr-tests (Files): Likewise.
31415         * modules/c-strstr-tests (Files): Likewise.
31416         * modules/canonicalize-lgpl-tests (Files): Likewise.
31417         * modules/canonicalize-tests (Files): Likewise.
31418         * modules/carray-list-tests (Files): Likewise.
31419         * modules/ceilf-tests (Files): Likewise.
31420         * modules/ceill-tests (Files): Likewise.
31421         * modules/chown-tests (Files): Likewise.
31422         * modules/cloexec-tests (Files): Likewise.
31423         * modules/copy-file-tests (Files): Likewise.
31424         * modules/count-one-bits-tests (Files): Likewise.
31425         * modules/dprintf-posix-tests (Files): Likewise.
31426         * modules/dup2-tests (Files): Likewise.
31427         * modules/dup3-tests (Files): Likewise.
31428         * modules/duplocale-tests (Files): Likewise.
31429         * modules/fbufmode-tests (Files): Likewise.
31430         * modules/fchdir-tests (Files): Likewise.
31431         * modules/fcntl-safer-tests (Files): Likewise.
31432         * modules/fcntl-tests (Files): Likewise.
31433         * modules/fdopendir-tests (Files): Likewise.
31434         * modules/fdutimensat-tests (Files): Likewise.
31435         * modules/fflush-tests (Files): Likewise.
31436         * modules/filevercmp-tests (Files): Likewise.
31437         * modules/flock-tests (Files): Likewise.
31438         * modules/floorf-tests (Files): Likewise.
31439         * modules/floorl-tests (Files): Likewise.
31440         * modules/fnmatch-tests (Files): Likewise.
31441         * modules/fopen-safer-tests (Files): Likewise.
31442         * modules/fopen-tests (Files): Likewise.
31443         * modules/fpending-tests (Files): Likewise.
31444         * modules/fprintf-posix-tests (Files): Likewise.
31445         * modules/fpurge-tests (Files): Likewise.
31446         * modules/freadable-tests (Files): Likewise.
31447         * modules/freadahead-tests (Files): Likewise.
31448         * modules/freading-tests (Files): Likewise.
31449         * modules/freadptr-tests (Files): Likewise.
31450         * modules/freadseek-tests (Files): Likewise.
31451         * modules/freopen-tests (Files): Likewise.
31452         * modules/frexp-nolibm-tests (Files): Likewise.
31453         * modules/frexp-tests (Files): Likewise.
31454         * modules/frexpl-nolibm-tests (Files): Likewise.
31455         * modules/frexpl-tests (Files): Likewise.
31456         * modules/fseek-tests (Files): Likewise.
31457         * modules/fseeko-tests (Files): Likewise.
31458         * modules/fstrcmp-tests (Files): Likewise.
31459         * modules/fsync-tests (Files): Likewise.
31460         * modules/ftell-tests (Files): Likewise.
31461         * modules/ftello-tests (Files): Likewise.
31462         * modules/func-tests (Files): Likewise.
31463         * modules/futimens-tests (Files): Likewise.
31464         * modules/fwritable-tests (Files): Likewise.
31465         * modules/fwriting-tests (Files): Likewise.
31466         * modules/getcwd-tests (Files): Likewise.
31467         * modules/getdate-tests (Files): Likewise.
31468         * modules/getdelim-tests (Files): Likewise.
31469         * modules/getdtablesize-tests (Files): Likewise.
31470         * modules/getgroups-tests (Files): Likewise.
31471         * modules/getline-tests (Files): Likewise.
31472         * modules/getndelim2-tests (Files): Likewise.
31473         * modules/glob-tests (Files): Likewise.
31474         * modules/hash-tests (Files): Likewise.
31475         * modules/i-ring-tests (Files): Likewise.
31476         * modules/iconv-tests (Files): Likewise.
31477         * modules/iconv_open-utf-tests (Files): Likewise.
31478         * modules/idpriv-drop-tests (Files): Likewise.
31479         * modules/idpriv-droptemp-tests (Files): Likewise.
31480         * modules/inet_ntop-tests (Files): Likewise.
31481         * modules/inet_pton-tests (Files): Likewise.
31482         * modules/isblank-tests (Files): Likewise.
31483         * modules/isfinite-tests (Files): Likewise.
31484         * modules/isinf-tests (Files): Likewise.
31485         * modules/isnan-tests (Files): Likewise.
31486         * modules/isnand-nolibm-tests (Files): Likewise.
31487         * modules/isnand-tests (Files): Likewise.
31488         * modules/isnanf-nolibm-tests (Files): Likewise.
31489         * modules/isnanf-tests (Files): Likewise.
31490         * modules/isnanl-nolibm-tests (Files): Likewise.
31491         * modules/isnanl-tests (Files): Likewise.
31492         * modules/lchown-tests (Files): Likewise.
31493         * modules/ldexpl-tests (Files): Likewise.
31494         * modules/link-tests (Files): Likewise.
31495         * modules/linkat-tests (Files): Likewise.
31496         * modules/linked-list-tests (Files): Likewise.
31497         * modules/linkedhash-list-tests (Files): Likewise.
31498         * modules/localename-tests (Files): Likewise.
31499         * modules/lseek-tests (Files): Likewise.
31500         * modules/lstat-tests (Files): Likewise.
31501         * modules/mbmemcasecmp-tests (Files): Likewise.
31502         * modules/mbmemcasecoll-tests (Files): Likewise.
31503         * modules/mbrtowc-tests (Files): Likewise.
31504         * modules/mbscasecmp-tests (Files): Likewise.
31505         * modules/mbscasestr-tests (Files): Likewise.
31506         * modules/mbschr-tests (Files): Likewise.
31507         * modules/mbscspn-tests (Files): Likewise.
31508         * modules/mbsinit-tests (Files): Likewise.
31509         * modules/mbsncasecmp-tests (Files): Likewise.
31510         * modules/mbsnrtowcs-tests (Files): Likewise.
31511         * modules/mbspbrk-tests (Files): Likewise.
31512         * modules/mbspcasecmp-tests (Files): Likewise.
31513         * modules/mbsrchr-tests (Files): Likewise.
31514         * modules/mbsrtowcs-tests (Files): Likewise.
31515         * modules/mbsspn-tests (Files): Likewise.
31516         * modules/mbsstr-tests (Files): Likewise.
31517         * modules/memchr-tests (Files): Likewise.
31518         * modules/memchr2-tests (Files): Likewise.
31519         * modules/memcmp-tests (Files): Likewise.
31520         * modules/memmem-tests (Files): Likewise.
31521         * modules/memrchr-tests (Files): Likewise.
31522         * modules/mkdir-tests (Files): Likewise.
31523         * modules/mkfifo-tests (Files): Likewise.
31524         * modules/mkfifoat-tests (Files): Likewise.
31525         * modules/mknod-tests (Files): Likewise.
31526         * modules/nanosleep-tests (Files): Likewise.
31527         * modules/nl_langinfo-tests (Files): Likewise.
31528         * modules/obstack-printf-tests (Files): Likewise.
31529         * modules/open-tests (Files): Likewise.
31530         * modules/openat-tests (Files): Likewise.
31531         * modules/pipe-filter-gi-tests (Files): Likewise.
31532         * modules/pipe-filter-ii-tests (Files): Likewise.
31533         * modules/pipe2-tests (Files): Likewise.
31534         * modules/popen-safer-tests (Files): Likewise.
31535         * modules/popen-tests (Files): Likewise.
31536         * modules/posixtm-tests (Files): Likewise.
31537         * modules/pread-tests (Files): Likewise.
31538         * modules/printf-frexp-tests (Files): Likewise.
31539         * modules/printf-frexpl-tests (Files): Likewise.
31540         * modules/printf-posix-tests (Files): Likewise.
31541         * modules/priv-set-tests (Files): Likewise.
31542         * modules/quotearg-tests (Files): Likewise.
31543         * modules/random_r-tests (Files): Likewise.
31544         * modules/rawmemchr-tests (Files): Likewise.
31545         * modules/rbtree-list-tests (Files): Likewise.
31546         * modules/rbtree-oset-tests (Files): Likewise.
31547         * modules/rbtreehash-list-tests (Files): Likewise.
31548         * modules/readlink-tests (Files): Likewise.
31549         * modules/remove-tests (Files): Likewise.
31550         * modules/rename-tests (Files): Likewise.
31551         * modules/renameat-tests (Files): Likewise.
31552         * modules/rmdir-tests (Files): Likewise.
31553         * modules/round-tests (Files): Likewise.
31554         * modules/roundf-tests (Files): Likewise.
31555         * modules/roundl-tests (Files): Likewise.
31556         * modules/safe-alloc-tests (Files): Likewise.
31557         * modules/setenv-tests (Files): Likewise.
31558         * modules/sigaction-tests (Files): Likewise.
31559         * modules/signbit-tests (Files): Likewise.
31560         * modules/sleep-tests (Files): Likewise.
31561         * modules/snprintf-posix-tests (Files): Likewise.
31562         * modules/snprintf-tests (Files): Likewise.
31563         * modules/sprintf-posix-tests (Files): Likewise.
31564         * modules/stat-tests (Files): Likewise.
31565         * modules/stat-time-tests (Files): Likewise.
31566         * modules/strcasestr-tests (Files): Likewise.
31567         * modules/strchrnul-tests (Files): Likewise.
31568         * modules/strerror-tests (Files): Likewise.
31569         * modules/striconv-tests (Files): Likewise.
31570         * modules/striconveh-tests (Files): Likewise.
31571         * modules/striconveha-tests (Files): Likewise.
31572         * modules/strsignal-tests (Files): Likewise.
31573         * modules/strstr-tests (Files): Likewise.
31574         * modules/strtod-tests (Files): Likewise.
31575         * modules/strverscmp-tests (Files): Likewise.
31576         * modules/symlink-tests (Files): Likewise.
31577         * modules/symlinkat-tests (Files): Likewise.
31578         * modules/trunc-tests (Files): Likewise.
31579         * modules/truncf-tests (Files): Likewise.
31580         * modules/truncl-tests (Files): Likewise.
31581         * modules/uname-tests (Files): Likewise.
31582         * modules/unicase/cased-tests (Files): Likewise.
31583         * modules/unicase/ignorable-tests (Files): Likewise.
31584         * modules/unicase/locale-language-tests (Files): Likewise.
31585         * modules/unicase/tolower-tests (Files): Likewise.
31586         * modules/unicase/totitle-tests (Files): Likewise.
31587         * modules/unicase/toupper-tests (Files): Likewise.
31588         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31589         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31590         * modules/unicase/u8-casefold-tests (Files): Likewise.
31591         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31592         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31593         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31594         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31595         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31596         * modules/unicase/u8-tolower-tests (Files): Likewise.
31597         * modules/unicase/u8-totitle-tests (Files): Likewise.
31598         * modules/unicase/u8-toupper-tests (Files): Likewise.
31599         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31600         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31601         * modules/unicase/u16-casefold-tests (Files): Likewise.
31602         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31603         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31604         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31605         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31606         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31607         * modules/unicase/u16-tolower-tests (Files): Likewise.
31608         * modules/unicase/u16-totitle-tests (Files): Likewise.
31609         * modules/unicase/u16-toupper-tests (Files): Likewise.
31610         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31611         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31612         * modules/unicase/u32-casefold-tests (Files): Likewise.
31613         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31614         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31615         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31616         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31617         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31618         * modules/unicase/u32-tolower-tests (Files): Likewise.
31619         * modules/unicase/u32-totitle-tests (Files): Likewise.
31620         * modules/unicase/u32-toupper-tests (Files): Likewise.
31621         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31622         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31623         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31624         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31625         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31626         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31627         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31628         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31629         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31630         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31631         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31632         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31633         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31634         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31635         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31636         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31637         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31638         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31639         * modules/unictype/block-list-tests (Files): Likewise.
31640         * modules/unictype/block-of-tests (Files): Likewise.
31641         * modules/unictype/block-test-tests (Files): Likewise.
31642         * modules/unictype/category-C-tests (Files): Likewise.
31643         * modules/unictype/category-Cc-tests (Files): Likewise.
31644         * modules/unictype/category-Cf-tests (Files): Likewise.
31645         * modules/unictype/category-Cn-tests (Files): Likewise.
31646         * modules/unictype/category-Co-tests (Files): Likewise.
31647         * modules/unictype/category-Cs-tests (Files): Likewise.
31648         * modules/unictype/category-L-tests (Files): Likewise.
31649         * modules/unictype/category-Ll-tests (Files): Likewise.
31650         * modules/unictype/category-Lm-tests (Files): Likewise.
31651         * modules/unictype/category-Lo-tests (Files): Likewise.
31652         * modules/unictype/category-Lt-tests (Files): Likewise.
31653         * modules/unictype/category-Lu-tests (Files): Likewise.
31654         * modules/unictype/category-M-tests (Files): Likewise.
31655         * modules/unictype/category-Mc-tests (Files): Likewise.
31656         * modules/unictype/category-Me-tests (Files): Likewise.
31657         * modules/unictype/category-Mn-tests (Files): Likewise.
31658         * modules/unictype/category-N-tests (Files): Likewise.
31659         * modules/unictype/category-Nd-tests (Files): Likewise.
31660         * modules/unictype/category-Nl-tests (Files): Likewise.
31661         * modules/unictype/category-No-tests (Files): Likewise.
31662         * modules/unictype/category-P-tests (Files): Likewise.
31663         * modules/unictype/category-Pc-tests (Files): Likewise.
31664         * modules/unictype/category-Pd-tests (Files): Likewise.
31665         * modules/unictype/category-Pe-tests (Files): Likewise.
31666         * modules/unictype/category-Pf-tests (Files): Likewise.
31667         * modules/unictype/category-Pi-tests (Files): Likewise.
31668         * modules/unictype/category-Po-tests (Files): Likewise.
31669         * modules/unictype/category-Ps-tests (Files): Likewise.
31670         * modules/unictype/category-S-tests (Files): Likewise.
31671         * modules/unictype/category-Sc-tests (Files): Likewise.
31672         * modules/unictype/category-Sk-tests (Files): Likewise.
31673         * modules/unictype/category-Sm-tests (Files): Likewise.
31674         * modules/unictype/category-So-tests (Files): Likewise.
31675         * modules/unictype/category-Z-tests (Files): Likewise.
31676         * modules/unictype/category-Zl-tests (Files): Likewise.
31677         * modules/unictype/category-Zp-tests (Files): Likewise.
31678         * modules/unictype/category-Zs-tests (Files): Likewise.
31679         * modules/unictype/category-and-not-tests (Files): Likewise.
31680         * modules/unictype/category-and-tests (Files): Likewise.
31681         * modules/unictype/category-byname-tests (Files): Likewise.
31682         * modules/unictype/category-name-tests (Files): Likewise.
31683         * modules/unictype/category-none-tests (Files): Likewise.
31684         * modules/unictype/category-of-tests (Files): Likewise.
31685         * modules/unictype/category-or-tests (Files): Likewise.
31686         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31687         * modules/unictype/combining-class-tests (Files): Likewise.
31688         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31689         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31690         * modules/unictype/ctype-blank-tests (Files): Likewise.
31691         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31692         * modules/unictype/ctype-digit-tests (Files): Likewise.
31693         * modules/unictype/ctype-graph-tests (Files): Likewise.
31694         * modules/unictype/ctype-lower-tests (Files): Likewise.
31695         * modules/unictype/ctype-print-tests (Files): Likewise.
31696         * modules/unictype/ctype-punct-tests (Files): Likewise.
31697         * modules/unictype/ctype-space-tests (Files): Likewise.
31698         * modules/unictype/ctype-upper-tests (Files): Likewise.
31699         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31700         * modules/unictype/decimal-digit-tests (Files): Likewise.
31701         * modules/unictype/digit-tests (Files): Likewise.
31702         * modules/unictype/mirror-tests (Files): Likewise.
31703         * modules/unictype/numeric-tests (Files): Likewise.
31704         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31705         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31706         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31707         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31708         Likewise.
31709         * modules/unictype/property-bidi-block-separator-tests (Files):
31710         Likewise.
31711         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31712         Likewise.
31713         * modules/unictype/property-bidi-common-separator-tests (Files):
31714         Likewise.
31715         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31716         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31717         Likewise.
31718         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31719         Likewise.
31720         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31721         Likewise.
31722         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31723         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31724         Likewise.
31725         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31726         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31727         Likewise.
31728         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31729         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31730         * modules/unictype/property-bidi-segment-separator-tests (Files):
31731         Likewise.
31732         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31733         * modules/unictype/property-byname-tests (Files): Likewise.
31734         * modules/unictype/property-combining-tests (Files): Likewise.
31735         * modules/unictype/property-composite-tests (Files): Likewise.
31736         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31737         * modules/unictype/property-dash-tests (Files): Likewise.
31738         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31739         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31740         Likewise.
31741         * modules/unictype/property-deprecated-tests (Files): Likewise.
31742         * modules/unictype/property-diacritic-tests (Files): Likewise.
31743         * modules/unictype/property-extender-tests (Files): Likewise.
31744         * modules/unictype/property-format-control-tests (Files): Likewise.
31745         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31746         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31747         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31748         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31749         * modules/unictype/property-hyphen-tests (Files): Likewise.
31750         * modules/unictype/property-id-continue-tests (Files): Likewise.
31751         * modules/unictype/property-id-start-tests (Files): Likewise.
31752         * modules/unictype/property-ideographic-tests (Files): Likewise.
31753         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31754         * modules/unictype/property-ids-trinary-operator-tests (Files):
31755         Likewise.
31756         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31757         * modules/unictype/property-iso-control-tests (Files): Likewise.
31758         * modules/unictype/property-join-control-tests (Files): Likewise.
31759         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31760         * modules/unictype/property-line-separator-tests (Files): Likewise.
31761         * modules/unictype/property-logical-order-exception-tests (Files):
31762         Likewise.
31763         * modules/unictype/property-lowercase-tests (Files): Likewise.
31764         * modules/unictype/property-math-tests (Files): Likewise.
31765         * modules/unictype/property-non-break-tests (Files): Likewise.
31766         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31767         * modules/unictype/property-numeric-tests (Files): Likewise.
31768         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31769         * modules/unictype/property-other-default-ignorable-code-point-tests
31770         (Files): Likewise.
31771         * modules/unictype/property-other-grapheme-extend-tests (Files):
31772         Likewise.
31773         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31774         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31775         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31776         * modules/unictype/property-other-math-tests (Files): Likewise.
31777         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31778         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31779         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31780         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31781         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31782         * modules/unictype/property-private-use-tests (Files): Likewise.
31783         * modules/unictype/property-punctuation-tests (Files): Likewise.
31784         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31785         * modules/unictype/property-radical-tests (Files): Likewise.
31786         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31787         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31788         * modules/unictype/property-space-tests (Files): Likewise.
31789         * modules/unictype/property-terminal-punctuation-tests (Files):
31790         Likewise.
31791         * modules/unictype/property-test-tests (Files): Likewise.
31792         * modules/unictype/property-titlecase-tests (Files): Likewise.
31793         * modules/unictype/property-unassigned-code-value-tests (Files):
31794         Likewise.
31795         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31796         * modules/unictype/property-uppercase-tests (Files): Likewise.
31797         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31798         * modules/unictype/property-white-space-tests (Files): Likewise.
31799         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31800         * modules/unictype/property-xid-start-tests (Files): Likewise.
31801         * modules/unictype/property-zero-width-tests (Files): Likewise.
31802         * modules/unictype/scripts-tests (Files): Likewise.
31803         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31804         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31805         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31806         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31807         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31808         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31809         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31810         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31811         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31812         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31813         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31814         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31815         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31816         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31817         * modules/uninorm/composition-tests (Files): Likewise.
31818         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31819         * modules/uninorm/decomposition-tests (Files): Likewise.
31820         * modules/uninorm/filter-tests (Files): Likewise.
31821         * modules/uninorm/nfc-tests (Files): Likewise.
31822         * modules/uninorm/nfd-tests (Files): Likewise.
31823         * modules/uninorm/nfkc-tests (Files): Likewise.
31824         * modules/uninorm/nfkd-tests (Files): Likewise.
31825         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31826         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31827         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31828         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31829         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31830         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31831         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31832         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31833         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31834         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31835         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31836         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31837         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31838         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31839         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31840         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31841         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31842         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31843         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31844         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31845         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31846         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31847         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31848         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31849         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31850         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31851         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31852         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31853         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31854         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31855         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31856         * modules/uniwidth/u8-width-tests (Files): Likewise.
31857         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31858         * modules/uniwidth/u16-width-tests (Files): Likewise.
31859         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31860         * modules/uniwidth/u32-width-tests (Files): Likewise.
31861         * modules/uniwidth/width-tests (Files): Likewise.
31862         * modules/unlink-tests (Files): Likewise.
31863         * modules/unsetenv-tests (Files): Likewise.
31864         * modules/usleep-tests (Files): Likewise.
31865         * modules/utimens-tests (Files): Likewise.
31866         * modules/utimensat-tests (Files): Likewise.
31867         * modules/vasnprintf-posix-tests (Files): Likewise.
31868         * modules/vasnprintf-tests (Files): Likewise.
31869         * modules/vasprintf-posix-tests (Files): Likewise.
31870         * modules/vasprintf-tests (Files): Likewise.
31871         * modules/vdprintf-posix-tests (Files): Likewise.
31872         * modules/vfprintf-posix-tests (Files): Likewise.
31873         * modules/vprintf-posix-tests (Files): Likewise.
31874         * modules/vsnprintf-posix-tests (Files): Likewise.
31875         * modules/vsnprintf-tests (Files): Likewise.
31876         * modules/vsprintf-posix-tests (Files): Likewise.
31877         * modules/wcrtomb-tests (Files): Likewise.
31878         * modules/wcsnrtombs-tests (Files): Likewise.
31879         * modules/wcsrtombs-tests (Files): Likewise.
31880         * modules/wctype-tests (Files): Likewise.
31881         * modules/wcwidth-tests (Files): Likewise.
31882         * modules/xmemdup0-tests (Files): Likewise.
31883         * modules/xprintf-posix-tests (Files): Likewise.
31884         * modules/xvasprintf-tests (Files): Likewise.
31885
31886 2009-12-24  Eric Blake  <ebb9@byu.net>
31887
31888         test-nanosleep: fix typo
31889         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31890         patch.
31891         Reported by Bruno Haible.
31892
31893 2009-12-24  Bruno Haible  <bruno@clisp.org>
31894
31895         Reduce namespace pollution on glibc systems.
31896         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31897         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31898         systems.
31899         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31900         <getopt.h> on glibc systems.
31901         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31902         systems.
31903         * lib/fcntl.c: Include <unistd.h> here instead.
31904
31905 2009-12-24  Bruno Haible  <bruno@clisp.org>
31906
31907         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31908
31909 2009-12-24  Eric Blake  <ebb9@byu.net>
31910
31911         tests: add signature checks
31912         * tests/signature.h (SIGNATURE_CHECK): New file.
31913         * modules/atexit-tests (Files): Use it.
31914         * modules/btowc-tests (Files): Likewise.
31915         * modules/canonicalize-lgpl-tests (Files): Likewise.
31916         * modules/ceilf-tests (Files): Likewise.
31917         * modules/ceill-tests (Files): Likewise.
31918         * modules/chown-tests (Files): Likewise.
31919         * modules/dprintf-posix-tests (Files): Likewise.
31920         * modules/dup2-tests (Files): Likewise.
31921         * modules/dup3-tests (Files): Likewise.
31922         * modules/duplocale-tests (Files): Likewise.
31923         * modules/fchdir-tests (Files): Likewise.
31924         * modules/fcntl-tests (Files): Likewise.
31925         * modules/fdopendir-tests (Files): Likewise.
31926         * modules/fflush-tests (Files): Likewise.
31927         * modules/flock-tests (Files): Likewise.
31928         * modules/floorf-tests (Files): Likewise.
31929         * modules/floorl-tests (Files): Likewise.
31930         * modules/fnmatch-tests (Files): Likewise.
31931         * modules/fopen-tests (Files): Likewise.
31932         * modules/fprintf-posix-tests (Files): Likewise.
31933         * modules/freopen-tests (Files): Likewise.
31934         * modules/frexp-nolibm-tests (Files): Likewise.
31935         * modules/frexp-tests (Files): Likewise.
31936         * modules/frexpl-nolibm-tests (Files): Likewise.
31937         * modules/frexpl-tests (Files): Likewise.
31938         * modules/fseek-tests (Files): Likewise.
31939         * modules/fseeko-tests (Files): Likewise.
31940         * modules/fsync-tests (Files): Likewise.
31941         * modules/ftell-tests (Files): Likewise.
31942         * modules/ftello-tests (Files): Likewise.
31943         * modules/futimens-tests (Files): Likewise.
31944         * modules/getaddrinfo-tests (Files): Likewise.
31945         * modules/getcwd-tests (Files): Likewise.
31946         * modules/getdelim-tests (Files): Likewise.
31947         * modules/getdtablesize-tests (Files): Likewise.
31948         * modules/getgroups-tests (Files): Likewise.
31949         * modules/gethostname-tests (Files): Likewise.
31950         * modules/getline-tests (Files): Likewise.
31951         * modules/getopt-posix-tests (Files): Likewise.
31952         * modules/gettimeofday-tests (Files): Likewise.
31953         * modules/glob-tests (Files): Likewise.
31954         * modules/iconv-tests (Files): Likewise.
31955         * modules/inet_ntop-tests (Files): Likewise.
31956         * modules/inet_pton-tests (Files): Likewise.
31957         * modules/isblank-tests (Files): Likewise.
31958         * modules/lchown-tests (Files): Likewise.
31959         * modules/ldexpl-tests (Files): Likewise.
31960         * modules/link-tests (Files): Likewise.
31961         * modules/linkat-tests (Files): Likewise.
31962         * modules/lseek-tests (Files): Likewise.
31963         * modules/lstat-tests (Files): Likewise.
31964         * modules/mbrtowc-tests (Files): Likewise.
31965         * modules/mbsinit-tests (Files): Likewise.
31966         * modules/mbsnrtowcs-tests (Files): Likewise.
31967         * modules/mbsrtowcs-tests (Files): Likewise.
31968         * modules/memchr-tests (Files): Likewise.
31969         * modules/memcmp-tests (Files): Likewise.
31970         * modules/memmem-tests (Files): Likewise.
31971         * modules/memrchr-tests (Files): Likewise.
31972         * modules/mkdir-tests (Files): Likewise.
31973         * modules/mkfifo-tests (Files): Likewise.
31974         * modules/mkfifoat-tests (Files): Likewise.
31975         * modules/mknod-tests (Files): Likewise.
31976         * modules/nanosleep-tests (Files): Likewise.
31977         * modules/nl_langinfo-tests (Files): Likewise.
31978         * modules/obstack-printf-tests (Files): Likewise.
31979         * modules/open-tests (Files): Likewise.
31980         * modules/openat-tests (Files): Likewise.
31981         * modules/perror-tests (Files): Likewise.
31982         * modules/pipe2-tests (Files): Likewise.
31983         * modules/poll-tests (Files): Likewise.
31984         * modules/popen-tests (Files): Likewise.
31985         * modules/posix_spawn-tests (Files): Likewise.
31986         * modules/posix_spawnp-tests (Files): Likewise.
31987         * modules/pread-tests (Files): Likewise.
31988         * modules/printf-posix-tests (Files): Likewise.
31989         * modules/pty-tests (Files): Likewise.
31990         * modules/random_r-tests (Files): Likewise.
31991         * modules/rawmemchr-tests (Files): Likewise.
31992         * modules/readlink-tests (Files): Likewise.
31993         * modules/remove-tests (Files): Likewise.
31994         * modules/rename-tests (Files): Likewise.
31995         * modules/renameat-tests (Files): Likewise.
31996         * modules/rmdir-tests (Files): Likewise.
31997         * modules/round-tests (Files): Likewise.
31998         * modules/roundf-tests (Files): Likewise.
31999         * modules/roundl-tests (Files): Likewise.
32000         * modules/select-tests (Files): Likewise.
32001         * modules/setenv-tests (Files): Likewise.
32002         * modules/sigaction-tests (Files): Likewise.
32003         * modules/sleep-tests (Files): Likewise.
32004         * modules/snprintf-posix-tests (Files): Likewise.
32005         * modules/snprintf-tests (Files): Likewise.
32006         * modules/sprintf-posix-tests (Files): Likewise.
32007         * modules/stat-tests (Files): Likewise.
32008         * modules/strcasestr-tests (Files): Likewise.
32009         * modules/strchrnul-tests (Files): Likewise.
32010         * modules/strerror-tests (Files): Likewise.
32011         * modules/strsignal-tests (Files): Likewise.
32012         * modules/strstr-tests (Files): Likewise.
32013         * modules/strtod-tests (Files): Likewise.
32014         * modules/strverscmp-tests (Files): Likewise.
32015         * modules/symlink-tests (Files): Likewise.
32016         * modules/symlinkat-tests (Files): Likewise.
32017         * modules/times-tests (Files): Likewise.
32018         * modules/trunc-tests (Files): Likewise.
32019         * modules/truncf-tests (Files): Likewise.
32020         * modules/truncl-tests (Files): Likewise.
32021         * modules/tsearch-tests (Files): Likewise.
32022         * modules/uname-tests (Files): Likewise.
32023         * modules/unlink-tests (Files): Likewise.
32024         * modules/unsetenv-tests (Files): Likewise.
32025         * modules/usleep-tests (Files): Likewise.
32026         * modules/utimensat-tests (Files): Likewise.
32027         * modules/vasprintf-tests (Files): Likewise.
32028         * modules/vdprintf-posix-tests (Files): Likewise.
32029         * modules/vfprintf-posix-tests (Files): Likewise.
32030         * modules/vprintf-posix-tests (Files): Likewise.
32031         * modules/vsnprintf-posix-tests (Files): Likewise.
32032         * modules/vsnprintf-tests (Files): Likewise.
32033         * modules/vsprintf-posix-tests (Files): Likewise.
32034         * modules/wcrtomb-tests (Files): Likewise.
32035         * modules/wcsnrtombs-tests (Files): Likewise.
32036         * modules/wcsrtombs-tests (Files): Likewise.
32037         * modules/wcwidth-tests (Files): Likewise.
32038         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32039         * tests/test-isinf.c (isinf): Likewise.
32040         * tests/test-isnan.c (isnan): Likewise.
32041         * tests/test-signbit.c (signbit): Likewise.
32042         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32043         declaration, either as macro or with correct signature.
32044         (select): Ensure function under test is declared with correct
32045         signature in correct header.
32046         * tests/test-atexit.c (atexit): Likewise.
32047         * tests/test-btowc.c (btowc): Likewise.
32048         * tests/test-canonicalize-lgpl.c (realpath)
32049         (canonicalize_file_name): Likewise.
32050         * tests/test-ceilf1.c (ceilf): Likewise.
32051         * tests/test-ceill.c (ceill): Likewise.
32052         * tests/test-chown.c (chown): Likewise.
32053         * tests/test-dprintf-posix.c (dprintf): Likewise.
32054         * tests/test-dup2.c (dup2): Likewise.
32055         * tests/test-dup3.c (dup3): Likewise.
32056         * tests/test-duplocale.c (duplocale): Likewise.
32057         * tests/test-fchdir.c (fchdir): Likewise.
32058         * tests/test-fchownat.c (fchownat): Likewise.
32059         * tests/test-fcntl.c (fcntl): Likewise.
32060         * tests/test-fdopendir.c (fdopendir): Likewise.
32061         * tests/test-fflush.c (fflush): Likewise.
32062         * tests/test-flock.c (flock): Likewise.
32063         * tests/test-floorf1.c (floorf): Likewise.
32064         * tests/test-floorl.c (floorl): Likewise.
32065         * tests/test-fnmatch.c (fnmatch): Likewise.
32066         * tests/test-fopen.c (fopen): Likewise.
32067         * tests/test-fprintf-posix.c (fprintf): Likewise.
32068         * tests/test-freopen.c (freopen): Likewise.
32069         * tests/test-frexp.c (frexp): Likewise.
32070         * tests/test-frexpl.c (frexpl): Likewise.
32071         * tests/test-fseek.c (fseek): Likewise.
32072         * tests/test-fseeko.c (fseeko): Likewise.
32073         * tests/test-fstatat.c (fstatat): Likewise.
32074         * tests/test-fsync.c (fsync): Likewise.
32075         * tests/test-ftell.c (ftell): Likewise.
32076         * tests/test-ftello.c (ftello): Likewise.
32077         * tests/test-futimens.c (futimens): Likewise.
32078         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32079         (gai_strerror): Likewise.
32080         * tests/test-getcwd.c (getcwd): Likewise.
32081         * tests/test-getdelim.c (getdelim): Likewise.
32082         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32083         * tests/test-getgroups.c (getgroups): Likewise.
32084         * tests/test-gethostname.c (gethostname): Likewise.
32085         * tests/test-getline.c (getline): Likewise.
32086         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32087         Likewise.
32088         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32089         * tests/test-glob.c (glob, globfree): Likewise.
32090         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32091         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32092         * tests/test-inet_pton.c (inet_pton): Likewise.
32093         * tests/test-isblank.c (isblank): Likewise.
32094         * tests/test-lchown.c (lchown): Likewise.
32095         * tests/test-ldexpl.c (ldexpl): Likewise.
32096         * tests/test-link.c (link): Likewise.
32097         * tests/test-linkat.c (linkat): Likewise.
32098         * tests/test-lseek.c (lseek): Likewise.
32099         * tests/test-lstat.c (lstat): Likewise.
32100         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32101         * tests/test-mbsinit.c (mbsinit): Likewise.
32102         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32103         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32104         * tests/test-memchr.c (memchr): Likewise.
32105         * tests/test-memcmp.c (memcmp): Likewise.
32106         * tests/test-memmem.c (memmem): Likewise.
32107         * tests/test-memrchr.c (memrchr): Likewise.
32108         * tests/test-mkdir.c (mkdir): Likewise.
32109         * tests/test-mkdirat.c (mkdirat): Likewise.
32110         * tests/test-mkfifo.c (mkfifo): Likewise.
32111         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32112         * tests/test-mknod.c (mknod): Likewise.
32113         * tests/test-nanosleep.c (nanosleep): Likewise.
32114         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32115         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32116         Likewise.
32117         * tests/test-open.c (open): Likewise.
32118         * tests/test-openat.c (openat): Likewise.
32119         * tests/test-perror.c (perror): Likewise.
32120         * tests/test-pipe2.c (pipe2): Likewise.
32121         * tests/test-poll.c (poll): Likewise.
32122         * tests/test-popen.c (popen, pclose): Likewise.
32123         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32124         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32125         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32126         (posix_spawn_file_actions_destroy)
32127         (posix_spawn_file_actions_addclose)
32128         (posix_spawn_file_actions_addopen)
32129         (posix_spawn_file_actions_adddup2): Likewise.
32130         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32131         * tests/test-pread.c (pread): Likewise.
32132         * tests/test-printf-posix.c (printf): Likewise.
32133         * tests/test-pty.c (openpty, forkpty): Likewise.
32134         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32135         (random_r): Likewise.
32136         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32137         * tests/test-readlink.c (readlink): Likewise.
32138         * tests/test-remove.c (remove): Likewise.
32139         * tests/test-rename.c (rename): Likewise.
32140         * tests/test-renameat.c (renameat): Likewise.
32141         * tests/test-rmdir.c (rmdir): Likewise.
32142         * tests/test-round1.c (round): Likewise.
32143         * tests/test-roundf1.c (roundf): Likewise.
32144         * tests/test-roundl.c (roundl): Likewise.
32145         * tests/test-setenv.c (setenv): Likewise.
32146         * tests/test-sigaction.c (sigaction): Likewise.
32147         * tests/test-sleep.c (sleep): Likewise.
32148         * tests/test-snprintf.c (snprintf): Likewise.
32149         * tests/test-sprintf-posix.c (sprintf): Likewise.
32150         * tests/test-stat.c (stat): Likewise.
32151         * tests/test-stpncpy.c (stpncpy): Likewise.
32152         * tests/test-strcasestr.c (strcasestr): Likewise.
32153         * tests/test-strchrnul.c (strchrnul): Likewise.
32154         * tests/test-strerror.c (strerror): Likewise.
32155         * tests/test-strsignal.c (strsignal): Likewise.
32156         * tests/test-strstr.c (strstr): Likewise.
32157         * tests/test-strtod.c (strtod): Likewise.
32158         * tests/test-strverscmp.c (strverscmp): Likewise.
32159         * tests/test-symlink.c (symlink): Likewise.
32160         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32161         * tests/test-times.c (times): Likewise.
32162         * tests/test-trunc1.c (trunc): Likewise.
32163         * tests/test-truncf1.c (truncf): Likewise.
32164         * tests/test-truncl.c (truncl): Likewise.
32165         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32166         Likewise.
32167         * tests/test-uname.c (uname): Likewise.
32168         * tests/test-unlink.c (unlink): Likewise.
32169         * tests/test-unlinkat.c (unlinkat): Likewise.
32170         * tests/test-unsetenv.c (unsetenv): Likewise.
32171         * tests/test-usleep.c (usleep): Likewise.
32172         * tests/test-utimensat.c (utimensat): Likewise.
32173         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32174         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32175         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32176         * tests/test-vprintf-posix.c (vprintf): Likewise.
32177         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32178         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32179         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32180         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32181         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32182         * tests/test-wcwidth.c (wcwidth): Likewise.
32183
32184         build: pull in conditional headers during GNULIB_POSIXCHECK
32185         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32186         definitions from any conditionally-included headers.
32187         * lib/stdlib.in.h (includes): Likewise.
32188         * lib/unistd.in.h (includes): Likewise.
32189
32190 2009-12-24  Bruno Haible  <bruno@clisp.org>
32191
32192         * tests/test-argv-iter.c: Include header file being tested immediately
32193         after config.h.
32194         * tests/test-base64.c: Likewise.
32195         * tests/test-flock.c: Likewise.
32196         * tests/test-fsync.c: Likewise.
32197         * tests/test-getdate.c: Likewise.
32198         * tests/test-getndelim2.c: Likewise.
32199         * tests/test-isfinite.c: Likewise.
32200         * tests/test-isinf.c: Likewise.
32201         * tests/test-strerror.c: Likewise.
32202         * tests/test-strsignal.c: Likewise.
32203
32204 2009-12-23  Eric Blake  <ebb9@byu.net>
32205
32206         unistd: work around cygwin bug
32207         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32208         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32209         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32210
32211 2009-12-23  Bruno Haible  <bruno@clisp.org>
32212
32213         localename: More tests.
32214         * tests/test-localename.c (SIZEOF): New macro.
32215         (categories): New variable.
32216         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32217         test_locale_name_default): Add test w.r.t. thread locale.
32218         (test_locale_name_thread): New function.
32219         (main): Invoke it.
32220
32221         localename: Make aware of thread locale.
32222         * lib/localename.h (gl_locale_name_thread): New declaration.
32223         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32224         behaviour with respect to thread locale.
32225         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32226         <langinfo.h>, glthread/lock.h.
32227         (SIZE_BITS): New macro.
32228         (string_hash): New function.
32229         (struct hash_node): New type.
32230         (HASH_TABLE_SIZE): New macro.
32231         (struniq_hash_table, struniq_lock): New variables.
32232         (struniq): New function.
32233         (gl_locale_name_thread): New function.
32234         (gl_locale_name): Invoke it.
32235         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32236         * modules/localename (Depends-on): Add lock.
32237         Reported by Mike Gran <spk121@yahoo.com>.
32238
32239 2009-12-23  Eric Blake  <ebb9@byu.net>
32240
32241         va-args: new module
32242         * modules/va-args: New file.
32243         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32244         * MODULES.html.sh (Core language properties): Mention it.
32245
32246         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32247         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32248         named alias for __attribute__((__unused__)).
32249         * lib/chown.c: Update client.
32250         * lib/fchmodat.c: Likewise.
32251         * lib/fts.c: Likewise.
32252         * lib/getdate.y: Likewise.
32253         * lib/getgroups.c: Likewise.
32254         * lib/getopt.c: Likewise.
32255         * lib/getugroups.c: Likewise.
32256         * lib/mkdir.c: Likewise.
32257         * lib/mkfifo.c: Likewise.
32258         * lib/mkfifoat.c: Likewise.
32259         * lib/mknod.c: Likewise.
32260         * lib/mknodat.c: Likewise.
32261         * lib/readlink.c: Likewise.
32262         * lib/se-context.in.h: Likewise.
32263         * lib/se-selinux.in.h: Likewise.
32264         * lib/sockets.c: Likewise.
32265         * lib/symlink.c: Likewise.
32266         * lib/symlinkat.c: Likewise.
32267         * lib/unicodeio.c: Likewise.
32268         * lib/unistr.h: Likewise.
32269         * tests/test-areadlink.c: Likewise.
32270         * tests/test-areadlinkat.c: Likewise.
32271         * tests/test-filenamecat.c: Likewise.
32272         * tests/test-fseeko.c: Likewise.
32273         * tests/test-ftello.c: Likewise.
32274         * tests/test-getdate.c: Likewise.
32275         * tests/test-getgroups.c: Likewise.
32276         * tests/test-gethostname.c: Likewise.
32277         * tests/test-quotearg.c: Likewise.
32278         * tests/test-version-etc.c: Likewise.
32279         * tests/test-xalloc-die.c: Likewise.
32280         * tests/test-xfprintf-posix.c: Likewise.
32281         * tests/test-xprintf-posix.c: Likewise.
32282         * tests/test-xvasprintf.c: Likewise.
32283
32284         tests: avoid compiler warnings
32285         * tests/test-fcntl.c (main): Delete unused parameters.
32286         * tests/test-freopen-safer.c (main): Likewise.
32287         * tests/test-xalloc-die.c (main): Mark unused parameters.
32288         * tests/test-fseeko.c (main): Likewise.
32289         * tests/test-ftello.c (main): Likewise.
32290         * tests/test-nanosleep.c (main): Avoid declaration warning.
32291         * tests/test-sleep.c (main): Likewise.
32292         * tests/test-unsetenv.c (main): Silence warning about string
32293         literal.
32294         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32295
32296 2009-12-23  Bruno Haible  <bruno@clisp.org>
32297
32298         * tests/test-localename.c (test_locale_name): New function, extracted
32299         from main. Also test mixed situations.
32300         (test_locale_name_posix, test_locale_name_environ,
32301         test_locale_name_default): New functions.
32302         (main): Invoke them all.
32303         * modules/localename-tests (configure.ac): Test for newlocale.
32304
32305 2009-12-23  Bruno Haible  <bruno@clisp.org>
32306
32307         unistd: Ensure getcwd gets declared before being overridden.
32308         * lib/unistd.in.h: Conditionally include <io.h>.
32309
32310 2009-12-22  Bruno Haible  <bruno@clisp.org>
32311
32312         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32313         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32314         (gl_WCHAR_H): Invoke it.
32315         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32316         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32317         Reported by Karl Berry <karl@freefriends.org>.
32318
32319 2009-12-22  Eric Blake  <ebb9@byu.net>
32320
32321         math, unistd: avoid redundant includes
32322         * lib/math.in.h (isnan): No need to re-include <math.h>.
32323         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32324
32325         getsubopt: work around cygwin bug
32326         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32327         avoid conflicting with system getsubopt.
32328         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32329         bug.
32330
32331         getopt: synchronize from glibc
32332         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32333         parameter order.  Adjust all callers.
32334         (_getopt_internal_r, main): Adjust quoting in error messages.
32335         Drop considerations for outdated POSIX 1003.2 error message.
32336         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32337         callers.
32338         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32339
32340         test-getopt: test stderr behavior
32341         * modules/getopt-posix-tests (Depends-on): Add dup2.
32342         * tests/test-getopt.c (ASSERT): Avoid stderr.
32343         (main): Move stderr to a temporary file.
32344         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32345         Instead, add parameter to inform caller if output occurred.
32346         (test_getopt): Adjust all existing tests to expect silence, and
32347         add new tests of leading ":".
32348         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32349         glibc shortcomings with leading "-:" or "+:" in optstring.
32350         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32351         Likewise.
32352         * doc/posix-functions/getopt.texi (getopt): Likewise.
32353
32354         test-getopt: enhance test
32355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32356         supports optind=0.
32357         * tests/test-getopt.c (OPTIND_MIN): Move...
32358         * tests/test-getopt.h (OPTIND_MIN): ...here.
32359         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32360         Require that optind=0 works, since modern BSD supports it in
32361         addition to optreset, and since coreutils expects it.
32362         (test_getopt_long_only): New test.
32363         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32364         glibc shortcomings with 'W;', and enforcement of optind=0.
32365         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32366         Likewise.
32367
32368 2009-12-21  Bruno Haible  <bruno@clisp.org>
32369
32370         localename: Improvements for MacOS X and Cygwin.
32371         * lib/localename.h (gl_locale_name_environ): New declaration.
32372         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32373         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32374         (gl_locale_name_posix): Invoke it.
32375         (gl_locale_name_default): Add comments. Use Windows native API also on
32376         Cygwin.
32377
32378 2009-12-21  Bruno Haible  <bruno@clisp.org>
32379
32380         Update list of Win32 locale ids.
32381         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32382         (LANG_SAMI): Renamed from LANG_SAAMI.
32383         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32384         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32385         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32386         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32387         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32388         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32389         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32390         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32391         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32392         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32393         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32394         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32395         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32396         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32397         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32398         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32399         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32400         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32401         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32402         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32403         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32404         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32405         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32406         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32407         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32408         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32409         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32410         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32411         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32412         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32413         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32414         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32415         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32416         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32417         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32418         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32419         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32420         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32421         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32422         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32423         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32424         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32425         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32426         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32427         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32428         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32429         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32430         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32431         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32432         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32433         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32434         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32435         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32436         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32437         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32438         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32439         Add more languages and countries for Sami, Sorbian. Add more countries
32440         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32441         for Pashto. Change country for Syriac, Tswana.
32442
32443 2009-12-21  Eric Blake  <ebb9@byu.net>
32444
32445         test-utimens: avoid spurious failure
32446         * tests/test-chown.h (nap): Factor...
32447         * tests/nap.h: ...into new file.
32448         * tests/test-lchown.h (nap): Avoid duplication.
32449         * tests/test-utimens-common.h (nap): Use shared implementation,
32450         necessary on file systems with 1-second resolution.
32451         * modules/chown-tests (Files): Include new file.
32452         * modules/fdutimensat-tests (Files): Likewise.
32453         * modules/futimens-tests (Files): Likewise.
32454         * modules/lchown-tests (Files): Likewise.
32455         * modules/openat-tests (Files): Likewise.
32456         * modules/utimens-tests (Files): Likewise.
32457         * modules/utimensat-tests (Files): Likewise.
32458
32459 2009-12-19  Eric Blake  <ebb9@byu.net>
32460
32461         futimens, utimensat: work around Linux bug
32462         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32463         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32464         * lib/utimensat.c (rpl_utimensat): Work around it.
32465         * lib/futimens.c (rpl_futimens): Adjust comment.
32466
32467         utimens: work around Linux ctime bug
32468         * lib/utimens.c (detect_ctime_bug): New helper function.
32469         (update_timespec): Differentiate between workaround needed for
32470         this bug vs. what is needed for systems that lack utimensat.
32471         (fdutimens, lutimens): Work around bug.
32472
32473         utimens: check for ctime update
32474         * tests/test-utimens-common.h (check_ctime): Define.
32475         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32476         * tests/test-futimens.h (test_futimens): Likewise.
32477         * tests/test-lutimens.h (test_lutimens): Likewise.
32478         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32479         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32480
32481 2009-12-19  Bruno Haible  <bruno@clisp.org>
32482
32483         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32484         * tests/test-dprintf-posix2.sh: New file.
32485         * tests/test-dprintf-posix2.c: New file.
32486         * modules/dprintf-posix-tests (Files): Add them.
32487         (configure.ac): Check for getrlimit and setrlimit.
32488         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32489
32490 2009-12-19  Bruno Haible  <bruno@clisp.org>
32491
32492         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32493         * tests/test-fprintf-posix3.sh: New file.
32494         * tests/test-fprintf-posix3.c: New file.
32495         * modules/fprintf-posix-tests (Files): Add them.
32496         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32497
32498 2009-12-19  Eric Blake  <ebb9@byu.net>
32499
32500         dirfd: fix prototype
32501         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32502         * lib/dirfd.c (dirfd): Likewise.
32503
32504         canonicalize: reduce memory usage
32505         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32506         allocation to size.
32507         Reported by Solar Designer <solar@openwall.com>.
32508
32509 2009-12-19  Bruno Haible  <bruno@clisp.org>
32510
32511         New module attribute 'Applicability'.
32512         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32513         * gnulib-tool: New option --extract-applicability.
32514         (func_usage): Document it.
32515         (sed_extract_prog): Recognize it.
32516         (func_get_applicability): New function.
32517         (func_import): Generalize handling of 'link-warning' module.
32518         * modules/link-warning (Applicability): New section.
32519         * modules/arg-nonnull (Applicability): New section.
32520         Repoted by Simon Josefsson <simon@josefsson.org>.
32521
32522 2009-12-19  Bruno Haible  <bruno@clisp.org>
32523
32524         fflush: tweak
32525         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32526         * lib/fseeko.c (rpl_fseeko): Likewise.
32527
32528 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32529
32530         * lib/gl_list.h: Fix typo in comment.
32531
32532 2009-12-16  Eric Blake  <ebb9@byu.net>
32533
32534         fcntl: use to simplify other modules
32535         * modules/cloexec (Depends-on): Add fcntl.
32536         * modules/fchdir (Depends-on): Likewise.
32537         * modules/fd-safer-flag (Depends-on): Likewise.
32538         * modules/unistd-safer (Depends-on): Likewise.
32539         * modules/dup3 (configure.ac): Set module indicator.
32540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32541         missing.
32542         * lib/fchdir.c (_gl_register_dup): Fix comment.
32543         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32544         * lib/dup-safer.c (dup_safer): Likewise.
32545         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32546         * lib/dup3.c (dup3): Likewise.
32547         * tests/test-fchdir.c (main): Enhance test.
32548         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32549
32550         fcntl: port portions of fcntl to mingw
32551         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32552         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32553         replacement for mingw.
32554         * modules/fcntl (Description): Update.
32555         (Depends-on): Add dup2.
32556         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32557         * modules/fcntl-h (Makefile.am): Substitute it.
32558         * lib/fcntl.in.h (fcntl): Update declaration.
32559         (F_DUPFD, F_GETFD): New macros, when needed.
32560         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32561         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32562         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32563         we now guarantee.
32564
32565         fcntl: work around cygwin bug in F_DUPFD
32566         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32567         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32568         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32569         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32570         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32571
32572         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32573         * modules/fcntl (Files): List new files.
32574         (configure.ac): Run a test.
32575         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32576         * lib/fcntl.c (rpl_fcntl): Likewise.
32577         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32578         (gl_FCNTL_H): Always replace fcntl.h.
32579         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32580         * lib/fcntl.in.h (fcntl): Declare replacement.
32581         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32582         needed, plus a witness.
32583         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32584         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32585         * tests/test-fcntl.c: New file.
32586         * modules/fcntl-tests: Likewise.
32587
32588         binary-io: avoid potential compilation warning
32589         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32590         directives.
32591
32592         fflush: avoid compilation error on NetBSD
32593         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32594         between off_t and fpos_t, since the latter is sometimes a struct.
32595         * lib/fseeko.c (rpl_fseeko): Likewise.
32596         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32597
32598 2009-12-15  Eric Blake  <ebb9@byu.net>
32599
32600         fcntl-h, stdio, sys_ioctl: fix declarations
32601         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32602         function must not take arguments.
32603         * lib/sys_ioctl.in.h (ioctl): Likewise.
32604         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32605         (open): Add a link warning.
32606
32607 2009-12-15  Jim Meyering  <meyering@redhat.com>
32608
32609         areadlink, areadlink-with-size: relax license to LGPLv2+
32610         * modules/areadlink (License): Relax to LGPLv2+.
32611         * modules/areadlink-with-size (License): Likewise.
32612
32613 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32614             Bruno Haible  <bruno@clisp.org>
32615
32616         *printf: Fix memory leak.
32617         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32618         * lib/vfprintf.c (vfprintf): Likewise.
32619         * lib/dprintf.c (dprintf): Likewise.
32620         * lib/vdprintf.c (vdprintf): Likewise.
32621
32622 2009-12-14  Eric Blake  <ebb9@byu.net>
32623
32624         accept4: adjust module dependencies
32625         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32626
32627         utimens: one more try at avoiding compiler warning
32628         * lib/utimens.c (lutimens): Lower scope of result.
32629
32630 2009-12-13  Bruno Haible  <bruno@clisp.org>
32631
32632         Move the malloc checking from module 'list' to new module 'xlist'.
32633         * modules/xlist: New file.
32634         * lib/gl_xlist.h: New file.
32635         * lib/gl_xlist.c: New file.
32636         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32637         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32638         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32639         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32640         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32641         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32642         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32643         gl_sortedlist_nx_add): New declarations.
32644         (struct gl_list_implementation): Rename and change methods accordingly.
32645         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32646         (gl_list_nx_create): Renamed from gl_list_create.
32647         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32648         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32649         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32650         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32651         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32652         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32653         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32654         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32655         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32656         gl_list_create_empty.
32657         (gl_list_nx_create): Renamed from gl_list_create.
32658         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32659         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32660         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32661         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32662         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32663         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32664         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32665         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32666         * lib/gl_array_list.c: Don't include xalloc.h.
32667         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32668         NULL upon out-of-memory.
32669         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32670         out-of-memory.
32671         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32672         Change return type to 'int'.
32673         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32674         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32675         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32676         upon out-of-memory.
32677         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32678         upon out-of-memory.
32679         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32680         upon out-of-memory.
32681         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32682         upon out-of-memory.
32683         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32684         out-of-memory.
32685         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32686         Update.
32687         (gl_array_list_implementation): Update.
32688         * lib/gl_carray_list.c: Don't include xalloc.h.
32689         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32690         Return NULL upon out-of-memory.
32691         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32692         out-of-memory.
32693         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32694         Change return type to 'int'.
32695         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32696         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32697         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32698         upon out-of-memory.
32699         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32700         upon out-of-memory.
32701         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32702         out-of-memory.
32703         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32704         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32705         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32706         Update.
32707         (gl_carray_list_implementation): Update.
32708         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32709         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32710         gl_linked_create_empty. Return NULL upon out-of-memory.
32711         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32712         out-of-memory.
32713         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32714         Change return type to 'int'. Return -1 upon out-of-memory.
32715         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32716         out-of-memory.
32717         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32718         upon out-of-memory.
32719         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32720         upon out-of-memory.
32721         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32722         NULL upon out-of-memory.
32723         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32724         upon out-of-memory.
32725         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32726         out-of-memory.
32727         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32728         Update.
32729         * lib/gl_linked_list.c: Don't include xalloc.h.
32730         (gl_linked_list_implementation): Update.
32731         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32732         (add_to_bucket): Change return type to 'int'.
32733         (gl_linkedhash_list_implementation): Update.
32734         * lib/gl_anytree_list1.h (free_subtree): New function.
32735         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32736         gl_tree_create_empty. Return NULL upon out-of-memory.
32737         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32738         Change return type to 'int'. Return -1 upon out-of-memory.
32739         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32740         out-of-memory.
32741         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32742         (gl_tree_remove_node): New function, moved here from
32743         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32744         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32745         Update.
32746         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32747         malloc, not xmalloc. Return NULL upon out-of-memory.
32748         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32749         out-of-memory.
32750         (gl_tree_remove_node_from_tree): New function, extracted from
32751         gl_tree_remove_node.
32752         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32753         upon out-of-memory.
32754         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32755         out-of-memory.
32756         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32757         upon out-of-memory.
32758         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32759         upon out-of-memory.
32760         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32761         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32762         not xmalloc. Return NULL upon out-of-memory.
32763         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32764         out-of-memory.
32765         (gl_tree_remove_node_from_tree): New function, extracted from
32766         gl_tree_remove_node.
32767         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32768         upon out-of-memory.
32769         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32770         out-of-memory.
32771         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32772         upon out-of-memory.
32773         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32774         upon out-of-memory.
32775         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32776         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32777         gl_anytree_list1.h before gl_anyavltree_list2.h.
32778         (gl_avltree_list_implementation): Update.
32779         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32780         gl_anytree_list1.h before gl_anyavltree_list2.h.
32781         (gl_rbtree_list_implementation): Update.
32782         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32783         Change return type to 'int'. Return -1 upon out-of-memory. Use
32784         __builtin_expect.
32785         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32786         (gl_avltreehash_list_implementation): Update.
32787         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32788         (gl_rbtreehash_list_implementation): Update.
32789         * modules/array-list (Depends-on): Remove xalloc.
32790         * modules/carray-list (Depends-on): Likewise.
32791         * modules/linked-list (Depends-on): Likewise.
32792         * modules/linkedhash-list (Depends-on): Likewise.
32793         * modules/avltree-list (Depends-on): Likewise.
32794         * modules/rbtree-list (Depends-on): Likewise.
32795         * modules/avltreehash-list (Depends-on): Likewise.
32796         * modules/rbtreehash-list (Depends-on): Likewise.
32797
32798         * modules/xsublist: New file.
32799         * lib/gl_xsublist.h: New file.
32800         * lib/gl_xsublist.c: New file.
32801         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32802         (gl_sublist_nx_create): New declaration.
32803         * lib/gl_sublist.c: Don't include xalloc.h.
32804         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32805         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32806         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32807         Change return type to 'int'. Return -1 upon out-of-memory.
32808         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32809         upon out-of-memory.
32810         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32811         NULL upon out-of-memory.
32812         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32813         upon out-of-memory.
32814         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32815         NULL upon out-of-memory.
32816         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32817         NULL upon out-of-memory.
32818         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32819         upon out-of-memory.
32820         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32821         (gl_sublist_list_implementation): Update.
32822         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32823         upon out-of-memory.
32824         * modules/sublist (Depends-on): Remove xalloc.
32825
32826         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32827         * tests/test-carray_list.c: Likewise.
32828         * tests/test-linked_list.c: Likewise.
32829         * tests/test-linkedhash_list.c: Likewise.
32830         * tests/test-avltree_list.c: Likewise.
32831         * tests/test-rbtree_list.c: Likewise.
32832         * tests/test-avltreehash_list.c: Likewise.
32833         * tests/test-rbtreehash_list.c: Likewise.
32834         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32835         * modules/carray-list-tests (Makefile.am): Likewise.
32836         * modules/linked-list-tests (Makefile.am): Likewise.
32837         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32838         * modules/avltree-list-tests (Makefile.am): Likewise.
32839         * modules/rbtree-list-tests (Makefile.am): Likewise.
32840         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32841         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32842
32843         * NEWS: Mention the changes.
32844
32845         * lib/clean-temp.c: Include gl_xlist.h.
32846         * modules/clean-temp (Depends-on): Add xlist.
32847
32848         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32849         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32850
32851         * tests/test-array_oset.c: Include gl_xlist.h.
32852         * modules/array-oset-tests (Depends-on): Add xlist.
32853
32854         Reported by José E. Marchesi <jemarch@gnu.org>.
32855
32856 2009-12-13  Bruno Haible  <bruno@clisp.org>
32857
32858         Move the malloc checking from module 'oset' to new module 'xoset'.
32859         * modules/xoset: New file.
32860         * lib/gl_xoset.h: New file.
32861         * lib/gl_xoset.c: New file.
32862         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32863         declarations.
32864         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32865         (struct gl_oset_implementation): Rename and change methods accordingly.
32866         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32867         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32868         'int'. Mark as __warn_unused_result__.
32869         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32870         gl_oset_create_empty.
32871         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32872         'int'.
32873         * lib/gl_array_oset.c: Don't include xalloc.h.
32874         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32875         malloc, not xmalloc.
32876         (grow): Change return type to 'int'. Don't call xalloc_die.
32877         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32878         to 'int'.
32879         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32880         'int'.
32881         (gl_array_oset_implementation): Update.
32882         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32883         gl_tree_create_empty.
32884         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32885         'int'.
32886         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32887         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32888         xmalloc.
32889         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32890         not xmalloc.
32891         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32892         xmalloc.
32893         (gl_avltree_oset_implementation): Update.
32894         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32895         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32896         xmalloc.
32897         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32898         not xmalloc.
32899         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32900         xmalloc.
32901         (gl_rbtree_oset_implementation): Update.
32902         * modules/array-oset (Depends-on): Remove xalloc.
32903         * modules/avltree-oset (Depends-on): Likewise.
32904         * modules/rbtree-oset (Depends-on): Likewise.
32905         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32906         * tests/test-avltree_oset.c: Likewise.
32907         * tests/test-rbtree_oset.c: Likewise.
32908         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32909         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32910         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32911         * NEWS: Mention the change.
32912
32913 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32914
32915         maint.mk: allow a project to override release-prep commands
32916         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32917         commands into a new rule.
32918         (release-prep): New rule.
32919         (release-prep-hook): New overridable variable.
32920
32921 2009-12-13  Bruno Haible  <bruno@clisp.org>
32922
32923         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32924
32925 2009-12-13  Jim Meyering  <meyering@redhat.com>
32926
32927         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32928         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32929
32930 2009-12-12  Bruno Haible  <bruno@clisp.org>
32931
32932         duplocale: Tweak.
32933         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32934
32935 2009-12-12  Karl Berry  <karl@gnu.org>
32936
32937         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32938
32939 2009-12-12  Bruno Haible  <bruno@clisp.org>
32940
32941         * m4/po.m4: Undo incorrect untabification.
32942
32943 2009-12-12  Bruno Haible  <bruno@clisp.org>
32944
32945         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32946         * modules/c-strtod (Depends-on): Add locale.
32947         * modules/c-strtold (Depends-on): Likewise.
32948
32949 2009-12-12  Bruno Haible  <bruno@clisp.org>
32950
32951         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32952
32953 2009-12-11  Eric Blake  <ebb9@byu.net>
32954
32955         setenv: relax requirement in light of POSIX ruling
32956         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32957         not NULL.
32958         * tests/test-setenv.c (main): Relax test.
32959         * tests/test-unsetenv.c (main): Likewise.
32960         * doc/posix-functions/setenv.texi (setenv): Document this.
32961         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32962
32963 2009-12-11  Bruno Haible  <bruno@clisp.org>
32964
32965         New module 'fd-safer-flag'.
32966         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32967         * lib/dup-safer.c (dup_safer_flag): Remove function.
32968         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32969         * lib/fd-safer.c (fd_safer_flag): Remove function.
32970         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32971         * modules/cloexec (configure.ac): Drop indicator macro.
32972         * modules/fd-safer-flag: New file.
32973         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32974         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32975         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32976
32977 2009-12-11  Bruno Haible  <bruno@clisp.org>
32978
32979         Tests for module 'nl_langinfo'.
32980         * modules/nl_langinfo-tests: New file.
32981         * tests/test-nl_langinfo.sh: New file.
32982         * tests/test-nl_langinfo.c: New file.
32983
32984         New module 'nl_langinfo'.
32985         * lib/nl_langinfo.c: New file.
32986         * m4/nl_langinfo.m4: New file.
32987         * modules/nl_langinfo: New file.
32988         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32989
32990 2009-12-11  Bruno Haible  <bruno@clisp.org>
32991
32992         Tests for module 'langinfo'.
32993         * modules/langinfo-tests: New file.
32994         * tests/test-langinfo.c: New file.
32995
32996         New module 'langinfo'.
32997         * lib/langinfo.in.h: New file.
32998         * m4/langinfo_h.m4: New file.
32999         * modules/langinfo: New file.
33000         * doc/posix-headers/langinfo.texi: Mention the new module.
33001
33002 2009-12-11  Bruno Haible  <bruno@clisp.org>
33003
33004         * lib/config.charset: Untabify.
33005
33006 2009-12-11  Bruno Haible  <bruno@clisp.org>
33007
33008         * modules/unistd-safer (configure.ac): Drop indicator macro.
33009
33010 2009-12-11  Bruno Haible  <bruno@clisp.org>
33011
33012         Move pipe2-safer code to its own file.
33013         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33014         * lib/pipe-safer.c (pipe2_safer): Remove function.
33015         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33016         (Makefile.am): Add it to lib_SOURCES.
33017
33018 2009-12-10  Bruno Haible  <bruno@clisp.org>
33019
33020         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33021
33022 2009-12-10  Bruno Haible  <bruno@clisp.org>
33023
33024         Declare which arguments expect non-NULL values, for GCC and clang.
33025         * build-aux/arg-nonnull.h: New file.
33026         * modules/arg-nonnull: New file.
33027         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33028         (inet_ntop, inet_pton): Use it.
33029         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33030         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33031         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33032         (open, openat): Use it.
33033         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33034         (fnmatch): Use it.
33035         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33036         (getopt, getopt_long, getopt_long_only): Use it.
33037         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33038         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33039         Use it.
33040         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33041         (iconv_open): Use it.
33042         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33043         (strtoimax, strtoumax): Use it.
33044         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33045         (duplocale): Use it.
33046         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33047         (frexp, frexpl): Use it.
33048         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33049         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33050         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33051         (tsearch, tfind, tdelete, twalk): Use it.
33052         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33053         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33054         sigpending): Use it.
33055         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33056         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33057         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33058         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33059         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33060         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33061         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33062         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33063         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33064         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33065         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33066         Use it.
33067         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33068         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33069         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33070         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33071         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33072         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33073         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33074         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33075         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33076         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33077         strtoull, unsetenv): Use it.
33078         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33079         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33080         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33081         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33082         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33083         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33084         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33085         (strcasecmp, strncasecmp): Use it.
33086         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33087         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33088         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33089         rpl_setsockopt): Use it.
33090         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33091         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33092         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33093         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33094         (gettimeofday): Use it.
33095         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33096         (times): Use it.
33097         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33098         (uname): Use it.
33099         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33100         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33101         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33102         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33103         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33104         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33105         unlinkat, write): Use it.
33106         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33107         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33108         * lib/argv-iter.h: Include arg-nonnull.h.
33109         (_ATTRIBUTE_NONNULL_): Remove macro.
33110         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33111         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33112         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33113         optimization.
33114         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33115         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33116         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33117         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33118         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33119         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33120         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33121         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33122         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33123         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33124         * modules/dirent (Depends-on): Add arg-nonnull.
33125         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33126         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33127         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33128         * modules/fnmatch (Depends-on): Add arg-nonnull.
33129         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33130         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33131         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33132         * modules/glob (Depends-on): Add arg-nonnull.
33133         (Makefile.am): Insert arg-nonnull.h into glob.h.
33134         * modules/iconv_open (Depends-on): Add arg-nonnull.
33135         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33136         * modules/inttypes (Depends-on): Add arg-nonnull.
33137         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33138         * modules/locale (Depends-on): Add arg-nonnull.
33139         (Makefile.am): Insert arg-nonnull.h into locale.h.
33140         * modules/math (Depends-on): Add arg-nonnull.
33141         (Makefile.am): Insert arg-nonnull.h into math.h.
33142         * modules/netdb (Depends-on): Add arg-nonnull.
33143         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33144         * modules/search (Depends-on): Add arg-nonnull.
33145         (Makefile.am): Insert arg-nonnull.h into search.h.
33146         * modules/signal (Depends-on): Add arg-nonnull.
33147         (Makefile.am): Insert arg-nonnull.h into signal.h.
33148         * modules/spawn (Depends-on): Add arg-nonnull.
33149         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33150         * modules/stdio (Depends-on): Add arg-nonnull.
33151         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33152         * modules/stdlib (Depends-on): Add arg-nonnull.
33153         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33154         * modules/string (Depends-on): Add arg-nonnull.
33155         (Makefile.am): Insert arg-nonnull.h into string.h.
33156         * modules/strings (Depends-on): Add arg-nonnull.
33157         (Makefile.am): Insert arg-nonnull.h into strings.h.
33158         * modules/sys_socket (Depends-on): Add arg-nonnull.
33159         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33160         * modules/sys_stat (Depends-on): Add arg-nonnull.
33161         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33162         * modules/sys_time (Depends-on): Add arg-nonnull.
33163         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33164         * modules/sys_times (Depends-on): Add arg-nonnull.
33165         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33166         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33167         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33168         * modules/time (Depends-on): Add arg-nonnull.
33169         (Makefile.am): Insert arg-nonnull.h into time.h.
33170         * modules/unistd (Depends-on): Add arg-nonnull.
33171         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33172         * modules/wchar (Depends-on): Add arg-nonnull.
33173         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33174         * modules/argv-iter (Depends-on): Add arg-nonnull.
33175         * tests/test-canonicalize.c (null_ptr): New function.
33176         (main): Use it.
33177         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33178         (main): Use it.
33179         * tests/test-memmem.c (null_ptr): New function.
33180         (main): Use it.
33181         Reported by Jim Meyering.
33182
33183 2009-12-10  Bruno Haible  <bruno@clisp.org>
33184
33185         Use spaces for indentation, not tabs.
33186         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33187         * m4/*.m4: Untabify.
33188         * build-aux/*.h: Untabify.
33189         * tests/**/*.[hc]: Untabify.
33190         * README: New section "Indent with spaces, not TABs", based on
33191         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33192         * NEWS: Mention the change.
33193
33194 2009-12-10  Bruno Haible  <bruno@clisp.org>
33195
33196         pty test: Fix link error.
33197         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33198         test_pty_LDADD.
33199
33200 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33201
33202         * modules/pty: New file.
33203         * modules/pty-tests: New file.
33204         * m4/pty.m4: New file.
33205         * tests/test-pty.c: New file.
33206         * doc/glibc-headers/pty.texi: Modified.
33207         * doc/glibc-functions/forkpty.texi: Modified.
33208         * doc/glibc-functions/openpty.texi: Modified.
33209
33210 2009-12-10  Bruno Haible  <bruno@clisp.org>
33211
33212         Avoid syntax error in C++ mode.
33213         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33214
33215 2009-12-10  Bruno Haible  <bruno@clisp.org>
33216
33217         Use sed with option -e.
33218         * gnulib-tool (func_version, func_emit_copyright_notice,
33219         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33220         option -e to sed.
33221         * modules/link-warning (Makefile.am): Likewise.
33222
33223 2009-12-10  Jim Meyering  <meyering@redhat.com>
33224
33225         mgetgroups: do not write bytes beyond end of malloc'd buffer
33226         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33227         username, we call getgroups with a one-element-shorter buffer,
33228         but still told it the length was original, max_n_groups.
33229
33230 2009-12-09  Eric Blake  <ebb9@byu.net>
33231
33232         cloexec: relax license
33233         * modules/cloexec (Maintainer): Add myself.
33234         (License): Use LGPL, not GPL.
33235
33236         link-warning: optimize generation
33237         * modules/link-warning (Makefile.am): Reduce process usage.
33238
33239 2009-12-09  Bruno Haible  <bruno@clisp.org>
33240
33241         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33242         workaround was added on 2009-11-17.
33243
33244 2009-12-09  Jim Meyering  <meyering@redhat.com>
33245             Bruno Haible  <bruno@clisp.org>
33246
33247         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33248         * modules/link-warning (Makefile.am): Make the comment-removing sed
33249         command more robust in the face of bootstrap-prepended comment lines.
33250
33251 2009-12-09  Bruno Haible  <bruno@clisp.org>
33252
33253         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33254         most one group.
33255
33256 2009-12-09  Simon Josefsson <simon@josefsson.org>
33257             Bruno Haible  <bruno@clisp.org>
33258
33259         * build-aux/link-warning.h: Add copyright notice.
33260         * modules/link-warning (Makefile.am): Generate link-warning.h from
33261         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33262         * NEWS: Mention change in link-warning module.
33263         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33264         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33265         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33266         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33267         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33268         * modules/math (Makefile.am): Add dependency to math.h.
33269         * modules/search (Makefile.am): Add dependency to search.h.
33270         * modules/signal (Makefile.am): Add dependency to signal.h.
33271         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33272         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33273         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33274         * modules/string (Makefile.am): Add dependency to string.h.
33275         * modules/strings (Makefile.am): Add dependency to strings.h.
33276         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33277         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33278         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33279         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33280         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33281         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33282         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33283         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33284         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33285
33286 2009-12-09  Bruno Haible  <bruno@clisp.org>
33287
33288         fchdir: Optimize away rpl_fstat when possible.
33289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33290         REPLACE_OPEN_DIRECTORY.
33291         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33292
33293 2009-12-09  Bruno Haible  <bruno@clisp.org>
33294
33295         * lib/fchdir.c: Update comment.
33296
33297 2009-12-09  Bruno Haible  <bruno@clisp.org>
33298
33299         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33300
33301 2009-12-08  Eric Blake  <ebb9@byu.net>
33302
33303         fchdir: avoid memory leak on re-registration.
33304         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33305
33306 2009-12-08  Jim Meyering  <meyering@redhat.com>
33307
33308         init.sh: avoid Solaris 10 /bin/sh portability problem
33309         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33310         sourced script:
33311           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33312           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33313           bar
33314         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33315         and two tests used that idiom.
33316         * tests/init.sh: Update suggested usage comments.
33317         (path_prepend_): New function, to be used in place
33318         of the --src-path=DIR option.
33319         (setup_): Move PATH-prepending code into path_prepend_.
33320         * tests/test-pread.sh: Adapt to new usage.
33321         * tests/test-xalloc-die.sh: Likewise.
33322
33323 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33324
33325         * doc/gnulib.texi (Glibc pty.h): Add.
33326         * doc/glibc-functions/forkpty.texi: Add.
33327         * doc/glibc-functions/openpty.texi: Add.
33328         Suggested by Bruno Haible.
33329
33330 2009-12-08  Eric Blake  <ebb9@byu.net>
33331
33332         fchdir: fix logic bugs
33333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33334         * tests/test-fchdir.c (main): Enhance test.
33335         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33336         is in use.
33337
33338         dup2: fix logic bugs
33339         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33340         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33341         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33342         exists.
33343         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33344
33345 2009-12-07  Eric Blake  <ebb9@byu.net>
33346
33347         unlink: fix m4 detection
33348         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33349
33350         unistd-safer: add unit test
33351         * modules/unistd-safer-tests: New file.
33352         * tests/test-dup-safer.c: Likewise.
33353         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33354         * tests/test-dup2.c (setmode): Likewise.
33355         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33356
33357         cloexec: preserve text vs. binary across dup_cloexec
33358         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33359         mode.
33360         * modules/dup2-tests (Depends-on): Add binary-io.
33361         * modules/cloexec-tests (Depends-on): Likewise.
33362         * tests/test-dup2.c (setmode, is_mode): New helpers.
33363         (main): Add tests that translation mode is preserved.
33364         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33365         Reported by Bruno Haible.
33366
33367         mgetgroups: reduce duplicate listings
33368         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33369         resulting array.
33370         * tests/test-chown.h (test_chown): Simplify client.
33371         * tests/test-lchown.h (test_lchown): Likewise.
33372
33373 2009-12-06  Bruno Haible  <bruno@clisp.org>
33374
33375         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33376         value.
33377
33378 2009-12-06  Bruno Haible  <bruno@clisp.org>
33379
33380         * lib/progname.c: Include stdio.h, stdlib.h.
33381         (set_program_name): Reject a NULL argument.
33382
33383 2009-12-05  Eric Blake  <ebb9@byu.net>
33384
33385         pipe2-safer: new module
33386         * modules/pipe2-safer: New file.
33387         * lib/unistd-safer.h (pipe2_safer): New prototype.
33388         * lib/unistd--.h (pipe2): New wrapper.
33389         * lib/pipe-safer.c (pipe2_safer): New function.
33390         * modules/pipe (Depends-on): Add pipe2-safer.
33391         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33392
33393         stdlib-safer: preserve cloexec flag for mkostemp[s]
33394         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33395         fd_safer_flag.
33396
33397         unistd-safer: allow preservation of cloexec status via flag
33398         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33399         prototypes.
33400         * lib/dup-safer.c (dup_safer_flag): New function.
33401         * lib/fd-safer.c (fd_safer_flag): Likewise.
33402         * modules/cloexec (configure.ac): Set witness.
33403
33404         test-dup2: enhance test
33405         * modules/dup2-tests (Depends-on): Add cloexec.
33406         * tests/test-dup2.c (main): Enhance test.
33407
33408         cloexec: add dup_cloexec
33409         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33410         header and comments.
33411         * lib/cloexec.c (set_cloexec_flag): Add comments.
33412         (dup_cloexec): New function, with mingw implementation borrowed
33413         from...
33414         * lib/w32spawn.h (dup_noinherit): ...here.
33415         * modules/execute (Depends-on): Add cloexec.
33416         * modules/pipe (Depends-on): Likewise.
33417         * modules/cloexec (Depends-on): Add dup2.
33418         * modules/cloexec-tests (Files): New file.
33419         * tests/test-cloexec.c: Likewise.
33420
33421         test-xalloc-die: fix test for mingw
33422         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33423         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33424         directory and .exe suffix off argv[0] output.
33425
33426         test-fseeko: fix test for mingw
33427         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33428         than undefining fseek, so test will pass on mingw.
33429
33430 2009-12-05  Bruno Haible  <bruno@clisp.org>
33431
33432         * lib/progname.h (set_program_name): Clarify specification.
33433         * lib/progname.c (set_program_name): Likewise.
33434         Reported by Jim Meyering.
33435
33436 2009-12-05  Jim Meyering  <meyering@redhat.com>
33437
33438         maint.mk: backslash-escape parens in default regexp
33439         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33440         backslash-escape the literal parentheses.
33441
33442         maint.mk: news-date-check: use grep -E
33443         * top/maint.mk (today): Define a Make variable, not a...
33444         (news-date-check): ...shell variable.
33445         (news-date-regexp): Use the Make variable.
33446         Use grep's -E option.  Change the failing diagnostic to mention
33447         the variable, $(news-date-regexp).
33448
33449 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33450
33451         maintainer-makefile: allow customization of NEWS entry format
33452         * top/maint.mk (news-date-regexp): New overridable variable.
33453         (news-date-check): Use it.
33454
33455 2009-12-04  Eric Blake  <ebb9@byu.net>
33456
33457         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33458         * lib/mgetgroups.h (xgetgroups): New prototype.
33459         * lib/mgetgroups.c (xgetgroups): New wrapper.
33460         (mgetgroups): Handle ENOSYS.
33461         * modules/mgetgroups (Depends-on): Add realloc.
33462         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33463
33464         mgetgroups: avoid argument promotion issues with -1
33465         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33466         for invalid gid_t.
33467         * tests/test-chown.h (getegid, test_chown): Likewise.
33468         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33469
33470 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33471
33472         exclude: Fix header file problems.
33473         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33474
33475 2009-12-01  Jim Meyering  <meyering@redhat.com>
33476
33477         fts: fts_open: do not let an empty string cause immediate failure
33478         This is required in support of GNU rm, for which the command
33479         "rm A '' B" must process and remove both A and B, in spite of
33480         the empty string argument.
33481         * lib/fts.c (fts_open): Do not let the presence of an empty string
33482         cause fts_open to fail immediately.  Most fts-using tools must be
33483         able to process all arguments, in order, and can be expected to
33484         diagnose such arguments themselves.
33485
33486 2009-11-30  Eric Blake  <ebb9@byu.net>
33487
33488         utimens: fix compilation error
33489         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33490         Declare variable at right scope.
33491
33492 2009-11-29  Jim Meyering  <meyering@redhat.com>
33493
33494         bootstrap: handle perl-5.11's changed --version output
33495         * build-aux/bootstrap (get_version): Handle perl separately,
33496         since perl-5.11's --version output is different.
33497
33498 2009-11-28  Jim Meyering  <meyering@redhat.com>
33499
33500         userspec: depend on the inttostr module, too
33501         * modules/userspec (Depends-on): Add inttostr.
33502
33503         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33504         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33505         number of MAXUID when it evaluates to (uid_t) -1.
33506         Likewise for group ID.  Reported by Matt McCutchen in
33507         <http://savannah.gnu.org/bugs/?28113>
33508
33509         userspec: reformat to use spaces, not TABs
33510         * lib/userspec.c: Expand TABs to spaces.
33511         Add Emacs' "indent-tabs-mode: nil" hint.
33512
33513 2009-11-27  Eric Blake  <ebb9@byu.net>
33514
33515         getopt-gnu: flush out another BSD bug
33516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33517         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33518         flush out BSD bug.
33519         * tests/test-getopt.h (test_getopt): End lists with NULL.
33520         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33521         (test_getopt_long_posix): Enhance test.
33522         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33523         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33524         getopt-gnu.
33525         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33526         Likewise.
33527
33528 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33529
33530         * modules/idpriv-droptemp-tests (Notice): Fix text.
33531
33532 2009-11-27  Jim Meyering  <meyering@redhat.com>
33533
33534         test-xalloc-die: avoid spurious failure due to libtool argv difference
33535         In a libtool-enabled project, this test would fail due to a difference
33536         in the emitted program name, e.g.,
33537         -test-xalloc-die: memory exhausted
33538         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33539         Use program to avoid that.
33540         * modules/xalloc-die-tests (Depends-on): Add progname.
33541         * tests/test-xalloc-die.c: Include progname.h".
33542         (program_name): Remove decl.
33543         (main): Call set_program_name.
33544         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33545
33546 2009-11-26  Richard Jones  <rjones@redhat.com>
33547
33548         w32sock: leave win32 error in place.
33549         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33550
33551 2009-11-26  Eric Blake  <ebb9@byu.net>
33552
33553         init.sh: suggest to use skip_ and fail_ functions in comments
33554         * tests/init.sh: Add a sentence.
33555
33556 2009-11-25  Bruno Haible  <bruno@clisp.org>
33557
33558         init.sh: add documentation in comments
33559         * tests/init.sh: Add some developer and user documentation.
33560
33561 2009-11-26  Jim Meyering  <meyering@redhat.com>
33562
33563         init.sh: accommodate even those who specify bogus srcdir manually
33564         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33565         configure-time tests to be sanitized, so that there is no need to
33566         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33567         (with no double quotes) suffices.  However, since tests may be
33568         invoked manually, and since you may explicitly set srcdir to the
33569         name of a directory containing spaces, do quote its uses here.
33570         * tests/test-pread.sh: Likewise.
33571         Suggested by Bruno Haible.
33572
33573         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33574         * tests/test-pread.sh: Write no data into the pipe, because
33575         test-pread actually reads none.  This avoids a diagnostic,
33576         "bash: echo: write error: Broken pipe", that arises in the unusual
33577         event something is ignoring SIGPIPE, and might be interpreted
33578         as some sort of failure.  Reported by Bruno Haible.
33579
33580 2009-11-25  Jim Meyering  <meyering@redhat.com>
33581
33582         test-pread: cover failure with ESPIPE and EINVAL
33583         * tests/test-pread.c (main): Test for failure, too.
33584         * tests/test-pread.sh: Invoke with stdin on a pipe.
33585         Suggested by Eric Blake.
33586
33587         pread: improvement and fix
33588         * modules/pread (Depends-on): Depend on lseek, for portability to
33589         e.g., mingw.  Suggested by Eric Blake.
33590         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33591
33592         unistd.in.h: correct declaration of pread
33593         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33594         Reported by Richard W.M. Jones.
33595
33596         test-pread.sh: distribute the test script
33597         * modules/pread-tests (Files): Include test-pread.sh.
33598
33599         test-pread.sh: clean up
33600         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33601         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33602         That is unnecessary, since it's always ".".
33603         Suggestion from Eric Blake.
33604
33605         test-pread.sh: make executable
33606         * tests/test-pread.sh: Set executable bit.
33607         Reported by Eric Blake.
33608
33609         correct typo in test-pread.sh
33610         * tests/test-pread.sh: Add #! line.
33611
33612         test pread
33613         * tests/test-pread.c: New file.
33614         * tests/test-pread.sh: Likewise.
33615         * modules/pread-tests: Likewise.
33616
33617         pread: new module
33618         * modules/pread: New file.
33619         * lib/unistd.in.h (pread): Define/declare.
33620         * lib/pread.c (pread): New file.
33621         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33622         * modules/unistd (Makefile.am): Substitute witnesses.
33623         * doc/posix-functions/pread.texi (pread): Update.
33624         * MODULES.html.sh: Add pread.
33625
33626 2009-11-25  Jim Meyering  <meyering@redhat.com>
33627
33628         tests/init.sh: new file to be used via most *.sh tests
33629         * tests/init.sh: New file.
33630
33631 2009-11-25  Eric Blake  <ebb9@byu.net>
33632
33633         utimens: work around older Linux failure with symlinks
33634         * lib/utimens.c (lutimensat_works_really): New variable.
33635         (fdutimens, lutimens): Use it to manage kernels that support
33636         nanosecond times on files, but not on symlinks.
33637         Reported by OndÅ™ej Vašík.
33638
33639         utimes: fix configure grammar
33640         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33641
33642 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33643
33644         regex: Fix fastmap for multibyte character ranges.
33645         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33646         characters when a multibyte character range is included.
33647
33648 2009-11-22  Andy Wingo  <wingo@pobox.com>
33649
33650         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33651         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33652
33653 2009-11-24  Bruno Haible  <bruno@clisp.org>
33654
33655         doc: Most *_l functions exist in MacOS X 10.5.
33656         * doc/posix-functions/duplocale.texi: Update platforms list.
33657         * doc/posix-functions/freelocale.texi: Likewise.
33658         * doc/posix-functions/newlocale.texi: Likewise.
33659         * doc/posix-functions/uselocale.texi: Likewise.
33660         * doc/posix-functions/isalnum_l.texi: Likewise.
33661         * doc/posix-functions/isalpha_l.texi: Likewise.
33662         * doc/posix-functions/isblank_l.texi: Likewise.
33663         * doc/posix-functions/iscntrl_l.texi: Likewise.
33664         * doc/posix-functions/isdigit_l.texi: Likewise.
33665         * doc/posix-functions/isgraph_l.texi: Likewise.
33666         * doc/posix-functions/islower_l.texi: Likewise.
33667         * doc/posix-functions/isprint_l.texi: Likewise.
33668         * doc/posix-functions/ispunct_l.texi: Likewise.
33669         * doc/posix-functions/isspace_l.texi: Likewise.
33670         * doc/posix-functions/isupper_l.texi: Likewise.
33671         * doc/posix-functions/iswalnum_l.texi: Likewise.
33672         * doc/posix-functions/iswalpha_l.texi: Likewise.
33673         * doc/posix-functions/iswblank_l.texi: Likewise.
33674         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33675         * doc/posix-functions/iswctype_l.texi: Likewise.
33676         * doc/posix-functions/iswdigit_l.texi: Likewise.
33677         * doc/posix-functions/iswgraph_l.texi: Likewise.
33678         * doc/posix-functions/iswlower_l.texi: Likewise.
33679         * doc/posix-functions/iswprint_l.texi: Likewise.
33680         * doc/posix-functions/iswpunct_l.texi: Likewise.
33681         * doc/posix-functions/iswspace_l.texi: Likewise.
33682         * doc/posix-functions/iswupper_l.texi: Likewise.
33683         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33684         * doc/posix-functions/isxdigit_l.texi: Likewise.
33685         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33686         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33687         * doc/posix-functions/strcoll_l.texi: Likewise.
33688         * doc/posix-functions/strfmon_l.texi: Likewise.
33689         * doc/posix-functions/strftime_l.texi: Likewise.
33690         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33691         * doc/posix-functions/strxfrm_l.texi: Likewise.
33692         * doc/posix-functions/tolower_l.texi: Likewise.
33693         * doc/posix-functions/toupper_l.texi: Likewise.
33694         * doc/posix-functions/towctrans_l.texi: Likewise.
33695         * doc/posix-functions/towlower_l.texi: Likewise.
33696         * doc/posix-functions/towupper_l.texi: Likewise.
33697         * doc/posix-functions/wcscoll_l.texi: Likewise.
33698         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33699         * doc/posix-functions/wctrans_l.texi: Likewise.
33700         * doc/posix-functions/wctype_l.texi: Likewise.
33701         * doc/glibc-functions/strptime_l.texi: Likewise.
33702         * doc/glibc-functions/strtod_l.texi: Likewise.
33703         * doc/glibc-functions/strtof_l.texi: Likewise.
33704         * doc/glibc-functions/strtol_l.texi: Likewise.
33705         * doc/glibc-functions/strtold_l.texi: Likewise.
33706         * doc/glibc-functions/strtoll_l.texi: Likewise.
33707         * doc/glibc-functions/strtoul_l.texi: Likewise.
33708         * doc/glibc-functions/strtoull_l.texi: Likewise.
33709         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33710         * doc/glibc-functions/wcstod_l.texi: Likewise.
33711         * doc/glibc-functions/wcstof_l.texi: Likewise.
33712         * doc/glibc-functions/wcstol_l.texi: Likewise.
33713         * doc/glibc-functions/wcstold_l.texi: Likewise.
33714         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33715         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33716         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33717
33718 2009-11-24  Bruno Haible  <bruno@clisp.org>
33719
33720         duplocale: Fix logic bug.
33721         * lib/duplocale.c: Don't include <langinfo.h>.
33722         (_NL_LOCALE_NAME): Remove macro.
33723         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33724         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33725
33726 2009-11-23  Jim Meyering  <meyering@redhat.com>
33727
33728         test-update-copyright: don't hard-code /usr/bin/perl
33729         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33730         perl to print the current year.  Gilles Espinasse reported that
33731         the replaced use of perl was hard-coded as /usr/bin/perl.
33732
33733 2009-11-23  Bruno Haible  <bruno@clisp.org>
33734
33735         duplocale: Add support for glibc 2.3.x.
33736         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33737
33738 2009-11-22  Bruno Haible  <bruno@clisp.org>
33739
33740         vasnprintf: Tiny optimization.
33741         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33742         MacOS X.
33743
33744 2009-11-22  Bruno Haible  <bruno@clisp.org>
33745
33746         Tests for module 'duplocale'.
33747         * modules/duplocale-tests: New file.
33748         * tests/test-duplocale.c: New file.
33749
33750         New module 'duplocale'.
33751         * m4/duplocale.m4: New file.
33752         * lib/locale.in.h (duplocale): New declaration.
33753         * lib/duplocale.c: New file.
33754         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33755         gl_LOCALE_H_DEFAULTS): New macros.
33756         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33757         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33758         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33759         REPLACE_DUPLOCALE.
33760         * modules/duplocale: New file.
33761         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33762
33763 2009-11-22  Bruno Haible  <bruno@clisp.org>
33764
33765         * modules/locale-tests (configure.ac): Test for newlocale function.
33766         * tests/test-locale.c: When the system has extended locale functions,
33767         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33768
33769         locale: Make locale_t available when possible.
33770         * lib/locale.in.h: Include <xlocale.h> when it exists.
33771         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33772         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33773         * modules/locale (Depends-on): Add extensions.
33774         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33775         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33776
33777 2009-11-22  Bruno Haible  <bruno@clisp.org>
33778
33779         Add comments.
33780         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33781         invocation.
33782         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33783         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33784         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33785
33786 2009-11-22  Bruno Haible  <bruno@clisp.org>
33787
33788         error: account for the possibility of freopen (stdout).
33789         * lib/error.c: Include <unistd.h>.
33790         (flush_stdout): New function, extracted from error and error_at_line.
33791         Determine stdout's fd dynamically.
33792         (error, error_at_line): Invoke flush_stdout.
33793         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33794         * modules/error (Depends-on): Add unistd.
33795
33796 2009-11-22  Bruno Haible  <bruno@clisp.org>
33797
33798         diffseq: Add comment.
33799         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33800
33801 2009-11-22  Jim Meyering  <meyering@redhat.com>
33802
33803         c-stack: avoid defining an unused static function
33804         * lib/c-stack.c (find_stack_direction): Do not define this function
33805         when it will not be used.
33806
33807         diffseq: avoid spurious gcc warnings
33808         * lib/diffseq.h (IF_LINT2): Define.
33809         (compareseq): Use it to initialize two members of "part".
33810         This avoids two used-uninitialized warnings.
33811
33812 2009-11-21  Jim Meyering  <meyering@redhat.com>
33813
33814         c-stack: avoid "ignoring return value of `write'" warning
33815         * lib/c-stack.c: Include "ignore-value.h".
33816         (die): Explicitly ignore each write return value.
33817         * modules/c-stack (Depends-on): Add ignore-value.
33818
33819 2009-11-21  Bruno Haible  <bruno@clisp.org>
33820
33821         diffseq: reduce scope of variable 'best'.
33822         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33823         variable, earlier used for two different purposes.
33824
33825 2009-11-21  Jim Meyering  <meyering@redhat.com>
33826
33827         diffseq: remove useless assignment to "best"
33828         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33829         assignment.  At that point "best" is already guaranteed to be zero.
33830
33831 2009-11-20  Eric Blake  <ebb9@byu.net>
33832
33833         build: mention ftp redirector in release announcements
33834         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33835         values that used to come from cfg.mk; mention FTP redirect URL.
33836         * build-aux/announce-gen: Mention the mirror list.
33837         Suggested by Karl Berry.
33838
33839         nanosleep: improve port to mingw
33840         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33842         LIB_NANOSLEEP, but only when needed.
33843         * modules/select (Link): Document LIBSOCKET.
33844         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33845         enough.
33846
33847         nanosleep: work around cygwin bug
33848         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33849         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33850         bug.
33851         (getnow): Delete, not needed.
33852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33853         LIB_CLOCK_GETTIME.
33854         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33855         clock-time, gettime.
33856         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33857         bug.
33858         * modules/nanosleep-tests: New test.
33859         * tests/test-nanosleep.c: New file.
33860
33861         sleep: work around cygwin bug
33862         * lib/sleep.c (rpl_sleep): Work around the bug.
33863         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33864         (gl_PREREQ_SLEEP): Delete unused macro.
33865         * modules/sleep (Depends-on): Add verify.
33866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33867         * modules/unistd (Makefile.am): Substitute witness.
33868         * lib/unistd.in.h (sleep): Update prototype.
33869         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33870         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33871         * modules/sleep-tests (Depends-on): Check for alarm.
33872
33873 2009-11-20  Jim Meyering  <meyering@redhat.com>
33874
33875         maint.mk: improve sc_prohibit_magic_number_exit
33876         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33877         so it does not match uses like System.exit(1).
33878         Add comments showing how to correct all offenders.
33879
33880 2009-11-19  Eric Blake  <ebb9@byu.net>
33881
33882         xalloc-die-tests: add missing library
33883         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33884
33885         test-xvasprintf: silence compiler warnings
33886         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33887         empty string from gcc.
33888
33889 2009-11-19  Jim Meyering  <meyering@redhat.com>
33890
33891         xfreopen: new module, from coreutils
33892         * modules/xfreopen: New module.
33893         * lib/xfreopen.c: New file.
33894         * lib/xfreopen.h: New file.
33895         * MODULES.html.sh (File stream based Input/Output"): Add it.
33896
33897 2009-11-19  Eric Blake  <ebb9@byu.net>
33898
33899         manywarnings: depend on warnings
33900         * modules/manywarnings (Depends-on): Add warnings.
33901
33902         build: avoid compiler warnings
33903         * lib/select.c (rpl_select): Delete unused variable.
33904         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33905
33906 2009-11-18  Eric Blake  <ebb9@byu.net>
33907
33908         tests: avoid false negative with --with-packager
33909         * tests/test-version-etc.sh: Discard packager information.
33910         * tests/test-argp-version-etc-1.sh: Likewise.
33911         Reported by Mike Frysinger.
33912
33913         utimens: fix regression on Solaris
33914         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33915         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33916         can only change fd timestamps via futimesat.  Instead, use an
33917         additional witness macro to avoid BSD bug.
33918         Reported by Jim Meyering.
33919
33920 2009-11-17  Eric Blake  <ebb9@byu.net>
33921
33922         usleep: use it to simplify tests
33923         * modules/stat-time-tests (Depends-on): Add usleep.
33924         (configure.ac): Drop usleep check.
33925         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33926         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33927         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33928         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33929         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33930         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33931         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33932         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33933         Likewise.
33934         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33935         * tests/test-lchown.h (nap): Likewise.
33936         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33937         * tests/test-stat-time.c (nap): Likewise.
33938         * tests/test-utimens-common.h (nap): Update comments.
33939
33940         usleep: new module
33941         * modules/usleep: New file.
33942         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33943         * lib/usleep.c (usleep): Likewise.
33944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33945         * modules/unistd (Makefile.am): Substitute witnesses.
33946         * lib/unistd.in.h (usleep): Add declaration.
33947         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33948         * MODULES.html.sh (Date and time): Likewise.
33949         * modules/usleep-tests (Depends-on): New test.
33950         * tests/test-usleep.c: New file.
33951
33952         chown: work around OpenBSD bug
33953         * lib/chown.c (rpl_chown): Work around the bug.
33954         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33955         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33956         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33957         * modules/chown (Depends-on): Add stdbool.
33958         * modules/lchown (Depends-on): Likewise.
33959         * doc/posix-functions/chown.texi (chown): Document the bug.
33960         * doc/posix-functions/lchown.texi (lchown): Likewise.
33961         * tests/test-lchown.h (test_chown): Relax test.
33962
33963         mkstemp: avoid conflict with C++ keyword template
33964         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33965         * lib/mkostemp.c (mkostemp): Likewise.
33966         * lib/mkostemps.c (mkostemps): Likewise.
33967         * lib/mkstemp.c (mkstemp): Likewise.
33968         * lib/mkstemps.c (mkstemps): Likewise.
33969
33970         xalloc-die-tests: optimize
33971         * tests/test-xalloc-die.sh: Reduce number of processes.
33972
33973 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33974
33975         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33976         patch from ludo@gnu.org (Ludovic Courtès).
33977
33978 2009-11-17  Jim Meyering  <meyering@redhat.com>
33979
33980         version-etc: use proper license string
33981         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33982         * modules/version-etc-fsf: Likewise.
33983
33984 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33985
33986         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33987         printed to stdout.  Deal with EOL differences.
33988
33989 2009-11-17  Eric Blake  <ebb9@byu.net>
33990
33991         unsetenv: work around Solaris bug
33992         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33993         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33994         Reported by Jim Meyering.
33995
33996         vasnprintf: avoid compiler warnings
33997         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33998         variables.
33999         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34000
34001 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34002
34003         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34004         settings since xalloc-die is no longer the self test,
34005         xalloc-die.sh is.
34006
34007 2009-11-17  Jim Meyering  <meyering@redhat.com>
34008
34009         test-xalloc-die.sh: make the code agree with the commit log
34010         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34011         at the end, just in case you happen to have a test-xalloc-die
34012         program in some other PATH directory.
34013
34014         test-xalloc-die.sh: fix a portability bug
34015         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34016         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34017         Otherwise, argv[0] (as often seen in diagnostics) would be too
34018         system-dependent, sometimes with, and sometimes without the leading "./".
34019
34020         version-etc-fsf: relax license to LGPLv3+
34021         * modules/version-etc-fsf (License): Relax license.
34022
34023 2009-11-16  Eric Blake  <ebb9@byu.net>
34024
34025         xalloc-die-tests: avoid printing null pointer
34026         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34027         shell script.
34028         * tests/test-xalloc-die.c (program_name): Declare.
34029         * tests/test-xalloc-die.sh (tmpfiles): New file.
34030
34031         setenv, unsetenv: work around various bugs
34032         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34033         (setenv) [HAVE_SETENV]: Work around bugs.
34034         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34035         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34036         for bugs.
34037         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34038         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34040         * modules/stdlib (Makefile.am): Update substitutions.
34041         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34042         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34043         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34044         * modules/setenv-tests: New test.
34045         * modules/unsetenv-tests: Likewise.
34046         * tests/test-setenv.c: New file.
34047         * tests/test-unsetenv.c: Likewise.
34048
34049 2009-11-16  Jim Meyering  <meyering@redhat.com>
34050
34051         version-etc: relax license to LGPLv3+
34052         * modules/version-etc (License): Relax license.
34053
34054         better AC_REQUIRE expanded-before-required-warning avoidance
34055         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34056         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34057         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34058         which is no longer needed.
34059
34060 2009-11-16  Eric Blake  <ebb9@byu.net>
34061
34062         test-freading: clean up temporary file
34063         * tests/test-freading.c (main): Remove file on success, and use
34064         ASSERT more liberally.
34065         Reported by Jim Meyering.
34066
34067 2009-11-16  Jim Meyering  <meyering@redhat.com>
34068
34069         avoid new AC_REQUIRE expanded-before-required warnings
34070         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34071         merely using it.
34072         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34073         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34074
34075 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34076
34077         * tests/test-xalloc-die.c: New file.
34078         * modules/xalloc-die-tests: New file.
34079         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34080         XFAIL_TESTS so it can be appended by modules.
34081
34082 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34083
34084         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34085         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34086
34087 2009-11-14  Eric Blake  <ebb9@byu.net>
34088
34089         fnmatch: avoid compiler warning
34090         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34091         to silence compiler warning about mismatch signedness in ?:.
34092         Reported by Robert Millan.
34093
34094         intprops: add double-inclusion guard
34095         * lib/intprops.h: Allow idempotent includes.
34096         Suggested by Bruce Korb.
34097
34098         openat: detect Solaris fchownat bug
34099         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34100         penalizing glibc chownat when only lchownat is broken.
34101         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34102         trailing slash bugs.
34103         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34104         * modules/openat-tests (Files): Include more files.
34105         (Depends-on): Add mgetgroups, sleep, stat-time.
34106         (configure.ac): Add additional checks.
34107         (Makefile.am): Build new test.
34108         * tests/test-fchownat.c: New file.
34109
34110         lchown: detect Solaris and FreeBSD bug
34111         * lib/lchown.c (rpl_lchown): Work around bug.
34112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34114         * modules/unistd (Makefile.am): Populate it.
34115         * lib/unistd.in.h (lchown): Update declaration.
34116         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34117         * modules/lchown-tests: New file.
34118         * tests/test-lchown.h (test_lchown): Likewise.
34119         * tests/test-lchown.c (main): Likewise.
34120
34121         chown: detect Solaris and FreeBSD bug
34122         * lib/chown.c (rpl_chown): Work around bug.
34123         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34124         (gl_PREREQ_CHOWN): Delete.
34125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34126         * modules/unistd (Makefile.am): Populate it.
34127         * lib/unistd.in.h (chown): Update declaration.
34128         * lib/lchown.c (chown): Update client.
34129         * modules/lchown (Depends-on): Add lstat.
34130         * doc/posix-functions/chown.texi (chown): Document the bug.
34131         * doc/posix-functions/getgroups.texi (getgroups): Document
34132         getgroups pitfall.
34133         * modules/chown-tests: New file.
34134         * tests/test-chown.h (test_chown): Likewise.
34135         * tests/test-chown.c (main): Likewise.
34136
34137 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34138
34139         gnulib-tool: correctly detect absence of m4 directories
34140         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34141
34142 2009-11-14  Jim Meyering  <meyering@redhat.com>
34143
34144         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34145         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34146
34147 2009-11-14  John W. Eaton  <jwe@gnu.org>
34148
34149         strftime.h: wrap funtion declaration in extern "C" block
34150         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34151
34152 2009-11-13  Eric Blake  <ebb9@byu.net>
34153
34154         getgroups: avoid compiler warning
34155         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34156
34157         getgroups: work around FreeBSD bug
34158         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34159         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34160         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34161         * tests/test-getgroups.c (main): Fix buffer overrun.
34162
34163         getgroups: avoid compilation failure
34164         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34165         * modules/getgroups (Depends-on): Add stdint.
34166
34167 2009-11-13  Jim Meyering  <meyering@redhat.com>
34168
34169         test-getgroups: avoid compilation failure
34170         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34171
34172 2009-11-13  Eric Blake  <ebb9@byu.net>
34173
34174         mgetgroups: new module, taken from coreutils
34175         * modules/mgetgroups: New file.
34176         * lib/mgetgroups.h: Likewise.
34177         * lib/mgetgroups.c (mgetgroups): Likewise.
34178         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34179         * MODULES.html.sh (Users and groups): Mention it.
34180
34181         getgroups: don't expose GETGROUPS_T to user
34182         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34183         an element at a time if GETGROUPS_T is wrong size.
34184         * lib/getugroups.h (getugroups): Change signature.
34185         * lib/unistd.in.h (getgroups): Likewise.
34186         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34187         signature needs fixing.
34188         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34189         AC_TYPE_GETGROUPS.
34190         * modules/group-member (Depends-on): Add getgroups.
34191         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34192         (group_member): Rely on getgroups replacement.
34193         * lib/getugroups.c (getugroups): Use gid_t.
34194         * tests/test-getgroups.c (main): Likewise.
34195         * NEWS: Mention the signature change.
34196         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34197         problem with signature.
34198         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34199         GETGROUPS_T is still useful for setgroups.
34200
34201         getgroups, getugroups: provide stubs for mingw
34202         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34203         * lib/getugroups.c (getugroups): Likewise.
34204         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34205         function.  Modernize replacement scheme.
34206         (gl_PREREQ_GETGROUPS): Delete.
34207         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34208         * modules/getgroups (configure.ac): Declare witness.
34209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34210         * modules/unistd (Depends-on): Substitute witness.
34211         * lib/unistd.in.h (getgroups): Declare replacement.
34212
34213         getgroups: avoid calling exit
34214         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34215         drop xalloc.
34216         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34217         dependencies.
34218         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34219         exiting, in the rare case of malloc failure.
34220
34221         getgroups: fix logic error
34222         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34223         has more than 20 groups.
34224         * modules/getgroups-tests: New test.
34225         * tests/test-getgroups.c: New file.
34226
34227 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34228
34229         * tests/test-base64.c: Improve.
34230
34231 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34232
34233         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34234         Blake <ebb9@byu.net>.
34235
34236 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34237
34238         * tests/test-xvasprintf.c: Add %s%s related checks.
34239
34240 2009-11-12  Eric Blake  <ebb9@byu.net>
34241
34242         version-etc: match standards.texi style
34243         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34244         and use <> only for URLs.
34245
34246 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34247
34248         fts: do not fail on a submount during traversal
34249         * lib/fts.c (fts_build): Read the stat info again after opening
34250         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34251         Original report at http://bugzilla.redhat.com/501848.
34252
34253 2009-11-12  Jim Meyering  <meyering@redhat.com>
34254
34255         bootstrap: sync from coreutils
34256         * build-aux/bootstrap (bootstrap_epilogue): New function.
34257         Use git_modules_config in one more place.  This make bootstrap's
34258         --gnulib-srcdir option more useful for testing.
34259
34260         bootstrap: generalize autoheader check
34261         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34262         AC_CONFIG_HEADERS.
34263
34264 2009-11-11  Eric Blake  <ebb9@byu.net>
34265
34266         mkfifoat: use new modules for Solaris and BSD bugs
34267         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34268         * lib/mkfifoat.c (mknodat): Split...
34269         * lib/mknodat.c (mknodat): ...into new file.
34270         * modules/mkfifoat (Files): Ship new file.
34271         (Depends-on): Add mkfifo, mknod.
34272         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34273         (Depends-on): Add symlink.
34274         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34275         redundant with test_mkfifo.h.
34276         (do_mkfifoat, do_mknodat): New helpers.
34277
34278         mknod: new module
34279         * modules/mknod: New file.
34280         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34281         * lib/mknod.c (mknod): Likewise.
34282         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34283         defaults.
34284         * modules/sys_stat (Makefile.am): Substitute them.
34285         * lib/sys_stat.in.h (mknod): Declare replacement.
34286         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34287         Document it.
34288         * doc/posix-functions/mknod.texi (mknod): Likewise.
34289         * modules/mknod-tests: New test.
34290         * tests/test-mknod.c: Likewise.
34291
34292         mkfifo: new module
34293         * modules/mkfifo: New file.
34294         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34295         * lib/mkfifo.c (mkfifo): Likewise.
34296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34297         defaults.
34298         * modules/sys_stat (Makefile.am): Substitute them.
34299         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34300         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34301         Document it.
34302         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34303         * modules/mkfifo-tests: New test.
34304         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34305         from test-mkfifoat.c.
34306         * tests/test-mkfifo.c: New file.
34307
34308         readlink: detect FreeBSD bug
34309         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34310         slash on symlink.
34311         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34312         * tests/test-readlink.h (test_readlink): Enhance test.
34313
34314         symlink: detect FreeBSD bug
34315         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34316         slash on symlink.
34317         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34318         * tests/test-symlink.h (test_symlink): Enhance test.
34319
34320 2009-11-10  Eric Blake  <ebb9@byu.net>
34321
34322         link: detect FreeBSD bug
34323         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34324         symlink.
34325         * doc/posix-functions/link.texi (link): Document the bug.
34326         * tests/test-link.h (test_link): Enhance test.
34327         * tests/test-linkat.c (main): Update caller.
34328
34329         unlink, remove: detect FreeBSD bug
34330         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34331         slash on symlink.
34332         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34333         * doc/posix-functions/remove.texi (remove): Likewise.
34334         * tests/test-unlink.h (test_unlink): Enhance test.
34335         * tests/test-remove.c (main): Likewise.
34336
34337 2009-11-09  Eric Blake  <ebb9@byu.net>
34338
34339         rename: detect FreeBSD bug
34340         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34341         slash on symlink.
34342         * modules/renameat-tests (Depends-on): Add filenamecat.
34343         * tests/test-rename.h (test_rename): Allow one more errno.
34344         * tests/test-renameat.c (main): Likewise.
34345         * doc/posix-functions/rename.texi (rename): Document the bug.
34346
34347         open: detect FreeBSD bug
34348         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34349         symlink.
34350         * doc/posix-functions/open.texi (open): Document the bug.
34351         * doc/posix-functions/utimes.texi (utimes): Likewise.
34352         * tests/test-open.h (test_open): Add parameters, and test symlink
34353         handling.
34354         * tests/test-open.c (main): Adjust caller.
34355         * tests/test-fcntl-safer.c (main): Likewise.
34356         * modules/open-tests (Depends-on): Add stdbool, symlink.
34357         * modules/fcntl-safer-tests (Depends-on): Likewise.
34358         * tests/test-openat.c (main): Add test-open tests.
34359
34360         stat: detect FreeBSD bug
34361         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34362         symlink.
34363         * doc/posix-functions/stat.texi (stat): Document the bug.
34364         * tests/test-stat.h (test_stat_func): Add argument.
34365         * tests/test-stat.c (main): Adjust caller.
34366         * tests/test-fstatat.c (main): Likewise.
34367         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34368         Reported by Jim Meyering.
34369
34370 2009-11-09  James Youngman  <jay@gnu.org>
34371
34372         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34373         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34374
34375 2009-11-08  Jim Meyering  <meyering@redhat.com>
34376
34377         utimens: remove invalid futimesat call
34378         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34379         It used the file descriptor of the target file as the DIR_FD
34380         parameter and NULL as the file name.  That caused failure with
34381         errno == EFAULT on FreeBSD-8.0-rc2
34382
34383 2009-11-07  Eric Blake  <ebb9@byu.net>
34384
34385         fflush, freadseek: use fseeko, not fseek
34386         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34387         (clear_ungetc_buffer): Avoid potential problems on large files.
34388         * lib/freadseek.c (freadseek): Likewise.
34389         * modules/freadseek (Depends-on): Add fseeko.
34390         * modules/fseek (configure.ac): Set a witness.
34391         * tests/test-fflush.c (main): Use fseeko.
34392         * tests/test-fpurge.c (fseek): Disable link warning.
34393         * tests/test-freadable.c (fseek): Likewise.
34394         * tests/test-freading.c (fseek): Likewise.
34395         * tests/test-fseeko.c (fseek): Likewise.
34396         * tests/test-ftell.c (fseek): Likewise.
34397         * tests/test-ftello.c (fseek): Likewise.
34398         * tests/test-fwritable.c (fseek): Likewise.
34399         * tests/test-fwriting.c (fseek): Likewise.
34400
34401 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34402
34403         * modules/memchr (Depends-on): Drop getpagesize dependency.
34404
34405 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34406
34407         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34408         Reported by Ludovic Courtès.
34409         * build-aux/pmccabe2html: Improve example usage.
34410         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34411
34412 2009-11-06  Jim Meyering  <meyering@redhat.com>
34413
34414         do-release-commit-and-tag: New module.
34415         Automate the release-commit and tag process.
34416         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34417         * modules/do-release-commit-and-tag: New file.
34418         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34419
34420 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34421
34422         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34423         because test-select.c uses inet_pton.
34424
34425 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34426
34427         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34428         GETADDRINFO_LIB.  Bump serial number.
34429         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34430         Suggested by Eric Blake <ebb9@byu.net>.
34431
34432 2009-11-05  Eric Blake  <ebb9@byu.net>
34433
34434         strtod: detect darwin bug
34435         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34436         Reported by Leo Davis.
34437
34438         freopen-safer: new module
34439         * modules/freopen-safer: New module.
34440         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34441         * lib/freopen-safer.c (freopen_safer): New file.
34442         * lib/stdio-safer.h (freopen_safer): New declaration.
34443         * lib/stdio--.h (freopen): New override.
34444         * MODULES.html.sh (File stream based Input/Output): Mention it.
34445         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34446         freopen-safer module.
34447         * doc/posix-functions/stderr.texi (stderr): Likewise.
34448         * doc/posix-functions/stdin.texi (stdin): Likewise.
34449         * doc/posix-functions/stdout.texi (stdout): Likewise.
34450         * modules/freopen-safer-tests: New test.
34451         * tests/test-reopen-safer.c: New file.
34452
34453 2009-11-05  Jim Meyering  <meyering@redhat.com>
34454
34455         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34456         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34457
34458 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34459
34460         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34461
34462 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34463
34464         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34465
34466 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34467
34468         Fix link error.
34469         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34470         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34471
34472 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34473
34474         * tests/test-func.c: Also test value of __func__.
34475
34476 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34477
34478         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34479         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34480
34481 2009-11-05  Bruno Haible  <bruno@clisp.org>
34482
34483         Fix link error.
34484         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34485         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34486         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34487
34488 2009-11-05  Bruno Haible  <bruno@clisp.org>
34489
34490         Tests for module 'inet_pton'.
34491         * modules/inet_pton-tests: New file.
34492         * tests/test-inet_pton.c: New file.
34493
34494 2009-11-05  Bruno Haible  <bruno@clisp.org>
34495
34496         Tests for module 'inet_ntop'.
34497         * modules/inet_ntop-tests: New file.
34498         * tests/test-inet_ntop.c: New file.
34499
34500 2009-11-04  Eric Blake  <ebb9@byu.net>
34501
34502         stdlib-safer: wrap all mkstemp variants
34503         * modules/mkostemp (configure.ac): Set witness.
34504         * modules/mkostemps (configure.ac): Likewise.
34505         * modules/mkstemps (configure.ac): Likewise.
34506         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34507         (mkstemps_safer): Wrap more functions.
34508         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34509         wrapping.
34510         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34511         (mkstemps_safer): Implement the wrappers.
34512
34513         mkstemps, mkostemps: new modules
34514         * modules/mkostemps: New module.
34515         * modules/mkstemps: Likewise.
34516         * lib/mkostemps.c (mkostemps): New file.
34517         * lib/mkstemps.c (mkstemps): Likewise.
34518         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34519         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34521         * modules/stdlib (Makefile.am): Substitute them.
34522         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34523         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34524         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34525         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34526         * MODULES.html.sh (File system functions): Mention them.
34527
34528         tempname: resync from glibc
34529         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34530         same values for __GT_FILE as glibc.  Abort even when assertions
34531         are disabled.
34532         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34533         match its value otherwise.  Allow idempotent inclusion.
34534         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34535         * lib/mkostemp.c (mkostemp): Likewise.
34536         * lib/mkstemp.c (mkstemp): Likewise.
34537         * lib/tmpfile.c (tmpfile): Likewise.
34538         * NEWS: Document this.
34539
34540         utimens: fix use of futimens on older Linux
34541         * lib/utimens.c (fdutimens): Use updated, rather than original,
34542         timespec to avoid bug in older Linux kernel.
34543         Reported by Simon Josefsson.
34544
34545 2009-11-04  Bruno Haible  <bruno@clisp.org>
34546
34547         Make num_processors more flexible and consistent.
34548         * lib/nproc.h (enum nproc_query): New type.
34549         (num_processors): Add a 'query' argument.
34550         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34551         (num_processors): Add a 'query' argument. Test the value of the
34552         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34553         mingw, count the number of CPUs available for the current process.
34554         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34555         Check for sched_getaffinity and sched_getaffinity_np.
34556         * modules/nproc (Depends-on): Add c-ctype, extensions.
34557         * NEWS: Mention the change.
34558
34559 2009-11-03  Bruno Haible  <bruno@clisp.org>
34560
34561         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34562
34563 2009-11-03  Jim Meyering  <meyering@redhat.com>
34564
34565         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34566         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34567         if it is defined.
34568
34569 2009-11-02  Eric Blake  <ebb9@byu.net>
34570
34571         mktime, timegm: share common declaration
34572         * lib/mktime-internal.h: New file.
34573         * lib/mktime.c: Use it rather than open-coding a declaration.
34574         * lib/timegm.c: Likewise.
34575         * modules/mktime (Files): Ship it.
34576         * modules/timegm (Files): Likewise.
34577         Suggested by Bruno Haible.
34578
34579         test-update-copyright: update test to match script changes
34580         * tests/test-update-copyright.sh: Avoid hard-coding perl
34581         location.  Don't update *.bak created by earlier runs.
34582
34583 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34584             Simon Josefsson  <simon@josefsson.org>
34585             Bruno Haible  <bruno@clisp.org>
34586
34587         Fix link error on Solaris 8.
34588         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34589         also in libnsl. Define also INET_PTON_LIB.
34590         * modules/inet_pton (Link): New section.
34591
34592 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34593             Bruno Haible  <bruno@clisp.org>
34594
34595         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34596         * modules/inet_ntop (Link): New section.
34597         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34598
34599 2009-11-02  Eric Blake  <ebb9@byu.net>
34600
34601         maint: avoid compiler warnings in m4 macros
34602         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34603         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34604
34605 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34606
34607         * m4/pmccabe2html.m4: Remove file.
34608         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34609         function.  Change maintainer.
34610         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34611         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34612         Courtès).
34613
34614 2009-10-31  Eric Blake  <ebb9@byu.net>
34615
34616         fseeko: fix m4 regression
34617         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34618         regression from 2009-10-27.
34619         Reported by Ralf Wildenhues.
34620
34621 2009-10-31  Jim Meyering  <meyering@redhat.com>
34622
34623         inttostr: aesthetics and improved (compile-time) safety
34624         Define inttype_is_signed rather than inttype_is_unsigned,
34625         since the sole use is via "#if inttype_is_signed".
34626         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34627         inttype_is_unsigned.
34628         * lib/offtostr.c (inttype_is_signed): Likewise.
34629         * lib/uinttostr.c (inttype_is_signed): Likewise.
34630         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34631         * lib/inttostr.c (inttostr): Use verify to cross-check the
34632         inttype_is_signed value and the signedness of the actual type.
34633         * modules/inttostr (Depends-on): Add verify.
34634
34635 2009-10-30  Eric Blake  <ebb9@byu.net>
34636
34637         build: avoid compiler warnings
34638         * lib/fchmodat.c (lchmod): Mark unused variables.
34639         * lib/getopt.c (_getopt_initialize): Likewise.
34640         * lib/mktime.c (__mktime_internal): Provide prototype.
34641         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34642         older gcc that do not understand #pragma GCC diagnostic.
34643         * lib/uinttostr.c (inttype_is_unsigned): Define.
34644         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34645
34646 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34647
34648         stat: fix compilation on AIX
34649         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34650         only see struct stat64.
34651
34652 2009-10-30  Eric Blake  <ebb9@byu.net>
34653
34654         exclude: make more robust
34655         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34656         rather than masking a coding bug.
34657         Suggested by Bruno Haible.
34658
34659 2009-10-30  Jim Meyering  <meyering@redhat.com>
34660
34661         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34662         Rather than putting #!/usr/bin/perl on the first line,
34663         start with a variant of what's recommended by "man perlrun" that
34664         invokes the first "perl" program from your shell's search path.
34665         * build-aux/gitlog-to-changelog: Replace #!... as above.
34666         Add a "Local Variables" perl mode setting.
34667         Prompted by a patch from Ludovic Courtès.
34668         Improved by Eric Blake.
34669         * build-aux/useless-if-before-free: Likewise.
34670         * build-aux/announce-gen: Likewise.
34671         * build-aux/update-copyright: Likewise.
34672
34673 2009-10-29  Eric Blake  <ebb9@byu.net>
34674
34675         filenamecat-lgpl: adjust clients
34676         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34677         filenamecat.
34678         * modules/renameat (Depends-on): Likewise.
34679
34680         filenamecat: split into filenamecat-lgpl
34681         * modules/filenamecat-lgpl: New module.
34682         * modules/filenamecat (Files): Move library-safe files into
34683         filenamecat-lgpl.
34684         (Depends-on): Add filenamecat-lgpl.
34685         (configure.ac): Declare witness.
34686         * lib/filenamecat.h (file_name_concat): Only declare when using
34687         GPL module.
34688         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34689         Move...
34690         * lib/filenamecat-lgpl.c: ...into new file.
34691         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34692         (gl_FILE_NAME_CONCAT): Use it.
34693         * MODULES.html.sh (File system functions): Mention new module.
34694
34695         argp: avoid memory leak
34696         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34697         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34698         base_name, since the latter malloc()s and can call exit().
34699         Leak introduced 2006-07-03.
34700
34701         dirname-lgpl: adjust clients that don't need full dirname
34702         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34703         * modules/filenamecat (Depends-on): Likewise.
34704         * modules/linkat (Depends-on): Likewise.
34705         * modules/mkancesdirs (Depends-on): Likewise.
34706         * modules/mkdir (Depends-on): Likewise.
34707         * modules/openat (Depends-on): Likewise.
34708         * modules/savewd (Depends-on): Likewise.
34709         * modules/rename (Depends-on): Likewise.
34710         (License): Relax license.
34711         * modules/mkdir-tests (Depends-on): Drop progname.
34712         (Makefile.am): Delete unneeded LDADD.
34713         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34714
34715         dirname: split into dirname-lgpl
34716         * modules/dirname-lgpl: New module.
34717         * modules/dirname (Files): Move library-safe files into
34718         dirname-lgpl.
34719         (Depends-on): Add dirname-lgpl.
34720         (configure.ac): Declare witness.
34721         * modules/double-slash-root (License): Relax license.
34722         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34723         module.
34724         * lib/dirname.c (dir_len, mdir_name): Move...
34725         * lib/dirname-lgpl.c: ...into new file.
34726         * lib/basename.c (last_component, base_len): Move...
34727         * lib/basename-lgpl.c: ...into new file.
34728         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34729         (gl_DIRNAME): Use it.
34730         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34731         Mention new module.
34732         * modules/dirname-tests (Depends-on): Add progname.
34733         * tests/test-dirname.c (program_name): Delete.
34734
34735         mkdir: make safe for libraries
34736         * modules/mkdir (Depends-on): Drop xalloc.
34737         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34738         exit.
34739
34740         tests: avoid some compiler warnings
34741         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34742         literals.
34743         * tests/test-memchr.c (main): Avoid type mismatch.
34744         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34745         * tests/test-base64.c (main): Likewise.
34746         * tests/test-getdelim.c (main): Likewise.
34747         * tests/test-gethostname.c (main): Likewise.
34748         * tests/test-getline.c (main): Likewise.
34749         * tests/test-netinet_in.c (main): Likewise.
34750         * tests/test-select.c (open_server_socket, main): Likewise.
34751         * tests/test-select-stdin.c (main): Likewise.
34752         * tests/test-sockets.c (main): Likewise.
34753         * tests/test-strsignal.c (main): Likewise.
34754         * tests/test-sys_select.c (main): Likewise.
34755         * tests/test-sys_socket.c (main): Likewise.
34756         * tests/test-u64.c (main): Likewise.
34757         * tests/test-xfprintf-posix.c (main): Likewise.
34758         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34759
34760         sockets: avoid compiler warning
34761         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34762
34763         maint: detect usage(1) and other suspicious exits
34764         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34765
34766 2009-10-29  Jim Meyering  <meyering@redhat.com>
34767
34768         timespec: long-to-int truncation could make timespec_cmp malfunction
34769         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34770         a multiple of 2^32 nanoseconds as no difference.
34771
34772 2009-10-28  Jim Meyering  <meyering@redhat.com>
34773
34774         fprintftime: wrap macro code argument in "do {...} while(0)"
34775         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34776         cpy macro must be a statement that can be followed by a semicolon.
34777         Now that the else clause contains a comment and is hence longer
34778         than one line, I require curly braces.  That in turn requires
34779         that we wrap this code block in the standard do...while(0).
34780
34781         fprintftime: remove stray semicolon from previous change
34782         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34783
34784         fprintftime: avoid a warning about ignored fwrite return value
34785         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34786         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34787         that is unsafe.
34788         * modules/fprintftime (Depends-on): Add ignore-value.
34789
34790         exclude: avoid an unwarranted warning
34791         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34792
34793 2009-10-27  Eric Blake  <ebb9@byu.net>
34794
34795         fseek: avoid compilation failure when fflush is replaced
34796         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34797         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34798         module is in use.
34799         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34800         module is not in use; since REPLACE_FSEEK worked otherwise.
34801         (GNULIB_FTELLO): Likewise for ftell.
34802         Reported by Ian Beckwith and others.
34803
34804 2009-10-27  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34807         Reported by Jim Meyering.
34808
34809 2009-10-27  Jim Meyering  <jim@meyering.net>
34810             Bruno Haible  <bruno@clisp.org>
34811
34812         Avoid warning despite dropping the return value of fwrite.
34813         * lib/unicodeio.c: Include ignore-value.h.
34814         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34815         * modules/unicodeio (Depends-on): Add ignore-value.
34816
34817 2009-10-26  Eric Blake  <ebb9@byu.net>
34818
34819         areadlinkat: fix fallback path
34820         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34821         pointer and zero.
34822
34823 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34824
34825         Use a better IO block size for modern systems
34826         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34827         * lib/md2.c: Likewise.
34828         * lib/md4.c: Likewise.
34829         * lib/md5.c: Likewise.
34830         * lib/sha1.c: Likewise.
34831         * lib/sha256.c: Likewise.
34832         * lib/sha512.c: Likewise.
34833
34834 2009-10-22  Eric Blake  <ebb9@byu.net>
34835
34836         tests: avoid several compiler warnings
34837         * tests/test-getcwd.c (main): Avoid buffer underflow.
34838         * tests/test-getdate.c (main): String literals are not safe with
34839         putenv, so use setenv.  Declare unused argument.
34840         * modules/getdate-tests (Depends-on): Add setenv.
34841         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34842         problems with string literals in char *.
34843         * tests/test-hash.c (main): Avoid shadowing declaration.
34844         (insert_new): Treat string literals as char const *.
34845         * tests/test-getopt.h (test_getopt): Likewise.
34846         (getopt_loop): Alter types to minimize casting elsewhere.
34847         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34848         (test_getopt_long_posix): Likewise.
34849         (do_getopt_long): Add wrapper to minimize casting.
34850         * tests/test-atexit.c (clear_temp_file): Use void.
34851         * tests/test-areadlink-with-size.c (main): Declare unused
34852         arguments.
34853         * tests/test-areadlink.c (main): Likewise.
34854         * tests/test-areadlinkat-with-size.c (main): Likewise.
34855         * tests/test-areadlinkat.c (main): Likewise.
34856         * tests/test-canonicalize-lgpl.c (main): Likewise.
34857         * tests/test-canonicalize.c (main): Likewise.
34858         * tests/test-dirent-safer.c (main): Likewise.
34859         * tests/test-dirname.c (main): Likewise.
34860         * tests/test-dup2.c (main): Likewise.
34861         * tests/test-fchdir.c (main): Likewise.
34862         * tests/test-fcntl-h.c (main): Likewise.
34863         * tests/test-fcntl-safer.c (main): Likewise.
34864         * tests/test-fdopendir.c (main): Likewise.
34865         * tests/test-fdutimensat.c (main): Likewise.
34866         * tests/test-fflush.c (main): Likewise.
34867         * tests/test-filenamecat.c (main): Likewise.
34868         * tests/test-filevercmp.c (main): Likewise.
34869         * tests/test-fopen-safer.c (main): Likewise.
34870         * tests/test-fopen.c (main): Likewise.
34871         * tests/test-fpending.c (main): Likewise.
34872         * tests/test-fpurge.c (main): Likewise.
34873         * tests/test-freading.c (main): Likewise.
34874         * tests/test-fstatat.c (main): Likewise.
34875         * tests/test-fsync.c (main): Likewise.
34876         * tests/test-futimens.c (main): Likewise.
34877         * tests/test-getndelim2.c (main): Likewise.
34878         * tests/test-gettimeofday.c (main): Likewise.
34879         * tests/test-getopt.c (main): Likewise.
34880         * tests/test-i-ring.c (main): Likewise.
34881         * tests/test-inttypes.c (main): Likewise.
34882         * tests/test-link.c (main): Likewise.
34883         * tests/test-lstat.c (main): Likewise.
34884         * tests/test-math.c (main): Likewise.
34885         * tests/test-md5.c (main): Likewise.
34886         * tests/test-memchr2.c (main): Likewise.
34887         * tests/test-memrchr.c (main): Likewise.
34888         * tests/test-mkdir.c (main): Likewise.
34889         * tests/test-mkdirat.c (main): Likewise.
34890         * tests/test-mkfifoat.c (main): Likewise.
34891         * tests/test-open.c (main): Likewise.
34892         * tests/test-openat-safer.c (main): Likewise.
34893         * tests/test-openat.c (main): Likewise.
34894         * tests/test-quotearg.c (main): Likewise.
34895         * tests/test-rawmemchr.c (main): Likewise.
34896         * tests/test-readlink.c (main): Likewise.
34897         * tests/test-remove.c (main): Likewise.
34898         * tests/test-rename.c (main): Likewise.
34899         * tests/test-renameat.c (main): Likewise.
34900         * tests/test-rmdir.c (main): Likewise.
34901         * tests/test-sha1.c (main): Likewise.
34902         * tests/test-signal.c (main): Likewise.
34903         * tests/test-sigaction.c (main): Likewise.
34904         * tests/test-stat.c (main): Likewise.
34905         * tests/test-stat-time.c (main): Likewise.
34906         * tests/test-stddef.c (main): Likewise.
34907         * tests/test-stdint.c (main): Likewise.
34908         * tests/test-stdio.c (main): Likewise.
34909         * tests/test-stdlib.c (main): Likewise.
34910         * tests/test-strchrnul.c (main): Likewise.
34911         * tests/test-strerror.c (main): Likewise.
34912         * tests/test-string.c (main): Likewise.
34913         * tests/test-strtod.c (main): Likewise.
34914         * tests/test-strverscmp.c (main): Likewise.
34915         * tests/test-symlink.c (main): Likewise.
34916         * tests/test-symlinkat.c (main): Likewise.
34917         * tests/test-sys_stat.c (main): Likewise.
34918         * tests/test-sys_time.c (main): Likewise.
34919         * tests/test-time.c (main): Likewise.
34920         * tests/test-unistd.c (main): Likewise.
34921         * tests/test-unlink.c (main): Likewise.
34922         * tests/test-unlinkat.c (main): Likewise.
34923         * tests/test-utimens.c (main): Likewise.
34924         * tests/test-utimensat.c (main): Likewise.
34925         * tests/test-version-etc.c (main): Likewise.
34926         * tests/test-wchar.c (main): Likewise.
34927         * tests/test-wctype.c (main): Likewise.
34928         * tests/test-xprintf-posix.c (main): Likewise.
34929         * tests/test-posixtm.c (main): Likewise.
34930         (STREQ): Delete unused macro.
34931         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34932         shadowed variables.
34933         * tests/test-memchr.c (main): Likewise.
34934
34935 2009-10-21  Eric Blake  <ebb9@byu.net>
34936
34937         areadlinkat: avoid failure on older glibc
34938         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34939         rather than mis-comparing 0 against FUNC_RESULT of char*.
34940
34941 2009-10-21  Bruno Haible  <bruno@clisp.org>
34942
34943         * modules/stpncpy (License): Relicense under LGPLv2+.
34944         Reported by David Lutterkort <lutter@redhat.com>.
34945
34946 2009-10-20  Eric Blake  <ebb9@byu.net>
34947
34948         utimensat: work around Solaris 9 bug
34949         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34950         has trailing slash bugs.
34951         * tests/test-lutimens.h (test_lutimens): Enhance test.
34952         * tests/test-utimens.h (test_utimens): Likewise.
34953         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34954         * doc/posix-functions/utimes.texi (utimes): Likewise.
34955         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34956         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34957         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34958         * doc/posix-functions/futimens.texi (futimens): Likewise.
34959
34960         fdutimensat: new module
34961         * modules/fdutimensat: New file.
34962         * lib/fdutimensat.c (fdutimensat): Likewise.
34963         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34964         * MODULES.html.sh (File system functions): Mention module.
34965         * modules/fdutimensat-tests: New test.
34966         * tests/test-fdutimensat.c: Likewise.
34967
34968         doc: regenerate INSTALL
34969         * doc/INSTALL: Reflect recent autoconf update.
34970         * doc/INSTALL.ISO: Likewise.
34971         * doc/INSTALL.UTF-8: Likewise.
34972
34973 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34974
34975         acl: warn if ACL support is not detected
34976         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34977
34978 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34979
34980         * lib/nproc.h: Add extern "C" block for C++.
34981
34982 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34983             Bruno Haible  <bruno@clisp.org>
34984
34985         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34986         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34987         * doc/posix-functions/isalpha.texi: Likewise.
34988         * doc/posix-functions/isblank.texi: Likewise.
34989         * doc/posix-functions/iscntrl.texi: Likewise.
34990         * doc/posix-functions/isdigit.texi: Likewise.
34991         * doc/posix-functions/isgraph.texi: Likewise.
34992         * doc/posix-functions/islower.texi: Likewise.
34993         * doc/posix-functions/isprint.texi: Likewise.
34994         * doc/posix-functions/ispunct.texi: Likewise.
34995         * doc/posix-functions/isspace.texi: Likewise.
34996         * doc/posix-functions/isupper.texi: Likewise.
34997         * doc/posix-functions/isxdigit.texi: Likewise.
34998
34999 2009-10-18  Bruno Haible  <bruno@clisp.org>
35000
35001         Tests for module 'isblank'.
35002         * modules/isblank-tests: New file.
35003         * tests/test-isblank.c: New file.
35004
35005         New module 'isblank'.
35006         * lib/isblank.c: New file.
35007         * m4/isblank.m4: New file.
35008         * modules/isblank: New file.
35009         * doc/posix-functions/isblank.texi: Mention the new module.
35010
35011 2009-10-18  Bruno Haible  <bruno@clisp.org>
35012
35013         New module 'ctype'.
35014         * lib/ctype.in.h: New file.
35015         * m4/ctype.m4: New file.
35016         * modules/ctype: New file.
35017         * doc/posix-headers/ctype.texi: Mention the new module.
35018
35019 2009-10-18  Jim Meyering  <meyering@redhat.com>
35020
35021         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35022         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35023         right after its initialization, rather than farther down.
35024         Keeping these in close proximity makes it easier to ensure
35025         that each such variable is initialized.  E.g.,
35026
35027             LIB_CLOCK_GETTIME=
35028             AC_SUBST([LIB_CLOCK_GETTIME])
35029
35030         This change also increments these serial numbers.
35031         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35032         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35034
35035 2009-10-18  Bruno Haible  <bruno@clisp.org>
35036
35037         Don't let environment variables perturb build.
35038         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35039         (gl_PREREQ_GETHRXTIME): ... not here.
35040
35041 2009-10-18  Bruno Haible  <bruno@clisp.org>
35042
35043         Avoid symlink attack in localcharset module.
35044         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35045         (O_NOFOLLOW): Define fallback.
35046         (get_charset_aliases): Don't open the file if it is a symbolic link.
35047         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35048         gl_FCNTL_H.
35049         (gl_FCNTL_H): Require it.
35050         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35051         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35052         Reported by Fergal Glynn <fglynn@veracode.com>.
35053
35054 2009-10-18  Bruno Haible  <bruno@clisp.org>
35055
35056         Implement nproc for mingw.
35057         * lib/nproc.c: Include <windows.h>
35058         (num_processors): On native Windows platforms, try GetSystemInfo.
35059
35060 2009-10-18  Bruno Haible  <bruno@clisp.org>
35061
35062         Implement nproc for IRIX.
35063         * lib/nproc.c: Include <sys/sysmp.h>.
35064         (num_processors): On IRIX systems, try sysmp.
35065         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35066
35067 2009-10-18  Bruno Haible  <bruno@clisp.org>
35068
35069         Implement nproc for HP-UX.
35070         * lib/nproc.c: Include <sys/pstat.h>
35071         (num_processors): On HP-UX systems, try pstat_getdynamic.
35072         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35073         pstat_getdynamic.
35074
35075 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35076             Bruno Haible  <bruno@clisp.org>
35077
35078         Implement nproc for NetBSD, OpenBSD.
35079         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35080         (ARRAY_SIZE): New macro.
35081         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35082         * m4/nproc.m4: New file.
35083         * modules/nproc (Files): Add m4/nproc.m4.
35084         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35085         (Makefile.am): Instead, augment lib_SOURCES.
35086
35087 2009-10-18  Bruno Haible  <bruno@clisp.org>
35088
35089         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35090         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35091         sys/param.h.
35092
35093 2009-10-16  Eric Blake  <ebb9@byu.net>
35094
35095         utimensat: new module
35096         * modules/utimensat: New file.
35097         * lib/utimensat.c (utimensat): Likewise.
35098         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35099         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35100         so we can work around Linux bugs.
35101         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35102         * modules/sys_stat (Makefile.am): Substitute them.
35103         * lib/sys_stat.in.h (utimensat): Declare it.
35104         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35105         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35106         * modules/utimensat-tests: New test.
35107         * tests/test-utimensat.c: Likewise.
35108
35109         utimens: let lutimens work on non-symlinks
35110         * lib/utimens.c (lutimens): Fall back to utimens rather than
35111         failing with ENOSYS, when file is not a symlink.
35112         (utimens): Reduce redirection.
35113         * tests/test-lutimens.h (test_lutimens): Update test to cover
35114         non-symlinks.
35115         * tests/test-utimens.h (test_utimens): Update test to cover
35116         symlinks.
35117         * tests/test-utimens.c (main): Update caller.
35118
35119         utimens: cache whether utimensat syscall works
35120         * lib/utimens.c (utimensat_works_really): New cache variable.
35121         (fdutimens, lutimens): Use it to avoid failing syscall.
35122
35123         test-stat-time, test-utimens: improve portability
35124         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35125         ext4 on alpha, and for cygwin.
35126         * tests/test-utimens-common.h: New file.
35127         (nap): Factor delays into single function.
35128         * tests/test-lutimens.h (test_lutimens): Use new header.
35129         * tests/test-futimens.h (test_futimens): Likewise.
35130         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35131         timestamps to occur from same machine, as was done previously for
35132         test_utimens.
35133         * modules/utimens-tests (Files): Ship new file.
35134         * modules/futimens-tests (Files): Likewise.
35135         Reported in part by Jim Meyering.
35136
35137         sys_stat: sort replacement declarations
35138         * lib/sys_stat.in.h: Sort declarations.
35139         * lib/futimens.c (futimens): Fix typo.
35140
35141 2009-10-15  Jim Meyering  <meyering@redhat.com>
35142
35143         don't let environment settings perturb build
35144         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35145         could cause a configure-time and/or build-time malfunction.
35146         Typically, a configure-time function-in-library test is performed
35147         via code like this:
35148
35149           LIB_VAR=
35150           AC_SUBST([LIB_VAR])
35151           prefix_saved_LIBS=$LIBS
35152             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35153                        [test "$ac_cv_search_FUNC" = "none required" ||
35154                         LIB_VAR=$ac_cv_search_FUNC])
35155           LIBS=$prefix_saved_LIBS
35156
35157         However, in each of the files affected by this change, the LIB_VAR=
35158         initialization was omitted.  Thus, when set in the environment, its
35159         value would propagate into generated Makefiles when FUNC is not found
35160         in LIB_NAME.
35161         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35162         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35164
35165 2009-10-14  Eric Blake  <ebb9@byu.net>
35166
35167         fchdir: avoid infinite recursion in mingw
35168         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35169         recursing.
35170
35171         test-stat-time: port to mingw
35172         * tests/test-stat-time.c (force_unlink): Return a value.
35173         (test_ctime) [W32]: Fix compilation error.
35174         (nap): Don't call usleep with too large an argument.  Use
35175         force_unlink.
35176         * doc/pastposix-functions/usleep.texi (usleep): Document the
35177         portability issue.
35178
35179 2009-10-13  Jim Meyering  <meyering@redhat.com>
35180
35181         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35182         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35183         * modules/pipe-filter-ii: Likewise.
35184         * modules/sys_socket-tests: Likewise.
35185         * modules/tsearch-tests: Likewise.
35186         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35187         (check): Depend on it.
35188
35189 2009-10-12  Eric Blake  <ebb9@byu.net>
35190
35191         utimens-tests: port to NFS file systems
35192         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35193         comparisons to avoid spurious failures from timestamp drift
35194         between NFS machines.
35195
35196 2009-10-12  Eric Blake  <ebb9@byu.net>
35197
35198         stat-time-tests: minor cleanups
35199         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35200         * tests/test-stat-time.c (nap): Separate assignment from call.
35201         Suggested by Paolo Bonzini and Bruno Haible.
35202
35203         sys_stat: guarantee struct timespec
35204         * lib/sys_stat.in.h (includes): Always include <time.h>
35205         * modules/sys_stat (Depends-on): Add time.
35206         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35207         mode_t permission values.
35208         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35209         get at subsecond timestamps.
35210
35211 2009-10-10  Eric Blake  <ebb9@byu.net>
35212
35213         futimens: new module
35214         * modules/futimens: New file.
35215         * lib/futimens.c (futimens): Likewise.
35216         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35217         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35218         we can work around Linux bugs.
35219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35220         * modules/sys_stat (Makefile.am): Substitute them.
35221         * lib/sys_stat.in.h (futimens): Declare it.
35222         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35223         * doc/posix-functions/futimens.texi (futimens): Likewise.
35224         * modules/futimens-tests: New test.
35225         * tests/test-futimens.c: Likewise.
35226
35227         utimens: introduce fdutimens
35228         * lib/utimens.h (fdutimens): New prototype.
35229         * lib/utimens.c (gl_futimens): Move guts...
35230         (fdutimens): ...to new interface.
35231         * tests/test-utimens.c (do_fdutimens): Use it.
35232
35233         utimens: add UTIME_NOW and UTIME_OMIT support
35234         * lib/utimens.c (validate_timespec, update_timespec): New helper
35235         functions.
35236         (gl_futimens, lutimens): Use them.
35237         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35238         stdbool, sys_stat.
35239         (Link): Mention resulting library dependency.
35240         * modules/utimecmp (Link): Likewise.
35241         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35242         (Makefile.am): Pick up library dependency.
35243         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35244         definition.
35245         * tests/test-sys_stat.c: Test the definitions.
35246         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35247         * NEWS: Document library dependency.
35248
35249         utimecmp: support symlink timestamps
35250         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35251         hashing when possible.  Use pathconf when available.
35252         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35253         * modules/utimecmp (Depends-on): Add lstat.
35254
35255         utimens: add lutimens interface
35256         * lib/utimens.c (lutimens): New function.
35257         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35258         * lib/utimens.h (lutimens): Declare new interface.
35259         * tests/test-utimens.c (main): Enhance test.
35260         * tests/test-lutimens.h (test_lutimens): New file.
35261         * modules/utimens-tests (Files): Distribute it.
35262         (Depends-on): Add symlink.
35263         (configure.ac): Check for usleep.
35264
35265         utimens: validate futimens usage
35266         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35267         fewer syscalls on failure later on.  Avoid compiler warning on
35268         mingw.
35269         * modules/utimens (Depends-on): Add dup2.
35270
35271         utimens: add test
35272         * modules/utimens-tests: New test.
35273         * tests/test-utimens.h: New file.
35274         * tests/test-futimens.h: Likewise.
35275         * tests/test-utimens.c: Likewise.
35276
35277         doc: mention timestamp portability issues
35278         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35279         instead.
35280         * doc/posix-functions/utime.texi (utime): Likewise.
35281         * doc/posix-functions/utimes.texi (utimes): Likewise.
35282         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35283         instead.
35284         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35285         module.
35286         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35287         Mention weakness with symlink timestamps.
35288         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35289         to utimensat/futimens instead.
35290         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35291
35292         test-dup2: enhance test
35293         * tests/test-dup2.c (main): Also check AT_FDCWD.
35294
35295         test-stat-time: avoid more spurious failures
35296         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35297         xfs; and avoid race if the two timestamps cross quantization edge.
35298
35299         relocatable: prefer 'file system' over 'filesystem'
35300         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35301         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35302         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35303         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35304         * lib/relocatable.c (compute_curr_prefix): Likewise.
35305
35306 2009-10-10  Jim Meyering  <meyering@redhat.com>
35307
35308         stat-time-tests: check for the usleep function
35309         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35310
35311 2009-10-10  Bruno Haible  <bruno@clisp.org>
35312
35313         * modules/xnanosleep: Put the Link section after the Include section.
35314
35315 2009-10-09  Eric Blake  <ebb9@byu.net>
35316
35317         dup2: work around FreeBSD 6.1 bug
35318         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35319         * doc/posix-functions/dup2.texi (dup2): Document it.
35320         Reported by Nelson H. F. Beebe and Jim Meyering.
35321
35322         test-stat-time: port to buggy NFS clients
35323         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35324         (test_ctime): Also skip test if mtime and ctime are skewed.
35325
35326         maint: prefer 'file system' over 'filesystem'
35327         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35328         * doc/posix-functions/lstat.texi (lstat): Likewise.
35329         * lib/file-has-acl.c (file_has_acl): Likewise.
35330         * lib/fwriteerror.c [TEST]: Likewise.
35331         * tests/test-areadlink.h (test_areadlink): Likewise.
35332         * tests/test-areadlinkat-with-size.c (main): Likewise.
35333         * tests/test-areadlinkat.c (main): Likewise.
35334         * tests/test-canonicalize-lgpl.c (main): Likewise.
35335         * tests/test-canonicalize.c (main): Likewise.
35336         * tests/test-fstatat.c (main): Likewise.
35337         * tests/test-linkat.c (main): Likewise.
35338         * tests/test-lstat.h (test_lstat_func): Likewise.
35339         * tests/test-mkdir.h (test_mkdir): Likewise.
35340         * tests/test-readlink.h (test_readlink): Likewise.
35341         * tests/test-remove.c (main): Likewise.
35342         * tests/test-rename.h (test_rename): Likewise.
35343         * tests/test-renameat.c (main): Likewise.
35344         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35345         * tests/test-symlink.h (test_symlink): Likewise.
35346         * tests/test-symlinkat.c (main): Likewise.
35347         * tests/test-unlink.h (test_unlink_func): Likewise.
35348         * tests/test-unlinkat.c (main): Likewise.
35349
35350         maint: make realtime library usage explicit
35351         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35352         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35353         * modules/settime (Link): Likewise.
35354         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35355
35356         test-stat-time: speed up execution
35357         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35358         warning on mingw.
35359         (nap): New helper function.
35360         (prepare_test): Use it to reduce sleep time.
35361         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35362         execution.
35363         * modules/stat-time-tests (configure.ac): Check for usleep.
35364
35365 2009-10-09  Jim Meyering  <meyering@redhat.com>
35366
35367         selinux-h: always use getfilecon wrappers
35368         * lib/getfilecon.c: New file.
35369         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35370         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35371         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35372         (fgetfilecon): Provide a stub.
35373         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35374         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35375         file unconditionally.
35376         When <selinux/selinux.h> is found, arrange to use wrappers.
35377         * modules/selinux-h (Files): Add getfilecon.c.
35378         (Makefile.am): Substitute include-next-related bits
35379         into the now-always-generated selinux/selinux.h file.
35380         * doc/glibc-functions/lgetfilecon.texi: New file.
35381         * doc/glibc-functions/fgetfilecon.texi: New file.
35382         * doc/glibc-functions/getfilecon.texi: New file.
35383         * doc/glibc-functions/getfilecon-desc.texi: New file.
35384         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35385         which to pull in the new files.
35386         * MODULES.html.sh (Misc): Add selinux-h.
35387
35388 2009-10-08  Jim Meyering  <meyering@redhat.com>
35389
35390         unistd: fix comment typo
35391         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35392
35393 2009-10-08  Eric Blake  <ebb9@byu.net>
35394
35395         areadlink: use SIZE_MAX consistently
35396         * modules/areadlink (Depends-on): Add stdint.
35397         * modules/areadlink-with-size (Depends-on): Likewise.
35398         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35399         gives NULL; drop sys/types, since unistd gives size_t; and add
35400         stdint for SIZE_MAX.
35401         (SIZE_MAX): Rely on headers.
35402         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35403         and add stdint.
35404         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35405         (SIZE_MAX): Likewise.
35406         (INITIAL_BUF_SIZE): Turn into enum.
35407         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35408
35409 2009-10-08  Jim Meyering  <meyering@redhat.com>
35410
35411         areadlinkat: avoid compilation failure
35412         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35413         Fix typo in comment.
35414
35415 2009-10-07  Eric Blake  <ebb9@byu.net>
35416
35417         areadlinkat-with-size: new module
35418         * modules/areadlinkat-with-size: New module.
35419         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35420         * lib/areadlink.h (areadlinkat): Declare it.
35421         * MODULES.html.sh (File system functions): Mention it.
35422         * modules/areadlinkat-with-size-tests: New test.
35423         * tests/test-areadlinkat-with-size.c: New file.
35424
35425         xreadlinkat: new module
35426         * modules/xreadlinkat: New module.
35427         * lib/xreadlinkat.c (xreadlinkat): New file.
35428         * lib/xreadlink.h (xreadlinkat): Declare it.
35429         * MODULES.html.sh (File system functions): Mention it.
35430
35431         areadlinkat: new module
35432         * lib/at-func.c (FUNC_FAIL): New define.
35433         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35434         * modules/areadlinkat: New module.
35435         * lib/linkat.c (areadlinkat): Move...
35436         * lib/areadlinkat.c (areadlinkat): ...to new file.
35437         * lib/areadlink.h (areadlinkat): Declare it.
35438         * modules/linkat (Depends-on): Add areadlinkat.
35439         * MODULES.html.sh (File system functions): Mention it.
35440         * modules/areadlinkat-tests: New test.
35441         * tests/test-areadlinkat.c: New file.
35442
35443         areadlink, areadlink-with-size: add tests
35444         * modules/areadlink-tests: New test.
35445         * modules/areadlink-with-size-tests: Likewise.
35446         * tests/test-areadlink.h: New file.
35447         * tests/test-areadlink.c: Likewise.
35448         * tests/test-areadlink-with-size.c: Likewise.
35449
35450         maint: minor cleanups
35451         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35452         _UNUSED_PARAMETER_ instead.
35453         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35454         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35455         * modules/linkat-tests (Files): Distribute test-link.h.
35456
35457         openat, utimens: whitespace cleanup
35458         * lib/openat.c: Prefer space throughout, rather than mix of 8
35459         spaces vs. tabs.
35460         * lib/at-func.c: Likewise.
35461         * lib/utimens.c: Likewise.
35462
35463         openat: avoid using wrong fd
35464         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35465         working directory chooses same fd.
35466         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35467
35468         mkdir, mkdirat: fix cygwin 1.5.x bug
35469         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35470         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35471         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35472         bug.
35473         (gl_PREREQ_MKDIR): Delete unused macro.
35474         * modules/mkdir (Files): Track file rename.
35475         (configure.ac): Update macro name.
35476         * modules/openat (Depends-on): Add mkdir.
35477         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35478
35479         mkdir, mkdirat: add tests
35480         * modules/mkdir-tests: New test.
35481         * tests/test-mkdir.h: New file.
35482         * tests/test-mkdir.c: Likewise.
35483         * tests/test-mkdirat.c: Likewise.
35484         * modules/openat-tests (Files): Add new files.
35485         (Makefile.am): Run new test.
35486
35487 2009-10-06  Eric Blake  <ebb9@byu.net>
35488
35489         doc: tweak *at function documentation
35490         * doc/posix-functions/faccessat.texi (faccessat): Mention
35491         known issue with replacement.
35492         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35493         * doc/posix-functions/linkat.texi (linkat): Likewise.
35494         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35495         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35496         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35497         * doc/posix-functions/renameat.texi (renameat): Likewise.
35498         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35499
35500         openat: fix GNU/Hurd bug in unlinkat
35501         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35502         broken.
35503         * doc/posix-functions/unlink.texi (unlink): Document this.
35504         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35505
35506         fdopendir: fix GNU/Hurd bug
35507         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35508         allowing non-directory fds.
35509         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35510         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35511         * modules/dirent (Makefile.am): Substitute it.
35512         * lib/dirent.in.h (fdopendir): Declare replacement.
35513         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35514         * tests/test-fdopendir.c (main): Test something other than
35515         /dev/null, since on Hurd that behaves like a directory.
35516
35517         test-symlink: port to GNU/Hurd
35518         * tests/test-symlink.h (test_symlink): Relax expected errno.
35519
35520         doc: tweak more cygwin information
35521         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35522         now compatible with glibc.
35523         * doc/posix-functions/getopt.texi (getopt): Likewise.
35524
35525         getopt-gnu: add another test
35526         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35527         guarantee behavior relied on by m4.
35528         * tests/test-getopt.c (main): Use it.
35529         * modules/getopt-posix-tests (Depends-on): Add setenv.
35530         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35531
35532         getopt: fix compilation on darwin
35533         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35534         include.
35535         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35536         Reported by Ludovic Courtès.
35537
35538 2009-10-06  Bruno Haible  <bruno@clisp.org>
35539
35540         * modules/size_max (Description): Discourage its use.
35541         Reported by Simon Josefsson.
35542
35543 2009-10-06  Jim Meyering  <meyering@redhat.com>
35544
35545         linkat: avoid compilation failure
35546         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35547
35548 2009-10-05  Eric Blake  <ebb9@byu.net>
35549
35550         linkat: support Linux 2.6.17
35551         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35552         linkat on Linux, but allow cache variable override.
35553         * lib/linkat.c (rpl_linkat): Define override.
35554         * modules/linkat (Depends-on): Add symlinkat.
35555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35556         * modules/unistd (Makefile.am): Substitute it.
35557         * lib/unistd.in.h (linkat): Declare replacement.
35558         Reported by Pádraig Brady.
35559
35560         quotearg: port test to systems with C.UTF-8 locale
35561         * tests/test-quotearg.c (struct result_strings): Add another
35562         member, differentiating between C.ASCII and C.UTF-8 handling.
35563         (compare_strings): Add parameter.
35564         (main): Adjust all callers.
35565
35566         getopt: avoid clash with FreeBSD _getopt_internal
35567         * lib/getopt.in.h (_getopt_internal): Override the name.
35568         * lib/getopt_int.h (includes): Pick up any overrides.
35569         Reported by Reuben Thomas.
35570
35571         hash: allow C89 compilation
35572         * lib/hash.c (check_tuning): Move declaration before statement.
35573         Reported by Reuben Thomas.
35574
35575 2009-10-05  Karl Berry  <karl@gnu.org>
35576
35577         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35578
35579 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35580             Bruno Haible  <bruno@clisp.org>
35581
35582         * lib/uname.c (uname): Use a table-driven algorithm to compute
35583         Windows NT versions.
35584
35585 2009-10-04  Bruno Haible  <bruno@clisp.org>
35586
35587         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35588         program_invocation_short_name.
35589         * modules/progname (configure.ac): Test for presence of
35590         program_invocation_short_name.
35591         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35592
35593 2009-10-04  Bruno Haible  <bruno@clisp.org>
35594
35595         * lib/progname.c (set_program_name): Fix comment.
35596         Reported by Jim Meyering.
35597
35598 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35599             Bruno Haible  <bruno@clisp.org>
35600
35601         * lib/uname.c: Include <string.h>.
35602         (uname): Do only one call to GetVersionEx in the common case.
35603
35604 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35605             Bruno Haible  <bruno@clisp.org>
35606
35607         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35608         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35609         (uname): Add support for Windows CE and various non-x86 CPU types.
35610
35611 2009-10-03  Bruno Haible  <bruno@clisp.org>
35612
35613         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35614         invocation to tests/configure.ac.
35615         Reported by Ian Beckwith <ianb@erislabs.net>.
35616
35617 2009-10-02  Eric Blake  <ebb9@byu.net>
35618
35619         fchdir: avoid compiler warning
35620         * lib/fchdir.c (canonicalize_file_name)
35621         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35622
35623         test-open: support mingw errno values
35624         * tests/test-open.h (test_open): Relax test.
35625         * tests/test-fopen.h (test_fopen): Likewise.
35626         * tests/test-openat-safer.c (main): Likewise.
35627
35628         open: fix opening directory on mingw
35629         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35630
35631         test-open: on GNU/Hurd, /dev/null is a directory
35632         * tests/test-fopen.h (main): Rename...
35633         (test_fopen): ...to this.  Use a guaranteed non-directory when
35634         confirming open behavior on trailing slash.
35635         * tests/test-openat-safer.c (main): Likewise.
35636         * tests/test-open.h (main): Likewise....
35637         (test_open): ...to this.
35638         * tests/test-fopen.c (main): Adjust caller.
35639         * tests/test-fopen-safer.c (main): Likewise.
35640         * tests/test-open.c (main): Likewise.
35641         * tests/test-fcntl-safer.c (main): Likewise.
35642         Reported by Samuel Thibault.
35643
35644         rename, fchdir: don't ignore chdir failure
35645         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35646         * lib/rename.c (rpl_rename) [W32]: Likewise.
35647         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35648         an empty destination directory if source cannot be renamed,
35649         although there is still possibility for failure.
35650         * doc/posix-functions/rename.texi (rename): Document the race.
35651         Reported by Jim Meyering.
35652
35653         maint: cleanup whitespace in recent commits
35654         * lib/rename.c (rpl_rename): Remove tabs.
35655         * tests/test-link.h (test_link): Likewise.
35656         * lib/fchdir.c (get_name): Likewise.
35657         Reported by Jim Meyering.
35658
35659 2009-10-02  Ben Pfaff  <blp@gnu.org>
35660
35661         relocatable-prog-wrapper: Add missing dependency on
35662         double-slash-root.
35663         * modules/relocatable-prog-wrapper: Add dependency.
35664         Reported by Ian Beckwith <ianb@erislabs.net>.
35665
35666 2009-10-02  Eric Blake  <ebb9@byu.net>
35667
35668         renameat: fix Solaris bugs
35669         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35670         needed fixing.
35671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35672         * modules/stdio (Makefile.am): Substitute it.
35673         * lib/stdio.in.h (renameat): Declare replacement.
35674         * lib/renameat.c (rpl_renameat): Implement fix.
35675
35676         renameat: new module
35677         * modules/renameat: New file.
35678         * lib/renameat.c (renameat): Likewise.
35679         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35681         * modules/stdio (Makefile.am): Substitute them.
35682         * lib/stdio.in.h (renameat): Declare it.
35683         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35684         * doc/posix-functions/renameat.texi (renameat): Likewise.
35685         * modules/renameat-tests: New test.
35686         * tests/test-renameat.c: Likewise.
35687
35688         rename: fix mingw bugs
35689         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35690         directory overwrite bugs.
35691
35692         rename: fix another cygwin 1.5 bug
35693         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35694         checks.
35695         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35696         unnecessary cygwin workarounds.  Also work around bug with moving
35697         full directory onto an empty one.
35698         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35699
35700         rename-dest-slash: merge into rename module
35701         * modules/rename-dest-slash (Status): Mark obsolete.
35702         (Depends-on): Add rename.
35703         (Files): Let rename do it all.
35704         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35705         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35706         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35707         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35708         * lib/rename.c (rpl_rename): Update comments.
35709
35710         rename: fix cygwin 1.5.x bugs
35711         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35712         * lib/rename.c (rpl_rename): Work around them.
35713         * modules/rename (Depends-on): Add same-inode.
35714
35715         rename: fix Solaris 10 bug
35716         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35717         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35718         was the only bug.
35719
35720         rename: fix Solaris 9 bug
35721         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35722         on non-directory.  Avoid calling exit.
35723         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35724         strdup.
35725         * modules/rename-tests (Depends-on): Drop lstat.
35726         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35727         (gl_PREREQ_RENAME): Delete unused macro.
35728
35729         rename-dest-slash: fix NetBSD bug
35730         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35731         links.
35732         * modules/rename-dest-slash (Depends-on): Add same-inode.
35733
35734         rename-tests: new test, exposes several platform bugs
35735         * modules/rename-tests: New file.
35736         * tests/test-rename.h: Likewise.
35737         * tests/test-rename.c: Likewise.
35738         * doc/posix-functions/rename.texi (rename): Improve documentation,
35739         including bugs that will eventually be fixed in gnulib.
35740
35741 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35742
35743         * lib/uname.c: Include <stdlib.h>
35744         (uname): Assume version info is available.
35745
35746 2009-10-02  Jim Meyering  <meyering@redhat.com>
35747
35748         gnu-web-doc-update: correct --help output
35749         * build-aux/gnu-web-doc-update: Make --help output relevant.
35750
35751         gnu-web-doc-update: add standard options
35752         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35753
35754         gnu-web-doc-update: New module.
35755         Use this script to automatically update the on-line web documentation
35756         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35757         * modules/gnu-web-doc-update: New file, from coreutils.
35758         * build-aux/gnu-web-doc-update: New script.
35759
35760 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35761
35762         link: LoadLibrary is not needed.
35763         * lib/link.c: Use GetModuleHandle.
35764
35765 2009-10-01  Eric Blake  <ebb9@byu.net>
35766
35767         getopt: bump serial number
35768         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35769         change.
35770
35771         tests: tighten link, rmdir, and remove tests
35772         * tests/test-link.h (includes): No need to use <config.h> here.
35773         Clean up if directory hard link was created, otherwise test for
35774         trailing '.'.
35775         * tests/test-linkat.c (main): Simplify.
35776         * tests/test-remove.c (main): Enhance test for trailing '.'.
35777         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35778
35779 2009-10-01  Jim Meyering  <meyering@redhat.com>
35780
35781         maint.mk: requiring "make major" was annoying, for a "minor" release.
35782         What is intended is "stable", to contrast with alpha and beta,
35783         so require "make stable", not "make major".
35784         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35785         (get_tool_versions): Likewise.
35786         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35787
35788 2009-09-30  Ben Pfaff  <blp@gnu.org>
35789
35790         Fix broken build of replacement for Windows tmpfile().
35791         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35792         flags argument added along with the 'mkostemp' module.
35793
35794 2009-09-28  Bruno Haible  <bruno@clisp.org>
35795
35796         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35797         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35798         to 'remove_elt'.
35799         (gl_list_remove): Update.
35800         * lib/gl_list.c (gl_list_remove): Update.
35801         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35802         to 'remove_elt'.
35803         (gl_oset_remove): Update.
35804         * lib/gl_list.c (gl_oset_remove): Update.
35805         Reported by Eric Blake.
35806
35807 2009-09-28  Eric Blake  <ebb9@byu.net>
35808
35809         doc: mention yet more cygwin 1.7 status
35810         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35811         cygwin.
35812         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35813         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35814
35815         argp: fix test failure
35816         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35817         that are not upper-case.  Pass correct range to tolower.
35818
35819 2009-09-27  Jim Meyering  <meyering@redhat.com>
35820
35821         test-yesno: work around sparc-dash here-document infelicity
35822         Without this change, the literal \177 byte in a here document
35823         would make dash 0.5.5.1-3 access uninitialized memory.
35824         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35825         Instead, use a marker, "@", and filter through tr to create the desired
35826         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35827
35828 2009-09-27  Bruno Haible  <bruno@clisp.org>
35829
35830         Disable untested support for new flavours of ACLs on AIX.
35831         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35832         progress.
35833         * lib/set-mode-acl.c (qset_acl): Likewise.
35834
35835 2008-12-07  Bruno Haible  <bruno@clisp.org>
35836
35837         Add support for new flavours of ACLs on AIX. (Untested.)
35838         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35839         (file_has_acl): Add support for newer AIX.
35840         * lib/set-mode-acl.c (qset_acl): Likewise.
35841         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35842         Rainer Tammer <tammer@tammer.net>.
35843
35844 2009-09-26  Eric Blake  <ebb9@byu.net>
35845
35846         argp: fix compilation of getopt
35847         * lib/getopt.in.h (includes): Use different guard than glibc.
35848         Reported by Sergey Poznyakoff.
35849
35850         doc: mention more cygwin 1.7 status
35851         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35852         bug.
35853         * doc/posix-functions/execl.texi (execl): Likewise.
35854         * doc/posix-functions/execle.texi (execle): Likewise.
35855         * doc/posix-functions/execlp.texi (execlp): Likewise.
35856         * doc/posix-functions/execv.texi (execv): Likewise.
35857         * doc/posix-functions/execve.texi (execve): Likewise.
35858         * doc/posix-functions/execvp.texi (execvp): Likewise.
35859         * doc/glibc-functions/canonicalize_file_name.texi
35860         (canonicalize_file_name): Cygwin 1.7 now provides this.
35861         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35862         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35863         on AT_SYMLINK_NOFOLLOW.
35864
35865 2009-09-24  Eric Blake  <ebb9@byu.net>
35866
35867         test-linkat: make test more robust
35868         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35869
35870         getopt: fix inclusion guards for cygwin
35871         * modules/getopt-posix (Depends-on): Add include-next.
35872         (Makefile.am): Substitute more items in replacement header.
35873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35874         <getopt.h>.
35875         * lib/getopt.in.h (includes): Use split inclusion guard, and
35876         prefer <getopt.h> over include <unistd.h> when one is present.
35877         (option): Also override name of 'struct option'.
35878
35879         same-inode: revert prior change; it is not yet ready
35880         * NEWS: Undo mention of this change.
35881         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35882         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35883         * lib/cycle-check.c (cycle_check): Likewise.
35884         * lib/same.c (same_name): Likewise.
35885         * lib/at-func2.c (at_func2): Likewise.
35886
35887 2009-09-23  Eric Blake  <ebb9@byu.net>
35888
35889         linkat: new module
35890         * modules/linkat: New file.
35891         * lib/at-func2.c (at_func2): Likewise.
35892         * lib/linkat.c (linkat): Likewise.
35893         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35894         * lib/openat-priv.h (at_func2): Add declaration.
35895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35896         * modules/unistd (Makefile.am): Substitute them.
35897         * lib/unistd.in.h (linkat): Declare it.
35898         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35899         * doc/posix-functions/linkat.texi (linkat): Likewise.
35900         * doc/posix-functions/link.texi (link): Tweak wording.
35901         * tests/test-link.c (main): Move guts...
35902         * tests/test-link.h (test_link): ...into new file.
35903         * modules/linkat-tests: New test.
35904         * tests/test-linkat.c: Likewise.
35905         * modules/link-tests (Files): Ship new file.
35906         (Depends-on): Add stdbool.
35907
35908         dirname: add library-safe mdir_name
35909         * lib/dirname.h (mdir_name): New prototype.
35910         * lib/dirname.c (dir_name): Move guts...
35911         (mdir_name): ...to new function that avoids xalloc_die.
35912
35913         fchdir: another mingw fix
35914         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35915         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35916         on mingw (where it has not yet been ported), and make it optional
35917         elsewhere.
35918         (_gl_register_fd): Use it.
35919
35920         same-inode: make SAME_INODE tri-state, to port to mingw
35921         * NEWS: Mention this change.
35922         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35923         st_ino always being 0.
35924         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35925         * lib/cycle-check.c (cycle_check): Likewise.
35926         * lib/same.c (same_name): Likewise.
35927
35928         lstat: avoid mingw compilation error
35929         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35930         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35931         lstat ourselves.
35932         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35933         was adequate.
35934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35935         the checks for lstat.
35936         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35937
35938         link: fix test failure on Solaris 9
35939         * lib/link.c (rpl_link): Don't assume link will catch bogus
35940         trailing slash on source.
35941
35942         test-symlinkat: enhance test
35943         * tests/test-readlink.c (main): Move guts...
35944         * tests/test-readlink.h (test_readlink): ...into new file.
35945         * tests/test-symlink.c (main): Move guts...
35946         * tests/test-symlink.h (test_symlink): ...into new file.
35947         * tests/test-symlinkat.c (main): Use new files for further
35948         coverage.
35949         (do_symlink, do_readlink): New helper functions.
35950         * modules/symlink-tests (Files): Ship new file.
35951         (Depends-on): Add stdbool.
35952         * modules/readlink-tests (Files): Ship new file.
35953         (Depends-on): Add stdbool.
35954         * modules/symlinkat-tests (Files): Use new files.
35955
35956 2009-09-23  Eric Blake  <ebb9@byu.net>
35957
35958         readlink: document portability issue with symlink length
35959         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35960         systems have bogus st_size on symlinks, and mention the
35961         areadlink-with-size module.
35962         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35963         * doc/posix-functions/readlink.texi (readlink): Mention the
35964         areadlink module, and ERANGE failure.
35965         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35966         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35967
35968         readlink: fix Solaris 9 bug with trailing slash
35969         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35970         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35971         * doc/posix-functions/readlink.texi (readlink): Document this.
35972         * modules/readlink-tests: New test.
35973         * tests/test-readlink.c: Likewise.
35974
35975         readlink: fix cygwin 1.5.x bug with return type
35976         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35977         * lib/unistd.in.h (readlink): Use ssize_t.
35978         * lib/readlink.c (readlink): Likewise.
35979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35980         * modules/unistd (Makefile.am): Substitute it.
35981         * lib/unistd.in.h (readlink): Declare replacement.
35982         * doc/posix-functions/readlink.texi (readlink): Document this.
35983
35984         symlink: use throughout gnulib
35985         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35986         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35987         symlink is not used.
35988         * modules/symlinkat (Depends-on): Add symlink.
35989         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35990         * modules/canonicalize-tests (Depends-on): Likewise.
35991         * modules/lstat-tests (Depends-on): Likewise.
35992         * modules/openat-tests (Depends-on): Likewise.
35993         * modules/remove-tests (Depends-on): Likewise.
35994         * modules/rmdir-tests (Depends-on): Likewise.
35995         * modules/unlink-tests (Depends-on): Likewise.
35996         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35997         * tests/test-canonicalize.c (symlink): Likewise.
35998         * tests/test-fstatat.c (symlink): Likewise.
35999         * tests/test-lstat.c (symlink): Likewise.
36000         * tests/test-remove.c (symlink): Likewise.
36001         * tests/test-rmdir.c (symlink): Likewise.
36002         * tests/test-unlink.c (symlink): Likewise.
36003         * tests/test-unlinkat.c (symlink): Likewise.
36004
36005         symlink: new module, for Solaris 9 bug
36006         * modules/symlink: New file.
36007         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36008         * lib/symlink.c: Likewise.
36009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36010         * modules/unistd (Makefile.am): Substitute them.
36011         * lib/unistd.in.h (symlink): Declare replacement.
36012         * MODULES.html.sh (File system functions): Mention it.
36013         * doc/posix-functions/symlink.texi (symlink): Likewise.
36014         * modules/symlink-tests: New test.
36015         * tests/test-symlink.c: Likewise.
36016
36017 2009-09-23  Bruno Haible  <bruno@clisp.org>
36018
36019         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36020         when needed.
36021         Test case: gnulib-tool --import --with-tests atexit inttypes.
36022         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36023
36024 2009-09-23  Bruno Haible  <bruno@clisp.org>
36025
36026         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36027         subcommand, not in a subshell.
36028
36029 2009-09-22  Eric Blake  <ebb9@byu.net>
36030
36031         unistd: sort replacement declarations
36032         * lib/unistd.in.h: Sort declarations.
36033
36034         open, openat: minor optimization
36035         * lib/open.c (open): If open succeeded, len is non-zero.
36036         * lib/openat.c (rpl_openat): Likewise.
36037
36038         link-follow: ensure correct result
36039         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36040         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36041         distinguish between possible failures.
36042
36043 2009-09-21  Eric Blake  <ebb9@byu.net>
36044
36045         fts: avoid compiler warning
36046         * lib/fts.c (dirent_inode_sort_may_be_useful)
36047         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36048
36049 2009-09-19  Bruno Haible  <bruno@clisp.org>
36050
36051         * lib/progreloc.c (canonicalize_file_name): New declaration.
36052
36053 2009-09-19  Eric Blake  <ebb9@byu.net>
36054
36055         link: fix quoting
36056         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36057
36058         openat: fix openat bugs on Solaris 9
36059         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36060         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36061         * modules/openat (Depends-on): Add open.
36062         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36063         * modules/fcntl-h (Makefile.am): Substitute it.
36064         * lib/fcntl.in.h (openat): Declare replacement.
36065         * doc/posix-functions/openat.texi (openat): Document this.
36066
36067         openat: move fstatat and unlinkat into correct files
36068         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36069         compiled.
36070         * lib/openat.c (fstatat, unlinkat): Move...
36071         * lib/fstatat.c (fstatat): ...into correct files.
36072         * lib/unlinkat.c (unlinkat): Likewise.
36073
36074         openat: fix unlinkat bugs on Solaris 9
36075         * lib/unlinkat.c (unlinkat): New file.
36076         * modules/openat (Depends-on): Add unlink.
36077         (Files): Distribute it.
36078         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36079         trailing slash behavior is broken.
36080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36081         * modules/unistd (Makefile.am): Substitute it.
36082         * lib/unistd.in.h (unlinkat): Declare replacement.
36083         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36084
36085         openat: fix fstatat bugs on Solaris 9
36086         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36087         stat.
36088         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36089
36090         test-unlinkat: enhance test, to expose Solaris 9 bug
36091         * tests/test-unlink.c (main): Factor guts...
36092         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36093         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36094         * tests/test-rmdir.c (main): Adjust caller.
36095         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36096         (unlinker): New helper function.
36097         (rmdirat): Enhance check.
36098         * modules/rmdir-tests (Depends-on): Add stdbool.
36099         * modules/unlink-tests (Depends-on): Likewise.
36100         (Files): Add test-unlink.h.
36101         * modules/openat-tests (Files): Likewise.
36102         (Depends-on): Add unlinkdir.
36103
36104         test-fstatat: new test, to expose Solaris 9 bugs
36105         * tests/test-stat.c (main): Factor guts...
36106         * tests/test-stat.h (test_stat_func): ...into new file.
36107         * tests/test-lstat.c (main): Factor guts...
36108         * tests/test-lstat.h (test_lstat_func): ...into new file.
36109         * tests/test-fstatat.c: New file.
36110         * modules/stat-tests (Files): Add test-stat.h.
36111         * modules/lstat-tests (Files): Add test-lstat.h.
36112         (Depends-on): Add stdbool.
36113         * modules/openat-tests (Depends-on): Add pathmax.
36114         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36115         (Makefile.am): Run new test.
36116
36117         remove: new module, for mingw and Solaris 9 bugs
36118         * modules/remove: New file.
36119         * lib/remove.c: Likewise.
36120         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36122         * modules/stdio (Makefile.am): Use them.
36123         * lib/stdio.in.h (remove): Declare replacement.
36124         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36125         * doc/posix-functions/remove.texi (remove): Likewise.
36126         * modules/remove-tests: New test.
36127         * tests/test-remove.c: Likewise.
36128
36129         unlink: new module, for Solaris 9 bug
36130         * modules/unlink: New file.
36131         * lib/unlink.c: Likewise.
36132         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36134         * modules/unistd (Makefile.am): Use them.
36135         * lib/unistd.in.h (stat): Declare replacement.
36136         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36137         * doc/posix-functions/unlink.texi (unlink): Likewise.
36138         * modules/unlink-tests: New test.
36139         * tests/test-unlink.c: Likewise.
36140
36141         lstat: fix Solaris 9 bug
36142         * lib/lstat.c (lstat): Also check for trailing slash on
36143         non-symlink, non-directories.  Use stat module to simplify logic.
36144         * doc/posix-functions/lstat.texi (lstat): Document it.
36145         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36146         (configure.ac): Check for symlink.
36147         * tests/test-lstat.c (main): Add more tests.
36148
36149         stat: add as dependency to other modules
36150         * modules/chown (Depends-on): Add stat.
36151         * modules/euidaccess (Depends-on): Likewise.
36152         * modules/fchdir (Depends-on): Likewise.
36153         * modules/isdir (Depends-on): Likewise.
36154         * modules/link (Depends-on): Likewise.
36155         * modules/lstat (Depends-on): Likewise.
36156         * modules/mkdir-p (Depends-on): Likewise.
36157         * modules/modechange (Depends-on): Likewise.
36158         * modules/open (Depends-on): Likewise.
36159         * modules/readlink (Depends-on): Likewise.
36160         * modules/same (Depends-on): Likewise.
36161
36162         stat: fix Solaris 9 bug
36163         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36164         slash.
36165         * lib/stat.c (rpl_stat): Work around it.
36166         * doc/posix-functions/stat.texi (stat): Update documentation.
36167
36168         stat: new module, for mingw bug
36169         * modules/stat: New file.
36170         * lib/stat.c: Likewise.
36171         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36173         * modules/sys_stat (Makefile.am): Use them.
36174         * lib/sys_stat.in.h (stat): Declare replacement.
36175         * lib/openat.c (fstatat): Deal with lstat and stat being function
36176         macros.
36177         * modules/openat (Depends-on): Add inline.
36178         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36179         * doc/posix-functions/stat.texi (stat): Likewise.
36180         * modules/stat-tests: New test.
36181         * tests/test-stat.c: Likewise.
36182
36183 2009-09-19  Jim Meyering  <meyering@redhat.com>
36184
36185         syntax-check: detect unnecessary inclusion of canonicalize.h
36186         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36187
36188 2009-09-19  Eric Blake  <ebb9@byu.net>
36189
36190         canonicalize-lgpl: adjust clients to use correct header
36191         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36192         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36193         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36194         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36195         * lib/progreloc.c (includes): Likewise.
36196
36197 2009-09-19  Jim Meyering  <meyering@redhat.com>
36198
36199         test-posixtm.c: correct a comment
36200         * tests/test-posixtm.c: Correct first-line comment.
36201         Spotted by Eric Blake.
36202
36203 2009-09-16  Jim Meyering  <meyering@redhat.com>
36204
36205         posixtm-tests: make T const-correct; add a test case
36206         * tests/test-posixtm.c (T): Declare const.
36207         Add a test for -(2^31+1).
36208         Remove useless can-succeed-only-in-2002 test.
36209
36210         posixtm-tests: adjust the sole failing test
36211         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36212         expected output matches what mktime now produces.  Cross-checked via
36213         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36214
36215         posixtm: move #ifdef'd tests into a new module
36216         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36217         * tests/test-posixtm.c: ... this new file.
36218         * modules/posixtm-tests: New module.
36219
36220 2009-09-19  Eric Blake  <ebb9@byu.net>
36221
36222         openat: simplify use of at-func.c
36223         * lib/at-func.c (includes): Include prerequisites here, to
36224         simplify requirements on client files.
36225         * lib/openat-priv.h: Add double-inclusion guard.
36226         * lib/faccessat.c (includes): Simplify.
36227         * lib/fchmodat.c (includes): Likewise.
36228         * lib/fchownat.c (includes): Likewise.
36229         * lib/mkdirat.c (includes): Likewise.
36230         * lib/mkfifoat.c (includes): Likewise.
36231         * lib/symlinkat.c (includes): Likewise.
36232
36233         openat: allow return of fd 0
36234         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36235         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36236         unistd-safer.
36237         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36238         <fcntl.h>; this module does not leak fds.
36239         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36240         must be allowed to return 0, leaving openat_safer to add the
36241         safety.
36242         (openat_permissive): Avoid writing to just-opened fd 2 if
36243         restoring the current directory fails.
36244         * lib/openat-die.c (openat_restore_fail): Add comment.
36245         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36246         (save_cwd): Guarantee safe fd, but without use of open_safer.
36247         * tests/test-openat.c: New test.
36248         * modules/openat-tests (Files, Makefile.am): Distribute and build
36249         new file.
36250
36251         relocatable-prog-wrapper: fix build
36252         * modules/relocatable-prog-wrapper (Files): Update name of
36253         canonicalize m4 file, broken on 2009-09-17.
36254         Reported by emad hajjar <aleppos@hotmail.com>.
36255
36256 2009-09-19  Bruno Haible  <bruno@clisp.org>
36257
36258         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36259         * lib/safe-alloc.c: Likewise.
36260         Reported by Ian Beckwith <ianb@erislabs.net>.
36261
36262 2009-09-18  Bruno Haible  <bruno@clisp.org>
36263
36264         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36265         Reported by <erobles@sensacd.com.mx>.
36266
36267 2009-09-17  Eric Blake  <ebb9@byu.net>
36268
36269         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36270         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36271         slashes when checking if last component is missing.
36272         * tests/test-canonicalize.c (main): Test this.
36273
36274         canonicalize, canonicalize-lgpl: honor // if distinct from /
36275         * modules/canonicalize (Files): Add double-slash-root.m4.
36276         * modules/canonicalize-lgpl (Files): Likewise.
36277         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36278         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36279         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36280         fallback definition.
36281         (canonicalize_filename_mode): Use it to protect //.
36282         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36283         (__realpath): Likewise.
36284         * tests/test-canonicalize.c (main): Test this.
36285         * tests/test-canonicalize-lgpl.c (main): Likewise.
36286         * modules/canonicalize-tests (Depends-on): Add same-inode.
36287         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36288
36289         canonicalize-lgpl: fix glibc bug with trailing slash
36290         * m4/canonicalize-lgpl.m4: Move contents...
36291         * m4/canonicalize.m4: ...here.
36292         (gl_CANONICALIZE_LGPL): Factor realpath check...
36293         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36294         glibc 2.3.5 bug, fixed 2005-04-27.
36295         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36296         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36297         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36298         * modules/canonicalize-lgpl (Files): Manage file rename.
36299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36300         * modules/stdlib (Makefile.am): Substitute witness.
36301         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36302         is needed.
36303         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36304         replacement is required.
36305         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36306         * doc/glibc-functions/canonicalize_file_name.texi
36307         (canonicalize_file_name): Document this.
36308         * doc/posix-functions/realpath.texi (realpath): Likewise.
36309
36310         canonicalize-lgpl: reject non-directory with trailing slash
36311         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36312         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36313         catches failures in glibc 2.3.5.
36314         * tests/test-canonicalize.c (main): Likewise.
36315
36316         canonicalize-lgpl: use native realpath if it works
36317         * lib/canonicalize-lgpl.c (realpath): Guard with
36318         FUNC_REALPATH_WORKS.
36319         * lib/stdlib.in.h (realpath): Make declaration optional based on
36320         HAVE_REALPATH.
36321         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36322         native realpath works.
36323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36324         * modules/stdlib (Makefile.am): Substitute witness.
36325
36326         canonicalize, canonicalize-lgpl: use <stdlib.h>
36327         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36328         (Include): Mention <stdlib.h>.
36329         (configure.ac): Mention functions we provide.
36330         * modules/canonicalize (configure.ac): Likewise.
36331         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36332         realpath if canonicalize_file_name is missing.
36333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36334         * modules/stdlib (Makefile.am): Substitute witnesses.
36335         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36336         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36337         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36338         * NEWS: Document this.
36339         * doc/glibc-functions/canonicalize_file_name.texi
36340         (canonicalize_file_name): Likewise.
36341         * doc/posix-functions/realpath.texi (realpath): Likewise.
36342         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36343
36344         test-canonicalize: consolidate into single C program
36345         * tests/test-canonicalize.sh: Delete; move setup into...
36346         * tests/test-canonicalize.c (main): ...the program, making it
36347         easier to run in debugger.  Add some tests.
36348         * modules/canonicalize-tests (Files): Remove unused file.
36349         (Depends-on): Add progname.
36350         (configure.ac, Makefile.am): Simplify.
36351
36352         test-canonicalize-lgpl: consolidate into single C program
36353         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36354         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36355         easier to run in debugger.  Add some tests.
36356         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36357         (configure.ac, Makefile.am): Simplify.
36358
36359         canonicalize: avoid resolvepath
36360         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36361         unnecessary checks.
36362         * lib/canonicalize.c (includes): Simplify.
36363         (canonicalize_file_name): Drop resolvepath implementation.
36364         * modules/canonicalize (Depends-on): Drop filenamecat.
36365
36366         canonicalize: don't lose errno
36367         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36368         over calls to free.
36369
36370         canonicalize: simplify errno handling
36371         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36372         assignment.
36373
36374         canonicalize, canonicalize-lgpl: update module dependencies
36375         * modules/canonicalize (Depends-on): Add extensions, lstat,
36376         pathmax, stdlib.
36377         (Files): Drop pathmax.h.
36378         (configure.ac): Adjust macro name.
36379         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36380         lstat, stdlib, sys_stat.
36381         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36382         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36383         extensions.
36384         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36385         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36386         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36387         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36388         declaration, if available.
36389         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36390         we can rely on the readlink module.
36391         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36392         (includes): Use <unistd.h> unconditionally.
36393
36394 2009-09-17  Eric Blake  <ebb9@byu.net>
36395
36396         maint: make Include sections of modules consistent
36397         * modules/alloca: Use only header name; no need to list #include.
36398         * modules/alloca-opt: Likewise.
36399         * modules/arpa_inet: Likewise.
36400         * modules/canon-host: Likewise.
36401         * modules/configmake: Likewise.
36402         * modules/dirent: Likewise.
36403         * modules/eealloc: Likewise.
36404         * modules/environ: Likewise.
36405         * modules/fchdir: Likewise.
36406         * modules/fcntl: Likewise.
36407         * modules/fcntl-h: Likewise.
36408         * modules/gethrxtime: Likewise.
36409         * modules/gettime: Likewise.
36410         * modules/ignore-value: Likewise.
36411         * modules/inet_ntop: Likewise.
36412         * modules/inet_pton: Likewise.
36413         * modules/inttypes: Likewise.
36414         * modules/isnand-nolibm: Likewise.
36415         * modules/isnanf-nolibm: Likewise.
36416         * modules/mbchar: Likewise.
36417         * modules/mbfile: Likewise.
36418         * modules/mbiter: Likewise.
36419         * modules/mbuiter: Likewise.
36420         * modules/netdb: Likewise.
36421         * modules/netinet_in: Likewise.
36422         * modules/nproc: Likewise.
36423         * modules/pagealign_alloc: Likewise.
36424         * modules/poll: Likewise.
36425         * modules/printf-frexp: Likewise.
36426         * modules/pthread: Likewise.
36427         * modules/putenv: Likewise.
36428         * modules/random_r: Likewise.
36429         * modules/relocatable-prog: Likewise.
36430         * modules/search: Likewise.
36431         * modules/select: Likewise.
36432         * modules/selinux-h: Likewise.
36433         * modules/settime: Likewise.
36434         * modules/signal: Likewise.
36435         * modules/size_max: Likewise.
36436         * modules/socklen: Likewise.
36437         * modules/ssize_t: Likewise.
36438         * modules/stdarg: Likewise.
36439         * modules/stdbool: Likewise.
36440         * modules/stddef: Likewise.
36441         * modules/stdint: Likewise.
36442         * modules/stdio: Likewise.
36443         * modules/stdlib: Likewise.
36444         * modules/string: Likewise.
36445         * modules/strings: Likewise.
36446         * modules/sys_file: Likewise.
36447         * modules/sys_ioctl: Likewise.
36448         * modules/sys_select: Likewise.
36449         * modules/sys_socket: Likewise.
36450         * modules/sys_stat: Likewise.
36451         * modules/sys_time: Likewise.
36452         * modules/sys_times: Likewise.
36453         * modules/sys_utsname: Likewise.
36454         * modules/sys_wait: Likewise.
36455         * modules/sysexits: Likewise.
36456         * modules/time: Likewise.
36457         * modules/times: Likewise.
36458         * modules/tmpfile: Likewise.
36459         * modules/trim: Likewise.
36460         * modules/unistd: Likewise.
36461         * modules/wchar: Likewise.
36462         * modules/wctype: Likewise.
36463
36464 2009-09-17  Bruno Haible  <bruno@clisp.org>
36465
36466         Make getdate.y compile on QNX and NetBSD 5 / i386.
36467         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36468         TIME_T_FITS_IN_LONG_INT.
36469         * lib/getdate.y (long_time_t): New type.
36470         (relative_time): Change type of 'seconds' field to long_time_t.
36471         (get_date): Update types of local variables. Check against overflow
36472         during conversion from long_time_t to time_t.
36473         Reported by Matt Kraai <kraai@ftbfs.org>
36474         and Hasso Tepper <hasso@netbsd.org>.
36475
36476 2009-09-17  Bruno Haible  <bruno@clisp.org>
36477
36478         * modules/COPYING: Update copyright years.
36479         * modules/README: Likeiwse.
36480         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36481         Reported by Ian Beckwith <ianb@erislabs.net>.
36482
36483 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36484
36485         * users.txt: Update references for gnuit package.
36486
36487 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36488
36489         * m4/getdelim.m4: Fix typo in copyright line.
36490
36491 2009-09-17  Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/atoll.c: Use the standard header with GPL copyright.
36494         * lib/argz.in.h: Likewise.
36495         * lib/glob.c: Likewise.
36496         * lib/glob-libc.h: Likewise.
36497         * lib/random_r.c: Likewise.
36498         * lib/siglist.h: Likewise.
36499         * lib/strsignal.c: Likewise.
36500         Reported by Ian Beckwith <ianb@erislabs.net>.
36501
36502 2009-09-17  Eric Blake  <ebb9@byu.net>
36503
36504         rmdir: ensure correct dependency order
36505         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36506
36507 2009-09-17  Bruno Haible  <bruno@clisp.org>
36508
36509         Disable assertion that fails on NetBSD 5 / i386.
36510         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36511         Reported by Sam Steingold <sds@gnu.org>
36512         and Hasso Tepper <hasso@netbsd.org>.
36513
36514 2009-09-16  Eric Blake  <ebb9@byu.net>
36515
36516         unlinkdir: port to mingw
36517         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36518         on which no one can unlink a directory.
36519
36520         stdlib: sort witness names
36521         * modules/stdlib (Makefile.am): Sort replacements.
36522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36523         * lib/stdlib.in.h: Likewise.
36524
36525         parse-duration-tests: avoid link failure
36526         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36527         LIBINTL.
36528         Reported by Tom G. Christensen.
36529
36530         openat-tests: ensure unlinkat behaves like rmdir
36531         * tests/test-rmdir.c (main): Factor guts...
36532         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36533         * modules/rmdir-tests (Files): Ship new file.
36534         * modules/openat-tests: New test.
36535         * tests/test-unlinkat.c: Likewise.
36536
36537         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36538         * modules/rmdir-errno (Status, Notice): Now obsolete.
36539
36540         rmdir: work around cygwin 1.5.x and mingw bugs
36541         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36542         * lib/rmdir.c (rmdir): Work around it.
36543         * modules/rmdir (Status, Notice): No longer obsolete.
36544         (Files): Add dos.m4.
36545         (Depends-on): Add unistd.
36546         (configure.ac): Set witnesses.
36547         (License): Relax to LGPLv2+.
36548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36549         * modules/unistd (Makefile.am): Substitute witnesses.
36550         * lib/unistd.in.h (rmdir): Declare replacement.
36551         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36552         * modules/rmdir-tests: New tests.
36553         * tests/test-rmdir.c: Likewise.
36554
36555 2009-09-15  Eric Blake  <ebb9@byu.net>
36556
36557         fchdir: improve use of replacement functions
36558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36559         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36560         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36561         REPLACE_CLOSEDIR.
36562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36563         * modules/sys_stat (Makefile.am): Substitute correct witness.
36564         * modules/dirent (Makefile.am): Likewise.
36565         * modules/unistd (Makefile.am): Likewise.
36566         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36567         * lib/unistd.in.h (dup): Likewise.
36568         * lib/sys_stat.in.h (fstat): Likewise.
36569
36570         maint: ignore gnulib-tool temp files
36571         * .gitignore: Ignore files created during gnulib-tool --test.
36572
36573 2009-09-13  Jim Meyering  <meyering@redhat.com>
36574
36575         posixtm: don't reject a time that specify "60" as the number of seconds
36576         * lib/posixtm.c (posixtime): The code to reject invalid dates
36577         would also reject a time specified with the .60 suffix.
36578         But POSIX allows that, in order to accommodate leap seconds.
36579         So don't reject it.
36580         (main): Adjust tests accordingly.
36581         * modules/posixtm (Depends-on): Add stpcpy.
36582
36583 2009-09-11  Jim Meyering  <meyering@redhat.com>
36584
36585         announce-gen: include [$release_type] in emitted Subject:
36586         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36587         e.g., [stable] in the emitted Subject: line.
36588
36589 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36590
36591         Remove obsolete macros from several modules.
36592         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36593         obsolete Autoconf macros with their modern counterparts.
36594         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36595         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36596         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36597         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36598         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36599         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36601         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36602         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36603         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36604         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36605         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36606         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36607         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36608         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36609         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36610         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36611         * m4/time_r.m4 (gl_TIME_R): Likewise.
36612         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36613         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36614         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36615
36616         Fix copyright header in build-aux scripts.
36617         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36618         recommendation.
36619         * build-aux/ncftpput-ftp: Likewise.
36620         * build-aux/update-copyright: Likewise.
36621
36622 2009-09-09  Eric Blake  <ebb9@byu.net>
36623
36624         test-link: allow Linux choice of errno
36625         * tests/test-link.c (main): Relax test for alternate error.
36626
36627         strndup: fix improper m4 caching
36628         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36629         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36630         (gl_PREREQ_STRNDUP): Delete.
36631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36632         * modules/string (Makefile.am): Substitute it.
36633         * lib/string.in.h (strndup): Modernize prototype.
36634
36635         getcwd: port to mingw
36636         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36637         different from the POSIX assumptions made throughout the getcwd
36638         module; fortunately, the mingw getcwd does not need replacement.
36639         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36640         * modules/getcwd-tests: New test.
36641         * tests/test-getcwd.c: Likewise.
36642
36643         link: fix platform bugs
36644         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36645         * lib/link.c (link): Work around them.  Fix related mingw bug.
36646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36647         * modules/unistd (Makefile.am): Substitute it.
36648         * lib/unistd.in.h (link): Declare replacement.
36649         * doc/posix-functions/link.texi (link): Document this.
36650         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36651
36652         test-link: consolidate into single C program, test more cases
36653         * tests/test-link.sh: Delete.
36654         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36655         at least Cygwin and Solaris.
36656         * modules/link-tests (Files): Remove unused file.
36657         (Depends-on): Add errno, sys_stat.
36658         (Makefile.am): Simplify.
36659
36660 2009-09-08  Bruno Haible  <bruno@clisp.org>
36661
36662         Work around towlower, towupper bug on mingw.
36663         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36664         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36665         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36666         * doc/posix-functions/towupper.texi: Likewise.
36667         Reported by Eric Blake.
36668
36669 2009-09-08  Jim Meyering  <meyering@redhat.com>
36670
36671         build: don't try to run autoheader if we don't use it
36672         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36673         is not used in configure.ac.
36674
36675 2009-09-08  Eric Blake  <ebb9@byu.net>
36676
36677         euidaccess: fix compilation error
36678         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36679
36680         rawmemchr: relax license
36681         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36682         okay.
36683         Reported by Jim Meyering.
36684
36685         mkfifoat: new module
36686         * modules/mkfifoat: New file.
36687         * lib/mkfifoat.c: Likewise.
36688         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36690         * modules/sys_stat (Makefile.am): Use them.
36691         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36692         * MODULES.html.sh (File system functions): Mention module.
36693         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36694         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36695         * modules/mkfifoat-tests: New test.
36696         * tests/test-mkfifoat.c: Likewise.
36697
36698         strchrnul: relax license
36699         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36700         okay.
36701         Reported by Jim Meyering.
36702
36703 2009-09-08  Eric Blake  <ebb9@byu.net>
36704
36705         fstatat: fix compilation on Solaris
36706         * lib/fstatat.c (includes): Add fcntl.h.
36707         Reported by Pádraig Brady.
36708
36709 2009-09-07  Eric Blake  <ebb9@byu.net>
36710
36711         rename: modernize replacement
36712         * modules/rename (Depends-on): Add stdio.
36713         (configure.ac): Declare witness.
36714         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36715         stdio take care of replacement.
36716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36717         * modules/stdio (Makefile.am): Substitute them.
36718         * lib/stdio.in.h (rename): Declare replacement.
36719         * lib/rename.c (includes): Allow cross-compilation to non-windows
36720         machines.
36721         * doc/posix-functions/rename.texi (rename): Improve
36722         documentation.
36723
36724         stdio: sort witness names
36725         * modules/stdio (Makefile.am): Sort replacements.
36726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36727         * lib/stdio.in.h: Likewise.
36728
36729         getcwd: minor cleanups
36730         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36731         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36732
36733         openat: provide more convenience names
36734         * modules/faccessat (configure.ac): Add C witness.
36735         * lib/unistd.in.h (readlinkat): Fix typo.
36736         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36737         convenience wrappers.
36738         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36739         wrappers in syntax checks.
36740
36741 2009-09-06  Eric Blake  <ebb9@byu.net>
36742
36743         doc: fix comments in recent patches
36744         * lib/faccessat.c: Mention correct function.
36745         * lib/fchmodat.c: Likewise.
36746         * lib/fchownat.c: Likewise.
36747         * lib/symlinkat.c: Likewise.
36748         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36749         constants.
36750
36751         faccessat, symlinkat: continue cleanup of previous patch
36752         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36753         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36754         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36756         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36757         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36758         set.
36759
36760 2009-09-06  Bruno Haible  <bruno@clisp.org>
36761
36762         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36763         (fstatat): Declare if GNULIB_FSTATAT is set.
36764         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36765         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36766         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36767         * modules/fcntl-h (Files): Remove m4/openat.m4.
36768         * modules/sys_stat (Files): Remove m4/openat.m4.
36769         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36770         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36771         * modules/unistd (Files): Remove m4/openat.m4.
36772         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36773         GNULIB_OPENAT.
36774         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36775         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36776         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36777         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36778         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36779         gl_OPENAT_DEFAULTS.
36780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36781         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36782         Don't require gl_OPENAT_DEFAULTS.
36783         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36784         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36785         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36786         (gl_OPENAT_DEFAULTS): Remove macro.
36787
36788 2009-09-06  Bruno Haible  <bruno@clisp.org>
36789
36790         * modules/openat (configure.ac): Remove unneeded witness.
36791
36792 2009-09-06  Bruno Haible  <bruno@clisp.org>
36793
36794         Set errno to ENOSYS when a function is entirely unsupported.
36795         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36796         EOPNOTSUPP.
36797         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36798         * modules/chown (Depends-on): Remove errno.
36799
36800 2009-09-06  Bruno Haible  <bruno@clisp.org>
36801
36802         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36803
36804 2009-09-06  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36807
36808 2009-09-06  Ben Pfaff  <blp@gnu.org>
36809             Bruno Haible  <bruno@clisp.org>
36810
36811         Work around a glibc bug in strtok_r.
36812         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36813         Undefine if UNDEFINE_STRTOK_R is set.
36814         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36816         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36817         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36818         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36819         UNDEFINE_STRTOK_R.
36820         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36821
36822 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36823
36824         exclude: minor fix
36825         * lib/exclude.c: Include wctype.h
36826
36827 2009-09-06  Akim Demaille  <demaille@gostai.com>
36828
36829         bootstrap: improve error message
36830         * build-aux/bootstrap (find_tool): Upon failure, report the list
36831         of candidates.
36832         Honor the initial value of the envvar.
36833
36834 2009-09-05  Eric Blake  <ebb9@byu.net>
36835
36836         symlinkat: new module
36837         * modules/symlinkat: New file.
36838         * lib/symlinkat.c: Likewise.
36839         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36841         * modules/unistd (Makefile.am): Use them.
36842         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36843         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36844         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36845         * MODULES.html.sh (File system functions): Mention module.
36846         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36847         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36848         * modules/symlinkat-tests: New test.
36849         * tests/test-symlinkat.c: Likewise.
36850
36851         test-openat-safer: add more checks
36852         * tests/test-openat-safer.c (main): Check more code paths.
36853
36854 2009-09-05  Jim Meyering  <meyering@redhat.com>
36855
36856         syntax-check: detect unnecessary inclusion of openat.h
36857         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36858
36859 2009-09-05  Bruno Haible  <bruno@clisp.org>
36860
36861         Support towlower, towupper.
36862         * doc/posix-functions/towlower.texi: Mention module wctype.
36863         * doc/posix-functions/towupper.texi: Likewise.
36864         * lib/wctype.in.h (towlower, towupper): New functions.
36865         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36866         (ASSERT): New macro.
36867         (e): New variable.
36868         (main): Test also towlower, towupper. Test WEOF argument.
36869         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36870
36871 2009-09-05  Bruno Haible  <bruno@clisp.org>
36872
36873         Fix conversion behaviour when the input is invalid.
36874         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36875         mark occurring in first pass of indirect conversion.
36876         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36877         input.
36878         Found by clang's static analyzer.
36879
36880 2009-09-05  Bruno Haible  <bruno@clisp.org>
36881
36882         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36883         where direct conversion is possible.
36884
36885 2009-09-04  Eric Blake  <ebb9@byu.net>
36886
36887         openat: fail with ENOENT on empty name
36888         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36889         buffer.
36890
36891         link-follow: fix logic bug in prior patch
36892         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36893         reversed sense of yes and no in prior patch.  Avoid confusing
36894         compilation failure with desired semantics.
36895
36896         link-follow: accomodate mingw and cross-compilation
36897         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36898         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36899         cross-compilation results to -1, to make linkat easier to
36900         implement when cross-compiling.  Trivially support mingw.
36901         * modules/link-follow (configure.ac): Call new name.
36902         * NEWS: Mention this.
36903
36904 2009-09-03  Eric Blake  <ebb9@byu.net>
36905
36906         faccessat: compile replacement
36907         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36908         needed.
36909
36910         fts: fix compilation error
36911         * lib/fts.c (includes): Re-add "openat.h", for
36912         openat_needs_fchdir.
36913
36914         faccessat: new module
36915         * modules/faccessat: New file.
36916         * lib/faccessat.c: Likewise.
36917         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36919         * modules/unistd (Makefile.am): Use it.
36920         * lib/unistd.in.h (faccessat): Declare it.
36921         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36922         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36923         * MODULES.html.sh (File system functions): Mention it.
36924         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36925         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36926
36927         euidaccess: prefer POSIX over non-standard implementation
36928         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36929         * lib/euidaccess.c (euidaccess): Use it if available.
36930
36931         openat: make template easier to use
36932         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36933         AT_FUNC_F2 to be undefined.
36934         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36935         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36936         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36937         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36938         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36939         Likewise.
36940         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36941         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36942         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36943         Likewise.
36944
36945         openat: declare in POSIX headers
36946         * NEWS: Mention this.
36947         * modules/openat (configure.ac): Declare witnesses.
36948         (Depends-on): Add fcntl-h, sys_stat, unistd.
36949         (Include): Mention correct headers.
36950         * modules/fcntl-h (Depends-on): Add link-warning.
36951         (Files): Add openat.m4.
36952         (Makefile.am): Substitute witnesses.
36953         * modules/sys_stat (Files, Makefile.am): Likewise.
36954         * modules/unistd (Files, Makefile.am): Likewise.
36955         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36956         (gl_OPENAT_DEFAULTS): New macro.
36957         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36959         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36960         (SYS_STAT_H): Remove unused variable.
36961         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36962         * lib/fcntl--.h (includes): Remove unneeded header.
36963         * lib/openat-safer.c (includes): Likewise.
36964         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36965         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36966         appropriate headers.
36967         (__OPENAT_PREFIX): Delete.
36968         * lib/fcntl.in.h (openat): Provide declaration.
36969         (AT_FDCWD): Fix Solaris bug.
36970         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36971         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36972         * lib/fchmodat.c (includes):  Adjust to find declaration.
36973         * lib/fchownat.c (includes): Likewise.
36974         * lib/mkdirat.c (includes): Likewise.
36975         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36976         still visible.
36977
36978 2009-09-02  Eric Blake  <ebb9@byu.net>
36979
36980         errno: use consistently
36981         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36982         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36983         * lib/canonicalize.c (ELOOP): Likewise.
36984         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36985         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36986         * lib/lchown.c (EOPNOTSUPP): Likewise.
36987         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36988         * lib/savewd.c (ESTALE): Likewise.
36989         * lib/settime.c (ENOSYS): Likewise.
36990         * lib/utimens.c (ENOSYS): Likewise.
36991         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36992         * lib/chdir-safer.c (ELOOP): Likewise.
36993         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36994         * modules/c-stack (Depends-on): Add errno.
36995         * modules/canonicalize (Depends-on): Likewise.
36996         * modules/chdir-safer (Depends-on): Likewise.
36997         * modules/fdopendir (Depends-on): Likewise.
36998         * modules/inet_ntop (Depends-on): Likewise.
36999         * modules/inet_pton (Depends-on): Likewise.
37000         * modules/lchown (Depends-on): Likewise.
37001         * modules/openat (Depends-on): Likewise.
37002         * modules/savewd (Depends-on): Likewise.
37003         * modules/settime (Depends-on): Likewise.
37004         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37005
37006         fts: avoid leaking fds
37007         * modules/fts (Depends-on): Add cloexec.
37008         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37009         flag.
37010
37011         fts: make directory fds more robust
37012         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37013         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37014
37015         backupfile, chdir-long, fts, savedir: make safer
37016         * lib/backupfile.c (includes): Use "dirent--.h", since
37017         numbered_backup can write to stderr during readdir.
37018         * lib/savedir.c (includes): Likewise.
37019         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37020         emulation can write to stderr on failure.
37021         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37022         * lib/getcwd.c: Document why opendir_safer is unused.
37023         * lib/glob.c: Likewise.
37024         * lib/scandir.c: Likewise.
37025         * lib/openat-proc.c: Likewise, for open_safer.
37026         * modules/backupfile (Depends-on): Add dirent-safer.
37027         * modules/savedir (Depends-on): Likewise.
37028         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37029         * modules/chdir-long (Depends-on): Add openat-safer.
37030
37031         openat-safer: new module
37032         * modules/openat-safer: New file.
37033         * lib/openat-safer.c: Likewise.
37034         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37035         * lib/fcntl-safer.h (openat_safer): Declare.
37036         * lib/fcntl--.h (openat): Override.
37037         * MODULES.html.sh (File descriptor based I/O): Mention it.
37038         * lib/openat.h: Add double-inclusion guards.
37039         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37040         "fcntl--.h", so we can implement openat.
37041         * modules/openat-safer-tests: New test.
37042         * tests/test-openat-safer.c: New file.
37043
37044         dirent-safer: new module
37045         * modules/dirent-safer: New file.
37046         * lib/dirent--.h: Likewise.
37047         * lib/dirent-safer.h: Likewise.
37048         * lib/opendir-safer.c: Likewise.
37049         * m4/dirent-safer.m4: Likewise.
37050         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37051         * modules/dirent-safer-tests: New test.
37052         * tests/test-dirent-safer.c: New file.
37053         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37054
37055         fdopendir: optimize on mingw
37056         * lib/unistd.in.h (_gl_directory_name): New prototype.
37057         * lib/fchdir.c (_gl_directory_name): Implement it.
37058         (fchdir): Use it to simplify implementation.
37059         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37060         fchdir, when available, to avoid calling [f]chdir().
37061
37062         fdopendir: split into its own module
37063         * lib/openat.c (fdopendir): Move...
37064         * lib/fdopendir.c: ...into new file.
37065         * modules/fdopendir: New module.
37066         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37067         * modules/openat (Depends-on): Add fdopendir.
37068         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37069         fdopendir here.
37070         * modules/savedir (Depends-on): Only need fdopendir, not full
37071         openat.
37072         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37073         * lib/openat.h (fdopendir): Drop prototype.
37074         * lib/dirent.in.h (fdopendir): Provide prototype.
37075         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37076         * modules/dirent (Makefile.am): Substitute them.
37077         * MODULES.html.sh (File system functions): Mention it.
37078         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37079         * modules/fdopendir-tests: New file.
37080         * tests/test-fdopendir.c: Likewise.
37081
37082         fchdir: use more consistent macro convention
37083         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37084         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37085         REPLACE_FCHDIR, rather than relying on config.h macros.
37086         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37087         inside a single make-time REPLACE_FCHDIR block, rather than using
37088         the config.h FCHDIR_REPLACEMENT.
37089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37090         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37091         Manage fstat replacement.
37092         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37093         REPLACE_FCHDIR.
37094         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37095         (Makefile.am): Substitute REPLACE_FCHDIR.
37096         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37097         FCHDIR_REPLACEMENT.
37098         * lib/dup-safer.c (dup_safer): Likewise.
37099         * lib/dup2.c (rpl_dup2): Likewise.
37100         * lib/dup3.c (rpl_dup3): Likewise.
37101         * lib/open.c (rpl_open): Likewise.
37102
37103         fchdir: simplify error handling, and support dup3
37104         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37105         stdbool, malloc-posix, realloc-posix.
37106         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37107         (ensure_dirs_slot): Return false on allocation failure.
37108         (rpl_dup2): Delete.
37109         (_gl_register_dup): New function.
37110         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37111         (_gl_register_fd): Close fd on allocation failure.
37112         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37113         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37114         prototype.
37115         (rpl_dup2_fchdir): Delete prototype.
37116         * lib/open.c (open): Update caller.
37117         * lib/dup2.c (dup2): Track fchdir metadata.
37118         * lib/dup3.c (dup3): Likewise.
37119         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37121
37122 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37123
37124         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37125         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37126         don't pass arguments to AC_OUTPUT.
37127
37128 2009-09-02  Bruno Haible  <bruno@clisp.org>
37129
37130         * modules/mkdtemp (License): Relicense under LGPLv2+.
37131         Reported by Paolo Bonzini.
37132
37133 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37134
37135         Replace uses of obsolete autoconf macros in Jim's modules.
37136         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37137         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37138         can evoke a warning from autoconf when run with -Wobsolete
37139         enabled.  They were declared obsolete for good reasons (see
37140         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37141         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37142         should not continue using the deprecated macros.
37143         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37144         obsolete Autoconf macros with modern counterparts.
37145         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37146         * m4/dos.m4 (gl_AC_DOS): Likewise.
37147         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37149         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37150         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37151         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37152         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37153         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37154         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37155         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37156         Likewise.
37157         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37158         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37159         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37160         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37161         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37162         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37163
37164 2009-09-01  Eric Blake  <ebb9@byu.net>
37165
37166         fchdir: fix off-by-one bug in previous patch
37167         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37168         (_gl_unregister_fd): Delete useless if.
37169
37170 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37171
37172         maint.mk: sort the list of syntax-check rules
37173         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37174         easier to get a sense of progress when the rules are run sequentially
37175         and take a long time.
37176
37177 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37178
37179         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37180         * modules/netinet_in: Likewise.
37181         * modules/sys_file: Likewise.
37182         * modules/sys_ioctl: Likewise.
37183         * modules/sys_select: Likewise.
37184         * modules/sys_socket: Likewise.
37185         * modules/sys_stat: Likewise.
37186         * modules/sys_time: Likewise.
37187         * modules/sys_times: Likewise.
37188         * modules/sys_utsname: Likewise.
37189         * modules/sys_wait: Likewise.
37190
37191 2009-09-01  Jim Meyering  <meyering@redhat.com>
37192
37193         fts: help ensure that return values are not ignored
37194         * lib/fts_.h (__GNUC_PREREQ): Define.
37195         (__attribute_warn_unused_result__): Define.
37196         (fts_children, fts_close, fts_open, fts_read): Declare with
37197         __attribute_warn_unused_result__.
37198
37199         fts: fts_close now fails also when closing a dir file descriptor fails
37200         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37201         and propagate to caller, along with errno.
37202
37203         announce-gen: correct formatting in --help output
37204         * build-aux/announce-gen (usage): Move the one-line description in
37205         --help output "up", to where it belongs, just after Usage:.
37206
37207 2009-08-31  Eric Blake  <ebb9@byu.net>
37208
37209         fchdir: port to mingw
37210         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37211         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37212         opened, then use a substitute.
37213         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37214         replacement.
37215         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37216         (_gl_register_fd): No need to check stat if open already filters
37217         all directories.
37218         (fchdir): Fix error condition to match POSIX.
37219         * modules/fchdir (Depends-on): Add sys_stat.
37220         * doc/posix-functions/open.texi (open): Document the limitation.
37221         * modules/fchdir-tests: New file.
37222         * tests/test-fchdir.c: Likewise.
37223
37224         canonicalize: allow cross-testing from cygwin to mingw
37225         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37226         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37227         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37228         Likewise.
37229         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37230         target does not support symlinks.
37231         * tests/test-canonicalize-lgpl.sh: Likewise.
37232
37233         chown: avoid compilation warning on mingw
37234         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37235         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37236         mingw.
37237         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37238         * modules/chown (Depends-on): Add errno.
37239
37240 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37241
37242         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37243         command.
37244
37245 2009-08-31  Jim Meyering  <meyering@redhat.com>
37246
37247         canonicalize: remove useless initialization
37248         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37249         initialization of local, "end".
37250
37251 2009-08-30  Bruno Haible  <bruno@clisp.org>
37252
37253         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37254         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37255         ENOSYS.
37256
37257 2009-08-30  Bruno Haible  <bruno@clisp.org>
37258
37259         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37260         /usr/xpg4/bin/tr when it exists.
37261         * tests/test-pipe-filter-gi1.sh: Likewise.
37262
37263 2009-08-30  Bruno Haible  <bruno@clisp.org>
37264
37265         Work around deficient /usr/bin/id program on Solaris.
37266         * tests/test-file-has-acl.sh (ID): New variable.
37267         * tests/test-set-mode-acl.sh (ID): Likewise.
37268         * tests/test-copy-acl.sh (ID): Likewise.
37269         * tests/test-copy-file.sh (ID): Likewise.
37270
37271 2009-08-30  Bruno Haible  <bruno@clisp.org>
37272
37273         New module 'xstriconveh'.
37274         * lib/xstriconveh.h: New file.
37275         * lib/xstriconveh.c: New file.
37276         * modules/xstriconveh: New file.
37277
37278 2009-08-30  Bruno Haible  <bruno@clisp.org>
37279
37280         Make it easier to use mem_cd_iconveh.
37281         * lib/striconveh.h (iconveh_t): New type.
37282         (iconveh_open, iconveh_close): New declarations.
37283         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37284         with a single 'const iconveh_t *' argument.
37285         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37286         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37287         with a single 'const iconveh_t *' argument.
37288         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37289         * tests/test-striconveh.c (main): Update.
37290         * NEWS: Mention the change.
37291
37292 2009-08-30  Bruno Haible  <bruno@clisp.org>
37293
37294         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37295         problem.
37296
37297 2009-08-30  Bruno Haible  <bruno@clisp.org>
37298
37299         Work around iconv_open problem on Solaris.
37300         * lib/iconv_open-solaris.gperf: New file.
37301         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37302         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37303         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37304         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37305         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37306         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37307
37308 2009-08-29  Jim Meyering  <meyering@redhat.com>
37309
37310         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37311         * top/maint.mk (cvs-check): Remove target; it was just an alias
37312         to the better-named vc-diff-check.
37313         (maintainer-distcheck): Remove rule.  It was used only from
37314         the (alpha/beta/major) target, and all of its commands but one
37315         were coreutils-specific.
37316         (vc-dist): Remove rule.
37317         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37318         Run vc-diff-check, not vc-dist.
37319         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37320
37321 2009-08-27  Bruno Haible  <bruno@clisp.org>
37322
37323         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37324         of 0.
37325
37326 2009-08-27  Bruno Haible  <bruno@clisp.org>
37327
37328         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37329         compilers.
37330         * doc/func.texi: Document the SunPRO C bug.
37331
37332 2009-08-27  Bruno Haible  <bruno@clisp.org>
37333
37334         Fix link error on Solaris.
37335         * tests/test-parse-duration.c (xstrdup): Remove function.
37336
37337 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37338
37339         ignore-value: handle pointer types, too
37340         * lib/ignore-value.h (__attribute__): Remove definition.
37341         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37342         of a more concise and more-often effective "(void) i" statement.
37343         (ignore_ptr): New function to suppress warnings from functions that
37344         return pointers, and to make it explicit that one function doesn't
37345         handle all cases.
37346
37347 2009-08-25  Bruno Haible  <bruno@clisp.org>
37348
37349         dup2: work around a Linux bug.
37350         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37351         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37352         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37353         Reported by Simon Josefsson.
37354
37355 2009-08-25  Jim Meyering  <meyering@redhat.com>
37356
37357         libguestfs uses gnulib
37358         * users.txt: Add libguestfs.
37359
37360 2009-08-24  Eric Blake  <ebb9@byu.net>
37361
37362         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37363         * lib/pipe2.c (includes): Add binary-io.h.
37364         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37365
37366 2009-08-24  Bruno Haible  <bruno@clisp.org>
37367
37368         Tolerate declared but missing accept4 syscall.
37369         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37370         available.
37371         * lib/sys_socket.in.h (accept4): If the function is already present,
37372         override it.
37373         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37374         * modules/accept4 (Makefile.am): Compile accept4.c always.
37375         Reported by Paolo Bonzini and Eric Blake.
37376
37377 2009-08-23  Bruno Haible  <bruno@clisp.org>
37378
37379         New module 'accept4'.
37380         * lib/sys_socket.in.h (accept4): New declaration.
37381         * lib/accept4.c: New file.
37382         * m4/accept4.m4: New file.
37383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37384         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37385         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37386         HAVE_ACCEPT4.
37387         * modules/accept4: New file.
37388         * doc/glibc-functions/accept4.texi: Mention the new module.
37389
37390 2009-08-24  Jim Meyering  <meyering@redhat.com>
37391
37392         progname: also set global program_invocation_name, when possible
37393         Before this change, a libtool-enabled program that calls glibc's
37394         error function would report the program name as
37395         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37396         * modules/progname (configure.ac): Check for a declaration of
37397         program_invocation_name.
37398         * lib/progname.c:  Include <errno.h>.
37399         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37400         Set program_invocation_name.
37401
37402 2009-08-23  Bruno Haible  <bruno@clisp.org>
37403
37404         * lib/dup3.c: Include <string.h>.
37405
37406 2009-08-23  Bruno Haible  <bruno@clisp.org>
37407
37408         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37409         * lib/pipe2.c (pipe2): Likewise.
37410         Suggested by Eric Blake.
37411
37412 2009-08-23  Bruno Haible  <bruno@clisp.org>
37413
37414         Tolerate declared but missing dup3 syscall.
37415         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37416         * lib/unistd.in.h (dup3): If the function is already present,
37417         override it.
37418         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37419         * modules/dup3 (Makefile.am): Compile dup3.c always.
37420         Reported by Paolo Bonzini.
37421
37422 2009-08-23  Bruno Haible  <bruno@clisp.org>
37423
37424         Tolerate declared but missing pipe2 syscall.
37425         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37426         available.
37427         * lib/unistd.in.h (pipe2): If the function is already present,
37428         override it.
37429         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37430         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37431         Reported by Paolo Bonzini.
37432
37433 2009-08-23  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/pipe2.c (pipe2): Move #ifs inside function.
37436
37437 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37438
37439         quotearg: document limitations of quote_these_too
37440         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37441         those limitations are created.
37442         * lib/quotearg.h (set_char_quoting): Document that digits and
37443         letters that are special after backslash are not permitted.
37444         (quotearg_char): Cross-reference set_char_quoting documentation.
37445
37446 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37447
37448         quotearg: implement custom_quoting_style
37449         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37450         right_quote fields.
37451         (set_custom_quoting): New public function.
37452         (quotearg_buffer_restyled): Add left_quote and right_quote
37453         arguments, handle them very much like locale quoting, and update
37454         all uses.
37455         (quotearg_n_custom): New public function.
37456         (quotearg_n_custom_mem): New public function.
37457         (quotearg_custom): New public function.
37458         (quotearg_custom_mem): New public function.
37459         * lib/quotearg.h: Prototype and document new public functions.
37460         (enum quoting_style): For escape_quoting_style and
37461         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37462         ignored even though they're otherwise like c_quoting_style.
37463         Add custom_quoting_style member and document with comparison to
37464         clocale_quoting_style.
37465         * tests/test-quotearg.c (custom_quotes): New array.
37466         (custom_results): New array.
37467         (main): Extend to test custom quoting.
37468
37469 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37470
37471         quotearg: fix right quote escaping when it's in quote_these_too
37472         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37473         quote, be sure to prepend only one backslash.
37474         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37475         (main): Test it.
37476
37477 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37478
37479         quotearg-tests: test escaping of embedded locale quotes
37480         * tests/test-quotearg.c (struct result_strings): Add member for
37481         new input.
37482         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37483         (inputs): Add new input.
37484         (results_g): Add expected results.
37485         (flag_results): Likewise.
37486         (locale_results): Likewise.
37487         (compare_strings): Check those.
37488
37489 2009-08-23  Bruno Haible  <bruno@clisp.org>
37490
37491         Tests for module 'dup3'.
37492         * modules/dup3-tests: New file.
37493         * tests/test-dup3.c: New file.
37494
37495         New module 'dup3'.
37496         * lib/unistd.in.h (dup3): New declaration.
37497         * lib/dup3.c: New file.
37498         * m4/dup3.m4: New file.
37499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37500         HAVE_DUP3.
37501         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37502         * modules/dup3: New file.
37503         * doc/glibc-functions/dup3.texi: Mention the new module.
37504
37505 2009-08-23  Bruno Haible  <bruno@clisp.org>
37506
37507         Tweak the dup2 test.
37508         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37509         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37510         the test file is still empty. Fix argument order of lseek.
37511
37512 2009-08-23  Bruno Haible  <bruno@clisp.org>
37513
37514         Avoid test link errors when the modules getopt-gnu, gettext are used.
37515         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37517
37518 2009-08-23  Bruno Haible  <bruno@clisp.org>
37519
37520         Fix getdtablesize() on mingw.
37521         * lib/getdtablesize.c (getdtablesize): Implement differently.
37522         * lib/unistd.in.h (getdtablesize): Improve comment.
37523
37524 2009-08-23  Bruno Haible  <bruno@clisp.org>
37525
37526         New module 'mkostemp'.
37527         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37528         * lib/stdlib.in.h (mksotemp): New declaration.
37529         * lib/mkostemp.c: New file, from glibc with modifications.
37530         * lib/tempname.h (GT_FILE): Remove outdated comment.
37531         (gen_tempname): Add flags argument.
37532         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37533         (__GT_FILE): Map to 1.
37534         (small_open, large_open): Remove macros.
37535         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37536         * lib/mkstemp.c (mkstemp): Update.
37537         * lib/mkdtemp.c (mkdtemp): Likewise.
37538         * m4/mkostemp.m4: New file.
37539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37540         HAVE_MKOSTEMP.
37541         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37542         HAVE_MKOSTEMP.
37543         * modules/mkostemp: New file, based on modules/mkstemp.
37544         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37545         * NEWS: Mention the change.
37546
37547 2009-08-23  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37550         Reported by Eric Blake.
37551
37552 2009-08-23  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37555         Reported by Eric Blake.
37556
37557 2009-08-23  Bruno Haible  <bruno@clisp.org>
37558
37559         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37560         * modules/pipe2 (Depends-on): Likewise.
37561
37562 2009-08-23  Eric Blake  <ebb9@byu.net>
37563
37564         fcntl-h: add O_TTY_INIT support
37565         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37566         * tests/test-fcntl-h.c (o): Test it.
37567         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37568
37569         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37570         * modules/fcntl: Move <fcntl.h> header replacement...
37571         * modules/fcntl-h: ...to new name, so as not to collide with
37572         like-named function.
37573         * tests/test-fcntl.c: Rename...
37574         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37575         * modules/fcntl-tests: Rename...
37576         * modules/fcntl-h-tests: ...to this.  Update test file name.
37577         * modules/chdir-long (Depends-on): Update clients.
37578         * modules/chdir-safer (Depends-on): Likewise.
37579         * modules/fcntl-safer (Depends-on): Likewise.
37580         * modules/fts (Depends-on): Likewise.
37581         * modules/mkancesdirs (Depends-on): Likewise.
37582         * modules/mkdir-p (Depends-on): Likewise.
37583         * modules/open (Depends-on): Likewise.
37584         * modules/savewd (Depends-on): Likewise.
37585         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37586         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37587
37588 2009-08-22  Bruno Haible  <bruno@clisp.org>
37589
37590         * modules/binary-io (License): Relicense under LGPL.
37591         * modules/pipe2 (License): Likewise.
37592
37593 2009-08-22  Bruno Haible  <bruno@clisp.org>
37594
37595         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37596         return value.
37597         * lib/pipe-filter-gi.c (filter_init): Likewise.
37598         Reported by Eric Blake.
37599
37600 2009-08-22  Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37603         * modules/pipe (Depends-on): Add pipe2.
37604
37605 2009-08-22  Bruno Haible  <bruno@clisp.org>
37606
37607         Tests for module 'pipe2'.
37608         * modules/pipe2-tests: New file.
37609         * tests/test-pipe2.c: New file.
37610
37611         New module 'pipe2'.
37612         * lib/unistd.in.h (pipe2): New declaration.
37613         * lib/pipe2.c: New file.
37614         * m4/pipe2.m4: New file.
37615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37616         HAVE_PIPE2.
37617         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37618         * modules/pipe2: New file.
37619         * doc/glibc-functions/pipe2.texi: Mention the new module.
37620
37621 2009-08-22  Bruno Haible  <bruno@clisp.org>
37622
37623         Reference some new glibc functions.
37624         * doc/glibc-functions/accept4.texi: New file.
37625         * doc/glibc-functions/dup3.texi: New file.
37626         * doc/glibc-functions/mkostemp.texi: New file.
37627         * doc/glibc-functions/pipe2.texi: New file.
37628         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37629         (Glibc sys/socket.h): Refer to accept4.
37630         (Glibc unistd.h): Refer to dup3, pipe2.
37631         Reported by Eric Blake.
37632
37633 2009-08-22  Jim Meyering  <meyering@redhat.com>
37634             Bruno Haible  <bruno@clisp.org>
37635
37636         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37637         This makes it so packages using automake-1.11's silent-rules option
37638         can print e.g., a single "GEN    configmake.h" line, rather than
37639         the 30+ statements that perform the job.  If you want to see the
37640         actual commands, you can still run "make V=1".
37641         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37642         so that make output is abbreviated when those variables are defined
37643         appropriately.
37644         * modules/argz: Likewise.
37645         * modules/arpa_inet: Likewise.
37646         * modules/byteswap: Likewise.
37647         * modules/configmake: Likewise.
37648         * modules/dirent: Likewise.
37649         * modules/errno: Likewise.
37650         * modules/fcntl: Likewise.
37651         * modules/float: Likewise.
37652         * modules/fnmatch: Likewise.
37653         * modules/getopt-posix: Likewise.
37654         * modules/glob: Likewise.
37655         * modules/iconv_open: Likewise.
37656         * modules/inttypes: Likewise.
37657         * modules/localcharset: Likewise.
37658         * modules/locale: Likewise.
37659         * modules/math: Likewise.
37660         * modules/netdb: Likewise.
37661         * modules/netinet_in: Likewise.
37662         * modules/poll: Likewise.
37663         * modules/posix_spawnp-tests: Likewise.
37664         * modules/sched: Likewise.
37665         * modules/search: Likewise.
37666         * modules/selinux-h: Likewise.
37667         * modules/signal: Likewise.
37668         * modules/spawn: Likewise.
37669         * modules/stdarg: Likewise.
37670         * modules/stdbool: Likewise.
37671         * modules/stddef: Likewise.
37672         * modules/stdint: Likewise.
37673         * modules/stdio: Likewise.
37674         * modules/stdlib: Likewise.
37675         * modules/string: Likewise.
37676         * modules/strings: Likewise.
37677         * modules/sys_file: Likewise.
37678         * modules/sys_ioctl: Likewise.
37679         * modules/sys_select: Likewise.
37680         * modules/sys_socket: Likewise.
37681         * modules/sys_stat: Likewise.
37682         * modules/sys_time: Likewise.
37683         * modules/sys_times: Likewise.
37684         * modules/sys_utsname: Likewise.
37685         * modules/sys_wait: Likewise.
37686         * modules/sysexits: Likewise.
37687         * modules/time: Likewise.
37688         * modules/unistd: Likewise.
37689         * modules/wchar: Likewise.
37690         * modules/wctype: Likewise.
37691
37692 2009-08-22  Jim Meyering  <meyering@redhat.com>
37693
37694         announce-gen: detect write failure
37695         * build-aux/announce-gen: Add Coda at end.
37696         Remove equivalent-but-more-verbose block at top.
37697
37698 2009-08-19  Akim Demaille  <demaille@gostai.com>
37699
37700         bootstrap: --help to stdout.
37701         * bootstrap (usage): Don't send --help to stderr.
37702         Use a here doc instead of a long string.
37703
37704 2009-08-21  Eric Blake  <ebb9@byu.net>
37705
37706         test-popen-safer: split from test-popen
37707         * tests/test-popen.c (main): Move...
37708         * tests/test-popen.h: ...into new file.
37709         * tests/test-popen-safer2.c: New file.
37710         * modules/popen-tests (Files): Add test-popen.h.
37711         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37712         Suggested by Bruno Haible.
37713
37714         test-fcntl-safer: split from test-open
37715         * tests/test-open.c (main): Move...
37716         * tests/test-open.h: ...into new file.
37717         * tests/test-fcntl-safer.c: New file.
37718         * modules/open-tests (Files): Add test-open.h.
37719         * modules/fcntl-safer-tests: New file.
37720         Suggested by Bruno Haible.
37721
37722         test-fopen-safer: split from test-fopen
37723         * tests/test-fopen.c (main): Move...
37724         * tests/test-fopen.h: ...into new file.
37725         * tests/test-fopen-safer.c: New file.
37726         * modules/fopen-tests (Files): Add test-fopen.h.
37727         * modules/fopen-safer-tests: New file.
37728         Suggested by Bruno Haible.
37729
37730 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37731
37732         popen-safer: test O_CLOEXEC at run-time.
37733         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37734
37735 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37736
37737         fcntl: move more flags to the header
37738         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37739         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37740         * lib/fcntl.in.h: Do both things here.
37741
37742 2009-08-21  Jim Meyering  <meyering@redhat.com>
37743
37744         consistently remove $@-t before redirecting to it
37745         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37746         * modules/alloca-opt: Likewise.
37747         * modules/byteswap: Likewise.
37748         * modules/fnmatch: Likewise.
37749         * modules/getopt-posix: Likewise.
37750         * modules/glob: Likewise.
37751         * modules/poll: Likewise.
37752         * modules/posix_spawnp-tests: Likewise.
37753         * modules/sys_socket: Likewise.
37754         * modules/sysexits: Likewise.
37755
37756 2009-08-21  Eric Blake  <ebb9@byu.net>
37757
37758         popen: simplify access to original popen
37759         * lib/popen.c (rpl_popen): No need to worry about popen being a
37760         macro.
37761         Reported by Bruno Haible.
37762
37763 2009-08-20  Eric Blake  <ebb9@byu.net>
37764
37765         build: avoid some compiler warnings
37766         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37767         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37768         type.
37769         (new_exclude_segment, excluded_file_pattern_p)
37770         (excluded_file_name_p): Reduce scope.
37771         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37772         old-style declaration.
37773
37774 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37775
37776         * tests/test-exclude1.sh: Handle Windows EOL.
37777         * tests/test-exclude2.sh: Likewise.
37778         * tests/test-exclude3.sh: Likewise.
37779         * tests/test-exclude4.sh: Likewise.
37780         * tests/test-exclude5.sh: Likewise.
37781         * tests/test-exclude6.sh: Likewise.
37782         * tests/test-exclude7.sh: Likewise.
37783
37784 2009-08-19  Akim Demaille  <demaille@gostai.com>
37785
37786         bootstrap: find sha1sum when named gsha1sum.
37787         * bootstrap (find_tool): New.
37788         ($SHA1SUM): New.
37789         Use it.
37790
37791 2009-08-20  Jim Meyering  <meyering@redhat.com>
37792
37793         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37794         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37795         expression that converts "." in a file name to "\." in the resulting
37796         regexp.  Start with a dummy statement, so that prior shell variable
37797         definitions are expanded portably.  Reported by Simon Josefsson.
37798
37799 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37800
37801         Fix polling for writeability of a screen buffer.
37802         * lib/poll.c: Distinguish input and screen buffers for the
37803         Win32 implementation.
37804         * lib/select.c: Likewise.
37805
37806 2009-08-19  Eric Blake  <ebb9@byu.net>
37807
37808         popen-safer: prevent popen from clobbering std descriptors
37809         * modules/popen-safer: New file.
37810         * lib/popen-safer.c: Likewise.
37811         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37812         * lib/stdio--.h (popen): Provide override.
37813         * lib/stdio-safer.h (popen_safer): Provide declaration.
37814         * tests/test-popen.c (includes): Partially test this.
37815         * modules/popen-safer-tests: New file, for more tests.
37816         * tests/test-popen-safer.c: Likewise.
37817         * MODULES.html.sh (file stream based Input/Output): Mention it.
37818
37819         tests: test some of the *-safer modules
37820         * modules/fopen-safer (Depends-on): Add fopen.
37821         * modules/fcntl-safer (Depends-on): Add fcntl.
37822         * modules/stdlib-safer (Depends-on): Add stdlib.
37823         (configure.ac): Set indicator.
37824         * modules/unistd-safer (configure.ac): Likewise.
37825         * modules/tmpfile-safer (configure.ac): Likewise.
37826         (Depends-on): Add tmpfile.
37827         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37828         active.
37829         * tests/test-fopen.c (includes): Test safer versions when they are
37830         in use.
37831         * tests/test-open.c (includes): Likewise.
37832
37833         popen: fix cygwin 1.5 bug when stdin closed
37834         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37835         * modules/popen: New file.
37836         * modules/popen-tests: Likewise.
37837         * tests/test-popen.c: Likewise.
37838         * m4/popen.m4: Likewise.
37839         * lib/popen.c: Likewise.
37840         * lib/stdio.in.h (popen): New declaration.
37841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37842         * modules/stdio (Makefile.am): Likewise.
37843         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37844
37845 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37846
37847         maint.mk: give full control over update-copyright exclusions
37848         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37849         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37850         (update-copyright): Don't force inclusion of top-level
37851         ChangeLog.  Don't force exclusion of all COPYING files, but make
37852         them the default exclusion instead.
37853
37854 2009-08-16  Bruno Haible  <bruno@clisp.org>
37855
37856         Fix test failures on Solaris 10.
37857         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37858         tests when Solaris iconv() is used.
37859         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37860         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37861         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37862         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37863         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37864
37865 2009-08-16  Bruno Haible  <bruno@clisp.org>
37866
37867         Fix test failures on Solaris 10.
37868         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37869         'tr' program and pass it as first argument.
37870         * tests/test-pipe-filter-gi1.sh: Likewise.
37871         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37872         program as first argument.
37873         * tests/test-pipe-filter-gi1.c (main): Likewise.
37874
37875 2009-08-16  Eric Blake  <ebb9@byu.net>
37876
37877         fpurge: fix previous commits
37878         * modules/fpurge (Makefile.am): Make replacement conditional,
37879         partially reverting 2007-04-29 change; missed in previous
37880         attempt.
37881         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37882         is missing.
37883
37884 2009-08-16  Bruno Haible  <bruno@clisp.org>
37885
37886         Clarify fpurge's effect on the file position.
37887         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37888         * tests/test-fpurge.c (main): Make a second pass for checking the file
37889         position.
37890
37891 2009-08-16  Bruno Haible  <bruno@clisp.org>
37892
37893         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37894         declaration of fpurge is missing.
37895         * tests/test-fpurge.c (main): Check that the file has not more contents
37896         than expected. Close the file before removing it.
37897
37898 2009-08-15  Eric Blake  <ebb9@byu.net>
37899
37900         fpurge: don't wrap working cygwin implementation
37901         * lib/fpurge.c (fpurge): Fix comment typo.
37902         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37903         1.7 to avoid replacement.
37904         * tests/test-fpurge.c (main): Enhance test.
37905
37906 2009-08-15  Eric Blake  <ebb9@byu.net>
37907         and Jim Meyering  <meyering@redhat.com>
37908
37909         test-update-copyright: skip if perl is insufficient
37910         * tests/test-update-copyright.sh: Failure to run maintainer tool
37911         should not cause testsuite failure on cygwin 1.5.
37912
37913 2009-08-14  Eric Blake  <ebb9@byu.net>
37914
37915         doc: mention more functions added in cygwin 1.7.0
37916         * doc/posix-headers/limits.texi (limits.h): Update for recent
37917         cygwin additions.
37918         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37919         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37920         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37921         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37922         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37923
37924 2009-08-14  Eric Blake  <ebb9@byu.net>
37925
37926         maint.mk: simplify update-copyright rule
37927         * top/maint.mk (update-copyright-local): Delete, and document how
37928         to do it in cfg.mk instead.
37929         (update-copyright-exclude-regexp): Delete, and document how to do
37930         it in .x-update-copyright instead.
37931         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37932         exclude ChangeLog.
37933
37934 2009-08-14  Bruno Haible  <bruno@clisp.org>
37935
37936         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37937
37938 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37939
37940         maint.mk: support update-copyright-env
37941         * top/maint.mk (update-copyright-env): Define place-holder.
37942         (update-copyright): Expand $(update-copyright-env) before
37943         invoking update-copyright.
37944
37945 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37946
37947         update-copyright: implement forced reformatting
37948         * build-aux/update-copyright: Implement and document
37949         UPDATE_COPYRIGHT_FORCE.
37950         * tests/test-update-copyright.sh: Test it.
37951
37952 2009-08-14  Eric Blake  <ebb9@byu.net>
37953         and Bruno Haible  <bruno@clisp.org>
37954
37955         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37956         * tests/test-locale.c: Revert previous patch related to NULL.
37957         * tests/test-stdio.c: Likewise.
37958         * tests/test-stdlib.c: Likewise.
37959         * tests/test-string.c: Likewise.
37960         * tests/test-unistd.c: Likewise.
37961         * modules/time-tests (Depends-on): Add verify.
37962         * modules/wchar-tests (Depends-on): Likewise.
37963         * tests/test-time.c: Test for NULL compliance.
37964         * tests/test-wchar.c: Likewise.
37965         * modules/locale (Depends-on): Add stddef.
37966         * modules/stdio (Depends-on): Likewise.
37967         * modules/stdlib (Depends-on): Likewise.
37968         * modules/string (Depends-on): Likewise.
37969         * modules/time (Depends-on): Likewise.
37970         * modules/unistd (Depends-on): Likewise.
37971         * modules/wchar (Depends-on): Likewise.
37972         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37973         * lib/stdlib.in.h (includes): Likewise.
37974         * lib/string.in.h (includes): Likewise.
37975         * lib/time.in.h (includes): Likewise.
37976         * lib/unistd.in.h (includes): Likewise.
37977         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37978         replaced.
37979         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37980         * m4/stddef_h.m4: New file.
37981         * modules/stddef: Likewise.
37982         * lib/stddef.in.h: Likewise.
37983         * modules/stddef-tests: Likewise.
37984         * tests/test-stddef.c: Likewise.
37985         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37986         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37987         * doc/posix-headers/locale.texi (locale.h): Likewise.
37988         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37989         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37990         * doc/posix-headers/string.texi (string.h): Likewise.
37991         * doc/posix-headers/time.texi (time.h): Likewise.
37992         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37993         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37994
37995 2009-08-14  Eric Blake  <ebb9@byu.net>
37996
37997         doc: improve git diff of texinfo files
37998         * .gitattributes: Add rule for *.texi files, with hint on how to
37999         use it.
38000         Copied from m4, and based on a report by Bruno Haible.
38001
38002 2009-08-14  Bruno Haible  <bruno@clisp.org>
38003
38004         Disable multithread support by default on Cygwin 1.5.x for real.
38005         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38006
38007 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38008
38009         update-copyright: much ado about intervals
38010         * build-aux/update-copyright: Implement and document
38011         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38012         of copyright year intervals.
38013         Also, document UPDATE_COPYRIGHT_YEAR.
38014         * tests/test-update-copyright.sh: Test it.
38015
38016         update-copyright: convert 2-digit to 4-digit years
38017         * build-aux/update-copyright: Implement and document.
38018         * tests/test-update-copyright.sh: Update.
38019
38020 2009-08-14  Jim Meyering  <meyering@redhat.com>
38021
38022         test-exclude: avoid coreutils "make check" failure
38023         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38024         just as in test-argmatch.c.
38025
38026 2009-08-13  Eric Blake  <ebb9@byu.net>
38027
38028         test-dup2: fix bad assumption
38029         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38030         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38031
38032         test-version-etc: fix CRLF portability issue
38033         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38034         recognize \r.
38035         * tests/test-argp-version-etc-1.sh: Likewise.
38036
38037         getopt: update client modules
38038         * modules/argp (Depends-on): Use getopt-gnu.
38039         * modules/git-merge-changelog (Depends-on): Likewise.
38040         * modules/long-options (Depends-on): Likewise.
38041         * modules/xstrtol (Depends-on): Likewise.
38042
38043 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38044
38045         * tests/test-version-etc.sh: Don't fail on different
38046         project/version.  Don't fail on CRLF differences.  Rewrite to use
38047         multiple -e instead of multiple sed forks, suggested by Eric Blake
38048         <ebb9@byu.net>.
38049         * tests/test-argp-version-etc-1.sh: Likewise.
38050
38051 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38052
38053         * tests/test-version-etc.sh: Don't fail on different
38054         project/version.
38055
38056 2009-08-12  Bruno Haible  <bruno@clisp.org>
38057
38058         Tests for modules 'getopt-posix', 'getopt-gnu'.
38059         * modules/getopt-posix-tests: New file.
38060         * tests/test-getopt.c: New file.
38061         * tests/test-getopt.h: New file.
38062         * tests/test-getopt_long.h: New file.
38063
38064         New modules 'getopt-posix', 'getopt-gnu'.
38065         * modules/getopt-gnu: New file, renamed from modules/getopt.
38066         * modules/getopt-posix: New file.
38067         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38068         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38069         (gl_GETOPT): Remove macro.
38070         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38071         Disable the test against BSD systems that declare optreset. Test
38072         against mingw bug. Test against lack of support of optional arguments
38073         on many platforms.
38074         * doc/glibc-headers/getopt.texi: Update module name and list of
38075         relevant platforms.
38076         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38077         'getopt-gnu' and more portability problems.
38078         * NEWS: Mention the changes.
38079
38080 2009-08-12  Bruno Haible  <bruno@clisp.org>
38081
38082         Ensure that optarg etc. get declared by <unistd.h>.
38083         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38084         AC_USE_SYSTEM_EXTENSIONS.
38085         * modules/getopt (Depends-on): Add 'extensions'.
38086
38087 2009-08-12  Bruno Haible  <bruno@clisp.org>
38088
38089         Avoid test link errors.
38090         * modules/pipe-filter-ii-tests (Makefile.am): Define
38091         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38092         * modules/pipe-filter-gi-tests (Makefile.am): Define
38093         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38095
38096 2009-08-12  Bruno Haible  <bruno@clisp.org>
38097
38098         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38099         gl_GETOPT_SUBSTITUTE before.
38100         (gl_GETOPT): Use it.
38101         * m4/argp.m4 (gl_ARGP): Update.
38102         Reported by Sergey Poznyakoff.
38103
38104         * m4/getopt.m4: Reorder macros.
38105         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38106         (gl_GETOPT_SUBSTITUTE): Remove macro.
38107
38108 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38109
38110         Minor improvement in gitlog-to-changelog
38111
38112         * build-aux/gitlog-to-changelog: New option `--format' makes
38113         output format string configurable.
38114
38115 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38116
38117         Optimize exclude: use hash tables for non-wildcard patterns.
38118
38119         * lib/exclude.c: Include hash.h and mbuiter.h
38120         (struct exclude_pattern, exclude_segment): New data types.
38121         (struct exclude): Rewrite.
38122         (fnmatch_pattern_has_wildcards): New function.
38123         (new_exclude_segment, free_exclude_segment): New functions.
38124         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38125         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38126         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38127         * modules/exclude: Depend on hash and mbuiter.
38128
38129         * modules/exclude-tests: New file.
38130         * tests/test-exclude.c: New file.
38131         * tests/test-exclude1.sh: New file.
38132         * tests/test-exclude2.sh: New file.
38133         * tests/test-exclude3.sh: New file.
38134         * tests/test-exclude4.sh: New file.
38135         * tests/test-exclude5.sh: New file.
38136         * tests/test-exclude6.sh: New file.
38137         * tests/test-exclude7.sh: New file.
38138
38139 2009-08-12  Bruno Haible  <bruno@clisp.org>
38140
38141         Ensure that getopt() gets declared by <unistd.h>.
38142         * lib/unistd.in.h: Conditionally include getopt.h.
38143         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38144         Set GNULIB_UNISTD_H_GETOPT.
38145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38146         GNULIB_UNISTD_H_GETOPT.
38147         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38148
38149 2009-08-12  Bruno Haible  <bruno@clisp.org>
38150
38151         Clarify logic.
38152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38153         gl_replace_getopt instead of GETOPT_H.
38154
38155 2009-08-12  Bruno Haible  <bruno@clisp.org>
38156
38157         * m4/getopt.m4: Add comments.
38158
38159 2009-08-12  Bruno Haible  <bruno@clisp.org>
38160
38161         Disable multithread support by default on Cygwin 1.5.x.
38162         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38163         set gl_use_threads=no if not specified otherwise.
38164
38165 2009-08-11  Bruno Haible  <bruno@clisp.org>
38166
38167         Avoid compilation error on NetBSD 5.0.
38168         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38169         * tests/test-stdio.c: Likewise.
38170         * tests/test-stdlib.c: Likewise.
38171         * tests/test-string.c: Likewise.
38172         * tests/test-unistd.c: Likewise.
38173         Reported by Greg Troxel <gdt@ir.bbn.com>
38174         at <https://savannah.gnu.org/support/?106973>.
38175
38176 2009-08-11  Bruno Haible  <bruno@clisp.org>
38177
38178         * modules/dup2-tests (Depends-on): Remove close.
38179
38180         Undo 2009-07-19 commit.
38181         * modules/acl-tests (Depends-on): Remove close.
38182         * modules/binary-io-tests (Depends-on): Likewise.
38183         * modules/closein-tests (Depends-on): Likewise.
38184         * modules/flock-tests (Depends-on): Likewise.
38185         * modules/fsync-tests (Depends-on): Likewise.
38186         * modules/lseek-tests (Depends-on): Likewise.
38187         * modules/pipe-tests (Depends-on): Likewise.
38188         * modules/posix_spawn-tests (Depends-on): Likewise.
38189         * modules/posix_spawnp-tests (Depends-on): Likewise.
38190         * modules/stat-time-tests (Depends-on): Likewise.
38191         * modules/yesno-tests (Depends-on): Likewise.
38192
38193 2009-08-10  Bruno Haible  <bruno@clisp.org>
38194
38195         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38196
38197 2009-08-10  Bruno Haible  <bruno@clisp.org>
38198
38199         Fix a gcc warning.
38200         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38201
38202 2009-08-10  Bruno Haible  <bruno@clisp.org>
38203
38204         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38205         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38206         not only the first time.
38207         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38208         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38209         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38210         is 1, not only the the first time.
38211
38212 2009-08-10  Bruno Haible  <bruno@clisp.org>
38213
38214         Make it possible to use module 'gethostname' without module 'close'.
38215         * lib/unistd.in.h (close): Evoke a link error only if
38216         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38218         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38219         * modules/unistd (Makefile.am): Substitute
38220         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38221         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38222         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38224         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38225         * modules/sys_ioctl (Makefile.am): Substitute
38226         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38227         * modules/socket (configure.ac): On native Windows, set
38228         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38229         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38230         Reported by Sam Steingold <sds@gnu.org>.
38231
38232 2009-08-10  Bruno Haible  <bruno@clisp.org>
38233
38234         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38235         * modules/ioctl (configure.ac): Likewise.
38236
38237 2009-08-10  Bruno Haible  <bruno@clisp.org>
38238
38239         Avoid collision between gnulib wrapper and libintl wrapper.
38240         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38241         already defined in intl/printf.c.
38242         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38243         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38244
38245 2009-08-09  Bruno Haible  <bruno@clisp.org>
38246
38247         Make <sys/select.h> really self-contained, also on Solaris 10.
38248         * lib/sys_select.in.h: Include <string.h>.
38249         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38250         Solaris 10 problem.
38251         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38252         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38253         Reported by Jim Meyering.
38254
38255 2009-08-09  Bruno Haible  <bruno@clisp.org>
38256
38257         Avoid warnings from 'aclocal' that are due to a use of macro name
38258         AM_XGETTEXT_OPTION that is not defined in automake.
38259         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38260         automake.
38261         * modules/error (configure.ac): Likewise.
38262         * modules/propername (configure.ac): Likewise.
38263         * modules/vasprintf (configure.ac): Likewise.
38264         * modules/verror (configure.ac): Likewise.
38265         * modules/xprintf (configure.ac): Likewise.
38266         * modules/xvasprintf (configure.ac): Likewise.
38267
38268 2009-08-08  Bruno Haible  <bruno@clisp.org>
38269
38270         Avoid compilation error in C++ mode.
38271         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38272         Reported by Sam Steingold <sds@gnu.org>.
38273
38274 2009-08-08  Bruno Haible  <bruno@clisp.org>
38275
38276         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38277         for the various Unix platforms.
38278         * doc/posix-headers/limits.texi: Update platforms list regarding
38279         HOST_NAME_MAX.
38280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38281
38282 2009-08-07  Jim Meyering  <meyering@redhat.com>
38283
38284         selinux-at: fix typo in a comment
38285         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38286         Spotted by Paolo Bonzini.
38287
38288         selinux-at: remove redundant m4 code, add documentation
38289         * modules/selinux-at (configure.ac): Remove redundant code.
38290         LIB_SELINUX is already set via the dependent module, selinux-h.
38291         (Include): Add quotes around selinux-at.h.
38292         * lib/selinux-at.h: Add documentation.
38293         Reported by Bruno Haible in
38294         http://marc.info/?l=gnulib-bug&m=124958988300749
38295
38296 2009-08-07  Bruno Haible  <bruno@clisp.org>
38297
38298         Avoid link error on MacOS X 10.3 and 10.4.
38299         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38300         on non-ELF systems.
38301         * lib/argp-pv.c (argp_program_version): Likewise.
38302         Reported by Simon Josefsson.
38303
38304 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38305
38306         * tests/test-version-etc.sh: Use $EXEEXT.
38307
38308 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38309
38310         update-copyright: update documentation to point to maint.mk
38311         * build-aux/update-copyright: Here.
38312
38313 2009-08-06  Jim Meyering  <meyering@redhat.com>
38314
38315         maint.mk: support update-copyright-local
38316         * top/maint.mk (update-copyright-local): Define place-holder.
38317         (update-copyright): Depend on $(update-copyright-local).
38318
38319 2009-08-06  Jim Meyering  <meyering@redhat.com>
38320
38321         selinux-at: new module
38322         Initially written for coreutils, this module will soon be
38323         used by findutils, too.
38324         * MODULES.html.sh [Misc]: Add selinux-at.
38325         * lib/selinux-at.h: New file, from coreutils.
38326         * lib/selinux-at.c: Likewise.
38327         * modules/selinux-at: Likewise.
38328         (License): Change from LGPL to GPL, since it depends
38329         on the GPL'd openat module.
38330
38331         doc: update README
38332         * README: Remove references to cogito.
38333         Remove cvs-repo-updating instructions from 2007.
38334         Don't imply that CVS is better if you have limited disk space.
38335
38336 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38337
38338         update-copyright: support C-style comments
38339         * build-aux/update-copyright: Implement and document.
38340         * tests/test-update-copyright.sh: Test.
38341
38342 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38343
38344         update-copyright: support omitted "(C)"
38345         * build-aux/update-copyright: Implement and document.  Also,
38346         allow variable whitespace before "(C)".
38347         * tests/test-update-copyright.sh: Test.
38348
38349 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38350
38351         update-copyright: don't trip on non-FSF copyright statements
38352         * build-aux/update-copyright: Fix so that the first correctly
38353         formatted FSF copyright statement is recognized no matter what
38354         appears before it.  Update documentation.
38355         * tests/test-update-copyright.sh: Test that.
38356
38357 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38358
38359         update-copyright: clean up code a little
38360         * build-aux/update-copyright: Append "_re" to the name of any
38361         variable holding a regular expression.
38362         Replace "old" and "new" with "stmt" in variable names.
38363         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38364         handled correctly.
38365         Format code more consistently.
38366
38367 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38368
38369         update-copyright-tests: improve portability
38370         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38371         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38372
38373 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38374
38375         update-copyright: support @copyright{} and &copy;
38376         * build-aux/update-copyright: Implement and document.
38377         * tests/test-update-copyright.sh: Test.
38378
38379 2009-08-04  Jim Meyering  <meyering@redhat.com>
38380
38381         update-copyright-tests: correctly test EOL=\r\n handling
38382         * tests/test-update-copyright.sh: Put \r at the end of some lines
38383         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38384
38385         maint.mk: make update-copyright exclusion list more configurable
38386         * top/maint.mk (update-copyright): Default to excluding COPYING,
38387         but allow an override, in case someone does want to update that file.
38388
38389         maint.mk: don't update copyright date in COPYING
38390         * top/maint.mk (update-copyright): Exclude COPYING.
38391
38392         maint.mk: add a copyright-updating rule
38393         * top/maint.mk (update-copyright): New rule.
38394         Derived from coreutils/Makefile.am.
38395
38396         update-copyright: rename some variables
38397         * build-aux/update-copyright: Rename a few variables for clarity.
38398         Tweak syntax.  List Joel E. Denny as coauthor.
38399
38400 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38401
38402         update-copyright: fix bug for 2-digit last year and add tests
38403         * build-aux/update-copyright: Fix bug.
38404         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38405         specified.
38406         * modules/update-copyright-tests: New
38407         * tests/test-update-copyright.sh: New.
38408
38409 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38410
38411         update-copyright: handle leading tabs in line prefix
38412         * build-aux/update-copyright: Count leading tabs as 8 spaces
38413         when computing margin.  This helps with the formatting of
38414         ChangeLogs, for example.
38415         Fix documentation a little.
38416
38417 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38418
38419         update-copyright: support EOL=\r\n
38420         * build-aux/update-copyright: Implement that.
38421
38422 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38423
38424         update-copyright: automatically format copyright statements
38425         * build-aux/update-copyright: Implement that.
38426         Also, be a little more predictable and safer by always failing
38427         when the full copyright format is not perfectly recognized as an
38428         unbroken whole.  Discussed at
38429         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38430         Rewrite documentation.
38431
38432 2009-08-03  Bruno Haible  <bruno@clisp.org>
38433
38434         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38435
38436 2009-08-02  Bruno Haible  <bruno@clisp.org>
38437
38438         Tests for module 'uname'.
38439         * modules/uname-tests: New file.
38440         * tests/test-uname.c: New file.
38441
38442         New module 'uname'.
38443         * lib/uname.c: New file.
38444         * m4/uname.m4: New file.
38445         * modules/uname: New file.
38446         * doc/posix-functions/uname.texi: Mention the new module.
38447
38448 2009-08-02  Bruno Haible  <bruno@clisp.org>
38449
38450         Tests for module 'sys_utsname'.
38451         * modules/sys_utsname-tests: New file.
38452         * tests/test-sys_utsname.c: New file.
38453
38454         New module 'sys_utsname'.
38455         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38456         * m4/sys_utsname_h.m4: New file.
38457         * modules/sys_utsname: New file.
38458         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38459
38460 2009-08-02  Bruno Haible  <bruno@clisp.org>
38461
38462         Implicitly initialize the sockets library.
38463         * lib/gethostname.c: Include sockets.h.
38464         (rpl_gethostname): Invoke gl_sockets_startup.
38465         * lib/socket.c: Include sockets.h.
38466         (rpl_socket): Invoke gl_sockets_startup.
38467         * modules/gethostname (Depends-on): Add sockets.
38468         * modules/socket (Depends-on): Likewise.
38469         * tests/test-poll.c: Don't include sockets.h.
38470         (main): Don't invoke gl_sockets_startup.
38471         * tests/test-select.c: Don't include sockets.h.
38472         (main): Don't invoke gl_sockets_startup.
38473
38474 2009-08-02  Bruno Haible  <bruno@clisp.org>
38475
38476         Allow multiple calls to gl_sockets_startup.
38477         * lib/sockets.c (initialized_sockets_version): New variable.
38478         (gl_sockets_startup): Do nothing if already called for this or a higher
38479         version.
38480         (gl_sockets_cleanup): Reset initialized_sockets_version.
38481
38482 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38483
38484         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38485         different project/version.
38486
38487 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38488             Bruno Haible  <bruno@clisp.org>
38489
38490         Tests for module 'pipe-filter-gi'.
38491         * modules/pipe-filter-gi-tests: New file.
38492         * tests/test-pipe-filter-gi1.sh: New file.
38493         * tests/test-pipe-filter-gi1.c: New file.
38494         * tests/test-pipe-filter-gi2.sh: New file.
38495         * tests/test-pipe-filter-gi2-main.c: New file.
38496         * tests/test-pipe-filter-gi2-child.c: New file.
38497
38498         New module 'pipe-filter-gi'.
38499         * lib/pipe-filter-gi.c: New file.
38500         * modules/pipe-filter-gi: New file.
38501
38502 2009-08-02  Bruno Haible  <bruno@clisp.org>
38503             Paolo Bonzini  <bonzini@gnu.org>
38504
38505         Tests for module 'pipe-filter-ii'.
38506         * modules/pipe-filter-ii-tests: New file.
38507         * tests/test-pipe-filter-ii1.sh: New file.
38508         * tests/test-pipe-filter-ii1.c: New file.
38509         * tests/test-pipe-filter-ii2.sh: New file.
38510         * tests/test-pipe-filter-ii2-main.c: New file.
38511         * tests/test-pipe-filter-ii2-child.c: New file.
38512
38513         New module 'pipe-filter-ii'.
38514         * lib/pipe-filter.h: New file.
38515         * lib/pipe-filter-ii.c: New file.
38516         * lib/pipe-filter-aux.h: New file.
38517         * modules/pipe-filter-ii: New file.
38518
38519 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38520
38521         * lib/gc-libgcrypt.c: Change copyright to FSF.
38522         * lib/gc-gnulib.c: Likewise.
38523
38524 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38525
38526         * lib/gethostname.c: Include limits.h.
38527
38528 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38529             Bruno Haible  <bruno@clisp.org>
38530
38531         Ensure HOST_NAME_MAX as part of the gethostname module.
38532         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38533         define also HOST_NAME_MAX.
38534         * tests/test-gethostname.c: Include <limits.h>.
38535         (main): Check also HOST_NAME_MAX.
38536         * doc/posix-headers/limits.texi: Document the mingw problem.
38537
38538 2009-08-02  Bruno Haible  <bruno@clisp.org>
38539
38540         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38541         Add comments.
38542
38543 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38544
38545         * lib/gethostname.c: Add Windows wrapper.
38546         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38547         * modules/gethostname: Depend on sys_socket & errno, for also
38548         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38549         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38550
38551 2009-07-31  Jim Meyering  <meyering@redhat.com>
38552
38553         getloadavg: fix symbol name in comment
38554         * lib/getloadavg.c: Correct a typo I introduced when adding
38555         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38556         Matt Kraai spotted the problem.
38557
38558 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38559
38560         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38561         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38562         code also if ! defined N_NAME_POINTER.
38563         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38564         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38565         but the n_name member is a 12-byte array.
38566
38567 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38568
38569         update-copyright: generalize comment handling
38570         * build-aux/update-copyright: Handle copyright statements
38571         within more comment styles.
38572         Document usage.
38573         Report any file with an external copyright holder or parse failure.
38574
38575 2009-07-29  Jim Meyering  <meyering@redhat.com>
38576
38577         mktime: correct setting of REPLACE_MKTIME
38578         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38579
38580         update-copyright: new module
38581         * modules/update-copyright: New file.
38582         * build-aux/update-copyright: New file.
38583         * MODULES.html.sh (maint+release support): Add update-copyright.
38584
38585 2009-07-27  Bruno Haible  <bruno@clisp.org>
38586
38587         Fix compilation error when <ctime> is used and mktime is replaced.
38588         * lib/time.in.h (mktime): New declaration.
38589         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38590         REPLACE_MKTIME instead of defining mktime in config.h.
38591         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38592         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38593         Reported by Ross McFarland <rwmcfa1@neces.com>.
38594
38595 2009-07-27  Bruno Haible  <bruno@clisp.org>
38596
38597         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38598         Reported by Matt Kraai <mkraai@beckman.com>.
38599
38600 2009-07-25  Jim Meyering  <meyering@redhat.com>
38601
38602         maint.mk: avoid warnings about missing files
38603         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38604         diagnostic when .prev-version does not exist.
38605         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38606         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38607         nonexistent cfg.mk.
38608         Suggestions from Simon Josefsson.
38609
38610 2009-07-25  Bruno Haible  <bruno@clisp.org>
38611
38612         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38613         defined as macros. Needed on QNX 6.4.1.
38614         Reported by Matt Kraai <mkraai@beckman.com>.
38615
38616 2009-07-23  Jim Meyering  <meyering@redhat.com>
38617
38618         maint.mk: invoke "make dist" with a working value of XZ_OPT
38619         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38620
38621 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38622
38623         Make fseeko.c compile on QNX.
38624         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38625
38626 2009-07-22  Peter Simons  <simons@cryp.to>
38627
38628         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38629         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38630         * lib/md4.h: Likewise.
38631         * lib/md5.h: Likewise.
38632         * lib/sha1.h: Likewise.
38633         * lib/sha256.h: Likewise.
38634         * lib/sha512.h: Likewise.
38635
38636         tests-sha1: don't assign literal string to 'char *' variable
38637         * tests/test-sha1.c (main): Declare locals with "const" to match
38638         attributes of the right hand side.
38639
38640 2009-07-21  Eric Blake  <ebb9@byu.net>
38641
38642         dup2: fix more mingw problems
38643         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38644         fd to itself.
38645         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38646         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38647         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38648         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38649         care of mingw bugs.
38650
38651 2009-07-21  Jim Meyering  <meyering@redhat.com>
38652
38653         vc-list-files: avoid failure when /bin/sh is dash
38654         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38655         On some Debian based systems, /bin/sh is a symlink to dash, and running
38656         this command would omit the "/" following each 'tests' prefix:
38657           dash -x build-aux/vc-list-files -C . tests
38658         That is because bash and dash work differently:
38659           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38660           bash ok
38661           dash odd
38662
38663 2009-07-21  Eric Blake  <ebb9@byu.net>
38664
38665         dup2-tests: test previous patch
38666         * modules/dup2-tests: New file.
38667         * tests/test-dup2.c: Likewise.
38668         * tests/test-open.c (main): Avoid unspecified behavior.
38669         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38670         test.
38671
38672         dup2: work around mingw and cygwin 1.5 bug
38673         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38675         * modules/unistd (Makefile.am): Substitute it.
38676         * lib/unistd.in.h (dup2): Declare the replacement.
38677         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38678         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38679         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38680         * modules/execute (Depends-on): Add dup2.
38681         * modules/fseterr (Depends-on): Likewise.
38682         * modules/pipe (Depends-on): Likewise.
38683         * modules/posix_spawn-internal (Depends-on): Likewise.
38684
38685 2009-07-21  Bruno Haible  <bruno@clisp.org>
38686
38687         * modules/.gitattributes: New file.
38688
38689 2009-07-20  Bruno Haible  <bruno@clisp.org>
38690
38691         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38692         (main): Use it.
38693
38694 2009-07-20  Eric Blake  <ebb9@byu.net>
38695
38696         test-pipe: make a bit more robust.
38697         * tests/test-pipe.c (myerr): Allow error messages regardless of
38698         what we do to stderr.
38699         (test_pipe): Rearrange to avoid deadlock.
38700         (child_main): Try a larger read, to ensure we avoided deadlock.
38701         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38702         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38703         if misused.
38704
38705 2009-07-19  Jim Meyering  <meyering@redhat.com>
38706
38707         fts: avoid false-positive cycle-detection
38708         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38709         for each new command line argument.
38710
38711 2009-07-19  Bruno Haible  <bruno@clisp.org>
38712
38713         Fix build error on mingw with the modules sys_select and unistd.
38714         * modules/acl-tests (Depends-on): Add close.
38715         * modules/binary-io-tests (Depends-on): Likewise.
38716         * modules/closein-tests (Depends-on): Likewise.
38717         * modules/flock-tests (Depends-on): Likewise.
38718         * modules/fsync-tests (Depends-on): Likewise.
38719         * modules/lseek-tests (Depends-on): Likewise.
38720         * modules/pipe-tests (Depends-on): Likewise.
38721         * modules/posix_spawn-tests (Depends-on): Likewise.
38722         * modules/posix_spawnp-tests (Depends-on): Likewise.
38723         * modules/stat-time-tests (Depends-on): Likewise.
38724         * modules/yesno-tests (Depends-on): Likewise.
38725
38726 2009-07-19  Bruno Haible  <bruno@clisp.org>
38727
38728         Unify conditionals.
38729         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38730         macros, not at the compiler macros.
38731         * lib/pipe.c: Likewise.
38732         * lib/execute.c: Likewise.
38733         * lib/spawni.c: Likewise.
38734
38735 2009-07-19  Bruno Haible  <bruno@clisp.org>
38736
38737         Fix handling of closed stdin/stdout/stderr on mingw.
38738         * lib/w32spawn.h: Include unistd.h.
38739         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38740         file descriptor with O_NOINHERIT flag.
38741         (fd_safer_noinherit): New function, based on fd-safer.c.
38742         (dup_safer_noinherit): New function, based on dup-safer.c.
38743         (undup_safer_noinherit): New function.
38744         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38745         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38746         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38747         instead of fd_safer.
38748         * tests/test-pipe.c: Include <windows.h>.
38749         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38750         result.
38751
38752         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38753         from main.
38754         (test_pipe): Pass an extra argument for disambiguation.
38755         (main): Invoke parent_main or child_main.
38756
38757         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38758         consistently.
38759
38760 2009-07-18  Eric Blake  <ebb9@byu.net>
38761
38762         test-pipe: fix mingw build
38763         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38764
38765 2009-07-18  Bruno Haible  <bruno@clisp.org>
38766
38767         * modules/pipe-tests (Makefile.am): Fix typo.
38768
38769 2009-07-18  Eric Blake  <ebb9@byu.net>
38770
38771         error: fix mingw build
38772         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38773         Reported by Bruno Haible.
38774
38775         error: avoid undefined use of stdout
38776         * lib/error.c (error, error_at_line): Check that fd 1 is open
38777         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38778         is handling faults and the close_stdout module wants to report the
38779         detection of closed stdout as an error.
38780
38781 2009-07-17  Eric Blake  <ebb9@byu.net>
38782
38783         pipe: be robust in face of closed fds
38784         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38785         should cause child to misbehave.
38786         * modules/pipe-tests: New module.
38787         * tests/test-pipe.c: New file.
38788         * tests/test-pipe.sh: New file.
38789         Reported by Akim Demaille.
38790
38791 2009-07-14  Bruno Haible  <bruno@clisp.org>
38792
38793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38794         Reported by anonymous kc.
38795
38796 2009-07-07  Jim Meyering  <meyering@redhat.com>
38797
38798         maint.mk: don't look for translatable strings in *.m4 or *.mk
38799         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38800         when searching for translatable strings.
38801
38802 2009-07-05  Jim Meyering  <meyering@redhat.com>
38803
38804         remove superfluous parentheses in STREQ definition
38805         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38806         * lib/getugroups.c (STREQ): Likewise.
38807         * lib/fnmatch.c (STREQ): Likewise.
38808         Spotted by Bruno Haible.
38809
38810 2009-07-04  Jim Meyering  <meyering@redhat.com>
38811
38812         argv-iter: new module
38813         * MODULES.html.sh: Add argv-iter.
38814         * lib/argv-iter.c, lib/argv-iter.h: New files.
38815         * modules/argv-iter: New file.
38816         * modules/argv-iter-tests: New file.
38817         * tests/test-argv-iter.c: Test it.
38818
38819 2009-07-04  Bruno Haible  <bruno@clisp.org>
38820
38821         Fix assertion.
38822         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38823         contains more exact copies of a given entry than file2, leave the extra
38824         copies unpaired rather than aborting.
38825         Reported by Eric Blake.
38826
38827 2009-07-02  Bruno Haible  <bruno@clisp.org>
38828
38829         Speedup git-merge-changelog for git cherry-pick.
38830         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38831         (entries_mapping_get): New function, extracted from compute_mapping.
38832         (entries_mapping_reverse_get): New function.
38833         (compute_mapping): Add a 'full' argument. Return the result in a
38834         'struct entries_mapping'.
38835         (main): Update. Access the mappings through entries_mapping_get.
38836         Reported by Eric Blake.
38837
38838 2009-07-02  Bruno Haible  <bruno@clisp.org>
38839
38840         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38841         best_i.
38842
38843 2009-07-02  Bruno Haible  <bruno@clisp.org>
38844
38845         Speed up approximate search for matching ChangeLog entries.
38846         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38847         argument. Call fstrcmp_bounded instead of fstrcmp.
38848         (compute_mapping, try_split_merged_entry, main): Update callers.
38849
38850 2009-07-02  Bruno Haible  <bruno@clisp.org>
38851
38852         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38853
38854 2009-06-30  Bruno Haible  <bruno@clisp.org>
38855
38856         Reduce the number of uc_is_cased calls.
38857         * lib/unicase.h (casing_suffix_context_t): Add
38858         'first_char_except_ignorable' field.
38859         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38860         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38861         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38862         Update initializer.
38863         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38864         case-ignorable characters.
38865         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38866         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38867         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38868         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38869         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38870
38871 2009-06-30  Bruno Haible  <bruno@clisp.org>
38872
38873         Tests for module 'unicase/ignorable'.
38874         * modules/unicase/ignorable-tests: New file.
38875         * tests/unicase/test-ignorable.c: New file, generated by
38876         gen-uni-tables.
38877
38878         Tests for module 'unicase/cased'.
38879         * modules/unicase/cased-tests: New file.
38880         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38881         * tests/unicase/test-predicate-part1.h: New file, derived from
38882         tests/unictype/test-predicate-part1.h.
38883         * tests/unicase/test-predicate-part2.h: New file, same as
38884         tests/unictype/test-predicate-part2.h.
38885
38886         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38887         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38888         (output_casing_properties): New function.
38889         (main): Call it.
38890         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38891         * lib/unicase/cased.c: Include unictype/bitmap.h.
38892         (uc_is_cased): Define through a bitmap lookup.
38893         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38894         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38895         (uc_is_case_ignorable): Define through a bitmap lookup.
38896         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38897         lib/unictype/bitmap.h.
38898         (Depends-on): Add inline. Clean up.
38899         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38900         lib/unictype/bitmap.h.
38901         (Depends-on): Add inline. Clean up.
38902         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38903         recognition.
38904         * tests/unicase/test-u16-tolower.c (main): Likewise.
38905         * tests/unicase/test-u32-tolower.c (main): Likewise.
38906
38907 2009-06-30  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38910         * lib/unicase/u16-casemap.c: Likewise.
38911         * lib/unicase/u32-casemap.c: Likewise.
38912
38913 2009-06-29  Bruno Haible  <bruno@clisp.org>
38914
38915         Define u32_casefold as a wrapper around u32_ct_casefold.
38916         * lib/unicase/u32-casefold.c: Update.
38917         * modules/unicase/u32-casefold (Depends-on): Add
38918         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38919         unicase/empty-suffix-context. Clean up.
38920
38921         Define u16_casefold as a wrapper around u16_ct_casefold.
38922         * lib/unicase/u16-casefold.c: Update.
38923         * modules/unicase/u16-casefold (Depends-on): Add
38924         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38925         unicase/empty-suffix-context. Clean up.
38926
38927         Define u8_casefold as a wrapper around u8_ct_casefold.
38928         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38929         * lib/unicase/u8-casefold.c: Update.
38930         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38931         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38932
38933         Define u32_totitle as a wrapper around u32_ct_totitle.
38934         * lib/unicase/u32-totitle.c: Update.
38935         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38936         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38937
38938         Define u16_totitle as a wrapper around u16_ct_totitle.
38939         * lib/unicase/u16-totitle.c: Update.
38940         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38941         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38942
38943         Define u8_totitle as a wrapper around u8_ct_totitle.
38944         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38945         functions.
38946         (FUNC): Delegate to U_CT_TOTITLE.
38947         * lib/unicase/u8-totitle.c: Update.
38948         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38949         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38950
38951         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38952         invocation.
38953         * modules/unicase/u32-tolower (Depends-on): Add
38954         unicase/empty-prefix-context, unicase/empty-suffix-context.
38955
38956         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38957         invocation.
38958         * modules/unicase/u16-tolower (Depends-on): Add
38959         unicase/empty-prefix-context, unicase/empty-suffix-context.
38960
38961         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38962         * modules/unicase/u8-tolower (Depends-on): Add
38963         unicase/empty-prefix-context, unicase/empty-suffix-context.
38964
38965         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38966         invocation.
38967         * modules/unicase/u32-toupper (Depends-on): Add
38968         unicase/empty-prefix-context, unicase/empty-suffix-context.
38969
38970         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38971         invocation.
38972         * modules/unicase/u16-toupper (Depends-on): Add
38973         unicase/empty-prefix-context, unicase/empty-suffix-context.
38974
38975         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38976         * modules/unicase/u8-toupper (Depends-on): Add
38977         unicase/empty-prefix-context, unicase/empty-suffix-context.
38978
38979         New module 'unicase/u32-ct-casefold'.
38980         * lib/unicase/u32-ct-casefold.c: New file.
38981         * modules/unicase/u32-ct-casefold: New file.
38982
38983         New module 'unicase/u16-ct-casefold'.
38984         * lib/unicase/u16-ct-casefold.c: New file.
38985         * modules/unicase/u16-ct-casefold: New file.
38986
38987         New module 'unicase/u8-ct-casefold'.
38988         * lib/unicase/u8-ct-casefold.c: New file.
38989         * lib/unicase/u-ct-casefold.h: New file, derived from
38990         lib/unicase/u-casefold.h.
38991         * modules/unicase/u8-ct-casefold: New file.
38992
38993         New module 'unicase/u32-ct-totitle'.
38994         * lib/unicase/u32-ct-totitle.c: New file.
38995         * modules/unicase/u32-ct-totitle: New file.
38996
38997         New module 'unicase/u16-ct-totitle'.
38998         * lib/unicase/u16-ct-totitle.c: New file.
38999         * modules/unicase/u16-ct-totitle: New file.
39000
39001         New module 'unicase/u8-ct-totitle'.
39002         * lib/unicase/u8-ct-totitle.c: New file.
39003         * lib/unicase/u-ct-totitle.h: New file, derived from
39004         lib/unicase/u-totitle.h.
39005         * modules/unicase/u8-ct-totitle: New file.
39006
39007         New module 'unicase/u32-ct-tolower'.
39008         * lib/unicase/u32-ct-tolower.c: New file.
39009         * modules/unicase/u32-ct-tolower: New file.
39010
39011         New module 'unicase/u16-ct-tolower'.
39012         * lib/unicase/u16-ct-tolower.c: New file.
39013         * modules/unicase/u16-ct-tolower: New file.
39014
39015         New module 'unicase/u8-ct-tolower'.
39016         * lib/unicase/u8-ct-tolower.c: New file.
39017         * modules/unicase/u8-ct-tolower: New file.
39018
39019         New module 'unicase/u32-ct-toupper'.
39020         * lib/unicase/u32-ct-toupper.c: New file.
39021         * modules/unicase/u32-ct-toupper: New file.
39022
39023         New module 'unicase/u16-ct-toupper'.
39024         * lib/unicase/u16-ct-toupper.c: New file.
39025         * modules/unicase/u16-ct-toupper: New file.
39026
39027         New module 'unicase/u8-ct-toupper'.
39028         * lib/unicase/u8-ct-toupper.c: New file.
39029         * modules/unicase/u8-ct-toupper: New file.
39030
39031         Add context arguments to u*_casemap functions.
39032         * lib/unicase/unicasemap.h: Include unicase.h.
39033         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39034         suffix_context arguments.
39035         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39036         functions.
39037         (FUNC): Add prefix_context and suffix_context arguments. Use
39038         uc_is_cased and uc_is_case_ignorable.
39039         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39040         * lib/unicase/u16-casemap.c: Likewise.
39041         * lib/unicase/u32-casemap.c: Likewise.
39042         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39043         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39044         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39045         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39046         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39047         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39048
39049         New module 'unicase/u32-suffix-context'.
39050         * lib/unicase/u32-suffix-context.c: New file.
39051         * modules/unicase/u32-suffix-context: New file.
39052
39053         New module 'unicase/u16-suffix-context'.
39054         * lib/unicase/u16-suffix-context.c: New file.
39055         * modules/unicase/u16-suffix-context: New file.
39056
39057         New module 'unicase/u8-suffix-context'.
39058         * lib/unicase/u8-suffix-context.c: New file.
39059         * lib/unicase/u-suffix-context.h: New file.
39060         * modules/unicase/u8-suffix-context: New file.
39061
39062         New module 'unicase/empty-suffix-context'.
39063         * lib/unicase/empty-suffix-context.c: New file.
39064         * modules/unicase/empty-suffix-context: New file.
39065
39066         New module 'unicase/u32-prefix-context'.
39067         * lib/unicase/u32-prefix-context.c: New file.
39068         * modules/unicase/u32-prefix-context: New file.
39069
39070         New module 'unicase/u16-prefix-context'.
39071         * lib/unicase/u16-prefix-context.c: New file.
39072         * modules/unicase/u16-prefix-context: New file.
39073
39074         New module 'unicase/u8-prefix-context'.
39075         * lib/unicase/u8-prefix-context.c: New file.
39076         * lib/unicase/u-prefix-context.h: New file.
39077         * lib/unicase/context.h: New file.
39078         * modules/unicase/u8-prefix-context: New file.
39079
39080         New module 'unicase/empty-prefix-context'.
39081         * lib/unicase/empty-prefix-context.c: New file.
39082         * modules/unicase/empty-prefix-context: New file.
39083
39084         New module 'unicase/ignorable'.
39085         * lib/unicase/ignorable.c: New file.
39086         * modules/unicase/ignorable: New file.
39087
39088         New module 'unicase/cased'.
39089         * lib/unicase/caseprop.h: New file.
39090         * lib/unicase/cased.c: New file.
39091         * modules/unicase/cased: New file.
39092
39093         New functions for case mapping of substrings.
39094         * lib/unicase.h (casing_prefix_context_t): New type.
39095         (unicase_empty_prefix_context): New variable.
39096         (u8_casing_prefix_context, u16_casing_prefix_context,
39097         u32_casing_prefix_context, u8_casing_prefixes_context,
39098         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39099         declarations.
39100         (casing_suffix_context_t): New type.
39101         (unicase_empty_suffix_context): New variable.
39102         (u8_casing_suffix_context, u16_casing_suffix_context,
39103         u32_casing_suffix_context, u8_casing_suffixes_context,
39104         u16_casing_suffixes_context, u32_casing_suffixes_context,
39105         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39106         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39107         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39108         declarations.
39109
39110 2009-06-28  Jim Meyering  <meyering@redhat.com>
39111
39112         boostrap: indent only with spaces
39113         * build-aux/bootstrap: Indent only with spaces, never TABs.
39114
39115         bootstrap: split long lines
39116         * build-aux/bootstrap: Keep line length < 80.
39117
39118         bootstrap: sync from coreutils
39119         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39120         just as autoreconf does.  Verify a list of prerequisite
39121         package-name,version-number pairs if defined in bootstrap.conf.
39122         Refer to README-prereq, if prerequisites are not satisfied.
39123
39124 2009-06-27  Eric Blake  <ebb9@byu.net>
39125
39126         tests: add test for bogus NULL definition
39127         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39128         * tests/test-stdlib.c: Likewise.
39129         * tests/test-string.c: Likewise.
39130         * tests/test-locale.c: Likewise.
39131         * tests/test-unistd.c: Likewise.
39132         * modules/stdio-tests (Depends-on): Add verify.
39133         * modules/stdlib-tests (Depends-on): Likewise.
39134         * modules/string-tests (Depends-on): Likewise.
39135         * modules/locale-tests (Depends-on): Likewise.
39136         * modules/unistd-tests (Depends-on): Likewise.
39137
39138 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39139
39140         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39141         self-explaining comment.
39142         * m4/selinux-selinux-h: Update serial.
39143         (gl_LIBSELINUX): New macro, adding a warning for missing development
39144         packages to code extracted from...
39145         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39146         Add warning for missing development packages here, too.
39147
39148 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39149
39150         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39151
39152 2009-06-25  Eric Blake  <ebb9@byu.net>
39153
39154         version-etc: fix regression
39155         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39156         gcc.
39157         (version_etc): Use it, to catch bugs with trailing NULL.
39158         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39159         (version_etc_va): Fix logic bug.
39160         * modules/version-etc-tests: Add test.
39161         * tests/test-version-etc.c: New file.
39162         * tests/test-version-etc.sh: Likewise.
39163
39164 2009-06-25  Sam Steingold  <sds@gnu.org>
39165
39166         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39167         mbtowc declaration.
39168
39169 2009-06-25  Eric Blake  <ebb9@byu.net>
39170
39171         fpurge: migrate into <stdio.h>
39172         * lib/fpurge.h: Delete...
39173         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39174         * lib/fpurge.c (fpurge): Change declaring header.
39175         * modules/fpurge (Files): Drop deleted file.
39176         (Depends-on): Add stdio.
39177         (configure.ac): Set witness.
39178         * modules/stdio (Makefile.am): Support fpurge macros.
39179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39180         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39181         * lib/fflush.c: Update client.
39182         * tests/test-fpurge.c: Likewise.
39183         * NEWS: Mention the change.
39184
39185 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39186
39187         * lib/argp-version-etc.c (program_authors): Add const
39188         qualifier.
39189         * lib/version-etc.c: Fix typos in the comments.
39190         * modules/argp-version-etc: Depends on version-etc.
39191
39192 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39193
39194         argp-version-etc: new module.
39195
39196         * lib/argp-version-etc.c: New file.
39197         * lib/argp-version-etc.h: New file.
39198         * modules/argp-version-etc: New file.
39199         * modules/argp-version-etc-tests: New file.
39200         * tests/test-argp-version-etc.c: New test.
39201         * tests/test-argp-version-etc-1.sh: New test.
39202
39203 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39204
39205         Provide additional interfaces and documentation for version-etc
39206         module.
39207
39208         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39209         interfaces.
39210         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39211         prototypes.
39212
39213 2009-06-24  Bruno Haible  <bruno@clisp.org>
39214
39215         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39216         HAVE_LIB${NAME} macro.
39217         Reported by Sam Steingold <sds@gnu.org>.
39218
39219 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39220
39221         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39222         needed.
39223
39224 2009-06-21  Bruno Haible  <bruno@clisp.org>
39225
39226         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39227         work.
39228         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39229         together with LIB${NAME}, LTLIB${NAME}.
39230         Reported by Sam Steingold <sds@gnu.org>.
39231
39232 2009-06-20  Jim Meyering  <meyering@redhat.com>
39233
39234         tests: make sc_require_test_exit_idiom more generic
39235         * top/maint.mk (Exit_witness_file): New overridable variable.
39236         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39237         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39238
39239 2009-06-19  Jim Meyering  <meyering@redhat.com>
39240
39241         hash: reverse order of src/dst parameters in an internal interface
39242         * lib/hash.c (transfer_entries): Reverse order of parameters to
39243         put DST before SRC.  Adjust callers.
39244
39245         tests: test-hash: avoid wholesale duplication
39246         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39247         Instead, use a loop and add a single conditional.
39248
39249         tests: test-hash: allow seed selection via a command line argument
39250         * tests/test-hash.c (get_seed): New function.
39251         (main): Use it.
39252
39253 2009-06-19  Eric Blake  <ebb9@byu.net>
39254
39255         hash: avoid memory leak on allocation failure
39256         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39257         failure.  Factor repeated algorithm...
39258         (transfer_entries): ...into new helper routine.
39259         (hash_delete): React to hash_rehash return value.
39260
39261         hash: reduce memory pressure in hash_rehash no-op case
39262         * lib/hash.c (next_prime): Avoid overflow.
39263         (hash_initialize): Factor bucket size computation...
39264         (compute_bucket_size): ...into new helper function.
39265         (hash_rehash): Use new function and open coding to reduce memory
39266         pressure, and avoid a memory leak in USE_OBSTACK code.
39267         Reported by Jim Meyering.
39268
39269 2009-06-18  Eric Blake  <ebb9@byu.net>
39270
39271         hash: make rotation more obvious
39272         * modules/hash (Depends-on): Add bitrotate and stdint.
39273         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39274         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39275         (SIZE_MAX): Rely on headers for definition.
39276         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39277         (raw_hasher): Use rotr_sz.
39278         Suggested by Jim Meyering.
39279
39280         hash: fix memory leak in last patch
39281         * lib/hash.c (hash_rehash): Avoid memory leak.
39282
39283         hash: avoid no-op rehashing
39284         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39285
39286         hash: provide default callback functions
39287         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39288         (hash_initialize): Use them as defaults.
39289         * tests/test-hash.c (main): Test this.
39290
39291         hash: minor optimization
39292         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39293         when possible.
39294         (hash_initialize): Document this promise.
39295         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39296         * tests/test-hash.c (hash_compare_strings): Test this.
39297
39298 2009-06-18  Bruno Haible  <bruno@clisp.org>
39299
39300         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39301         going to be replaced anyway.
39302
39303 2009-06-18  Bruno Haible  <bruno@clisp.org>
39304
39305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39306         in one place.
39307         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39308         be replaced anyway.
39309
39310 2009-06-18  Eric Blake  <ebb9@byu.net>
39311
39312         hash: check for resize before insertion
39313         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39314         threshold before insertion, so that a pathological hash_rehash
39315         that fills every bucket can still trigger another rehash.
39316
39317 2009-06-18  Jim Meyering  <meyering@redhat.com>
39318
39319         hash-tests: add a loop around the small tests
39320         * tests/test-hash.c (main): Repeat small tests with selected
39321         small initial table sizes.
39322
39323 2009-06-17  Eric Blake  <ebb9@byu.net>
39324
39325         hash: minor cleanups
39326         * lib/hash.h (hash_entry): Make opaque, by moving...
39327         * lib/hash.c (hash_entry): ...here.
39328         (hash_insert): Clarify restrictions on what can be inserted.
39329         (hash_get_next): Clarify when it is safe to remove an element
39330         during traversal.
39331         (check_tuning): Skip verification when tuning is known safe.
39332         (hash_initialize): Clarify restrictions on tuning.
39333
39334 2009-06-17  Jim Meyering  <jim@meyering.net>
39335         and Eric Blake  <ebb9@byu.net>
39336
39337         hash-tests: new module
39338         * modules/hash-tests: New file.
39339         * tests/test-hash.c: New file.
39340
39341 2009-06-17  Eric Blake  <ebb9@byu.net>
39342
39343         strstr-simple: document new module
39344         * MODULES.html.sh: Document new module.
39345
39346         strstr, strcasestr: replace on platforms with broken memchr
39347         * modules/strstr: Split into...
39348         * modules/strstr-simple: ...new module that does not care about
39349         performance, but does care about glibc bug.
39350         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39351         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39352         if platform memchr is broken, per Debian bug 521737.
39353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39354         memchr.
39355         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39356         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39357         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39358         * modules/mountlist (Depends-on): Add strstr-simple.
39359         * modules/gen-uni-tables (Depends-on): Likewise.
39360         * modules/argz (Depends-on): Add strstr.
39361
39362 2009-06-17  Bruno Haible  <bruno@clisp.org>
39363
39364         * modules/posix_spawn-internal (Depends-on): Add errno.
39365
39366 2009-06-17  Bruno Haible  <bruno@clisp.org>
39367
39368         Define missing ESTALE on Interix 3.5.
39369         * lib/errno.in.h (ESTALE): Assign a value if missing.
39370         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39371         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39372         missing.
39373         * doc/posix-headers/errno.texi: Mention the Interix bug.
39374         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39375
39376 2009-06-15  Eric Blake  <ebb9@byu.net>
39377
39378         memchr, memchr2: add valgrind exception
39379         * lib/memchr.valgrind: New file.
39380         * lib/memchr2.valgrind: New file.
39381         * modules/memchr (Files): Distribute valgrind file.
39382         * modules/memchr2 (Files): Likewise.
39383
39384         docs: memchr is no longer obsolete
39385         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39386         * lib/string.in.h (memchr): Simplify logic.
39387
39388 2009-06-14  Jim Meyering  <meyering@redhat.com>
39389
39390         link-follow: fix the "checking..." message to not mention trailing slash
39391         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39392         never considered trailing slashes.
39393
39394 2009-06-14  Bruno Haible  <bruno@clisp.org>
39395
39396         * m4/memchr.m4: Mention also the bug on IA-64.
39397         * doc/posix-functions/memchr.texi: Likewise.
39398
39399 2009-06-12  Eric Blake  <ebb9@byu.net>
39400
39401         memchr: detect broken x86_64 and alpha implementations
39402         * modules/memchr-tests (Depends-on): Move mmap detection...
39403         * modules/memchr (Depends-on): ...here.
39404         (configure.ac): Set indicator.
39405         * lib/string.in.h (memchr): Declare replacement.
39406         * modules/string (Makefile.am): Trigger replacement.
39407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39408         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39409         bugs.
39410         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39411         * modules/getpagesize (License): Relax license.
39412
39413 2009-06-11  Bruno Haible  <bruno@clisp.org>
39414
39415         * lib/idpriv.h: Add more references.
39416
39417 2009-06-08  Bruno Haible  <bruno@clisp.org>
39418
39419         Tests for module 'idpriv-droptemp'.
39420         * modules/idpriv-droptemp-tests: New file.
39421         * tests/test-idpriv-droptemp.sh: New file.
39422         * tests/test-idpriv-droptemp.su.sh: New file.
39423         * tests/test-idpriv-droptemp.c: New file.
39424
39425         New module 'idpriv-droptemp'.
39426         * lib/idpriv-droptemp.c: New file.
39427         * modules/idpriv-droptemp: New file.
39428
39429 2009-06-08  Bruno Haible  <bruno@clisp.org>
39430
39431         Tests for module 'idpriv-drop'.
39432         * modules/idpriv-drop-tests: New file.
39433         * tests/test-idpriv-drop.sh: New file.
39434         * tests/test-idpriv-drop.su.sh: New file.
39435         * tests/test-idpriv-drop.c: New file.
39436
39437         New module 'idpriv-drop'.
39438         * lib/idpriv.h: New file.
39439         * lib-idpriv-drop.c: New file.
39440         * m4/idpriv.m4: New file.
39441         * modules/idpriv-drop: New file.
39442
39443 2009-06-08  Bruno Haible  <bruno@clisp.org>
39444
39445         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39446         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39447         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39448         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39449         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39450         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39451         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39452
39453 2009-06-08  Eric Blake  <ebb9@byu.net>
39454
39455         test-strstr: use memory fence, when possible
39456         * tests/test-strstr.c (main): Use memory fence, in order to be
39457         more likely to trigger Debian bug 521737.
39458         * modules/strstr-tests (Files): Pull in additional files.
39459
39460         memchr: no longer obsolete, for wider field testing
39461         * modules/memchr (Status, Notice): Delete, this module is no
39462         longer obsolete.
39463         * modules/vasnprintf (Depends-on): Add memchr.
39464
39465 2009-06-07  Jim Meyering  <meyering@redhat.com>
39466
39467         hash: declare some functions with the warn_unused_result attribute
39468         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39469
39470 2009-06-07  Bruno Haible  <bruno@clisp.org>
39471
39472         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39473         Reported by Eric Blake.
39474
39475 2009-06-06  Eric Blake  <ebb9@byu.net>
39476
39477         test-alignof: fix typo with long double
39478         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39479         compiler error.
39480
39481 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39482
39483         Escape non-texinfo { and }s.
39484         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39485         markup error.
39486
39487 2009-06-04  Jim Meyering  <meyering@redhat.com>
39488
39489         gitlog-to-changelog: don't infloop on an empty commit log
39490         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39491         Reported by Boris Petersen <transacid@centerim.org>.
39492
39493 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39494
39495         version-etc: extend for packagers
39496         Add three new configure options, intended for packagers:
39497           --with-packager="packager name"
39498           --with-packager-version="packager-specific version"
39499           --with-packager-bug-reports="packager bug reporting"
39500         An example with coreutils:
39501           $ ./configure \
39502             --with-packager=Gentoo \
39503             --with-packager-bug-report=http://bugs.gentoo.org/ \
39504             --with-packager-version="patchset 1.6"
39505           $ ./src/ls --version | head -n2
39506           ls (GNU coreutils) 7.1-dirty
39507           Packaged by Gentoo (patchset 1.6)
39508         Note that the bug reporting info via --help doesn't show up because
39509         coreutils uses its own custom emit_bug_reporting_address() implementation
39510         in src/system.h.  If it didn't, it'd look like:
39511           $ ./src/ls --help | tail -n4
39512           Report bugs to <bug-coreutils@gnu.org>.
39513           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39514           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39515           General help using GNU software: <http://www.gnu.org/gethelp/>.
39516         * lib/version-etc.c: Print new information, if provided.
39517         * m4/version-etc.m4: New file.
39518         * modules/version-etc (Files): Add m4/version-etc.m4.
39519         (configure.ac): Add gl_VERSION_ETC.
39520
39521 2009-05-31  Bruno Haible  <bruno@clisp.org>
39522
39523         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39524         and 'int64_t'.
39525         * modules/alignof-tests (Dependencies): Add stdint.
39526         Reported by Eric Blake.
39527
39528 2009-05-31  Bruno Haible  <bruno@clisp.org>
39529
39530         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39531         restriction due to compiler bugs.
39532         Reported by Eric Blake.
39533
39534 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39535             Bruno Haible  <bruno@clisp.org>
39536
39537         Fix test-alignof failure.
39538         * lib/alignof.h (alignof_slot): New macro.
39539         (alignof_type): New macro, with the same semantics as the previous
39540         'alignof'.
39541         (alignof): Alias to alignof_slot.
39542         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39543         check that the results are usable as constant expressions.
39544
39545 2009-05-31  Bruno Haible  <bruno@clisp.org>
39546
39547         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39548         * tests/test-memchr.c (main): Check that memchr does not read past the
39549         first occurrence of the byte.
39550         * tests/test-strstr.c (main): Update comment.
39551         Suggested by Eric Blake.
39552
39553 2009-05-30  Bruno Haible  <bruno@clisp.org>
39554
39555         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39556         detail how to use dumpbin.
39557         Reported by David Byron <dbyron@dbyron.com>.
39558
39559 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39560
39561         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39562
39563 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39564
39565         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39566
39567 2009-05-28  Bruno Haible  <bruno@clisp.org>
39568
39569         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39570         build-aux/ files.
39571
39572 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39573
39574         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39575
39576 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39577
39578         * gnulib-tool (sed_transform_main_lib_file)
39579         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39580         regexps.
39581
39582 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39583
39584         * tests/test-strstr.c: Add another self-test.
39585         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39586         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39587
39588 2009-05-23  Bruno Haible  <bruno@clisp.org>
39589
39590         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39591         change.
39592
39593 2009-05-21  Bruno Haible  <bruno@clisp.org>
39594
39595         Simplify use of mode_t varargs.
39596         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39597         uses 'mode_t' or 'int'.
39598         * lib/openat.c (openat): Likewise.
39599         * lib/open-safer.c (open_safer): Likewise.
39600         * m4/mode_t.m4: New file.
39601         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39602         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39603         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39604         * modules/open (Files): Add m4/mode_t.m4.
39605         * modules/openat (Files): Likewise.
39606         * modules/fcntl-safer (Files): Likewise.
39607         Suggested by Eric Blake.
39608
39609 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39610
39611         * doc/glibc-functions/fallocate.texi: New file.
39612         * doc/gnulib.texi: Include it.
39613
39614 2009-05-21  Eric Blake  <ebb9@byu.net>
39615             Bruno Haible  <bruno@clisp.org>
39616
39617         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39618         invocations.
39619         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39620
39621 2009-05-21  Eric Blake  <ebb9@byu.net>
39622             Bruno Haible  <bruno@clisp.org>
39623
39624         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39625         include_next. Fix of 2008-11-20 commit.
39626         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39627         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39628         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39629         NEXT_MATH_H.
39630         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39631         instead of NEXT_MATH_H.
39632
39633 2009-05-21  Bruno Haible  <bruno@clisp.org>
39634
39635         Avoid redefinition warnings for SIZE_MAX.
39636         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39637         Reported by Simon Josefsson.
39638
39639 2009-05-21  Bruno Haible  <bruno@clisp.org>
39640
39641         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39642         AC_CACHE_VAL.
39643
39644 2009-05-20  Bruno Haible  <bruno@clisp.org>
39645
39646         Make zeroptr.h work on mingw.
39647         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39648         mprotect.
39649         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39650         * modules/memchr2-tests (configure.ac): Likewise.
39651         * modules/memcmp-tests (configure.ac): Likewise.
39652         * modules/memmem-tests (configure.ac): Likewise.
39653         * modules/memrchr-tests (configure.ac): Likewise.
39654         Reported by Simon Josefsson.
39655
39656 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39657
39658         * tests/test-glob.c: Include string.h for strcmp prototype.
39659
39660 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39661
39662         * modules/getdelim (Depends-on): Add explicit stdint, although it
39663         was implicitly already pulled in via realloc-posix.
39664         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39665
39666 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39667
39668         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39669         G. Christensen" <tgc@jupiterrise.com>.
39670         * m4/sys_socket_h.m4: Check for sa_family_t.
39671         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39672         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39673         * tests/test-sys_socket.c: Check that sa_family_t works.
39674
39675 2009-05-18  Eric Blake  <ebb9@byu.net>
39676
39677         maint.mk: allow gnulib_dir in VPATH build
39678         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39679
39680 2009-05-15  Jim Meyering  <meyering@redhat.com>
39681
39682         maint.mk: Give gnulib_dir a default definition.
39683         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39684         Thus, most packages no longer need to specify this variable in cfg.mk
39685
39686 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39687
39688         rename.m4: fix typos that would make non-mingw cross-configure fail
39689         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39690
39691 2009-05-13  Eric Blake  <ebb9@byu.net>
39692
39693         mmap-anon: avoid out-of-order autoconf expansion
39694         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39695         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39696         * modules/memchr-tests (Depends-on): Add extensions.
39697         * modules/memchr2-tests (Depends-on): Add extensions.
39698         * modules/memcmp-tests (Depends-on): Add extensions.
39699         * modules/memmem-tests (Depends-on): Add extensions.
39700         * modules/memrchr-tests (Depends-on): Add extensions.
39701
39702 2009-05-13  Bruno Haible  <bruno@clisp.org>
39703
39704         Make some tests ISO C 99 compliant.
39705         * tests/zerosize-ptr.h: New file.
39706         * tests/test-memchr.c: Include zerosize-ptr.h.
39707         (main): Use a zero-size object pointer instead of NULL.
39708         * tests/test-memchr2.c: Include zerosize-ptr.h.
39709         (main): Use a zero-size object pointer instead of NULL.
39710         * tests/test-memcmp.c: Include zerosize-ptr.h.
39711         (main): Use a zero-size object pointer instead of NULL.
39712         * tests/test-memmem.c: Include zerosize-ptr.h.
39713         (main): Use a zero-size object pointer instead of NULL.
39714         * tests/test-memrchr.c: Include zerosize-ptr.h.
39715         (main): Use a zero-size object pointer instead of NULL.
39716         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39717         m4/mmap-anon.m4.
39718         (Depends-on): Add getpagesize.
39719         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39720         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39721         m4/mmap-anon.m4.
39722         (Depends-on): Add getpagesize.
39723         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39724         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39725         m4/mmap-anon.m4.
39726         (Depends-on): Add getpagesize.
39727         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39728         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39729         m4/mmap-anon.m4.
39730         (Depends-on): Add getpagesize.
39731         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39732         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39733         m4/mmap-anon.m4.
39734         (Depends-on): Add getpagesize.
39735         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39736
39737 2009-05-12  Bruno Haible  <bruno@clisp.org>
39738
39739         Tests for module 'alignof'.
39740         * modules/alignof-tests: New file.
39741         * tests/test-alignof.c: New file.
39742
39743 2009-05-12  Bruno Haible  <bruno@clisp.org>
39744
39745         Fix alignof macro.
39746         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39747         vendor compilers that are always correct.
39748
39749 2009-05-12  Bruno Haible  <bruno@clisp.org>
39750
39751         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39752         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39753         not whether its fully works.
39754
39755 2009-05-12  Bruno Haible  <bruno@clisp.org>
39756
39757         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39758
39759 2009-05-12  Jim Meyering  <meyering@redhat.com>
39760
39761         * top/maint.mk: Adjust backslash alignment.
39762
39763 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39764
39765         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39766
39767 2009-05-11  Eric Blake  <ebb9@byu.net>
39768
39769         argp: avoid undefined behavior
39770         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39771         macros.
39772
39773 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39774
39775         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39776         user.name to prevent git commit from complaining.
39777
39778 2009-05-10  Bruno Haible  <bruno@clisp.org>
39779
39780         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39781         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39782         it rewrites every file name only once.
39783         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39784
39785 2009-05-08  Bruno Haible  <bruno@clisp.org>
39786
39787         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39788         instead of 'max'.
39789
39790 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39791
39792         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39793         sockaddr_storage test.
39794
39795 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39796
39797         * modules/sys_socket (Makefile.am): Substitute
39798         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39799         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39800         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39801         * tests/test-sys_socket.c: Check sockaddr_storage.
39802
39803 2009-05-08  Bruno Haible  <bruno@clisp.org>
39804
39805         New module 'alignof'.
39806         * lib/alignof.h: New file.
39807         * modules/alignof: New file.
39808
39809 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39810             Bruno Haible  <bruno@clisp.org>
39811
39812         Fix test-file-has-acl on FreeBSD.
39813         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39814         mask is implicitly added.
39815         * tests/test-file-has-acl.c: Include <signal.h>.
39816         (main): Terminate the test after 5 seconds.
39817         * modules/acl-tests (configure.ac): Check for alarm function.
39818
39819 2009-05-04  Bruno Haible  <bruno@clisp.org>
39820
39821         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39822         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39823         * modules/errno (configure.ac): Drop AC_REQUIRE.
39824         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39825         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39826
39827 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39828
39829         * modules/glob-tests: New module.
39830         * tests/test-glob.c: Add.
39831
39832 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39833
39834         * modules/fnmatch-tests: New module.
39835         * tests/test-fnmatch.c: Add.
39836
39837 2009-05-04  Eric Blake  <ebb9@byu.net>
39838
39839         maint: make the new no-submodule-changes rule VPATH-safe
39840         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39841
39842 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39843             Bruno Haible  <bruno@clisp.org>
39844
39845         acl: Fix infinite loop on FreeBSD.
39846         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39847         of return value from acl_get_entry.
39848         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39849         Likewise.
39850
39851 2009-05-03  Bruno Haible  <bruno@clisp.org>
39852
39853         * lib/acl-internal.h (acl_entries): Clarify return value.
39854         * lib/acl_entries.c (acl_entries): Likewise.
39855
39856 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39857
39858         Bug fix in acl module.
39859         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39860
39861 2009-05-03  Bruno Haible  <bruno@clisp.org>
39862
39863         Create gperf-generated file in the source dir, not in the build dir.
39864         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39865         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39866         * modules/unicase/locale-language (unicase/locale-languages.h):
39867         Likewise.
39868         * modules/unicase/special-casing (unicase/special-casing-table.h):
39869         Likewise.
39870         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39871         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39872         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39873         Reported by Ralf Wildenhues.
39874
39875 2009-05-03  Bruno Haible  <bruno@clisp.org>
39876
39877         * modules/fnmatch (Description, configure.ac): Taken from
39878         fnmatch-posix.
39879         * modules/fnmatch-posix: Turn into a symbolic reference to the
39880         'fnmatch' module, and deprecate.
39881         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39882
39883 2009-05-03  Bruno Haible  <bruno@clisp.org>
39884
39885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39886         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39887         Reported by Ralf Wildenhues.
39888
39889 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39890
39891         * m4/fnmatch.m4: Fix fnmatch re-define.
39892
39893 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39894
39895         priv-set: new module and tests; adapt write-any-file
39896         * lib/priv-set.c: New file.
39897         * lib/priv-set.h: New file.
39898         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39899         * lib/write-any-file.c: Simplify by using priv-set module.
39900         * m4/priv-set.m4: New file.
39901         * modules/priv-set: New file.
39902         * modules/unlinkdir: Add dependency on priv-set module.
39903         * modules/write-any-file: Likewise.
39904
39905         Tests for module 'priv-set'.
39906         * modules/priv-set-tests: New file.
39907         * tests/test-priv-set.c: New file.
39908
39909 2009-05-03  Jim Meyering  <meyering@redhat.com>
39910             Bruno Haible  <bruno@clisp.org>
39911
39912         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39913         use the converted UTF-8 variant of the name instead.
39914
39915 2009-05-03  Jim Meyering  <meyering@redhat.com>
39916
39917         tests: tighten some getdate tests
39918         * tests/test-getdate.c (main): Tighten tests: require equality,
39919         not just greater than.  Set TZ envvar to UTC0.
39920
39921 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39922
39923         getdate: correctly interpret "next monday" when run on a Monday
39924         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39925         that e.g., "next tues" (when run on a tuesday) results in a date
39926         that is one week in the future, and not today's date.
39927         I.e., add a week when the wday is the same as the current one.
39928         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39929         and earlier by Martin Bernreuther and Jan Minář.
39930         * tests/test-getdate.c (main): Check that "next DAY" is always in
39931         the future and that "last DAY" is always in the past.
39932
39933 2009-05-02  Jim Meyering  <meyering@redhat.com>
39934
39935         build: ensure that a release build fails when a submodule is unclean
39936         * top/maint.mk (no-submodule-changes): New rule.
39937         (alpha beta major): Depend on it.
39938
39939 2009-05-02  Bruno Haible  <bruno@clisp.org>
39940
39941         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39942         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39943         shell variable gl_fnmatch_required to detect which variant is
39944         requested.
39945         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39946         gl_FUNC_FNMATCH_POSIX.
39947         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39948         exclude fnmatch-posix.
39949
39950 2009-05-02  Bruno Haible  <bruno@clisp.org>
39951
39952         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39953         * modules/mbsrtowcs (License): Change to LGPLv2+.
39954         * modules/strnlen1 (License): Likewise.
39955         Reported by Simon Josefsson.
39956
39957 2009-05-02  Bruno Haible  <bruno@clisp.org>
39958
39959         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39960         "cross".
39961         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39962         gnulib-tool was called with option --source-base=lib.
39963
39964 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39965
39966         Use automake *-local hooks without commands, for extensibility.
39967         * modules/localcharset (Makefile.am): Rename install-exec-local
39968         rule to install-exec-localcharset, and make it a prerequisite of
39969         install-exec-local.  Likewise, rename the uninstall-local rule to
39970         uninstall-localcharset, and make it a prerequisite of the former.
39971
39972 2009-05-01  Bruno Haible  <bruno@clisp.org>
39973
39974         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39975         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39976         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39978         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39979         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39980         m4/locale-zh.m4, m4/codeset.m4.
39981
39982         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39983         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39984         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39985         m4/locale-zh.m4.
39986
39987         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39988         REPLACE_WCRTOMB if mbstate_t must be replaced.
39989         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39990         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39991
39992 2009-05-01  Bruno Haible  <bruno@clisp.org>
39993
39994         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39995         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39996         dngettext, dcngettext, textdomain, bindtextdomain,
39997         bind_textdomain_codeset): Undefine before redefining.
39998
39999 2009-04-30  Bruno Haible  <bruno@clisp.org>
40000
40001         Fix bug introduced on 2009-04-25.
40002         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40003         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40004         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40005         is defined.
40006         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40007         is defined.
40008         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40009         is defined.
40010         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40011
40012 2009-04-28  Bruno Haible  <bruno@clisp.org>
40013
40014         Comment tweaks.
40015         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40016         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40017         * lib/unicase.h (u*_casexfrm): Likewise.
40018         Reported by Paolo Bonzini.
40019
40020 2009-04-28  Bruno Haible  <bruno@clisp.org>
40021
40022         Fix a compilation error.
40023         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40024         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40025         Reported by Jim Meyering.
40026
40027 2009-04-27  Bruno Haible  <bruno@clisp.org>
40028
40029         New module 'libunistring'.
40030         * modules/libunistring: New file.
40031         * m4/libunistring.m4: New file.
40032         * MODULES.html.sh (Unicode string functions): Add it.
40033
40034 2009-04-27  Eric Blake  <ebb9@byu.net>
40035
40036         maint.mk: allow package-specific header to provide <config.h>
40037         * top/maint.mk (sc_require_config_h): New variable.
40038         (sc_require_config_h, sc_require_config_h_first): Use it.
40039
40040 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40041
40042         * top/maint.mk (sc_avoid_if_before_free): Except
40043         useless-if-before-free script.
40044
40045 2009-04-27  Eric Blake  <ebb9@byu.net>
40046
40047         maintainer-makefile: depend on all required helper scripts
40048         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40049         useless-if-before-free.
40050         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40051         version, rather than assuming gnulib checkout is available.
40052         Reported by Simen Josefsson.
40053
40054 2009-04-26  Bruno Haible  <bruno@clisp.org>
40055
40056         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40057         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40058         "../" or "..".
40059
40060 2009-04-26  Bruno Haible  <bruno@clisp.org>
40061
40062         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40063         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40064         AC_LIB_HAVE_LINKFLAGS.
40065
40066 2009-04-26  Bruno Haible  <bruno@clisp.org>
40067
40068         Simplify calling convention of u*_conv_from_encoding.
40069         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40070         u32_conv_from_encoding): Expect a resultbuf argument and return the
40071         result directly as a pointer.
40072         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40073         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40074         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40075         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40076         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40077         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40078         Update.
40079         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40080         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40081         * lib/vasnprintf.c (VASNPRINTF): Update.
40082         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40083         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40084         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40085         * NEWS: Mention the change.
40086
40087 2009-04-26  Bruno Haible  <bruno@clisp.org>
40088
40089         Simplify calling convention of u*_conv_to_encoding.
40090         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40091         u32_conv_to_encoding): Expect a resultbuf argument and return the
40092         result directly as a pointer.
40093         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40094         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40095         freeing scaled_offsets if mem_iconveha failed.
40096         * lib/unicase/u-casexfrm.h (FUNC): Update.
40097         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40098         * lib/vasnprintf.c (VASNPRINTF): Update.
40099         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40100         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40101         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40102         * NEWS: Mention the change.
40103
40104 2009-04-26  Bruno Haible  <bruno@clisp.org>
40105
40106         Avoid test failures on AIX and OSF/1.
40107         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40108         malloc(0).
40109         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40110         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40111         Likewise.
40112         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40113         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40114         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40115         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40116         * doc/posix-functions/malloc.texi: Document the portability problem
40117         related to malloc(0).
40118
40119 2009-04-26  Bruno Haible  <bruno@clisp.org>
40120
40121         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40122         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40123         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40124
40125 2009-04-25  Bruno Haible  <bruno@clisp.org>
40126
40127         Avoid link error when creating a namespace clean library.
40128         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40129         as macro with arguments if already defined as an alias.
40130         * lib/signbitf.c (gl_signbitf): Don't undefine.
40131         * lib/signbitd.c (gl_signbitd): Don't undefine.
40132         * lib/signbitl.c (gl_signbitl): Don't undefine.
40133
40134 2009-04-25  Jim Meyering  <meyering@redhat.com>
40135
40136         vc-list-files: fix another quoting bug
40137         * build-aux/vc-list-files: Avoid sed backslash expansion
40138         of pathological directory names.
40139
40140 2009-04-25  Eric Blake  <ebb9@byu.net>
40141
40142         vc-list-files: fix shell quoting error
40143         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40144         timestamp.
40145
40146 2009-04-25  Jim Meyering  <meyering@redhat.com>
40147
40148         vc-list-files: restore lost functionality with subdir argument
40149         * build-aux/vc-list-files: When given a non-"." sub-directory
40150         argument, substitute the $dir/ prefix back onto each resulting name.
40151         Otherwise, coreutils' root_tests check would fail.
40152
40153 2009-04-24  Eric Blake  <ebb9@byu.net>
40154
40155         vc-list-files: ignore git symlinks
40156         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40157         than ls-files, to ignore git symlinks.
40158
40159         maint.mk: import improvements from m4
40160         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40161         (move_if_change): Delete unused macro.
40162         (news-date-check, vc-diff-check): Support VPATH builds.
40163         (announcement): Likewise.  Split --bootstrap-tools list...
40164         (boostrap-tools): ...into separate list, which can be overridden
40165         in cfg.mk.
40166         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40167         requiring dependency on useless-if-before-free module.
40168         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40169         Support VPATH builds.
40170
40171 2009-04-24  Jim Meyering  <meyering@redhat.com>
40172
40173         maint.mk: remove coreutils-specific rules and variables
40174         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40175         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40176         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40177
40178         maint.mk: remove obsolete rule
40179         * top/maint.mk (rel-check): Remove rule.
40180         (WGET, WGETFLAGS): Remove now-unused variables.
40181
40182 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40183
40184         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40185         consistency.
40186
40187         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40188         '$(PATH_SEPARATOR)' instead of ':'.
40189
40190 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40191
40192         * lib/getopt1.c (main): Use 'const' for static array.
40193
40194 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40195
40196         * top/maint.mk: Sync with coreutils.
40197         * NEWS: Explain incompatibilities.
40198
40199 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40200             Bruno Haible  <bruno@clisp.org>
40201
40202         Fix cross-compilation results.
40203         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40204         statement, as third argument of AC_TRY_RUN.
40205         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40206         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40207         Likewise.
40208         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40209         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40210         Likewise.
40211         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40212         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40213         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40214
40215 2009-04-20  Bruno Haible  <bruno@clisp.org>
40216
40217         Avoid test failure on mingw.
40218         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40219
40220 2009-04-20  Bruno Haible  <bruno@clisp.org>
40221
40222         Avoid compilation error on mingw.
40223         * modules/localename-tests (Depends-on): Add locale.
40224
40225 2009-04-19  Bruno Haible  <bruno@clisp.org>
40226
40227         Support for building a shared library on Windows platforms.
40228         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40229         (main): Test the presence of UNINORM_NFC here.
40230         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40231         (main): Test the presence of UNINORM_NFD here.
40232         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40233         (main): Test the presence of UNINORM_NFKC here.
40234         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40235         (main): Test the presence of UNINORM_NFKD here.
40236
40237 2009-04-19  Bruno Haible  <bruno@clisp.org>
40238
40239         Avoid a compiler warning.
40240         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40241         Change type of variable 'sequence'.
40242
40243 2009-04-19  Bruno Haible  <bruno@clisp.org>
40244
40245         * modules/configmake (Makefile.am): When the contents of configmake.h
40246         does not change, arrange to preserve its modification time.
40247
40248 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40249
40250         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40251         gettext domain.
40252
40253 2009-04-16  Jim Meyering  <meyering@redhat.com>
40254
40255         useless-if-before-free: improve conversion code
40256         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40257         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40258
40259 2009-04-14  Bruno Haible  <bruno@clisp.org>
40260
40261         * modules/fcntl (Depends-on): Add extensions.
40262         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40263
40264 2009-04-12  Ben Pfaff  <blp@gnu.org>
40265
40266         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40267         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40268
40269 2009-03-20  Ben Pfaff  <blp@gnu.org>
40270
40271         Make rename replace existing destinations on Windows.
40272         * m4/rename.m4: Add test for Mingw.
40273         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40274         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40275         * doc/posix-functions/rename.texi: Document.
40276
40277 2009-04-10  Bruno Haible  <bruno@clisp.org>
40278
40279         New include file "iconveh.h".
40280         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40281         * lib/striconveh.h: Include it.
40282         (enum iconv_ilseq_handler): Remove definition.
40283         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40284         striconveh.h.
40285         * lib/striconveha.c: Include striconveh.h.
40286         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40287         * modules/striconveh (Files): Add lib/iconveh.h.
40288         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40289         lib/striconveh.h.
40290
40291 2009-04-10  Bruno Haible  <bruno@clisp.org>
40292
40293         * lib/uniconv.h: Update comment.
40294
40295 2009-04-10  Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40298         always.
40299         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40300         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40301         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40302         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40303         "unistring-notinline.h", so that the function gets defined always.
40304         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40305         * lib/unistr/u8-uctomb.c: Likewise.
40306         * lib/unistr/u16-mbtouc.c: Likewise.
40307         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40308         * lib/unistr/u16-uctomb.c: Likewise.
40309         * lib/unistr/u32-mbtouc.c: Likewise.
40310         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40311         * lib/unistr/u32-uctomb.c: Likewise.
40312
40313 2009-04-10  Bruno Haible  <bruno@clisp.org>
40314
40315         Mark 'utime' obsolete.
40316         * modules/utime (Status, Notice): New sections.
40317         Suggested by Jim Meyering.
40318
40319         Fix cross-compile guess for utime test.
40320         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40321         autoconf.
40322         * doc/posix-functions/utime.texi: Give more precisions.
40323         Reported by Jan <ipif@ymail.com>.
40324
40325 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40326
40327         filevercmp: correct today's change
40328         * lib/filevercmp.c: Also handle coreutils' test inputs.
40329         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40330
40331         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40332         for reporting it.
40333         * lib/filevercmp.c: Special handle for "", "." and "..".
40334         * tests/test-filevercmp.c: Enlarge the set suite.
40335
40336 2009-04-07  Jim Meyering  <meyering@redhat.com>
40337
40338         useless-if-before-free: show how to remove braced useless free, too
40339         * build-aux/useless-if-before-free: still only in a comment, though.
40340
40341 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40342
40343         maint.mk: import changes to syntax-check macros from coreutils
40344         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40345         Use them in the relevant macros.
40346
40347 2009-04-06  Bruno Haible  <bruno@clisp.org>
40348
40349         Fix unportable use of bit-fields.
40350         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40351         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40352         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40353
40354 2009-04-06  Bruno Haible  <bruno@clisp.org>
40355
40356         Avoid test failures on AIX and OSF/1.
40357         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40358         that malloc(0) = NULL.
40359         * tests/unicase/test-u8-tolower.c (check): Likewise.
40360         * tests/unicase/test-u8-totitle.c (check): Likewise.
40361         * tests/unicase/test-u8-toupper.c (check): Likewise.
40362         * tests/unicase/test-u16-casefold.c (check): Likewise.
40363         * tests/unicase/test-u16-tolower.c (check): Likewise.
40364         * tests/unicase/test-u16-totitle.c (check): Likewise.
40365         * tests/unicase/test-u16-toupper.c (check): Likewise.
40366         * tests/unicase/test-u32-casefold.c (check): Likewise.
40367         * tests/unicase/test-u32-tolower.c (check): Likewise.
40368         * tests/unicase/test-u32-totitle.c (check): Likewise.
40369         * tests/unicase/test-u32-toupper.c (check): Likewise.
40370         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40371         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40372         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40373         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40374         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40375         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40376         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40377         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40378         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40379         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40380         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40381         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40382
40383 2009-04-05  Bruno Haible  <bruno@clisp.org>
40384
40385         Work around an autoconf limitation.
40386         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40387         comment line if it would be longer than 3 KB.
40388
40389 2009-04-05  Bruno Haible  <bruno@clisp.org>
40390
40391         Avoid test failure with libiconv-1.13.
40392         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40393         of the expected test results.
40394
40395 2009-04-05  Bruno Haible  <bruno@clisp.org>
40396
40397         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40398         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40399         that it should be installed.
40400
40401 2009-04-05  Bruno Haible  <bruno@clisp.org>
40402
40403         * gnulib-tool: New option --copy-file.
40404         (func_usage): Document it.
40405         (func_dest_tmpfilename): Moved out of func_import.
40406         (func_add_file, func_update_file): New functions, extracted from
40407         func_import.
40408         (func_import): Update.
40409
40410 2009-04-05  Karl Berry  <karl@gnu.org>
40411
40412         * README: prominently mention gnulib-tool.
40413         Rearrange sections so getting the code is near the top.
40414
40415 2009-04-05  Bruno Haible  <bruno@clisp.org>
40416
40417         * lib/unicase.h: Mention u*_cmp2.
40418         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40419         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40420         * lib/unicase/ulc-casecmp.c: Likewise.
40421         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40422         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40423         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40424         unistr/u8-cmp.
40425         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40426         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40427         unistr/u16-cmp.
40428         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40429         unistr/u32-cmp.
40430
40431         * lib/uninorm.h: Mention u*_cmp2.
40432         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40433         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40434         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40435         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40436         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40437         unistr/u8-cmp.
40438         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40439         unistr/u16-cmp.
40440         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40441         unistr/u32-cmp.
40442
40443         New module 'unistr/u32-cmp2'.
40444         * lib/unistr/u32-cmp2.c: New file.
40445         * modules/unistr/u32-cmp2: New file.
40446
40447         New module 'unistr/u16-cmp2'.
40448         * lib/unistr/u16-cmp2.c: New file.
40449         * modules/unistr/u16-cmp2: New file.
40450
40451         New module 'unistr/u8-cmp2'.
40452         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40453         * lib/unistr/u8-cmp2.c: New file.
40454         * lib/unistr/u-cmp2.h: New file.
40455         * modules/unistr/u8-cmp2: New file.
40456
40457 2009-04-05  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/unictype.h (uc_property_is_valid): New macro.
40460         * tests/unictype/test-pr_byname.c (main): Use it.
40461
40462         * lib/unistr.h: Doc fixes.
40463         * lib/uniconv.h: Doc fixes.
40464         * lib/unictype.h: Doc fixes.
40465
40466 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         Port coreutils 7.2 to Solaris 8.
40469
40470         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40471         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40472         for Solaris 8.  This is a bit of a hack, as it means it's the
40473         caller's responsibility to add -lnsl if needed, but most likely it
40474         won't be needed since only getaddrinfo uses this and getaddrinfo
40475         isn't needed on Solaris 8.
40476
40477         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40478         problem to Solaris 8 encountered with coreutils 7.2, which
40479         resulted in a message "fnmatch.c:292: warning: passing argument 4
40480         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40481         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40482
40483 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40484
40485         * m4/ld-version-script.m4: Add FIXME comment.
40486
40487 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40488
40489         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40490         SOVERSION variable.
40491
40492 2009-04-02  Bruno Haible  <bruno@clisp.org>
40493
40494         * Makefile (info, html, dvi, pdf): Combine the rules.
40495         Suggested by Jim Meyering.
40496
40497 2009-04-01  Bruno Haible  <bruno@clisp.org>
40498
40499         * Makefile (info, html, dvi, pdf): New targets.
40500         Reported by Reuben Thomas <rrt@sc3d.org>.
40501
40502 2009-04-01  Bruno Haible  <bruno@clisp.org>
40503
40504         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40505         can be put into PATH.
40506         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40507
40508 2009-04-01  Bruno Haible  <bruno@clisp.org>
40509
40510         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40511
40512 2009-04-01  Bruno Haible  <bruno@clisp.org>
40513
40514         Rename module 'visibility'.
40515         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40516         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40517         * doc/gnulib.texi: Update.
40518         * MODULES.html.sh (Misc): Update.
40519         * NEWS: Mention the change.
40520
40521 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40522
40523         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40524         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40525         Eric Blake <ebb9@byu.net> for review.
40526         * MODULES.html.sh: Add lib-msvc-compat.
40527         * doc/gnulib.texi: Link to new section.
40528         * m4/ld-output-def.m4: New file.
40529         * doc/ld-output-def.texi: New file.
40530
40531 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40532
40533         Rename ld-version-script to lib-symbol-versions.  Suggested by
40534         Bruno Haible <bruno@clisp.org>.
40535         * modules/ld-version-script: Renamed to lib-symbol-versions.
40536         * doc/ld-version-script.texi: Fix module name.
40537         * MODULES.html.sh: Add lib-symbol-versions.
40538
40539 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40540
40541         * modules/u64-tests: New file.
40542         * tests/test-u64.c: New file.
40543
40544 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40545
40546         * MODULES.html.sh: Mention u64.
40547         * modules/u64: New module.
40548         * modules/crypto/sha512: Depend on u64 module instead of providing
40549         u64.h.
40550
40551 2009-03-27  Eric Blake  <ebb9@byu.net>
40552
40553         test-strerror: make debugging EAI_SYSTEM easier
40554         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40555         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40556         failure was EAI_SYSTEM.
40557
40558 2009-03-25  Bruno Haible  <bruno@clisp.org>
40559
40560         Fix a problem with --enable-relocatable on Solaris 7.
40561         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40562         since 2008-02-24.
40563
40564 2009-03-25  Eric Blake  <ebb9@byu.net>
40565
40566         test-sockets: avoid gcc warning
40567         * tests/test-sockets.c (main): Silence compiler warning.
40568
40569 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40570
40571         New modules nproc, pthread, contributed by Glen Lenker.
40572
40573         * MODULES.html.sh: Add pthread, nproc.
40574         * lib/nproc.c: New file.
40575         * lib/nproc.h: New file.
40576         * lib/pthread.in.h: New file.
40577         * m4/pthread.m4: New file.
40578         * modules/nproc: New file.
40579         * modules/pthread: New file.
40580
40581 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40582
40583         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40584         New variable.
40585
40586 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40587
40588         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40589         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40590         * tests/test-filevercmp.c: Add tests for backup suffixes.
40591
40592 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40593
40594         * modules/stdlib (Depends-on): Add stdint, needed when defining
40595         struct random_data on, for example, HP-UX 10.20.  Reported by
40596         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40597
40598 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40599
40600         * lib/readline.c (readline): Call fflush on stdout after printing
40601         prompt.
40602
40603 2009-03-20  Bruno Haible  <bruno@clisp.org>
40604
40605         Remove dependency from 'close' module to -lws2_32 on native Windows.
40606         * lib/close-hook.h: New file.
40607         * lib/close-hook.c: New file.
40608         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40609         w32sock.h.
40610         (_gl_close_fd_maybe_socket): Remove function.
40611         (rpl_close): Invoke execute_all_close_hooks instead of
40612         _gl_close_fd_maybe_socket.
40613         * lib/sockets.c: Include close-hook.h, w32sock.h.
40614         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40615         (close_sockets_hook): New variable.
40616         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40617         (gl_sockets_cleanup): Unregister it.
40618         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40619         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40620         * modules/close-hook: New file.
40621         * modules/close (Files): Remove lib/w32sock.h.
40622         (Depends-on): Add close-hook.
40623         (Link): Remove section.
40624         * modules/sockets (Files): Add lib/w32sock.h.
40625         (Depends-on): Add close-hook.
40626         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40627         invocation.
40628         * NEWS: Mention that LIB_CLOSE is gone.
40629
40630 2009-03-23  Eric Blake  <ebb9@byu.net>
40631
40632         signal-tests: test previous patch
40633         * tests/test-signal.c: New file.
40634         * modules/signal-tests: Likewise.
40635
40636         signal.h: always support 'volatile sig_atomic_t'
40637         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40638         (gl_SIGNAL_H_DEFAULTS): Add a default.
40639         * modules/signal (Makefile.am): Substitute if needed.
40640         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40641         users can blindly add volatile.
40642         * doc/posix-headers/signal.texi (signal.h): Document it.
40643         Reported by Matthew Woehlke.
40644
40645 2009-03-23  Jim Meyering  <meyering@redhat.com>
40646
40647         pathmax: PATH_MAX: use pathconf only when available
40648         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40649         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40650         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40651         This avoids a link failure in a PSP cross-compilation environment
40652         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40653
40654         * lib/vasnprintf.c (divide): Fix typo in comment.
40655
40656 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40657
40658         * gnulib-tool (func_filter_filelist): Fix comment.
40659
40660 2009-03-20  Bruno Haible  <bruno@clisp.org>
40661
40662         Make sockets.h self-contained.
40663         * lib/sockets.c: Include sockets.h first.
40664         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40665
40666 2009-03-19  Eric Blake  <ebb9@byu.net>
40667
40668         doc: mention more functions added in cygwin 1.7.0
40669         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40670         addition.
40671         * doc/posix-functions/log2f.texi: Likewise.
40672
40673 2009-03-19  Jim Meyering  <meyering@redhat.com>
40674
40675         fsusage: avoid syntax error due to statement-before-declaration
40676         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40677         after all declarations.  Reported by Matthew Woehlke in
40678         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40679
40680 2009-03-18  Eric Blake  <ebb9@byu.net>
40681
40682         build-aux/compile: sync from automake
40683         * build-aux/compile: New file, from automake.
40684         * config/srclist.txt: Mention build-aux/compile.
40685
40686 2009-03-17  Bruno Haible  <bruno@clisp.org>
40687
40688         * lib/git-merge-changelog.c: Fix typo in comment.
40689         Reported by Reuben Thomas <rrt@sc3d.org>.
40690
40691 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40692
40693         * m4/regex.m4: update and improve help for
40694         --without-included-regex.
40695
40696 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40697
40698         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40699         failure on missing include files.
40700
40701 2009-03-17  Eric Blake  <ebb9@byu.net>
40702
40703         doc: mention more functions added in cygwin 1.7.0
40704         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40705         addition.
40706         * doc/posix-functions/fwscanf.texi: Likewise.
40707         * doc/posix-functions/swprintf.texi: Likewise.
40708         * doc/posix-functions/swscanf.texi: Likewise.
40709         * doc/posix-functions/vfwprintf.texi: Likewise.
40710         * doc/posix-functions/vfwscanf.texi: Likewise.
40711         * doc/posix-functions/vswprintf.texi: Likewise.
40712         * doc/posix-functions/vswscanf.texi: Likewise.
40713         * doc/posix-functions/vwprintf.texi: Likewise.
40714         * doc/posix-functions/vwscanf.texi: Likewise.
40715         * doc/posix-functions/wcscasecmp.texi: Likewise.
40716         * doc/posix-functions/wcsdup.texi: Likewise.
40717         * doc/posix-functions/wcsftime.texi: Likewise.
40718         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40719         * doc/posix-functions/wprintf.texi: Likewise.
40720         * doc/posix-functions/wscanf.texi: Likewise.
40721         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40722
40723 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40724
40725         maint.mk: really add $(AM_MAKEFLAGS)
40726         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40727         was inadvertently omitted in the last commit.
40728         Spotted by Bruno Haible.
40729
40730         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40731         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40732         $(AM_MAKEFLAGS)' rather than plain `make'.
40733
40734         gnulib-tool: execute $MAKE not make
40735         * gnulib-tool: Default $MAKE to 'make'.
40736         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40737         than make.  Initialize $MAKE in the do-autobuild script.
40738
40739         gnulib-tool: use $MAKE not make in generated files
40740         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40741         make, in generated files.  Initialize $MAKE in the do-autobuild
40742         script.
40743
40744         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40745
40746         GNUmakefile: disable parallelism only for multiple, recursive targets
40747         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40748         additions in the Makefile.
40749         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40750         by Automake.
40751         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40752         are listed on the command line and at least one of them is
40753         listed in $(ALL_RECURSIVE_TARGETS).
40754
40755 2009-03-14  Bruno Haible  <bruno@clisp.org>
40756
40757         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40758         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40759         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40760         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40761         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40762         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40763         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40764         unistr/u8-uctomb.
40765         * modules/unistr/u8-strchr (Depends-on): Likewise.
40766         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40767         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40768         unistr/u16-uctomb.
40769         * modules/unistr/u16-strchr (Depends-on): Likewise.
40770         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40771
40772 2009-03-12  Bruno Haible  <bruno@clisp.org>
40773
40774         Work around select() bug on Interix 3.5.
40775         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40776         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40777         * m4/select.m4: New file.
40778         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40779         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40780         * modules/select (Files): Add m4/select.m4.
40781         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40782         * modules/nanosleep (Depends-on): Add select.
40783         * modules/poll (Depends-on): Likewise.
40784         * doc/posix-functions/select.texi: Mention the Interix bug.
40785         Reported by Markus Duft <mduft@gentoo.org>.
40786
40787         * lib/select.c: Renamed from lib/winsock-select.c.
40788         * modules/select (Files): Add lib/select.c, remove
40789         lib/winsock-select.c.
40790         (configure.ac): Update.
40791
40792 2009-03-12  Jim Meyering  <meyering@redhat.com>
40793
40794         avoid gcc warnings about unused macro definitions
40795         * lib/readtokens.c (STREQ): Remove unused definition.
40796         * lib/xmalloc.c (SIZE_MAX): Likewise.
40797         * lib/openat-die.c (N_): Likewise.
40798         * lib/mountlist.c (SIZE_MAX): Remove definition.
40799         Instead, include <stdint.h>.
40800         * lib/readutmp.c: Likewise.
40801         * modules/readutmp (Depends-on): Add stdint.
40802         * modules/mountlist (Depends-on): Add stdint.
40803         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40804
40805 2009-03-10  Bruno Haible  <bruno@clisp.org>
40806
40807         Tests for module 'mbmemcasecoll'.
40808         * modules/mbmemcasecoll-tests: New file.
40809         * tests/test-mbmemcasecoll1.sh: New file.
40810         * tests/test-mbmemcasecoll2.sh: New file.
40811         * tests/test-mbmemcasecoll3.sh: New file.
40812         * tests/test-mbmemcasecoll.c: New file.
40813
40814         New module 'mbmemcasecoll'.
40815         * lib/mbmemcasecoll.h: New file.
40816         * lib/mbmemcasecoll.c: New file.
40817         * modules/mbmemcasecoll: New file.
40818
40819         * tests/test-mbmemcasecmp.h: New file, extracted from
40820         tests/test-mbmemcasecmp.c.
40821         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40822         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40823         (main): Update.
40824         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40825
40826 2009-03-09  Bruno Haible  <bruno@clisp.org>
40827
40828         Tests for module 'mbmemcasecmp'.
40829         * modules/mbmemcasecmp-tests: New file.
40830         * tests/test-mbmemcasecmp1.sh: New file.
40831         * tests/test-mbmemcasecmp2.sh: New file.
40832         * tests/test-mbmemcasecmp3.sh: New file.
40833         * tests/test-mbmemcasecmp.c: New file.
40834
40835         New module 'mbmemcasecmp'.
40836         * lib/mbmemcasecmp.h: New file.
40837         * lib/mbmemcasecmp.c: New file.
40838         * modules/mbmemcasecmp: New file.
40839
40840 2009-03-09  Bruno Haible  <bruno@clisp.org>
40841
40842         Tests for module 'unicase/ulc-casecoll'.
40843         * modules/unicase/ulc-casecoll-tests: New file.
40844         * tests/unicase/test-ulc-casecoll1.sh: New file.
40845         * tests/unicase/test-ulc-casecoll2.sh: New file.
40846         * tests/unicase/test-ulc-casecoll.c: New file.
40847
40848         New module 'unicase/ulc-casecoll'.
40849         * lib/unicase.h (ulc_casecoll): New declaration.
40850         * lib/unicase/ulc-casecoll.c: New file.
40851         * modules/unicase/ulc-casecoll: New file.
40852
40853         New module 'unicase/ulc-casexfrm'.
40854         * lib/unicase.h (ulc_casexfrm): New declaration.
40855         * lib/unicase/ulc-casexfrm.c: New file.
40856         * modules/unicase/ulc-casexfrm: New file.
40857
40858 2009-03-09  Bruno Haible  <bruno@clisp.org>
40859
40860         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40861         invocations.
40862
40863         * m4/mbscasecmp.m4: Remove file.
40864         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40865         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40866
40867         * m4/mbscasestr.m4: Remove file.
40868         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40869         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40870
40871         * m4/mbschr.m4: Remove file.
40872         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40873         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40874
40875         * m4/mbscspn.m4: Remove file.
40876         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40877         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40878
40879         * m4/mbslen.m4: Remove file.
40880         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40881         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40882
40883         * m4/mbsncasecmp.m4: Remove file.
40884         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40885         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40886
40887         * m4/mbsnlen.m4: Remove file.
40888         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40889         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40890
40891         * m4/mbspbrk.m4: Remove file.
40892         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40893         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40894
40895         * m4/mbspcasecmp.m4: Remove file.
40896         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40897         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40898
40899         * m4/mbsrchr.m4: Remove file.
40900         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40901         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40902
40903         * m4/mbssep.m4: Remove file.
40904         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40905         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40906
40907         * m4/mbsspn.m4: Remove file.
40908         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40909         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40910
40911         * m4/mbsstr.m4: Remove file.
40912         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40913         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40914
40915         * m4/mbstok_r.m4: Remove file.
40916         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40917         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40918
40919         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40920
40921         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40922         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40923
40924         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40925
40926 2009-03-08  Bruno Haible  <bruno@clisp.org>
40927
40928         Tests for module 'unicase/ulc-casecmp'.
40929         * modules/unicase/ulc-casecmp-tests: New file.
40930         * tests/unicase/test-ulc-casecmp1.sh: New file.
40931         * tests/unicase/test-ulc-casecmp2.sh: New file.
40932         * tests/unicase/test-ulc-casecmp.c: New file.
40933
40934         New module 'unicase/ulc-casecmp'.
40935         * lib/unicase.h (ulc_casecmp): New declaration.
40936         * lib/unicase/ulc-casecmp.c: New file.
40937         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40938         'const SRC_UNIT *'.
40939         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40940         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40941         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40942         * modules/unicase/ulc-casecmp: New file.
40943
40944         Tests for module 'unicase/u32-is-cased'.
40945         * modules/unicase/u32-is-cased-tests: New file.
40946         * tests/unicase/test-u32-is-cased.c: New file.
40947
40948         Tests for module 'unicase/u16-is-cased'.
40949         * modules/unicase/u16-is-cased-tests: New file.
40950         * tests/unicase/test-u16-is-cased.c: New file.
40951
40952         Tests for module 'unicase/u8-is-cased'.
40953         * modules/unicase/u8-is-cased-tests: New file.
40954         * tests/unicase/test-u8-is-cased.c: New file.
40955         * tests/unicase/test-is-cased.h: New file.
40956
40957         New module 'unicase/u32-is-cased'.
40958         * lib/unicase/u32-is-cased.c: New file.
40959         * modules/unicase/u32-is-cased: New file.
40960
40961         New module 'unicase/u16-is-cased'.
40962         * lib/unicase/u16-is-cased.c: New file.
40963         * modules/unicase/u16-is-cased: New file.
40964
40965         New module 'unicase/u8-is-cased'.
40966         * lib/unicase/u8-is-cased.c: New file.
40967         * lib/unicase/u-is-cased.h: New file.
40968         * modules/unicase/u8-is-cased: New file.
40969
40970         Tests for module 'unicase/u32-is-casefolded'.
40971         * modules/unicase/u32-is-casefolded-tests: New file.
40972         * tests/unicase/test-u32-is-casefolded.c: New file.
40973
40974         Tests for module 'unicase/u16-is-casefolded'.
40975         * modules/unicase/u16-is-casefolded-tests: New file.
40976         * tests/unicase/test-u16-is-casefolded.c: New file.
40977
40978         Tests for module 'unicase/u8-is-casefolded'.
40979         * modules/unicase/u8-is-casefolded-tests: New file.
40980         * tests/unicase/test-u8-is-casefolded.c: New file.
40981         * tests/unicase/test-is-casefolded.h: New file.
40982
40983         New module 'unicase/u32-is-casefolded'.
40984         * lib/unicase/u32-is-casefolded.c: New file.
40985         * modules/unicase/u32-is-casefolded: New file.
40986
40987         New module 'unicase/u16-is-casefolded'.
40988         * lib/unicase/u16-is-casefolded.c: New file.
40989         * modules/unicase/u16-is-casefolded: New file.
40990
40991         New module 'unicase/u8-is-casefolded'.
40992         * lib/unicase/u8-is-casefolded.c: New file.
40993         * modules/unicase/u8-is-casefolded: New file.
40994
40995         Tests for module 'unicase/u32-is-titlecase'.
40996         * modules/unicase/u32-is-titlecase-tests: New file.
40997         * tests/unicase/test-u32-is-titlecase.c: New file.
40998
40999         Tests for module 'unicase/u16-is-titlecase'.
41000         * modules/unicase/u16-is-titlecase-tests: New file.
41001         * tests/unicase/test-u16-is-titlecase.c: New file.
41002
41003         Tests for module 'unicase/u8-is-titlecase'.
41004         * modules/unicase/u8-is-titlecase-tests: New file.
41005         * tests/unicase/test-u8-is-titlecase.c: New file.
41006         * tests/unicase/test-is-titlecase.h: New file.
41007
41008         New module 'unicase/u32-is-titlecase'.
41009         * lib/unicase/u32-is-titlecase.c: New file.
41010         * modules/unicase/u32-is-titlecase: New file.
41011
41012         New module 'unicase/u16-is-titlecase'.
41013         * lib/unicase/u16-is-titlecase.c: New file.
41014         * modules/unicase/u16-is-titlecase: New file.
41015
41016         New module 'unicase/u8-is-titlecase'.
41017         * lib/unicase/u8-is-titlecase.c: New file.
41018         * modules/unicase/u8-is-titlecase: New file.
41019
41020         Tests for module 'unicase/u32-is-lowercase'.
41021         * modules/unicase/u32-is-lowercase-tests: New file.
41022         * tests/unicase/test-u32-is-lowercase.c: New file.
41023
41024         Tests for module 'unicase/u16-is-lowercase'.
41025         * modules/unicase/u16-is-lowercase-tests: New file.
41026         * tests/unicase/test-u16-is-lowercase.c: New file.
41027
41028         Tests for module 'unicase/u8-is-lowercase'.
41029         * modules/unicase/u8-is-lowercase-tests: New file.
41030         * tests/unicase/test-u8-is-lowercase.c: New file.
41031         * tests/unicase/test-is-lowercase.h: New file.
41032
41033         New module 'unicase/u32-is-lowercase'.
41034         * lib/unicase/u32-is-lowercase.c: New file.
41035         * modules/unicase/u32-is-lowercase: New file.
41036
41037         New module 'unicase/u16-is-lowercase'.
41038         * lib/unicase/u16-is-lowercase.c: New file.
41039         * modules/unicase/u16-is-lowercase: New file.
41040
41041         New module 'unicase/u8-is-lowercase'.
41042         * lib/unicase/u8-is-lowercase.c: New file.
41043         * modules/unicase/u8-is-lowercase: New file.
41044
41045         Tests for module 'unicase/u32-is-uppercase'.
41046         * modules/unicase/u32-is-uppercase-tests: New file.
41047         * tests/unicase/test-u32-is-uppercase.c: New file.
41048
41049         Tests for module 'unicase/u16-is-uppercase'.
41050         * modules/unicase/u16-is-uppercase-tests: New file.
41051         * tests/unicase/test-u16-is-uppercase.c: New file.
41052
41053         Tests for module 'unicase/u8-is-uppercase'.
41054         * modules/unicase/u8-is-uppercase-tests: New file.
41055         * tests/unicase/test-u8-is-uppercase.c: New file.
41056         * tests/unicase/test-is-uppercase.h: New file.
41057
41058         New module 'unicase/u32-is-uppercase'.
41059         * lib/unicase/u32-is-uppercase.c: New file.
41060         * modules/unicase/u32-is-uppercase: New file.
41061
41062         New module 'unicase/u16-is-uppercase'.
41063         * lib/unicase/u16-is-uppercase.c: New file.
41064         * modules/unicase/u16-is-uppercase: New file.
41065
41066         New module 'unicase/u8-is-uppercase'.
41067         * lib/unicase/u8-is-uppercase.c: New file.
41068         * modules/unicase/u8-is-uppercase: New file.
41069
41070         New module 'unicase/u32-is-invariant'.
41071         * lib/unicase/u32-is-invariant.c: New file.
41072         * modules/unicase/u32-is-invariant: New file.
41073
41074         New module 'unicase/u16-is-invariant'.
41075         * lib/unicase/u16-is-invariant.c: New file.
41076         * modules/unicase/u16-is-invariant: New file.
41077
41078         New module 'unicase/u8-is-invariant'.
41079         * lib/unicase/u8-is-invariant.c: New file.
41080         * lib/unicase/invariant.h: New file.
41081         * lib/unicase/u-is-invariant.h: New file.
41082         * modules/unicase/u8-is-invariant: New file.
41083
41084         Tests for module 'unicase/u32-casecoll'.
41085         * modules/unicase/u32-casecoll-tests: New file.
41086         * tests/unicase/test-u32-casecoll.c: New file.
41087
41088         Tests for module 'unicase/u16-casecoll'.
41089         * modules/unicase/u16-casecoll-tests: New file.
41090         * tests/unicase/test-u16-casecoll.c: New file.
41091
41092         Tests for module 'unicase/u8-casecoll'.
41093         * modules/unicase/u8-casecoll-tests: New file.
41094         * tests/unicase/test-u8-casecoll.c: New file.
41095
41096         New module 'unicase/u32-casecoll'.
41097         * lib/unicase/u32-casecoll.c: New file.
41098         * modules/unicase/u32-casecoll: New file.
41099
41100         New module 'unicase/u16-casecoll'.
41101         * lib/unicase/u16-casecoll.c: New file.
41102         * modules/unicase/u16-casecoll: New file.
41103
41104         New module 'unicase/u8-casecoll'.
41105         * lib/unicase/u8-casecoll.c: New file.
41106         * lib/unicase/u-casecoll.h: New file.
41107         * modules/unicase/u8-casecoll: New file.
41108
41109         New module 'unicase/u32-casexfrm'.
41110         * lib/unicase/u32-casexfrm.c: New file.
41111         * modules/unicase/u32-casexfrm: New file.
41112
41113         New module 'unicase/u16-casexfrm'.
41114         * lib/unicase/u16-casexfrm.c: New file.
41115         * modules/unicase/u16-casexfrm: New file.
41116
41117         New module 'unicase/u8-casexfrm'.
41118         * lib/unicase/u8-casexfrm.c: New file.
41119         * lib/unicase/u-casexfrm.h: New file.
41120         * modules/unicase/u8-casexfrm: New file.
41121
41122         Tests for module 'unicase/u32-casecmp'.
41123         * modules/unicase/u32-casecmp-tests: New file.
41124         * tests/unicase/test-u32-casecmp.c: New file.
41125
41126         Tests for module 'unicase/u16-casecmp'.
41127         * modules/unicase/u16-casecmp-tests: New file.
41128         * tests/unicase/test-u16-casecmp.c: New file.
41129
41130         Tests for module 'unicase/u8-casecmp'.
41131         * modules/unicase/u8-casecmp-tests: New file.
41132         * tests/unicase/test-u8-casecmp.c: New file.
41133         * tests/unicase/test-casecmp.h: New file.
41134
41135         New module 'unicase/u32-casecmp'.
41136         * lib/unicase/u32-casecmp.c: New file.
41137         * modules/unicase/u32-casecmp: New file.
41138
41139         New module 'unicase/u16-casecmp'.
41140         * lib/unicase/u16-casecmp.c: New file.
41141         * modules/unicase/u16-casecmp: New file.
41142
41143         New module 'unicase/u8-casecmp'.
41144         * lib/unicase/u8-casecmp.c: New file.
41145         * lib/unicase/u-casecmp.h: New file.
41146         * modules/unicase/u8-casecmp: New file.
41147
41148         Tests for module 'unicase/u32-casefold'.
41149         * modules/unicase/u32-casefold-tests: New file.
41150         * tests/unicase/test-u32-casefold.c: New file.
41151
41152         Tests for module 'unicase/u16-casefold'.
41153         * modules/unicase/u16-casefold-tests: New file.
41154         * tests/unicase/test-u16-casefold.c: New file.
41155
41156         Tests for module 'unicase/u8-casefold'.
41157         * modules/unicase/u8-casefold-tests: New file.
41158         * tests/unicase/test-u8-casefold.c: New file.
41159
41160         New module 'unicase/u32-casefold'.
41161         * lib/unicase/u32-casefold.c: New file.
41162         * modules/unicase/u32-casefold: New file.
41163
41164         New module 'unicase/u16-casefold'.
41165         * lib/unicase/u16-casefold.c: New file.
41166         * modules/unicase/u16-casefold: New file.
41167
41168         New module 'unicase/u8-casefold'.
41169         * lib/unicase/u8-casefold.c: New file.
41170         * lib/unicase/u-casefold.h: New file.
41171         * modules/unicase/u8-casefold: New file.
41172
41173         New module 'unicase/tocasefold'.
41174         * lib/unicase/casefold.h: New file.
41175         * lib/unicase/tocasefold.c: New file.
41176         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41177         * modules/unicase/tocasefold: New file.
41178
41179         Tests for module 'unicase/u32-totitle'.
41180         * modules/unicase/u32-totitle-tests: New file.
41181         * tests/unicase/test-u32-totitle.c: New file.
41182
41183         Tests for module 'unicase/u16-totitle'.
41184         * modules/unicase/u16-totitle-tests: New file.
41185         * tests/unicase/test-u16-totitle.c: New file.
41186
41187         Tests for module 'unicase/u8-totitle'.
41188         * modules/unicase/u8-totitle-tests: New file.
41189         * tests/unicase/test-u8-totitle.c: New file.
41190
41191         New module 'unicase/u32-totitle'.
41192         * lib/unicase/u32-totitle.c: New file.
41193         * modules/unicase/u32-totitle: New file.
41194
41195         New module 'unicase/u16-totitle'.
41196         * lib/unicase/u16-totitle.c: New file.
41197         * modules/unicase/u16-totitle: New file.
41198
41199         New module 'unicase/u8-totitle'.
41200         * lib/unicase/u8-totitle.c: New file.
41201         * lib/unicase/u-totitle.h: New file.
41202         * modules/unicase/u8-totitle: New file.
41203
41204         Tests for module 'unicase/u32-tolower'.
41205         * modules/unicase/u32-tolower-tests: New file.
41206         * tests/unicase/test-u32-tolower.c: New file.
41207
41208         Tests for module 'unicase/u16-tolower'.
41209         * modules/unicase/u16-tolower-tests: New file.
41210         * tests/unicase/test-u16-tolower.c: New file.
41211
41212         Tests for module 'unicase/u8-tolower'.
41213         * modules/unicase/u8-tolower-tests: New file.
41214         * tests/unicase/test-u8-tolower.c: New file.
41215
41216         New module 'unicase/u32-tolower'.
41217         * lib/unicase/u32-tolower.c: New file.
41218         * modules/unicase/u32-tolower: New file.
41219
41220         New module 'unicase/u16-tolower'.
41221         * lib/unicase/u16-tolower.c: New file.
41222         * modules/unicase/u16-tolower: New file.
41223
41224         New module 'unicase/u8-tolower'.
41225         * lib/unicase/u8-tolower.c: New file.
41226         * modules/unicase/u8-tolower: New file.
41227
41228         Tests for module 'unicase/u32-toupper'.
41229         * modules/unicase/u32-toupper-tests: New file.
41230         * tests/unicase/test-u32-toupper.c: New file.
41231
41232         Tests for module 'unicase/u16-toupper'.
41233         * modules/unicase/u16-toupper-tests: New file.
41234         * tests/unicase/test-u16-toupper.c: New file.
41235
41236         Tests for module 'unicase/u8-toupper'.
41237         * modules/unicase/u8-toupper-tests: New file.
41238         * tests/unicase/test-u8-toupper.c: New file.
41239
41240         New module 'unicase/u32-toupper'.
41241         * lib/unicase/u32-toupper.c: New file.
41242         * modules/unicase/u32-toupper: New file.
41243
41244         New module 'unicase/u16-toupper'.
41245         * lib/unicase/u16-toupper.c: New file.
41246         * modules/unicase/u16-toupper: New file.
41247
41248         New module 'unicase/u8-toupper'.
41249         * lib/unicase/u8-toupper.c: New file.
41250         * modules/unicase/u8-toupper: New file.
41251
41252         New module 'unicase/u32-casemap'.
41253         * lib/unicase/u32-casemap.c: New file.
41254         * modules/unicase/u32-casemap: New file.
41255
41256         New module 'unicase/u16-casemap'.
41257         * lib/unicase/u16-casemap.c: New file.
41258         * modules/unicase/u16-casemap: New file.
41259
41260         New module 'unicase/u8-casemap'.
41261         * lib/unicase/unicasemap.h: New file.
41262         * lib/unicase/u8-casemap.c: New file.
41263         * lib/unicase/u-casemap.h: New file.
41264         * modules/unicase/u8-casemap: New file.
41265
41266         New module 'unicase/special-casing'.
41267         * lib/unicase/special-casing.h: New file.
41268         * lib/unicase/special-casing.c: New file.
41269         * lib/unicase/special-casing-table.gperf: New file, generated by
41270         gen-uni-tables.c.
41271         * modules/unicase/special-casing: New file.
41272
41273         Tests for module 'unicase/locale-language'.
41274         * modules/unicase/locale-language-tests: New file.
41275         * tests/unicase/test-locale-language.sh: New file.
41276         * tests/unicase/test-locale-language.c: New file.
41277
41278         New module 'unicase/locale-language'.
41279         * lib/unicase/locale-language.c: New file.
41280         * lib/unicase/locale-languages.gperf: New file.
41281         * modules/unicase/locale-language: New file.
41282
41283         Generate more tables for case conversion and case folding.
41284         * lib/gen-uni-tables.c (SCC_*): New enum items.
41285         (struct special_casing_rule): New type.
41286         (casing_rules, num_casing_rules, allocated_casing_rules): New
41287         variables.
41288         (add_casing_rule, fill_casing_rules): New functions.
41289         (struct casefold_rule): New type.
41290         (casefolding_rules, num_casefolding_rules,
41291         allocated_casefolding_rules): New variables.
41292         (fill_casefolding_rules): New function.
41293         (unicode_casefold): New variable.
41294         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41295         sort_casing_rules, output_casing_rules): New functions.
41296         (main): Accept to more arguments: SpecialCasing.txt and
41297         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41298         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41299         Output mapping for casefolding.
41300
41301         * lib/unicase.h: Include stdbool.h, uninorm.h.
41302         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41303         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41304         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41305         arguments.
41306         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41307         resultp arguments.
41308         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41309         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41310         resultp arguments.
41311         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41312         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41313         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41314         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41315         declarations.
41316         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41317
41318 2009-03-08  Bruno Haible  <bruno@clisp.org>
41319
41320         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41321         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41322         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41323         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41324
41325 2009-03-07  Bruno Haible  <bruno@clisp.org>
41326
41327         Adjust u*_normcmp, u*_normcoll API.
41328         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41329         u16_normcoll, u32_normcoll): Change failure conventions.
41330         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41331         errno and return -1.
41332         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41333
41334 2009-03-07  Bruno Haible  <bruno@clisp.org>
41335
41336         Tests for module 'uninorm/u32-normcoll'.
41337         * modules/uninorm/u32-normcoll-tests: New file.
41338         * tests/uninorm/test-u32-normcoll.c: New file.
41339
41340         Tests for module 'uninorm/u16-normcoll'.
41341         * modules/uninorm/u16-normcoll-tests: New file.
41342         * tests/uninorm/test-u16-normcoll.c: New file.
41343
41344         Tests for module 'uninorm/u8-normcoll'.
41345         * modules/uninorm/u8-normcoll-tests: New file.
41346         * tests/uninorm/test-u8-normcoll.c: New file.
41347
41348 2009-03-07  Bruno Haible  <bruno@clisp.org>
41349
41350         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41351         tests/uninorm/test-u32-normcmp.c.
41352         * tests/uninorm/test-u32-normcmp.c: Include it.
41353         (test_nonascii): New function, extracted from main. Add some more
41354         tests.
41355         (main): Invoke test_ascii and test_nonascii.
41356         * modules/uninorm/u32-normcmp-tests (Files): Add
41357         tests/uninorm/test-u32-normcmp.h.
41358         (Depends-on): Remove uninorm/u32-normcmp.
41359
41360         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41361         tests/uninorm/test-u16-normcmp.c.
41362         * tests/uninorm/test-u16-normcmp.c: Include it.
41363         (test_nonascii): New function, extracted from main. Add some more
41364         tests.
41365         (main): Invoke test_ascii and test_nonascii.
41366         * modules/uninorm/u16-normcmp-tests (Files): Add
41367         tests/uninorm/test-u16-normcmp.h.
41368         (Depends-on): Remove uninorm/u16-normcmp.
41369
41370         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41371         tests/uninorm/test-u8-normcmp.c.
41372         * tests/uninorm/test-u8-normcmp.c: Include it.
41373         (test_nonascii): New function, extracted from main. Add some more
41374         tests.
41375         (main): Invoke test_ascii and test_nonascii.
41376         * modules/uninorm/u8-normcmp-tests (Files): Add
41377         tests/uninorm/test-u8-normcmp.h.
41378         (Depends-on): Remove uninorm/u8-normcmp.
41379
41380 2009-03-07  Bruno Haible  <bruno@clisp.org>
41381
41382         New module 'uninorm/u32-normcoll'.
41383         * lib/uninorm/u32-normcoll.c: New file.
41384         * modules/uninorm/u32-normcoll: New file.
41385
41386         New module 'uninorm/u16-normcoll'.
41387         * lib/uninorm/u16-normcoll.c: New file.
41388         * modules/uninorm/u16-normcoll: New file.
41389
41390         New module 'uninorm/u8-normcoll'.
41391         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41392         declarations.
41393         * lib/uninorm/u8-normcoll.c: New file.
41394         * lib/uninorm/u-normcoll.h: New file.
41395         * modules/uninorm/u8-normcoll: New file.
41396
41397         New module 'uninorm/u32-normxfrm'.
41398         * lib/uninorm/u32-normxfrm.c: New file.
41399         * modules/uninorm/u32-normxfrm: New file.
41400
41401         New module 'uninorm/u16-normxfrm'.
41402         * lib/uninorm/u16-normxfrm.c: New file.
41403         * modules/uninorm/u16-normxfrm: New file.
41404
41405         New module 'uninorm/u8-normxfrm'.
41406         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41407         declarations.
41408         * lib/uninorm/u8-normxfrm.c: New file.
41409         * lib/uninorm/u-normxfrm.h: New file.
41410         * modules/uninorm/u8-normxfrm: New file.
41411
41412 2009-03-07  Bruno Haible  <bruno@clisp.org>
41413
41414         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41415         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41416         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41417
41418 2009-03-07  Bruno Haible  <bruno@clisp.org>
41419
41420         New module 'memxfrm'.
41421         * lib/memxfrm.h: New file.
41422         * lib/memxfrm.c: New file.
41423         * modules/memxfrm: New file.
41424
41425 2009-03-07  Bruno Haible  <bruno@clisp.org>
41426
41427         New module 'memcmp2'.
41428         * lib/memcmp2.h: New file.
41429         * lib/memcmp2.c: New file.
41430         * modules/memcmp2: New file.
41431
41432 2009-03-07  Bruno Haible  <bruno@clisp.org>
41433
41434         Tests for module 'uninorm/decomposing-form'.
41435         * modules/uninorm/decomposing-form-tests: New file.
41436         * tests/uninorm/test-decomposing-form.c: New file.
41437
41438         New module 'uninorm/decomposing-form'.
41439         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41440         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41441         Add 'decomposing_variant' field.
41442         * lib/uninorm/decomposing-form.c: New file.
41443         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41444         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41445         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41446         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41447         * modules/uninorm/decomposing-form: New file.
41448         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41449         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41450
41451 2009-03-07  Bruno Haible  <bruno@clisp.org>
41452
41453         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41454         strings.
41455
41456 2009-03-06  Bruno Haible  <bruno@clisp.org>
41457
41458         Tests for module 'uninorm/u32-normcmp'.
41459         * tests/uninorm/test-u32-normcmp.c: New file.
41460         * modules/uninorm/u32-normcmp-tests: New file.
41461
41462         Tests for module 'uninorm/u16-normcmp'.
41463         * tests/uninorm/test-u16-normcmp.c: New file.
41464         * modules/uninorm/u16-normcmp-tests: New file.
41465
41466         Tests for module 'uninorm/u8-normcmp'.
41467         * tests/uninorm/test-u8-normcmp.c: New file.
41468         * modules/uninorm/u8-normcmp-tests: New file.
41469
41470         New module 'uninorm/u32-normcmp'.
41471         * lib/uninorm/u32-normcmp.c: New file.
41472         * modules/uninorm/u32-normcmp: New file.
41473
41474         New module 'uninorm/u16-normcmp'.
41475         * lib/uninorm/u16-normcmp.c: New file.
41476         * modules/uninorm/u16-normcmp: New file.
41477
41478         New module 'uninorm/u8-normcmp'.
41479         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41480         declarations.
41481         * lib/uninorm/u8-normcmp.c: New file.
41482         * lib/uninorm/u-normcmp.h: New file.
41483         * modules/uninorm/u8-normcmp: New file.
41484
41485 2009-03-06  Bruno Haible  <bruno@clisp.org>
41486
41487         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41488         Reported by Eric Blake.
41489
41490 2009-03-06  Eric Blake  <ebb9@byu.net>
41491             Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41494         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41495         condition.
41496         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41497         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41498         condition.
41499         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41500
41501 2009-03-06  Eric Blake  <ebb9@byu.net>
41502
41503         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41504         to avoid compiler warnings.
41505         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41506
41507 2009-03-05  Bruno Haible  <bruno@clisp.org>
41508
41509         * tests/test-ftell.c (main): Disable test beyond end of file on
41510         FreeMiNT.
41511         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41512
41513 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41514
41515         * lib/filevercmp.c: Move hidden files up in ordering.
41516         * tests/test-filevercmp.c: Add tests for hidden files.
41517
41518 2009-03-04  Bruno Haible  <bruno@clisp.org>
41519
41520         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41521         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41522         AM_CFLAGS.
41523         Reported by Simon Josefsson.
41524
41525 2009-03-03  Bruno Haible  <bruno@clisp.org>
41526
41527         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41528         Reported by Simon Josefsson.
41529
41530         * doc/ld-version-script.texi: Update node reference.
41531
41532 2009-03-03  Bruno Haible  <bruno@clisp.org>
41533
41534         * modules/visibility (License): Change to 'unlimited'.
41535         Suggested by Simon Josefsson.
41536
41537 2009-03-03  Jim Meyering  <meyering@redhat.com>
41538
41539         unlinkdir: cannot_unlink_dir may modify process state
41540         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41541         it's neither thread-safe nor appropriate for use in a library.
41542
41543 2009-03-03  Eric Blake  <ebb9@byu.net>
41544
41545         test-closein: silence test under Darwin
41546         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41547         care if it dies from EPIPE or EBADF.
41548
41549 2009-03-03  Bruno Haible  <bruno@clisp.org>
41550
41551         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41552         earlier.
41553         * doc/visibility.texi: Fix @node and @section.
41554
41555 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41556
41557         * doc/gnulib.texi: Link to sections for ld version script and
41558         visibility.
41559         * doc/visibility.texi: Add @node and @section.
41560         * modules/ld-version-script: New module.
41561         * m4/ld-version-script.m4: New file.
41562         * doc/ld-version-script.texi: New file.
41563
41564 2009-03-02  David Lutterkort  <lutter@redhat.com>
41565
41566         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41567         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41568
41569 2009-03-02  Bruno Haible  <bruno@clisp.org>
41570
41571         * doc/visibility.texi: Mention libtool's -export-symbols option.
41572
41573 2009-03-02  Jim Meyering  <meyering@redhat.com>
41574
41575         announce-gen: new option: --no-print-checksums
41576         * build-aux/announce-gen (usage): Describe it.
41577         (print_checksums): Print a newline here, not in the [*] footnote.
41578         (main): Honor it.
41579
41580 2009-03-01  Bruno Haible  <bruno@clisp.org>
41581
41582         Use socklen_t in the native Windows replacements prototypes.
41583         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41584         instead of 'int'.
41585         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41586         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41587         * modules/getsockopt (Depends-on): Add socklen.
41588         * modules/setsockopt (Depends-on): Add socklen.
41589
41590 2009-03-01  Bruno Haible  <bruno@clisp.org>
41591
41592         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41593         least 4.2.
41594
41595 2009-03-01  Eric Blake  <ebb9@byu.net>
41596             Bruno Haible  <bruno@clisp.org>
41597
41598         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41599         error messages.
41600         * lib/wait-process.c (wait_subprocess): Omit error message about
41601         deadly signal sent to the child of termsigp != NULL.
41602
41603 2009-03-01  Eric Blake  <ebb9@byu.net>
41604
41605         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41606
41607 2009-03-01  Bruno Haible  <bruno@clisp.org>
41608
41609         Avoid a gcc warning.
41610         * tests/test-sched.c (b): Make global.
41611         Reported by Eric Blake.
41612
41613 2009-01-19  Martin Lambers  <marlam@marlam.de>
41614
41615         Provide POSIX semantics for socket timeout options on W32.
41616         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41617         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41618         * modules/setsockopt: Depend on sys_time module for struct timeval.
41619         * modules/getsockopt: Depend on sys_time module for struct timeval.
41620
41621 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41622
41623         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41624         __USE_GNU, for consistency with netdb.in.h.
41625         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41626
41627 2009-03-01  Bruno Haible  <bruno@clisp.org>
41628
41629         More support for FreeMiNT.
41630         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41631         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41632
41633 2009-03-01  Bruno Haible  <bruno@clisp.org>
41634
41635         More support for FreeMiNT.
41636         * lib/fpurge.c (fpurge): Correct last commit.
41637         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41638
41639 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41640
41641         Fix unportable awk script in vc-list-files.
41642         * build-aux/vc-list-files: In the replacement awk script, use
41643         substr with a second argument of 1, not zero.
41644         Report by Simon Josefsson.
41645
41646 2009-02-28  Bruno Haible  <bruno@clisp.org>
41647
41648         More support for FreeMiNT.
41649         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41650         to FreeMiNT today.
41651         * lib/fwriting.c (fwriting): Likewise.
41652         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41653
41654 2009-02-28  Bruno Haible  <bruno@clisp.org>
41655
41656         * tests/test-freadseek.c (main): Disable test beyond end of file on
41657         FreeMiNT.
41658         * tests/test-ftello.c (main): Likewise.
41659         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41660
41661 2009-02-28  Bruno Haible  <bruno@clisp.org>
41662
41663         Add tentative support for FreeMiNT.
41664         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41665         * lib/fpurge.c (fpurge): Likewise.
41666         * lib/freadable.c (freadable): Likewise.
41667         * lib/freading.c (freading): Likewise.
41668         * lib/freadptr.c (freadptr): Likewise.
41669         * lib/freadseek.c (freadptrinc): Likewise.
41670         * lib/fseeko.c (rpl_fseeko): Likewise.
41671         * lib/fseterr.c (fseterr): Likewise.
41672         * lib/fwritable.c (fwritable): Likewise.
41673         * lib/fwriting.c (fwriting): Likewise.
41674         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41675         Hourihane.
41676         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41677
41678 2009-02-28  Bruno Haible  <bruno@clisp.org>
41679
41680         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41681         SIGCHLD.
41682         Reported by Jim Meyering.
41683
41684 2009-02-28  Bruno Haible  <bruno@clisp.org>
41685
41686         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41687         Mention the results of these tests on various platforms.
41688         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41689         order.
41690         * doc/posix-functions/printf.texi: Likewise.
41691         * doc/posix-functions/snprintf.texi: Likewise.
41692         * doc/posix-functions/sprintf.texi: Likewise.
41693         * doc/posix-functions/vfprintf.texi: Likewise.
41694         * doc/posix-functions/vprintf.texi: Likewise.
41695         * doc/posix-functions/vsnprintf.texi: Likewise.
41696         * doc/posix-functions/vsprintf.texi: Likewise.
41697         * doc/glibc-functions/obstack_printf.texi: Likewise.
41698         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41699
41700 2009-02-28  Bruno Haible  <bruno@clisp.org>
41701
41702         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41703         Reported by Loïc Minier <lool@dooz.org>.
41704
41705 2009-02-27  Bruno Haible  <bruno@clisp.org>
41706
41707         * gnulib-tool (func_import): Make the sed expression used to create the
41708         sed script for updating the .gitignore file POSIX compliant.
41709         Reported by Eric Blake.
41710
41711 2009-02-27  Bruno Haible  <bruno@clisp.org>
41712
41713         * gnulib-tool (sed): Don't alias as "sed --posix".
41714         Reported by Eric Blake.
41715
41716 2009-02-27  Bruno Haible  <bruno@clisp.org>
41717
41718         Avoid test link errors.
41719         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41720         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41721         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41722         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41724
41725 2009-02-27  Bruno Haible  <bruno@clisp.org>
41726
41727         Avoid spurious "(cached)" in configure output.
41728         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41729         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41730         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41731         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41732         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41733         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41734         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41735         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41736         Reported by Eric Blake.
41737
41738 2009-02-27  Eric Blake  <ebb9@byu.net>
41739
41740         printf: fix regression in previous patch
41741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41742
41743 2009-02-27  Bruno Haible  <bruno@clisp.org>
41744
41745         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41746         value.
41747         * lib/stdint.in.h: Likewise.
41748         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41749
41750 2009-02-27  Eric Blake  <ebb9@byu.net>
41751
41752         doc: mention more functions added in cygwin 1.7.0
41753         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41754         addition.
41755         * doc/posix-functions/open_wmemstream.texi: Likewise.
41756         * doc/posix-functions/wcsnlen.texi: Likewise.
41757         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41758         * doc/posix-functions/wcstod.texi: Likewise.
41759         * doc/posix-functions/wcstof.texi: Likewise.
41760         * doc/posix-functions/wcstoimax.texi: Likewise.
41761         * doc/posix-functions/wcstok.texi: Likewise.
41762         * doc/posix-functions/wcstoumax.texi: Likewise.
41763
41764         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41766         * doc/posix-functions/fprintf.texi: Update.
41767         * doc/posix-functions/printf.texi: Update.
41768         * doc/posix-functions/snprintf.texi: Update.
41769         * doc/posix-functions/sprintf.texi: Update.
41770         * doc/posix-functions/vfprintf.texi: Update.
41771         * doc/posix-functions/vprintf.texi: Update.
41772         * doc/posix-functions/vsnprintf.texi: Update.
41773         * doc/posix-functions/vsprintf.texi: Update.
41774         * doc/glibc-functions/obstack_printf.texi: Update.
41775         * doc/glibc-functions/obstack_vprintf.texi: Update.
41776
41777 2009-02-26  Eric Blake  <ebb9@byu.net>
41778
41779         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41780         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41781         compilation bug by using runtime conversion.
41782         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41783         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41784         * modules/ceill-tests (Files): Use nan.h.
41785         * modules/floorl-tests (Files): Likewise.
41786         * modules/frexpl-tests (Files): Likewise.
41787         * modules/isnanl-tests (Files): Likewise.
41788         * modules/ldexpl-tests (Files): Likewise.
41789         * modules/roundl-tests (Files): Likewise.
41790         * modules/truncl-tests (Files): Likewise.
41791         * tests/test-ceill.c (main): Use a working NaN.
41792         * tests/test-floorl.c (main): Likewise.
41793         * tests/test-frexpl.c (main): Likewise.
41794         * tests/test-isnan.c (test_long_double): Likewise.
41795         * tests/test-isnanl.h (main): Likewise.
41796         * tests/test-ldexpl.h (main): Likewise.
41797         * tests/test-roundl.h (main): Likewise.
41798         * tests/test-truncl.h (main): Likewise.
41799         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41800
41801 2009-02-26  Eric Blake  <ebb9@byu.net>
41802             Bruno Haible  <bruno@clisp.org>
41803
41804         Work around a *printf bug with %ls on Solaris.
41805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41806         precision is specified, sprintf stops converting the wide string
41807         argument when the number of bytes that have been produced by this
41808         conversion equals or exceeds the precision.
41809         * doc/posix-functions/fprintf.texi: Update.
41810         * doc/posix-functions/printf.texi: Update.
41811         * doc/posix-functions/snprintf.texi: Update.
41812         * doc/posix-functions/sprintf.texi: Update.
41813         * doc/posix-functions/vfprintf.texi: Update.
41814         * doc/posix-functions/vprintf.texi: Update.
41815         * doc/posix-functions/vsnprintf.texi: Update.
41816         * doc/posix-functions/vsprintf.texi: Update.
41817         * doc/glibc-functions/obstack_printf.texi: Update.
41818         * doc/glibc-functions/obstack_vprintf.texi: Update.
41819
41820 2009-02-26  Eric Blake  <ebb9@byu.net>
41821
41822         stdlib: favor compiler check of random.h
41823         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41824         to avoid an ObjC random.h installed by Swarm.
41825
41826 2009-02-26  Bruno Haible  <bruno@clisp.org>
41827
41828         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41829         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41830         Reported by Gary V. Vaughan <gary@gnu.org>.
41831
41832 2009-02-26  Bruno Haible  <bruno@clisp.org>
41833
41834         Fix *printf behaviour regarding the %ls directive.
41835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41836         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41837         NEED_PRINTF_DIRECTIVE_LS.
41838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41839         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41840         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41841         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41842         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41843         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41844         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41849         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41853         * doc/posix-functions/fprintf.texi: Update.
41854         * doc/posix-functions/printf.texi: Update.
41855         * doc/posix-functions/snprintf.texi: Update.
41856         * doc/posix-functions/sprintf.texi: Update.
41857         * doc/posix-functions/vfprintf.texi: Update.
41858         * doc/posix-functions/vprintf.texi: Update.
41859         * doc/posix-functions/vsnprintf.texi: Update.
41860         * doc/posix-functions/vsprintf.texi: Update.
41861         * doc/glibc-functions/obstack_printf.texi: Update.
41862         * doc/glibc-functions/obstack_vprintf.texi: Update.
41863         Reported by Eric Blake.
41864
41865 2009-02-25  Bruno Haible  <bruno@clisp.org>
41866
41867         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41868         with known value.
41869         Reported by Gary V. Vaughan <gary@gnu.org>.
41870
41871 2009-02-25  Bruno Haible  <bruno@clisp.org>
41872
41873         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41874         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41875         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41876         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41877         Reported by Gary V. Vaughan <gary@gnu.org>.
41878
41879 2009-02-25  Bruno Haible  <bruno@clisp.org>
41880
41881         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41882         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41883         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41884         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41885         Reported by Gary V. Vaughan <gary@gnu.org>.
41886
41887 2009-02-25  Eric Blake  <ebb9@byu.net>
41888
41889         tests: skip fseek/ftell tests if ungetc is broken
41890         * m4/ungetc.m4: New file.
41891         * modules/fseek-tests: Split test, so ungetc dependency is
41892         separate from rest of test.
41893         * modules/fseeko-tests: Likewise.
41894         * modules/ftell-tests: Likewise.
41895         * modules/ftello-tests: Likewise.
41896         * tests/test-fseek.c (main): Isolate ungetc dependency.
41897         * tests/test-fseeko.c (main): Likewise.
41898         * tests/test-ftell.c (main): Likewise.
41899         * tests/test-ftello.c (main): Likewise.
41900         * tests/test-fseek2.sh: New file.
41901         * tests/test-fseeko2.sh: Likewise.
41902         * tests/test-ftell2.sh: Likewise.
41903         * tests/test-ftello2.sh: Likewise.
41904
41905 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
41906
41907         test-getaddrinfo: fix usage of skip return code 77
41908         * tests/test-gettaddrinfo.c: Return skip code 77 only
41909         for first occurance of skip (4x77 is not 77)
41910
41911 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41912
41913         strtod: avoid C99 decl-after-statement
41914         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41915
41916 2009-02-24  Eric Blake  <ebb9@byu.net>
41917
41918         strtod: detect HP-UX 11.31 bug
41919         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41920         Reported by Gary V. Vaughan.
41921
41922 2009-02-23  Bruno Haible  <bruno@clisp.org>
41923
41924         Fix invalid read past end of memory block.
41925         * lib/vasnprintf.c (DCHAR_SET): Define.
41926         (local_wcslen): Define only when needed.
41927         (local_strnlen, local_wcsnlen): New functions.
41928         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41929         directives that involve a conversion ourselves.
41930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41931         wcsnlen, mbrtowc, wcrtomb.
41932         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41933         * tests/test-vasprintf-posix.c (test_function): Likewise.
41934         * tests/test-snprintf-posix.h (test_function): Likewise.
41935         * tests/test-sprintf-posix.h (test_function): Likewise.
41936         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41937
41938 2009-02-22  Bruno Haible  <bruno@clisp.org>
41939
41940         Implement new clarified decomposition of Hangul syllables.
41941         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41942         of type LTV, return only a pairwise decomposition.
41943         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41944         Likewise.
41945         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41946         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41947         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41948
41949 2009-02-22  Bruno Haible  <bruno@clisp.org>
41950
41951         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41952         zero-length results and shrink excess allocated memory.
41953         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41954         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41955         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41956         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41957         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41958         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41959         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41960         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41961         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41962         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41963         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41964         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41965
41966 2009-02-21  Bruno Haible  <bruno@clisp.org>
41967
41968         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41969         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41970         spaces after a period. Put a space between a macro name and its
41971         argument list. Trivial rewordings.
41972         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41973         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41974         (main): Return 0 explicitly.
41975
41976 2009-02-21  Bruno Haible  <bruno@clisp.org>
41977
41978         Tests for module 'uninorm/filter'.
41979         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41980         * modules/uninorm/filter-tests: New file.
41981
41982         New module 'uninorm/filter'.
41983         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41984         uninorm_filter_flush, uninorm_filter_free): New declarations.
41985         * lib/uninorm/uninorm-filter.c: New file.
41986         * modules/uninorm/filter: New file.
41987
41988 2009-02-21  Bruno Haible  <bruno@clisp.org>
41989
41990         Tests for module 'uninorm/nfkc'.
41991         * tests/uninorm/test-nfkc.c: New file.
41992         * tests/uninorm/test-u8-nfkc.c: New file.
41993         * tests/uninorm/test-u16-nfkc.c: New file.
41994         * tests/uninorm/test-u32-nfkc.c: New file.
41995         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41996         * tests/uninorm/test-u32-nfkc-big.c: New file.
41997         * modules/uninorm/nfkc-tests: New file.
41998
41999         New module 'uninorm/nfkc'.
42000         * lib/uninorm/nfkc.c: New file.
42001         * modules/uninorm/nfkc: New file.
42002
42003         Tests for module 'uninorm/nfkd'.
42004         * tests/uninorm/test-nfkd.c: New file.
42005         * tests/uninorm/test-u8-nfkd.c: New file.
42006         * tests/uninorm/test-u16-nfkd.c: New file.
42007         * tests/uninorm/test-u32-nfkd.c: New file.
42008         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42009         * tests/uninorm/test-u32-nfkd-big.c: New file.
42010         * modules/uninorm/nfkd-tests: New file.
42011
42012         New module 'uninorm/nfkd'.
42013         * lib/uninorm/nfkd.c: New file.
42014         * modules/uninorm/nfkd: New file.
42015
42016         Tests for module 'uninorm/nfc'.
42017         * tests/uninorm/test-nfc.c: New file.
42018         * tests/uninorm/test-u8-nfc.c: New file.
42019         * tests/uninorm/test-u16-nfc.c: New file.
42020         * tests/uninorm/test-u32-nfc.c: New file.
42021         * tests/uninorm/test-u32-nfc-big.sh: New file.
42022         * tests/uninorm/test-u32-nfc-big.c: New file.
42023         * modules/uninorm/nfc-tests: New file.
42024
42025         New module 'uninorm/nfc'.
42026         * lib/uninorm/nfc.c: New file.
42027         * modules/uninorm/nfc: New file.
42028
42029         Tests for module 'uninorm/nfd'.
42030         * tests/uninorm/test-nfd.c: New file.
42031         * tests/uninorm/test-u8-nfd.c: New file.
42032         * tests/uninorm/test-u16-nfd.c: New file.
42033         * tests/uninorm/test-u32-nfd.c: New file.
42034         * tests/uninorm/test-u32-nfd-big.sh: New file.
42035         * tests/uninorm/test-u32-nfd-big.c: New file.
42036         * tests/uninorm/test-u32-normalize-big.h: New file.
42037         * tests/uninorm/test-u32-normalize-big.c: New file.
42038         * tests/uninorm/NormalizationTest.txt: New file, created from
42039         Unicode 5.1.0 NormalizationTest.txt.
42040         * modules/uninorm/nfd-tests: New file.
42041
42042         New module 'uninorm/nfd'.
42043         * lib/uninorm/nfd.c: New file.
42044         * modules/uninorm/nfd: New file.
42045
42046         New module 'uninorm/u32-normalize'.
42047         * lib/uninorm/u32-normalize.c: New file.
42048         * modules/uninorm/u32-normalize: New file.
42049
42050         New module 'uninorm/u16-normalize'.
42051         * lib/uninorm/u16-normalize.c: New file.
42052         * modules/uninorm/u16-normalize: New file.
42053
42054         New module 'uninorm/u8-normalize'.
42055         * lib/uninorm/u8-normalize.c: New file.
42056         * lib/uninorm/normalize-internal.h: New file.
42057         * lib/uninorm/u-normalize-internal.h: New file.
42058         * modules/uninorm/u8-normalize: New file.
42059
42060         New module 'uninorm/decompose-internal'.
42061         * lib/uninorm/decompose-internal.c: New file.
42062         * modules/uninorm/decompose-internal: New file.
42063
42064         Tests for module 'uninorm/composition'.
42065         * tests/uninorm/test-composition.c: New file.
42066         * modules/uninorm/composition-tests: New file.
42067
42068         New module 'uninorm/composition'.
42069         * lib/uninorm/composition.c: New file.
42070         * lib/uninorm/composition-table.gperf: New file, generated by
42071         gen-uni-tables.
42072         * modules/uninorm/composition: New file.
42073
42074         Tests for module 'uninorm/compat-decomposition'.
42075         * tests/uninorm/test-compat-decomposition.c: New file.
42076         * modules/uninorm/compat-decomposition-tests: New file.
42077
42078         New module 'uninorm/compat-decomposition'.
42079         * lib/uninorm/decompose-internal.h: New file.
42080         * lib/uninorm/compat-decomposition.c: New file.
42081         * modules/uninorm/compat-decomposition: New file.
42082
42083         Tests for module 'uninorm/canonical-decomposition'.
42084         * tests/uninorm/test-canonical-decomposition.c: New file.
42085         * modules/uninorm/canonical-decomposition-tests: New file.
42086
42087         New module 'uninorm/canonical-decomposition'.
42088         * lib/uninorm/canonical-decomposition.c: New file.
42089         * modules/uninorm/canonical-decomposition: New file.
42090
42091         Tests for module 'uninorm/decomposition'.
42092         * tests/uninorm/test-decomposition.c: New file.
42093         * modules/uninorm/decomposition-tests: New file.
42094
42095         New module 'uninorm/decomposition'.
42096         * lib/uninorm/decomposition.c: New file.
42097         * modules/uninorm/decomposition: New file.
42098
42099         New module 'uninorm/decomposition-table'.
42100         * lib/uninorm/decomposition-table.h: New file.
42101         * lib/uninorm/decomposition-table.c: New file.
42102         * lib/uninorm/decomposition-table1.h: New file, generated by
42103         gen-uni-tables.
42104         * lib/uninorm/decomposition-table2.h: New file, generated by
42105         gen-uni-tables.
42106         * modules/uninorm/decomposition-table: New file.
42107
42108         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42109         (UC_DECOMP_*): New enumeration items.
42110         (get_decomposition): New function.
42111         (struct decomp_table): New type.
42112         (output_decomposition, output_decomposition_tables): New functions.
42113         (unicode_composition_exclusions): New variable.
42114         (fill_composition_exclusions, debug_output_composition_tables): New
42115         functions.
42116         (main): Accept one more argument. Invoke fill_composition_exclusions.
42117         Output decomposition and composition tables.
42118
42119         New module 'uninorm/base'.
42120         * lib/uninorm.h: New file.
42121         * lib/unictype.h: Update comment.
42122         * modules/uninorm/base: New file.
42123
42124 2009-02-21  David Lutterkort  <lutter@redhat.com>
42125
42126         Tests for module 'safe-alloc'.
42127         * tests/test-safe-alloc.c: New file.
42128         * modules/safe-alloc-tests: New file.
42129
42130         New module 'safe-alloc'.
42131         * lib/safe-alloc.h: New file.
42132         * lib/safe-alloc.c: New file.
42133         * m4/safe-alloc.m4: New file.
42134         * modules/safe-alloc: New file.
42135         * doc/safe-alloc.texi: New file.
42136         * doc/gnulib.texi: Include it.
42137         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42138         safe-alloc.
42139
42140 2009-02-18  Bruno Haible  <bruno@clisp.org>
42141
42142         Fix link error on non-glibc systems.
42143         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42144         variable.
42145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42146
42147 2009-02-18  Jim Meyering  <meyering@redhat.com>
42148
42149         fts: avoid used-uninitialized error due to recent change
42150         * lib/fts.c (fts_read): Guard uses of the new member,
42151         parent->fts_n_dirs_remaining, since it's not relevant for
42152         the parent of a directory specified on the command-line.
42153
42154 2009-02-17  James Youngman  <jay@gnu.org>
42155             Bruno Haible  <bruno@clisp.org>
42156
42157         * m4/include_next.m4: Reformulate comment.
42158
42159 2009-02-16  Jim Meyering  <meyering@redhat.com>
42160
42161         fts: add #if guards so that the fts_lgpl module still builds
42162         * lib/fts.c: Guard just-added hash-table-using parts with
42163         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42164         Reported by Simon Josefsson.
42165
42166 2009-02-15  Bruno Haible  <bruno@clisp.org>
42167
42168         * modules/array-mergesort-tests: New file.
42169         * tests/test-array-mergesort.c: New file.
42170
42171         New module 'array-mergesort'.
42172         * modules/array-mergesort: New file.
42173         * lib/array-mergesort.h: New file.
42174
42175 2009-02-15  Bruno Haible  <bruno@clisp.org>
42176
42177         Fix 2009-02-07 commit.
42178         * lib/gen-uni-tables.c (output_predicate, output_category,
42179         output_combclass, output_bidi_category, output_decimal_digit,
42180         output_digit, output_numeric, output_mirror, output_scripts,
42181         output_ident_category, output_simple_mapping): Fix format directives.
42182         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42183
42184 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42185
42186         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42187         fixes are available from IBM.
42188
42189 2009-02-13  Jim Meyering  <meyering@redhat.com>
42190
42191         fts: arrange not to stat non-directories in more cases
42192         This makes GNU find (when it doesn't need to stat each file)
42193         *much* more efficient at traversing reiserfs file systems.
42194         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42195         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42196         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42197         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42198         (leaf_optimization_applies): New function.
42199         (LCO_hash, LCO_compare): New helper functions.
42200         (link_count_optimize_ok): New function.
42201         (fts_stat): Initialize new member (if dir).
42202         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42203         we've just stat'ed a directory.  Skip the stat call when possible.
42204         ---
42205         Note this AFS-related exchange:
42206         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42207         and note find's pioctl call in find/fstype.c.
42208         But that is necessary only if you want to enable the
42209         optimization for AFS, and for now, I don't.
42210
42211         fts: move a function definition "up" (no semantic change)
42212         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42213         "up" to precede upcoming use of a related function.
42214
42215 2009-02-11  Jim Meyering  <meyering@redhat.com>
42216
42217         fts: correct internal computation of nlinks (optimization-related)
42218         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42219         whether the current entry is a directory, so don't test it.
42220
42221 2009-02-10  Bruno Haible  <bruno@clisp.org>
42222
42223         Tests for module 'uniwbrk/ulc-wordbreaks'.
42224         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42225         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42226         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42227
42228         Tests for module 'uniwbrk/u32-wordbreaks'.
42229         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42230         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42231
42232         Tests for module 'uniwbrk/u16-wordbreaks'.
42233         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42234         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42235
42236         Tests for module 'uniwbrk/u8-wordbreaks'.
42237         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42238         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42239
42240 2009-02-10  Bruno Haible  <bruno@clisp.org>
42241
42242         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42243         property.
42244         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42245         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42246         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42247
42248 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42249
42250         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42251         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42252
42253 2009-02-10  Bruno Haible  <bruno@clisp.org>
42254
42255         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42256         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42257         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42258         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42259         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42260         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42261
42262 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42263
42264         * lib/sockets.h (gl_fd_to_handle): New function.
42265
42266         * tests/test-sockets.c: Call gl_fd_to_handle.
42267
42268 2009-02-09  Bruno Haible  <bruno@clisp.org>
42269
42270         * doc/havelib.texi: Document the conventions on bi-arch systems.
42271
42272 2009-02-08  Bruno Haible  <bruno@clisp.org>
42273
42274         Document the AC_LIB_LINKFLAGS macro.
42275         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42276         * doc/gnulib.texi: Include it.
42277
42278 2009-02-08  Bruno Haible  <bruno@clisp.org>
42279
42280         Fix wrong order of sections, compared to TOC.
42281         * doc/gnulib.texi: Include relocatable-maint.texi after the
42282         "Regular expressions" node, not before.
42283
42284 2009-02-08  Bruno Haible  <bruno@clisp.org>
42285
42286         Tests for module 'unicase/totitle'.
42287         * modules/unicase/totitle-tests: New file.
42288
42289         Tests for module 'unicase/tolower'.
42290         * modules/unicase/tolower-tests: New file.
42291
42292         Tests for module 'unicase/toupper'.
42293         * modules/unicase/toupper-tests: New file.
42294         * tests/unicase/test-mapping-part1.h: New file.
42295         * tests/unicase/test-mapping-part2.h: New file.
42296
42297         New module 'unicase/totitle'.
42298         * modules/unicase/totitle: New file.
42299         * lib/unicase/totitle.c: New file.
42300
42301         New module 'unicase/tolower'.
42302         * modules/unicase/tolower: New file.
42303         * lib/unicase/tolower.c: New file.
42304
42305         New module 'unicase/toupper'.
42306         * modules/unicase/toupper: New file.
42307         * lib/unicase/toupper.c: New file.
42308         * lib/unicase/simple-mapping.h: New file.
42309
42310         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42311         (mapping_table): New structure.
42312         (output_simple_mapping): New function.
42313         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42314         * modules/gen-uni-tables (Description): Update.
42315         * lib/unicase/toupper.h: New file, automatically generated by
42316         gen-uni-tables.
42317         * lib/unicase/tolower.h: New file, automatically generated by
42318         gen-uni-tables.
42319         * lib/unicase/totitle.h: New file, automatically generated by
42320         gen-uni-tables.
42321         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42322         gen-uni-tables.
42323         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42324         gen-uni-tables.
42325         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42326         gen-uni-tables.
42327
42328         New module 'unicase/base'.
42329         * modules/unicase/base: New file.
42330         * lib/unicase.h: New file.
42331
42332 2009-02-08  Bruno Haible  <bruno@clisp.org>
42333
42334         New module 'uniwbrk/ulc-wordbreaks'.
42335         * modules/uniwbrk/ulc-wordbreaks: New file.
42336         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42337
42338         New module 'uniwbrk/u32-wordbreaks'.
42339         * modules/uniwbrk/u32-wordbreaks: New file.
42340         * lib/uniwbrk/u32-wordbreaks.c: New file.
42341
42342         New module 'uniwbrk/u16-wordbreaks'.
42343         * modules/uniwbrk/u16-wordbreaks: New file.
42344         * lib/uniwbrk/u16-wordbreaks.c: New file.
42345
42346         New module 'uniwbrk/u8-wordbreaks'.
42347         * modules/uniwbrk/u8-wordbreaks: New file.
42348         * lib/uniwbrk/u8-wordbreaks.c: New file.
42349         * lib/uniwbrk/u-wordbreaks.h: New file.
42350
42351         New module 'uniwbrk/table'.
42352         * modules/uniwbrk/table: New file.
42353         * lib/uniwbrk/wbrktable.h: New file.
42354         * lib/uniwbrk/wbrktable.c: New file.
42355
42356         New module 'uniwbrk/wordbreak-property'.
42357         * modules/uniwbrk/wordbreak-property: New file.
42358         * lib/uniwbrk/wordbreak-property.c: New file.
42359
42360         * lib/gen-uni-tables.c (WBP_*): New enum items.
42361         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42362         (unicode_org_wbp): New variable.
42363         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42364         New functions.
42365         (wbp_table): New structure.
42366         (output_wbp, output_wbrk_tables): New functions.
42367         (main): Accept additional argument. Invoke fill_org_wbp,
42368         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42369         output_wbrk_tables.
42370         * modules/gen-uni-tables (Description): Update.
42371         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42372         gen-uni-tables.
42373
42374         New module 'uniwbrk/base'.
42375         * modules/uniwbrk/base: New file.
42376         * lib/uniwbrk.h: New file.
42377
42378 2009-02-08  Bruno Haible  <bruno@clisp.org>
42379
42380         Update to Unicode 5.1.0.
42381         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42382         U+2185..U+2188.
42383         (is_property_default_ignorable_code_point): Don't include characters
42384         of category Cc or Cs and not-a-characters.
42385         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42386         U+0D79, U+109E, U+109F, U+A60C.
42387         * lib/unictype/bidi_of.h: Regenerated.
42388         * lib/unictype/blocks.h: Regenerated.
42389         * lib/unictype/categ_C.h: Regenerated.
42390         * lib/unictype/categ_Cf.h: Regenerated.
42391         * lib/unictype/categ_Cn.h: Regenerated.
42392         * lib/unictype/categ_L.h: Regenerated.
42393         * lib/unictype/categ_Ll.h: Regenerated.
42394         * lib/unictype/categ_Lm.h: Regenerated.
42395         * lib/unictype/categ_Lo.h: Regenerated.
42396         * lib/unictype/categ_Lu.h: Regenerated.
42397         * lib/unictype/categ_M.h: Regenerated.
42398         * lib/unictype/categ_Mc.h: Regenerated.
42399         * lib/unictype/categ_Me.h: Regenerated.
42400         * lib/unictype/categ_Mn.h: Regenerated.
42401         * lib/unictype/categ_N.h: Regenerated.
42402         * lib/unictype/categ_Nd.h: Regenerated.
42403         * lib/unictype/categ_Nl.h: Regenerated.
42404         * lib/unictype/categ_No.h: Regenerated.
42405         * lib/unictype/categ_P.h: Regenerated.
42406         * lib/unictype/categ_Pd.h: Regenerated.
42407         * lib/unictype/categ_Pe.h: Regenerated.
42408         * lib/unictype/categ_Pf.h: Regenerated.
42409         * lib/unictype/categ_Pi.h: Regenerated.
42410         * lib/unictype/categ_Po.h: Regenerated.
42411         * lib/unictype/categ_Ps.h: Regenerated.
42412         * lib/unictype/categ_S.h: Regenerated.
42413         * lib/unictype/categ_Sk.h: Regenerated.
42414         * lib/unictype/categ_Sm.h: Regenerated.
42415         * lib/unictype/categ_So.h: Regenerated.
42416         * lib/unictype/categ_of.h: Regenerated.
42417         * lib/unictype/combining.h: Regenerated.
42418         * lib/unictype/ctype_alnum.h: Regenerated.
42419         * lib/unictype/ctype_alpha.h: Regenerated.
42420         * lib/unictype/ctype_graph.h: Regenerated.
42421         * lib/unictype/ctype_lower.h: Regenerated.
42422         * lib/unictype/ctype_print.h: Regenerated.
42423         * lib/unictype/ctype_punct.h: Regenerated.
42424         * lib/unictype/ctype_upper.h: Regenerated.
42425         * lib/unictype/decdigit.h: Regenerated.
42426         * lib/unictype/digit.h: Regenerated.
42427         * lib/unictype/mirror.h: Regenerated.
42428         * lib/unictype/numeric.h: Regenerated.
42429         * lib/unictype/pr_alphabetic.h: Regenerated.
42430         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42431         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42432         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42433         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42434         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42435         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42436         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42437         * lib/unictype/pr_combining.h: Regenerated.
42438         * lib/unictype/pr_dash.h: Regenerated.
42439         * lib/unictype/pr_decimal_digit.h: Regenerated.
42440         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42441         * lib/unictype/pr_deprecated.h: Regenerated.
42442         * lib/unictype/pr_diacritic.h: Regenerated.
42443         * lib/unictype/pr_extender.h: Regenerated.
42444         * lib/unictype/pr_format_control.h: Regenerated.
42445         * lib/unictype/pr_grapheme_base.h: Regenerated.
42446         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42447         * lib/unictype/pr_grapheme_link.h: Regenerated.
42448         * lib/unictype/pr_id_continue.h: Regenerated.
42449         * lib/unictype/pr_id_start.h: Regenerated.
42450         * lib/unictype/pr_ideographic.h: Regenerated.
42451         * lib/unictype/pr_ignorable_control.h: Regenerated.
42452         * lib/unictype/pr_lowercase.h: Regenerated.
42453         * lib/unictype/pr_math.h: Regenerated.
42454         * lib/unictype/pr_numeric.h: Regenerated.
42455         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42456         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42457         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42458         * lib/unictype/pr_other_id_continue.h: Regenerated.
42459         * lib/unictype/pr_other_lowercase.h: Regenerated.
42460         * lib/unictype/pr_other_math.h: Regenerated.
42461         * lib/unictype/pr_punctuation.h: Regenerated.
42462         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42463         * lib/unictype/pr_soft_dotted.h: Regenerated.
42464         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42465         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42466         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42467         * lib/unictype/pr_uppercase.h: Regenerated.
42468         * lib/unictype/pr_xid_continue.h: Regenerated.
42469         * lib/unictype/pr_xid_start.h: Regenerated.
42470         * lib/unictype/pr_zero_width.h: Regenerated.
42471         * lib/unictype/scripts.h: Regenerated.
42472         * lib/unictype/scripts_byname.gperf: Regenerated.
42473         * lib/unictype/sy_java_ident.h: Regenerated.
42474         * lib/unilbrk/lbrkprop1.h: Regenerated.
42475         * lib/unilbrk/lbrkprop2.h: Regenerated.
42476         * tests/unictype/test-categ_C.c: Regenerated.
42477         * tests/unictype/test-categ_Cf.c: Regenerated.
42478         * tests/unictype/test-categ_Cn.c: Regenerated.
42479         * tests/unictype/test-categ_L.c: Regenerated.
42480         * tests/unictype/test-categ_Ll.c: Regenerated.
42481         * tests/unictype/test-categ_Lm.c: Regenerated.
42482         * tests/unictype/test-categ_Lo.c: Regenerated.
42483         * tests/unictype/test-categ_Lu.c: Regenerated.
42484         * tests/unictype/test-categ_M.c: Regenerated.
42485         * tests/unictype/test-categ_Mc.c: Regenerated.
42486         * tests/unictype/test-categ_Me.c: Regenerated.
42487         * tests/unictype/test-categ_Mn.c: Regenerated.
42488         * tests/unictype/test-categ_N.c: Regenerated.
42489         * tests/unictype/test-categ_Nd.c: Regenerated.
42490         * tests/unictype/test-categ_Nl.c: Regenerated.
42491         * tests/unictype/test-categ_No.c: Regenerated.
42492         * tests/unictype/test-categ_P.c: Regenerated.
42493         * tests/unictype/test-categ_Pd.c: Regenerated.
42494         * tests/unictype/test-categ_Pe.c: Regenerated.
42495         * tests/unictype/test-categ_Pf.c: Regenerated.
42496         * tests/unictype/test-categ_Pi.c: Regenerated.
42497         * tests/unictype/test-categ_Po.c: Regenerated.
42498         * tests/unictype/test-categ_Ps.c: Regenerated.
42499         * tests/unictype/test-categ_S.c: Regenerated.
42500         * tests/unictype/test-categ_Sk.c: Regenerated.
42501         * tests/unictype/test-categ_Sm.c: Regenerated.
42502         * tests/unictype/test-categ_So.c: Regenerated.
42503         * tests/unictype/test-ctype_alnum.c: Regenerated.
42504         * tests/unictype/test-ctype_alpha.c: Regenerated.
42505         * tests/unictype/test-ctype_graph.c: Regenerated.
42506         * tests/unictype/test-ctype_lower.c: Regenerated.
42507         * tests/unictype/test-ctype_print.c: Regenerated.
42508         * tests/unictype/test-ctype_punct.c: Regenerated.
42509         * tests/unictype/test-ctype_upper.c: Regenerated.
42510         * tests/unictype/test-decdigit.h: Regenerated.
42511         * tests/unictype/test-digit.h: Regenerated.
42512         * tests/unictype/test-numeric.h: Regenerated.
42513         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42514         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42515         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42516         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42517         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42518         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42519         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42520         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42521         * tests/unictype/test-pr_combining.c: Regenerated.
42522         * tests/unictype/test-pr_dash.c: Regenerated.
42523         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42524         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42525         * tests/unictype/test-pr_deprecated.c: Regenerated.
42526         * tests/unictype/test-pr_diacritic.c: Regenerated.
42527         * tests/unictype/test-pr_extender.c: Regenerated.
42528         * tests/unictype/test-pr_format_control.c: Regenerated.
42529         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42530         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42531         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42532         * tests/unictype/test-pr_id_continue.c: Regenerated.
42533         * tests/unictype/test-pr_id_start.c: Regenerated.
42534         * tests/unictype/test-pr_ideographic.c: Regenerated.
42535         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42536         * tests/unictype/test-pr_lowercase.c: Regenerated.
42537         * tests/unictype/test-pr_math.c: Regenerated.
42538         * tests/unictype/test-pr_numeric.c: Regenerated.
42539         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42540         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42541         Regenerated.
42542         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42543         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42544         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42545         * tests/unictype/test-pr_other_math.c: Regenerated.
42546         * tests/unictype/test-pr_punctuation.c: Regenerated.
42547         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42548         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42549         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42550         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42551         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42552         * tests/unictype/test-pr_uppercase.c: Regenerated.
42553         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42554         * tests/unictype/test-pr_xid_start.c: Regenerated.
42555         * tests/unictype/test-pr_zero_width.c: Regenerated.
42556
42557         Update to Unicode 5.1.0.
42558         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42559         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42560         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42561         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42562         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42563         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42564         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42565         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42566         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42567         (nonspacing_table_ind): Update.
42568         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42569
42570         Update to Unicode 5.1.0.
42571         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42572         code transform.
42573         * lib/uniname/uniname.c (unicode_character_name,
42574         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42575         * lib/uniname/uninames.h: Regenerated.
42576         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42577
42578 2009-02-07  Bruno Haible  <bruno@clisp.org>
42579
42580         Merge gen-ctype and gen-lbrk into a single program.
42581         * lib/gen-uni-tables.c: New file, incorporating
42582         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42583         Add directory prefixes to the names of the generated files.
42584         * lib/unictype/gen-ctype.c: Remove file.
42585         * lib/unilbrk/gen-lbrk.c: Remove file.
42586         * modules/gen-uni-tables: New file.
42587         * modules/unictype/gen-ctype: Remove file.
42588         * modules/unilbrk/gen-lbrk: Remove file.
42589
42590 2009-02-07  Bruno Haible  <bruno@clisp.org>
42591
42592         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42593
42594         New module 'unistr/u32-strcoll'.
42595         * modules/unistr/u32-strcoll: New file.
42596         * lib/unistr/u32-strcoll.c: New file.
42597
42598         New module 'unistr/u16-strcoll'.
42599         * modules/unistr/u16-strcoll: New file.
42600         * lib/unistr/u16-strcoll.c: New file.
42601
42602         New module 'unistr/u8-strcoll'.
42603         * modules/unistr/u8-strcoll: New file.
42604         * lib/unistr/u8-strcoll.c: New file.
42605         * lib/unistr/u-strcoll.h: New file.
42606
42607 2009-02-07  Bruno Haible  <bruno@clisp.org>
42608
42609         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42610         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42611         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42612         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42613         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42614         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42615
42616 2009-02-07  Bruno Haible  <bruno@clisp.org>
42617
42618         Make 64-bit clean.
42619         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42620         output_combclass, output_bidi_category, output_decimal_digit,
42621         output_digit, output_numeric, output_mirror, output_scripts,
42622         output_ident_category): Use proper width specifier in format strings.
42623
42624 2009-02-07  Bruno Haible  <bruno@clisp.org>
42625
42626         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42627         failure behaviour.
42628
42629 2009-02-07  Jim Meyering  <meyering@redhat.com>
42630
42631         regex: avoid compilation failure with upcoming gcc-4.4
42632         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42633         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42634         "... error: integer overflow in preprocessor expression".
42635
42636 2009-02-05  Ben Pfaff  <blp@gnu.org>
42637
42638         Fix link errors on Windows when close module is used.
42639         * modules/close: Add $(LIB_CLOSE) to Link section.
42640         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42641         $(LIB_CLOSE) on Windows.
42642
42643 2009-02-05  Jim Meyering  <meyering@redhat.com>
42644
42645         still avoid unused-parameter warnings, but do it cleanly
42646         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42647         (get_fs_usage): Cast to void instead.
42648         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42649         (dev_from_mount_options, read_file_system_list): Cast to void.
42650         Prompted by Bruno Haible.
42651
42652 2009-02-04  Jim Meyering  <meyering@redhat.com>
42653
42654         fsusage.c: correct copyright year
42655         * lib/fsusage.c: Reflect year in which the change is pushed into
42656
42657         avoid misc. warnings
42658         * lib/fsusage.c (UNUSED_PARAM): Define.
42659         (get_fs_usage): Mark parameter "disk" as unused.
42660         * lib/getugroups.c (getgrent): Use "void" in prototype.
42661         * lib/mountlist.c: Mark unused parameters.
42662         (read_file_system_list): Declare a local with "const".
42663         * lib/nanosleep.c (getnow): Declare static.
42664         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42665
42666         dirfd: set errno upon failure
42667         * lib/dirfd.c: Include <errno.h>.
42668         Set errno to ENOTSUP when returning -1.
42669         * modules/dirfd (Depends-on): Add errno.
42670         Suggested by John Kodis <kodis@comcast.net>.
42671
42672 2009-02-01  Bruno Haible  <bruno@clisp.org>
42673
42674         Don't assume sizeof (long) >= sizeof (void *).
42675         * lib/memcmp.c: Include stdint.h.
42676         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42677         srcp2 to 'const byte *'.
42678         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42679         types to uintptr_t.
42680         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42681         * modules/memcmp (Depends-on): Add stdint.
42682         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42683
42684 2009-01-30  Eric Blake  <ebb9@byu.net>
42685
42686         fix more require-before-expand issues
42687         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42688         expand, AC_PROG_AWK.
42689         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42690
42691 2009-01-28  Eric Blake  <ebb9@byu.net>
42692
42693         version-etc: use consistent URL formatting
42694         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42695         Improve formatting.  Use fputs for string without %.
42696
42697 2009-01-28  Jim Meyering  <meyering@redhat.com>
42698
42699         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42700         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42701         "underquoted definition of NAME" from autoconf-2.59.
42702
42703 2009-01-28  Bruno Haible  <bruno@clisp.org>
42704
42705         * doc/gnulib.texi: Add "Obsolete modules" to index.
42706
42707 2009-01-28  Jim Meyering  <meyering@redhat.com>
42708
42709         useless-if-before-free: recognize more variants
42710         * build-aux/useless-if-before-free: Also recognize e.g.,
42711         if (NULL != p) free (p);
42712
42713 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42714
42715         test-getaddrinfo: skip (don't fail) this test when there's no network
42716         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42717         on the presumption that it means you lack network access.
42718
42719 2009-01-26  Jim Meyering  <meyering@redhat.com>
42720
42721         fflush: avoid warnings on modern systems
42722         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42723         pos and result, into scopes where they're used.
42724
42725 2009-01-26  Eric Blake  <ebb9@byu.net>
42726
42727         Silence warning reintroduced by recent extensions patch.
42728         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42729         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42730         autoconf.
42731
42732         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42733         * m4/00gnulib.m4: New file.
42734         * gnulib-tool (func_get_filelist): Always use it.
42735         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42736         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42737
42738 2009-01-25  Bruno Haible  <bruno@clisp.org>
42739
42740         Make test-quotearg work on MacOS X and AIX.
42741         * tests/test-quotearg.sh: New file.
42742         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42743         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42744         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42745         include <libintl.h>.
42746         (fake_locale): Remove variable.
42747         (gettext, dgettext, dcgettext): Remove functions.
42748         (main): Instead of setting a fake locale, set a real locale. Call
42749         textdomain and bindtextdomain.
42750         * modules/quotearg-tests (Files): Add the new files.
42751         (Depends-on): Add gettext, setenv, unsetenv.
42752         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42753         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42754         Augment TESTS_ENVIRONMENT.
42755
42756 2009-01-25  Bruno Haible  <bruno@clisp.org>
42757
42758         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42759         fr_FR.ISO8859-1 locale on MacOS X.
42760         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42761         ja_JP.eucJP locale on MacOS X.
42762         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42763         zh_CN.GB18030 locale on MacOS X.
42764
42765 2009-01-25  Bruno Haible  <bruno@clisp.org>
42766
42767         Avoid link errors on MacOS X 10.3.
42768         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42769         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42770
42771 2009-01-25  Bruno Haible  <bruno@clisp.org>
42772
42773         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42774         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42775         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42776         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42777         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42778         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42779         posix_spawnattr_init, posix_spawnattr_setsigmask,
42780         posix_spawnattr_setflags, posix_spawnattr_destroy.
42781
42782         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42783         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42784         * modules/execute (Files): Remove m4/posix_spawn.m4.
42785         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42786         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42787         posix_spawnattr_init, posix_spawnattr_setsigmask,
42788         posix_spawnattr_setflags, posix_spawnattr_destroy.
42789
42790 2009-01-25  Bruno Haible  <bruno@clisp.org>
42791
42792         * lib/glthread/threadlib.c: Include <stdlib.h>.
42793
42794 2009-01-25  Bruno Haible  <bruno@clisp.org>
42795
42796         * lib/glthread/threadlib.c (dummy): New declaration.
42797
42798 2009-01-25  Bruno Haible  <bruno@clisp.org>
42799
42800         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42801         multibyte characters also for the GB18030 encoding. Don't crash when
42802         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42803
42804 2009-01-25  Bruno Haible  <bruno@clisp.org>
42805
42806         Avoid redefining 'struct random_data' on OSF/1 5.1.
42807         * lib/stdlib.in.h: Include <random.h> if it exists.
42808         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42809         HAVE_RANDOM_H. Include <random.h> when testing whether
42810         'struct random_data' exists.
42811         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42812
42813 2009-01-25  Bruno Haible  <bruno@clisp.org>
42814
42815         Don't install charset.alias on MacOS X >= 10.3.
42816         * lib/localcharset.c (DARWIN7): New macro.
42817         (get_charset_aliases): Hardcode the result for Darwin7.
42818         * modules/localcharset (install-exec-local): Don't install
42819         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42820
42821 2009-01-25  Bruno Haible  <bruno@clisp.org>
42822
42823         Don't install charset.alias on mingw and Cygwin.
42824         * modules/localcharset (install-exec-local): Don't install
42825         charset.alias on mingw and Cygwin, if the file does not yet exist.
42826         The result for these platforms is hardcoded in localcharset.c.
42827
42828 2009-01-25  Bruno Haible  <bruno@clisp.org>
42829
42830         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42832         before requiring AC_USE_SYSTEM_EXTENSIONS.
42833
42834 2009-01-25  Jim Meyering  <meyering@redhat.com>
42835
42836         c-strtod: avoid warnings
42837         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42838         "assignment discards qualifiers from pointer target type" warnings.
42839
42840 2009-01-24  Bruno Haible  <bruno@clisp.org>
42841
42842         Add support for non-UTF-8 locales on MacOS X.
42843         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42844         canonical encodings. For Darwin 7 and newer, don't map traditional
42845         encodings to UTF-8.
42846         Reported by Vincent Lefevre <vincent@vinc17.org>
42847         at <http://savannah.gnu.org/bugs/?25235>.
42848
42849 2009-01-24  Bruno Haible  <bruno@clisp.org>
42850
42851         * doc/gnulib.texi (Obsolete modules): New section.
42852         Reported by Mike Frysinger <vapier@gentoo.org>.
42853
42854 2009-01-24  Bruno Haible  <bruno@clisp.org>
42855
42856         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42857         (%.dvi): New rule.
42858
42859 2009-01-24  Bruno Haible  <bruno@clisp.org>
42860
42861         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42862         Reported by Eric Blake.
42863
42864 2009-01-24  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42867         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42868         Reported by Gary V. Vaughan <gary@gnu.org>.
42869
42870 2009-01-24  Bruno Haible  <bruno@clisp.org>
42871
42872         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42873
42874 2009-01-23  Bruno Haible  <bruno@clisp.org>
42875
42876         Make c-strtod, c-strtold usable in libraries.
42877         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42878         (C_STRTOD): Call strdup instead of xstrdup.
42879         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42880         * modules/c-strtold (Depends-on): Likewise.
42881         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42882         * NEWS: Mention the change.
42883         Reported by Michael Gold <mgold@ncf.ca>.
42884
42885 2009-01-23  Jim Meyering  <meyering@redhat.com>
42886
42887         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42888         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42889         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42890
42891 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42892
42893         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42894         GNU CoreUtils.
42895         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42896         * modules/version-etc (Description): Update.
42897
42898 2009-01-22  Bruno Haible  <bruno@clisp.org>
42899
42900         Cache the C locale object.
42901         * lib/c-strtod.c (c_locale_cache): New variable.
42902         (c_locale): New function.
42903         (C_STRTOD): Use it, and don't call freelocale.
42904         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42905         Suggested by Paolo Bonzini.
42906
42907 2009-01-21  Bruno Haible  <bruno@clisp.org>
42908
42909         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42910         conditions other than overflow.
42911
42912 2009-01-21  Bruno Haible  <bruno@clisp.org>
42913
42914         * lib/c-strtod.c: Include errno.h.
42915         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42916         value from STRTOD_L and STRTOD.
42917
42918 2009-01-21  Bruno Haible  <bruno@clisp.org>
42919         and Jim Meyering  <meyering@redhat.com>
42920
42921         nanosleep: skip configure test (fail it) for apple universal builds
42922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42923         universal builds, assume that nanosleep does not work.
42924         * modules/nanosleep (Depends-on): Add multiarch.
42925
42926         mktime: skip configure test (fail it) for apple universal builds
42927         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42928         universal builds, assume that mktime does not work.
42929         * modules/mktime (Depends-on): Add multiarch.
42930
42931 2009-01-21  Eric Blake  <ebb9@byu.net>
42932
42933         multiarch: avoid expand-before-require warning
42934         * modules/multiarch (configure.ac): Require, rather than expand,
42935         gl_MULTIARCH.
42936         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42937         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42938         enforce that all clients require it.  Partial reversion of
42939         2008-12-29 patch.
42940
42941         error: avoid expand-before-require warning
42942         * modules/errno (configure.ac): Require, rather than expand,
42943         gl_HEADER_ERRNO_H.
42944         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42945         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42946         enforce that all clients require it.
42947
42948         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42949         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42950         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42951         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42952
42953 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42954
42955         Revert:
42956         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42957
42958         regex: do not depend on obsolete modules.
42959         * modules/regex: Remove memcmp and memmove.
42960
42961 2009-01-20  Bruno Haible  <bruno@clisp.org>
42962
42963         Make the 'link' module link on Windows NT 4.
42964         * lib/link.c (_WIN32_WINNT): Don't define.
42965         (CreateHardLinkFuncType): New type.
42966         (CreateHardLinkFunc, initialized): New variables.
42967         (initialize): New function.
42968         (link): Invoke CreateHardLink indirectly through the function pointer.
42969
42970 2009-01-20  Bruno Haible  <bruno@clisp.org>
42971
42972         Fix compilation failure on mingw.
42973         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42974
42975 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42976
42977         * doc/c-strtod.texi: Mention a couple of restrictions.
42978
42979 2009-01-20  Jim Meyering  <meyering@redhat.com>
42980
42981         gettimeofday: move more declarations out of functions
42982         * lib/gettimeofday.c: Move extern declarations of tzset and
42983         gmtime out of containing functions.  Prompted by Bruno Haible.
42984
42985 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42986
42987         regex: do not depend on obsolete modules.
42988         * modules/regex: Remove memcmp and memmove.
42989
42990 2009-01-19  Bruno Haible  <bruno@clisp.org>
42991
42992         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42993         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42994         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42995         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42996         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42997
42998 2009-01-19  Bruno Haible  <bruno@clisp.org>
42999
43000         * tests/test-link.c: Include <errno.h>.
43001         (main): Exit with code 77 when a hard link cannot be created due to
43002         the file system.
43003         * tests/test-link.sh: Skip test when a hard link cannot be created due
43004         to the file system.
43005         Suggested by Eric Blake.
43006
43007 2009-01-19  Martin Lambers  <marlam@marlam.de>
43008
43009         * modules/link-tests: New file.
43010         * tests/test-link.sh: New file.
43011         * tests/test-link.c: New file.
43012
43013 2009-01-19  Eric Blake  <ebb9@byu.net>
43014
43015         doc: mention another function added in cygwin 1.7.0
43016         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43017         Another new function in cygwin 1.7.
43018
43019 2009-01-19  Bruno Haible  <bruno@clisp.org>
43020
43021         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43022         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43023         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43024         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43025         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43026         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43027         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43028         * m4/md4.m4 (gl_MD4): Likewise.
43029         * m4/md5.m4 (gl_MD5): Likewise.
43030         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43031         * m4/sha1.m4 (gl_SHA1): Likewise.
43032         * m4/sha256.m4 (gl_SHA256): Likewise.
43033         * m4/sha512.m4 (gl_SHA512): Likewise.
43034
43035 2009-01-19  Bruno Haible  <bruno@clisp.org>
43036
43037         * modules/uniname/uniname-tests (Depends-on): Add progname.
43038         * tests/uniname/test-uninames.c: Include progname.h.
43039         (main): Call set_program_name.
43040
43041         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43042         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43043         (main): Call set_program_name.
43044
43045         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43046         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43047         (main): Call set_program_name.
43048
43049         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43050         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43051         (main): Call set_program_name.
43052
43053         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43054         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43055         (main): Call set_program_name.
43056
43057         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43058         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43059         (main): Call set_program_name.
43060
43061         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43062         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43063         (main): Call set_program_name.
43064
43065         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43066         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43067         (main): Call set_program_name.
43068
43069         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43070         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43071         (main): Call set_program_name.
43072
43073 2009-01-19  Eric Blake  <ebb9@byu.net>
43074
43075         test-unistd: test previous patch
43076         * tests/test-unistd.c: Test *_FILENO macros.
43077
43078         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43079         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43080         Guarantee a definition.
43081         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43082         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43083         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43084         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43085         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43086         Likewise.
43087         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43088         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43089         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43090         Likewise.
43091         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43092         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43093         (STDERR_FILENO): Likewise.
43094         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43095         (STDERR_FILENO): Likewise.
43096         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43097         (STDERR_FILENO): Likewise.
43098         Reported by Elbert Pol.
43099
43100 2009-01-19  Eric Blake  <ebb9@byu.net>
43101
43102         doc: mention more functions added in cygwin 1.7.0
43103         * doc/posix-functions/abort.texi (abort): Update wording related
43104         to cygwin.
43105         * doc/posix-functions/daylight.texi (daylight): Likewise.
43106         * doc/posix-functions/optarg.texi (optarg): Likewise.
43107         * doc/posix-functions/optarg.texi (opterr): Likewise.
43108         * doc/posix-functions/optarg.texi (optind): Likewise.
43109         * doc/posix-functions/optarg.texi (optopt): Likewise.
43110         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43111         worked in 1.5.x, and was withdrawn in 1.7.
43112         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43113         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43114         cygwin versions.
43115         * doc/posix-functions/perror.texi (perror): Likewise.
43116         * doc/posix-functions/printf.texi (printf): Likewise.
43117         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43118         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43119         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43120         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43121         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43122         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43123         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43124         Likewise.
43125         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43126         Likewise.
43127         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43128         this function.
43129         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43130         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43131         Likewise.
43132         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43133         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43134         * doc/posix-functions/confstr.texi (confstr): Likewise.
43135         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43136         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43137         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43138         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43139         * doc/posix-functions/fputws.texi (fputws): Likewise.
43140         * doc/posix-functions/fwide.texi (fwide): Likewise.
43141         * doc/posix-functions/getwc.texi (getwc): Likewise.
43142         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43143         * doc/posix-functions/putwc.texi (putwc): Likewise.
43144         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43145         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43146         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43147         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43148         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43149         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43150         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43151         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43152         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43153         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43154         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43155
43156 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43157
43158         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43159         * lib/ioctl.c: Include <sys/ioctl.h>.
43160
43161 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43162
43163         * modules/getdate-tests (Depends-on): Add progname.
43164         * tests/test-getdate.c: Use progname module, to avoid link errors
43165         on non-glibc systems.
43166
43167 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43168
43169         * modules/filenamecat-tests (Depends-on): Add progname.
43170         * modules/fstrcmp-tests (Depends-on): Likewise.
43171
43172         * tests/test-filenamecat.c: Use progname module, to avoid link
43173         errors on non-glibc systems.
43174         * tests/test-fstrcmp.c: Likewise.
43175
43176 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43177
43178         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43179         * lib/gettimeofday.c: Move extern declaration out of function.
43180
43181 2009-01-18  Bruno Haible  <bruno@clisp.org>
43182
43183         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43184         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43185         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43186
43187 2009-01-18  Bruno Haible  <bruno@clisp.org>
43188
43189         * lib/strftime.c (MEMPCPY): Remove unused macro.
43190         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43191
43192 2009-01-18  Martin Lambers  <marlam@marlam.de>
43193
43194         New module 'link'.
43195         * lib/unistd.in.h (link): New declaration.
43196         * lib/link.c: New file.
43197         * m4/link.m4: New file.
43198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43199         HAVE_LINK.
43200         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43201         * modules/link: New file.
43202         * doc/posix-functions/link.texi: Mention the new module.
43203
43204 2009-01-18  Bruno Haible  <bruno@clisp.org>
43205
43206         * tests/test-avltree_list.c (main): Call set_program_name.
43207         * tests/test-avltree_oset.c (main): Likewise.
43208         * tests/test-obstack-printf.c: Include progname.h.
43209         (main): Call set_program_name.
43210         * tests/test-quotearg.c: Include progname.h.
43211         (main): Call set_program_name.
43212         * tests/test-xmemdup0.c: Include progname.h.
43213         (main): Call set_program_name.
43214
43215 2009-01-18  Bruno Haible  <bruno@clisp.org>
43216
43217         New module 'alphasort'.
43218         * lib/dirent.in.h (alphasort): New declaration.
43219         * lib/alphasort.c: New file, from glibc with modifications.
43220         * m4/alphasort.m4: New file.
43221         * modules/alphasort: New file.
43222         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43223         HAVE_ALPHASORT.
43224         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43225         HAVE_ALPHASORT.
43226         * doc/posix-functions/alphasort.texi: Mention the new module and the
43227         portability problems.
43228
43229 2009-01-18  Bruno Haible  <bruno@clisp.org>
43230
43231         New module 'scandir'.
43232         * lib/dirent.in.h (scandir): New declaration.
43233         * lib/scandir.c: New file, from glibc with modifications.
43234         * m4/scandir.m4: New file.
43235         * modules/scandir: New file.
43236         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43237         HAVE_SCANDIR.
43238         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43239         HAVE_SCANDIR.
43240         * doc/posix-functions/scandir.texi: Mention the new module and the
43241         portability problems.
43242
43243 2009-01-17  Bruno Haible  <bruno@clisp.org>
43244
43245         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43246         Update documentation.
43247         (func_remove_suffix): Escape all dots in the suffix. Update
43248         documentation.
43249         (func_filter_filelist): Update documentation.
43250         Reported by Ralf Wildenhues.
43251
43252 2009-01-17  Bruno Haible  <bruno@clisp.org>
43253
43254         * modules/dprintf-posix-tests: New file.
43255         * tests/test-dprintf-posix.sh: New file.
43256         * tests/test-dprintf-posix.c: New file.
43257
43258         New modules 'dprintf', 'dprintf-posix'.
43259         * lib/stdio.in.h (dprintf): New declaration.
43260         * lib/dprintf.c: New file.
43261         * m4/dprintf.m4: New file.
43262         * m4/dprintf-posix.m4: New file.
43263         * modules/dprintf: New file.
43264         * modules/dprintf-posix: New file.
43265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43266         HAVE_DPRINTF, REPLACE_DPRINTF.
43267         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43268         HAVE_DPRINTF, REPLACE_DPRINTF.
43269         * doc/posix-functions/dprintf.texi: Mention the new modules.
43270
43271 2009-01-17  Bruno Haible  <bruno@clisp.org>
43272
43273         * modules/vdprintf-posix-tests: New file.
43274         * tests/test-vdprintf-posix.sh: New file.
43275         * tests/test-vdprintf-posix.c: New file.
43276
43277         New modules 'vdprintf', 'vdprintf-posix'.
43278         * lib/stdio.in.h (vdprintf): New declaration.
43279         * lib/vdprintf.c: New file.
43280         * m4/vdprintf.m4: New file.
43281         * m4/vdprintf-posix.m4: New file.
43282         * modules/vdprintf: New file.
43283         * modules/vdprintf-posix: New file.
43284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43285         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43286         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43287         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43288         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43289
43290 2009-01-17  Bruno Haible  <bruno@clisp.org>
43291
43292         Fix replacement of fopen on mingw.
43293         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43294         mingw.
43295
43296 2009-01-17  Bruno Haible  <bruno@clisp.org>
43297
43298         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43299         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43300
43301 2009-01-17  Bruno Haible  <bruno@clisp.org>
43302
43303         Avoid test-fflush2.sh failure on mingw.
43304         * tests/test-fflush2.c: Include binary-io.h.
43305         (main): Put standard input into binary mode.
43306         * modules/fflush-tests (Depends-on): Add binary-io.
43307
43308 2009-01-17  Bruno Haible  <bruno@clisp.org>
43309
43310         * lib/wchar.in.h: In another particular situation, include only the
43311         system's <wchar.h> file.
43312         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43313         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43314         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43315
43316 2009-01-17  Bruno Haible  <bruno@clisp.org>
43317
43318         Support for stripping executables in --enable-relocatable.
43319         * build-aux/install-reloc: Expect one more argument, or an environment
43320         variable RELOC_STRIP_PROG. If set, strip the destination program and
43321         its wrapper.
43322         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43323         RELOC_STRIP_PROG.
43324         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43325         to set RELOCATABLE_STRIP.
43326         * NEWS: Mention the new Makefile requirement.
43327
43328 2009-01-17  Bruno Haible  <bruno@clisp.org>
43329
43330         * build-aux/install-reloc: Remove debugging information left over by
43331         C compiler on MacOS X.
43332
43333 2009-01-17  Bruno Haible  <bruno@clisp.org>
43334
43335         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43336         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43337         _NSGetExecutablePath.
43338
43339 2009-01-16  Jim Meyering  <meyering@redhat.com>
43340
43341         strerror: avoid warnings about discarding "const"
43342         * lib/strerror.c (rpl_strerror): Instead of returning a const
43343         string from each and every "case", use a variable, and add a single
43344         cast after the switch.
43345
43346 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43347
43348         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43349
43350 2009-01-16  Bruno Haible  <bruno@clisp.org>
43351
43352         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43353         array initializer syntax that also works in C++ mode.
43354         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43355
43356 2009-01-16  Jim Meyering  <meyering@redhat.com>
43357
43358         poll: suppress a warning
43359         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43360         to ignore "...unsigned expression < 0 is always false" warnings.
43361
43362 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43363
43364         poll: remove declarations of unused variables
43365         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43366         sockbuf and optlen.
43367
43368 2009-01-15  Bruno Haible  <bruno@clisp.org>
43369
43370         Make fflush-after-ungetc POSIX compliant on BSD systems.
43371         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43372         (clear_ungetc_buffer): Implement also for other systems.
43373         (rpl_fflush): On glibc systems, invoke
43374         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43375         clear_ungetc_buffer after fetching the stream's position, not before.
43376
43377 2009-01-15  Bruno Haible  <bruno@clisp.org>
43378
43379         Make fflush-after-ungetc POSIX compliant on glibc systems.
43380         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43381         after ungetc.
43382         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43383         (rpl_fflush): On glibc systems, simply call the system's fflush
43384         function after clearing the ungetc buffer.
43385         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43386         Instead, lseek only to the end of file, then use the system's fseeko
43387         for the rest. On glibc systems, reset the EOF indicator bit.
43388
43389 2009-01-15  Jim Meyering  <meyering@redhat.com>
43390
43391         openmp.m4: revert quote-adding change, for portability to older autoconf
43392         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43393         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43394         Simon Josefsson noticed the problem when using autoconf-2.61.
43395
43396 2009-01-15  Bruno Haible  <bruno@clisp.org>
43397
43398         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43399         * tests/test-fflush2.c (ASSERT): Always fail.
43400         (main): Add two tests for fflush() after ungetc(), taking into account
43401         the Austin Group's clarification.
43402         Suggested by Eric Blake.
43403
43404 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43405
43406         mktime.m4: remove K&R-style function prototypes
43407         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43408         for the Sun C++ compiler.
43409
43410 2009-01-14  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43413         while including <wchar.h>.
43414         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43415         the system's <wchar.h> file.
43416         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43417
43418 2009-01-14  Bruno Haible  <bruno@clisp.org>
43419
43420         * m4/csharp.m4: Don't mention gettext on the serial number line.
43421         * m4/csharpexec.m4: Likewise.
43422         * m4/eaccess.m4: Likewise.
43423         * m4/javaexec.m4: Likewise.
43424         * m4/sig_atomic_t.m4: Likewise.
43425         * m4/tmpdir.m4: Likewise.
43426         * m4/intldir.m4: Bump gettext version.
43427         * m4/lib-ld.m4: Likewise.
43428
43429 2009-01-14  Bruno Haible  <bruno@clisp.org>
43430
43431         * lib/progname.c (set_program_name): Add more comments.
43432         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43433
43434 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43435
43436         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43437         were sys/stat.h does not define it.
43438
43439 2009-01-14  Jim Meyering  <meyering@redhat.com>
43440
43441         many *.m4 files: improve m4 quoting
43442         99% of this change was performed by running the following commands:
43443         git ls-files | grep '\.m4$' | xargs perl -pi \
43444           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43445           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43446           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43447           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43448         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43449         The remainder were to add Copyright dates, increment serial numbers,
43450         undo some changes in comments, exclude m4/intl.m4, and add quotes
43451         around the "1" in ",1" where the unusual spacing prohibited the
43452         above regexps from doing the job.  For more details, see
43453         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43454         * m4/acl.m4: Modified.
43455         * m4/afs.m4: Likewise.
43456         * m4/alloca.m4: Likewise.
43457         * m4/argp.m4: Likewise.
43458         * m4/argz.m4: Likewise.
43459         * m4/atexit.m4: Likewise.
43460         * m4/bison-i18n.m4: Likewise.
43461         * m4/bison.m4: Likewise.
43462         * m4/byteswap.m4: Likewise.
43463         * m4/c-stack.m4: Likewise.
43464         * m4/c-strtod.m4: Likewise.
43465         * m4/calloc.m4: Likewise.
43466         * m4/canonicalize-lgpl.m4: Likewise.
43467         * m4/chown.m4: Likewise.
43468         * m4/clock_time.m4: Likewise.
43469         * m4/codeset.m4: Likewise.
43470         * m4/copy-file.m4: Likewise.
43471         * m4/csharp.m4: Likewise.
43472         * m4/csharpcomp.m4: Likewise.
43473         * m4/csharpexec.m4: Likewise.
43474         * m4/d-ino.m4: Likewise.
43475         * m4/d-type.m4: Likewise.
43476         * m4/dirfd.m4: Likewise.
43477         * m4/double-slash-root.m4: Likewise.
43478         * m4/eaccess.m4: Likewise.
43479         * m4/eealloc.m4: Likewise.
43480         * m4/environ.m4: Likewise.
43481         * m4/errno_h.m4: Likewise.
43482         * m4/euidaccess.m4: Likewise.
43483         * m4/execute.m4: Likewise.
43484         * m4/fatal-signal.m4: Likewise.
43485         * m4/fchdir.m4: Likewise.
43486         * m4/fcntl_h.m4: Likewise.
43487         * m4/fileblocks.m4: Likewise.
43488         * m4/filenamecat.m4: Likewise.
43489         * m4/findprog.m4: Likewise.
43490         * m4/flexmember.m4: Likewise.
43491         * m4/fnmatch.m4: Likewise.
43492         * m4/fopen.m4: Likewise.
43493         * m4/fpending.m4: Likewise.
43494         * m4/fprintf-posix.m4: Likewise.
43495         * m4/free.m4: Likewise.
43496         * m4/frexp.m4: Likewise.
43497         * m4/frexpl.m4: Likewise.
43498         * m4/fsusage.m4: Likewise.
43499         * m4/ftruncate.m4: Likewise.
43500         * m4/gc-camellia.m4: Likewise.
43501         * m4/gc-random.m4: Likewise.
43502         * m4/gc.m4: Likewise.
43503         * m4/getaddrinfo.m4: Likewise.
43504         * m4/getcwd-abort-bug.m4: Likewise.
43505         * m4/getcwd-path-max.m4: Likewise.
43506         * m4/getdate.m4: Likewise.
43507         * m4/getdomainname.m4: Likewise.
43508         * m4/getgroups.m4: Likewise.
43509         * m4/gethostname.m4: Likewise.
43510         * m4/gethrxtime.m4: Likewise.
43511         * m4/getline.m4: Likewise.
43512         * m4/getloadavg.m4: Likewise.
43513         * m4/getndelim2.m4: Likewise.
43514         * m4/getpass.m4: Likewise.
43515         * m4/gettext.m4: Likewise.
43516         * m4/gettime.m4: Likewise.
43517         * m4/gettimeofday.m4: Likewise.
43518         * m4/gnulib-common.m4: Likewise.
43519         * m4/group-member.m4: Likewise.
43520         * m4/host-os.m4: Likewise.
43521         * m4/iconv.m4: Likewise.
43522         * m4/iconv_open.m4: Likewise.
43523         * m4/inet_ntop.m4: Likewise.
43524         * m4/inet_pton.m4: Likewise.
43525         * m4/inline.m4: Likewise.
43526         * m4/intldir.m4: Likewise.
43527         * m4/intlmacosx.m4: Likewise.
43528         * m4/intmax.m4: Likewise.
43529         * m4/intmax_t.m4: Likewise.
43530         * m4/inttypes.m4: Likewise.
43531         * m4/inttypes_h.m4: Likewise.
43532         * m4/inttypes-pri.m4: Likewise.
43533         * m4/isapipe.m4: Likewise.
43534         * m4/isnand.m4: Likewise.
43535         * m4/isnanf.m4: Likewise.
43536         * m4/isnanl.m4: Likewise.
43537         * m4/javacomp.m4: Likewise.
43538         * m4/javaexec.m4: Likewise.
43539         * m4/jm-winsz1.m4: Likewise.
43540         * m4/jm-winsz2.m4: Likewise.
43541         * m4/lchown.m4: Likewise.
43542         * m4/lcmessage.m4: Likewise.
43543         * m4/ldexpl.m4: Likewise.
43544         * m4/lib-ld.m4: Likewise.
43545         * m4/lib-link.m4: Likewise.
43546         * m4/libsigsegv.m4: Likewise.
43547         * m4/link-follow.m4: Likewise.
43548         * m4/localcharset.m4: Likewise.
43549         * m4/locale-fr.m4: Likewise.
43550         * m4/locale-ja.m4: Likewise.
43551         * m4/locale-tr.m4: Likewise.
43552         * m4/locale-zh.m4: Likewise.
43553         * m4/lock.m4: Likewise.
43554         * m4/longlong.m4: Likewise.
43555         * m4/ls-mntd-fs.m4: Likewise.
43556         * m4/lstat.m4: Likewise.
43557         * m4/malloc.m4: Likewise.
43558         * m4/mathl.m4: Likewise.
43559         * m4/mbrtowc.m4: Likewise.
43560         * m4/mbstate_t.m4: Likewise.
43561         * m4/mbswidth.m4: Likewise.
43562         * m4/memchr.m4: Likewise.
43563         * m4/memcmp.m4: Likewise.
43564         * m4/memcpy.m4: Likewise.
43565         * m4/memmem.m4: Likewise.
43566         * m4/memmove.m4: Likewise.
43567         * m4/mempcpy.m4: Likewise.
43568         * m4/memrchr.m4: Likewise.
43569         * m4/memset.m4: Likewise.
43570         * m4/minmax.m4: Likewise.
43571         * m4/mkdir-slash.m4: Likewise.
43572         * m4/mkdtemp.m4: Likewise.
43573         * m4/mktime.m4: Likewise.
43574         * m4/mmap-anon.m4: Likewise.
43575         * m4/mountlist.m4: Likewise.
43576         * m4/nanosleep.m4: Likewise.
43577         * m4/nls.m4: Likewise.
43578         * m4/nocrash.m4: Likewise.
43579         * m4/open.m4: Likewise.
43580         * m4/openat.m4: Likewise.
43581         * m4/openmp.m4: Likewise.
43582         * m4/pathmax.m4: Likewise.
43583         * m4/perl.m4: Likewise.
43584         * m4/physmem.m4: Likewise.
43585         * m4/pipe.m4: Likewise.
43586         * m4/po.m4: Likewise.
43587         * m4/poll.m4: Likewise.
43588         * m4/posixtm.m4: Likewise.
43589         * m4/posixver.m4: Likewise.
43590         * m4/printf-frexp.m4: Likewise.
43591         * m4/printf-frexpl.m4: Likewise.
43592         * m4/printf-posix.m4: Likewise.
43593         * m4/printf-posix-rpl.m4: Likewise.
43594         * m4/printf.m4: Likewise.
43595         * m4/progtest.m4: Likewise.
43596         * m4/putenv.m4: Likewise.
43597         * m4/readline.m4: Likewise.
43598         * m4/readlink.m4: Likewise.
43599         * m4/readutmp.m4: Likewise.
43600         * m4/realloc.m4: Likewise.
43601         * m4/regex.m4: Likewise.
43602         * m4/relocatable.m4: Likewise.
43603         * m4/relocatable-lib.m4: Likewise.
43604         * m4/rename-dest-slash.m4: Likewise.
43605         * m4/rename.m4: Likewise.
43606         * m4/rmdir-errno.m4: Likewise.
43607         * m4/rmdir.m4: Likewise.
43608         * m4/roundf.m4: Likewise.
43609         * m4/roundl.m4: Likewise.
43610         * m4/rpmatch.m4: Likewise.
43611         * m4/save-cwd.m4: Likewise.
43612         * m4/selinux-selinux-h.m4: Likewise.
43613         * m4/setenv.m4: Likewise.
43614         * m4/settime.m4: Likewise.
43615         * m4/sig2str.m4: Likewise.
43616         * m4/sig_atomic_t.m4: Likewise.
43617         * m4/signalblocking.m4: Likewise.
43618         * m4/signbit.m4: Likewise.
43619         * m4/sigpipe.m4: Likewise.
43620         * m4/sockets.m4: Likewise.
43621         * m4/sockpfaf.m4: Likewise.
43622         * m4/st_dm_mode.m4: Likewise.
43623         * m4/stat-time.m4: Likewise.
43624         * m4/stdbool.m4: Likewise.
43625         * m4/stdint.m4: Likewise.
43626         * m4/stdint_h.m4: Likewise.
43627         * m4/stpcpy.m4: Likewise.
43628         * m4/stpncpy.m4: Likewise.
43629         * m4/strcase.m4: Likewise.
43630         * m4/strchrnul.m4: Likewise.
43631         * m4/strcspn.m4: Likewise.
43632         * m4/strdup.m4: Likewise.
43633         * m4/strftime.m4: Likewise.
43634         * m4/strndup.m4: Likewise.
43635         * m4/strnlen.m4: Likewise.
43636         * m4/strpbrk.m4: Likewise.
43637         * m4/strptime.m4: Likewise.
43638         * m4/strsep.m4: Likewise.
43639         * m4/strtod.m4: Likewise.
43640         * m4/strtoimax.m4: Likewise.
43641         * m4/strtok_r.m4: Likewise.
43642         * m4/strtol.m4: Likewise.
43643         * m4/strtoll.m4: Likewise.
43644         * m4/strtoul.m4: Likewise.
43645         * m4/strtoull.m4: Likewise.
43646         * m4/strtoumax.m4: Likewise.
43647         * m4/strverscmp.m4: Likewise.
43648         * m4/threadlib.m4: Likewise.
43649         * m4/timegm.m4: Likewise.
43650         * m4/tm_gmtoff.m4: Likewise.
43651         * m4/tmpdir.m4: Likewise.
43652         * m4/tmpfile.m4: Likewise.
43653         * m4/tzset.m4: Likewise.
43654         * m4/uintmax_t.m4: Likewise.
43655         * m4/unlinkdir.m4: Likewise.
43656         * m4/unlocked-io.m4: Likewise.
43657         * m4/uptime.m4: Likewise.
43658         * m4/userspec.m4: Likewise.
43659         * m4/utimbuf.m4: Likewise.
43660         * m4/utime.m4: Likewise.
43661         * m4/utimes-null.m4: Likewise.
43662         * m4/utimes.m4: Likewise.
43663         * m4/vararrays.m4: Likewise.
43664         * m4/vasnprintf.m4: Likewise.
43665         * m4/vfprintf-posix.m4: Likewise.
43666         * m4/vprintf-posix.m4: Likewise.
43667         * m4/wait-process.m4: Likewise.
43668         * m4/wchar_t.m4: Likewise.
43669         * m4/wint_t.m4: Likewise.
43670         * m4/write-any-file.m4: Likewise.
43671         * m4/yield.m4: Likewise.
43672
43673 2009-01-13  Bruno Haible  <bruno@clisp.org>
43674
43675         Avoid test-copy-file.sh failures when ACL support insufficient.
43676         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43677         TESTS_ENVIRONMENT.
43678         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43679         Reported by Jim Meyering.
43680
43681 2009-01-13  Bruno Haible  <bruno@clisp.org>
43682
43683         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43684         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43685         * modules/unistdio/u8-printf-parse (Files): Likewise.
43686         * modules/unistdio/u32-printf-parse (Files): Likewise.
43687         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43688
43689 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43690
43691         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43692         and m4/inttypes_h.m4 too.
43693
43694 2009-01-12  Eric Blake  <ebb9@byu.net>
43695
43696         tests: IRIX 6.2 cc can't compile -0.0 into .data
43697         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43698         rather than at compile-time.
43699         * tests/test-floorl.c (minus_zero): Likewise.
43700         * tests/test-frexpl.c (minus_zero): Likewise.
43701         * tests/test-isnan.c (minus_zerol): Likewise.
43702         * tests/test-isnanl.h (minus_zero): Likewise.
43703         * tests/test-ldexpl.c (minus_zero): Likewise.
43704         * tests/test-roundl.c (minus_zero): Likewise.
43705         * tests/test-signbit.c (minus_zerol): Likewise.
43706         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43707         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43708         * tests/test-truncl.c (minus_zero): Likewise.
43709         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43710         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43711         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43712
43713 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43714
43715         regex: fix glibc bug 9697
43716         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43717         handling.
43718
43719 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43720
43721         regex: fix glibc bug 697
43722         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43723         being NULL also if there are no backreferences.
43724
43725 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43726
43727         regex: merge glibc changes
43728         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43729         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43730         re_string_skip_chars, re_string_reconstruct): Likewise.
43731         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43732
43733 2009-01-07  Jim Meyering  <meyering@redhat.com>
43734
43735         poll: filter through cppi
43736         * lib/poll.c: Indent cpp directives to reflect nesting.
43737
43738 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43739
43740         poll: don't return uninitialized
43741         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43742
43743 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43744
43745         avoid compile failure on AIX 6.1
43746         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43747         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43748
43749 2009-01-04  Jim Meyering  <meyering@redhat.com>
43750
43751         remove duplicate inclusion of <stdio.h>
43752         * tests/test-fprintf-posix.c: Likewise.
43753         * tests/test-printf-posix.c: Likewise.
43754         * tests/test-snprintf-posix.c: Likewise.
43755         * tests/test-sprintf-posix.c: Likewise.
43756         * tests/test-vasprintf-posix.c: Likewise.
43757         * tests/test-vfprintf-posix.c: Likewise.
43758         * tests/test-vprintf-posix.c: Likewise.
43759         * tests/test-vsnprintf-posix.c: Likewise.
43760         * tests/test-vsprintf-posix.c: Likewise.
43761
43762 2009-01-03  Jim Meyering  <meyering@redhat.com>
43763
43764         gnulib-tool: fix sed-based filtering
43765         * gnulib-tool (func_filter_filelist): Remove extra backslash
43766         in sed_fff_filter definition.
43767
43768 2009-01-02  Jim Meyering  <meyering@redhat.com>
43769
43770         strftime: avoid compilation failure on Solaris 2.6
43771         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43772         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43773         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43774         be available.  Reported by Tom G. Christensen.  Details in
43775         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43776
43777 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43778             Bruno Haible  <bruno@clisp.org>
43779
43780         Speed up gnulib-tool by doing more string processing through shell
43781         built-ins.
43782         * gnulib-tool (fast_func_append): New variable.
43783         (func_remove_prefix, func_remove_suffix): New functions.
43784         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43785         (func_filter_filelist): New function.
43786         (func_get_dependencies): Use func_remove_suffix instead of sed.
43787         (func_get_automake_snippet): Use func_filter_filelist instead of a
43788         subshell and sed invocation.
43789
43790 2009-01-01  Bruno Haible  <bruno@clisp.org>
43791
43792         Fix a security bug.
43793         * gnulib-tool (func_import, import, update): Don't allow the characters
43794         '"', '$', '`', '\' in macro arguments that become part of commands that
43795         are evaluated.
43796
43797 2009-01-01  Bruno Haible  <bruno@clisp.org>
43798
43799         * gnulib-tool (func_reset_sigpipe): Add more comments.
43800
43801 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43802
43803         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43804         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43805         already know the answer.
43806
43807 2009-01-01  Jim Meyering  <meyering@redhat.com>
43808
43809         * lib/version-etc.c (version_etc_va): Update copyright year.
43810
43811 2008-12-30  Bruno Haible  <bruno@clisp.org>
43812
43813         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43814         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43815         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43816
43817 2008-12-29  Eric Blake  <ebb9@byu.net>
43818
43819         multiarch: avoid autoconf AC_REQUIRE bug
43820         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43821         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43822         2.63 and older.
43823         Reported by Bruno Haible, and analyzed in
43824         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43825
43826 2008-12-29  Bruno Haible  <bruno@clisp.org>
43827
43828         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43829         files in subdirectories correctly.
43830         Reported by Ralf Wildenhues.
43831
43832 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43833
43834         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43835         rather than 'join FILE -', for Solaris join.
43836
43837 2008-12-29  Bruno Haible  <bruno@clisp.org>
43838
43839         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43840         quoting.
43841         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43842         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43843         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43844         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43845         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43846         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43847         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43848         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43849         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43850         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43851         * m4/nls.m4 (AM_NLS): Likewise.
43852         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43853         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43854         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43855         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43856         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43857         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43858         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43859         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43860         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43861         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43862         * m4/xsize.m4 (gl_XSIZE): Likewise.
43863         Suggested by Jim Meyering.
43864
43865 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43866
43867         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43868         * lib/parse-duration.c: use a switch instead of cascading if's.
43869
43870 2008-12-29  Eric Blake  <ebb9@byu.net>
43871
43872         wchar.h: supply WEOF on Irix 5.3
43873         * lib/wchar.in.h (wint_t): Also supply WEOF.
43874         * lib/wctype.in.h (wint_t): Likewise.
43875         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43876         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43877         Reported by Tom G. Christensen.
43878
43879 2008-12-26  Bruno Haible  <bruno@clisp.org>
43880
43881         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43882         i486, i586, i686.
43883
43884 2008-12-26  Bruno Haible  <bruno@clisp.org>
43885
43886         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43887
43888 2008-12-26  Bruno Haible  <bruno@clisp.org>
43889
43890         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43891         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43892         not __STDC_CONSTANT_MACROS.
43893         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43894
43895 2008-12-25  Bruno Haible  <bruno@clisp.org>
43896
43897         Add support for universal builds to vasnprintf.
43898         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43899         universal builds, guess no.
43900         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43901         * modules/vasprintf-posix (Depends-on): Likewise.
43902         * modules/fprintf-posix (Depends-on): Likewise.
43903         * modules/vfprintf-posix (Depends-on): Likewise.
43904         * modules/snprintf-posix (Depends-on): Likewise.
43905         * modules/vsnprintf-posix (Depends-on): Likewise.
43906         * modules/sprintf-posix (Depends-on): Likewise.
43907         * modules/vsprintf-posix (Depends-on): Likewise.
43908         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43909         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43910         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43911         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43912         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43913         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43914         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43915
43916         Add support for universal builds to <inttypes.h>.
43917         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43918         _SCNu64_PREFIX): In Apple
43919         universal builds, define directly, using _LP64.
43920         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43921         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43922         * modules/inttypes (Depends-on): Add multiarch.
43923         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43924
43925         Add support for universal builds to <stdint.h>.
43926         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43927         universal builds, define directly, using _LP64.
43928         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43929         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43930         and size_t.
43931         * modules/stdint (Depends-on): Add multiarch.
43932         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43933
43934         New module 'multiarch'.
43935         * modules/multiarch: New file.
43936         * m4/multiarch.m4: New file.
43937
43938 2008-12-25  Bruno Haible  <bruno@clisp.org>
43939
43940         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43941
43942 2008-12-25  Bruno Haible  <bruno@clisp.org>
43943
43944         * modules/btowc (License): Relicense under LGPLv2+.
43945         * modules/mbsinit (License): Likewise.
43946         * modules/mbrtowc (License): Likewise.
43947         * modules/wcrtomb (License): Likewise.
43948         * modules/streq (License): Likewise.
43949         Reported by David Lutterkort <lutter@redhat.com>.
43950
43951 2008-12-23  Bruno Haible  <bruno@clisp.org>
43952
43953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43954
43955 2008-12-23  Bruno Haible  <bruno@clisp.org>
43956
43957         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43958         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43959         GETADDRINFO_LIB, not in LIBS.
43960         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43961         * modules/canon-host (Link): Likewise.
43962         * NEWS: Mention the change.
43963         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43964         GETADDRINFO_LIB.
43965
43966 2008-12-22  Bruno Haible  <bruno@clisp.org>
43967
43968         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43969         * doc/posix-functions/iswalpha_l.texi: Likewise.
43970         * doc/posix-functions/iswblank_l.texi: Likewise.
43971         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43972         * doc/posix-functions/iswctype_l.texi: Likewise.
43973         * doc/posix-functions/iswdigit_l.texi: Likewise.
43974         * doc/posix-functions/iswgraph_l.texi: Likewise.
43975         * doc/posix-functions/iswlower_l.texi: Likewise.
43976         * doc/posix-functions/iswprint_l.texi: Likewise.
43977         * doc/posix-functions/iswpunct_l.texi: Likewise.
43978         * doc/posix-functions/iswspace_l.texi: Likewise.
43979         * doc/posix-functions/iswupper_l.texi: Likewise.
43980         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43981         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43982         * doc/posix-functions/open_wmemstream.texi: Likewise.
43983         * doc/posix-functions/swscanf.texi: Likewise.
43984         * doc/posix-functions/towctrans_l.texi: Likewise.
43985         * doc/posix-functions/towlower.texi: Likewise.
43986         * doc/posix-functions/towlower_l.texi: Likewise.
43987         * doc/posix-functions/towupper.texi: Likewise.
43988         * doc/posix-functions/towupper_l.texi: Likewise.
43989         * doc/posix-functions/vfwprintf.texi: Likewise.
43990         * doc/posix-functions/vfwscanf.texi: Likewise.
43991         * doc/posix-functions/vswscanf.texi: Likewise.
43992         * doc/posix-functions/vwprintf.texi: Likewise.
43993         * doc/posix-functions/vwscanf.texi: Likewise.
43994         * doc/posix-functions/wcpcpy.texi: Likewise.
43995         * doc/posix-functions/wcpncpy.texi: Likewise.
43996         * doc/posix-functions/wcscasecmp.texi: Likewise.
43997         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43998         * doc/posix-functions/wcscoll_l.texi: Likewise.
43999         * doc/posix-functions/wcsdup.texi: Likewise.
44000         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44001         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44002         * doc/posix-functions/wcsnlen.texi: Likewise.
44003         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44004         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44005         * doc/posix-functions/wctrans_l.texi: Likewise.
44006         * doc/posix-functions/wctype_l.texi: Likewise.
44007         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44008         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44009         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44010         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44011         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44012         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44013         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44014         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44015         * doc/glibc-functions/wcschrnul.texi: Likewise.
44016         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44017         * doc/glibc-functions/wcstod_l.texi: Likewise.
44018         * doc/glibc-functions/wcstof_l.texi: Likewise.
44019         * doc/glibc-functions/wcstol_l.texi: Likewise.
44020         * doc/glibc-functions/wcstold_l.texi: Likewise.
44021         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44022         * doc/glibc-functions/wcstoq.texi: Likewise.
44023         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44024         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44025         * doc/glibc-functions/wcstouq.texi: Likewise.
44026         * doc/glibc-functions/wmempcpy.texi: Likewise.
44027
44028 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44029             Eric Blake  <ebb9@byu.net>
44030             Paolo Bonzini  <bonzini@gnu.org>
44031             Bruno Haible  <bruno@clisp.org>
44032
44033         Make c-stack work on Haiku.
44034         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44035         (c_stack_action): Use SA_ONSTACK flag.
44036
44037 2008-12-22  Bruno Haible  <bruno@clisp.org>
44038
44039         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44040
44041 2008-12-22  Bruno Haible  <bruno@clisp.org>
44042
44043         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44044         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44045         being overridden.
44046         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44047         New macros.
44048         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44050         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44051         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44052
44053 2008-12-22  Bruno Haible  <bruno@clisp.org>
44054
44055         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44056         from test code.
44057
44058 2008-12-22  Eric Blake  <ebb9@byu.net>
44059
44060         Avoid gcc warnings on cygwin.
44061         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44062         Avoid unused variable.
44063         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44064         Likewise.
44065
44066 2008-12-22  Bruno Haible  <bruno@clisp.org>
44067
44068         Remove HAVE_MBRTOWC conditionals.
44069         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44070         (mbscasecmp): Assume mbrtowc function.
44071         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44072         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44073         * lib/mbschr.c: Include mbuiter.h unconditionally.
44074         (mbschr): Assume mbrtowc function.
44075         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44076         (mbscspn): Assume mbrtowc function.
44077         * lib/mbslen.c: Include mbuiter.h unconditionally.
44078         (mbslen): Assume mbrtowc function.
44079         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44080         (mbsncasecmp): Assume mbrtowc function.
44081         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44082         (mbsnlen): Assume mbrtowc function.
44083         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44084         (mbspbrk): Assume mbrtowc function.
44085         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44086         (mbspcasecmp): Assume mbrtowc function.
44087         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44088         (mbsrchr): Assume mbrtowc function.
44089         * lib/mbssep.c: Include mbuiter.h unconditionally.
44090         (mbssep): Assume mbrtowc function.
44091         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44092         (mbsspn): Assume mbrtowc function.
44093         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44094         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44095         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44096         (mbstok_r): Assume mbrtowc function.
44097         * lib/propername.c: Include mbuiter.h unconditionally.
44098         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44099         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44100         (trim2): Assume mbrtowc function.
44101         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44102         (mbsnwidth): Assume mbrtowc function.
44103         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44104         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44105         fallback definitions.
44106         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44107
44108 2008-12-22  Bruno Haible  <bruno@clisp.org>
44109
44110         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44111
44112 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44113
44114         * modules/regex: Request emulations for the mb*/wc* functions we need.
44115         * m4/regex.m4: Don't look for those functions here.
44116         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44117
44118 2008-12-22  Bruno Haible  <bruno@clisp.org>
44119
44120         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44121
44122 2008-12-21  Bruno Haible  <bruno@clisp.org>
44123
44124         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44125         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44126         (Include): Remove conditionalization.
44127         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44128         (Include): Remove conditionalization.
44129         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44130         (Include): Remove conditionalization.
44131         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44132         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44133         * NEWS: Mention the change.
44134         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44135         via Sergey Poznyakoff <gray@gnu.org.ua>.
44136
44137 2008-12-21  Bruno Haible  <bruno@clisp.org>
44138
44139         * MODULES.html.sh (Extended multibyte and wide character utilities
44140         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44141         wcrtomb, wcsrtombs.
44142         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44143         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44144         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44145         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44146
44147 2008-12-21  Bruno Haible  <bruno@clisp.org>
44148
44149         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44150
44151 2008-12-21  Bruno Haible  <bruno@clisp.org>
44152
44153         * modules/wcsnrtombs-tests: New file.
44154         * tests/test-wcsnrtombs1.sh: New file.
44155         * tests/test-wcsnrtombs2.sh: New file.
44156         * tests/test-wcsnrtombs3.sh: New file.
44157         * tests/test-wcsnrtombs4.sh: New file.
44158         * tests/test-wcsnrtombs.c: New file.
44159
44160         New module 'wcsnrtombs'.
44161         * lib/wchar.in.h (wcsnrtombs): New declaration.
44162         * lib/wcsnrtombs.c: New file.
44163         * lib/wcsrtombs-state.c: New file.
44164         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44165         (internal_state): Remove variable.
44166         * m4/wcsnrtombs.m4: New file.
44167         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44168         compilation units.
44169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44170         HAVE_WCSNRTOMBS.
44171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44172         HAVE_WCSNRTOMBS.
44173         * modules/wcsnrtombs: New file.
44174         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44175         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44176
44177 2008-12-21  Bruno Haible  <bruno@clisp.org>
44178
44179         * modules/wcsrtombs-tests: New file.
44180         * tests/test-wcsrtombs1.sh: New file.
44181         * tests/test-wcsrtombs2.sh: New file.
44182         * tests/test-wcsrtombs3.sh: New file.
44183         * tests/test-wcsrtombs4.sh: New file.
44184         * tests/test-wcsrtombs.c: New file.
44185
44186         New module 'wcsrtombs'.
44187         * lib/wchar.in.h (wcsrtombs): New declaration.
44188         * lib/wcsrtombs.c: New file.
44189         * m4/wcsrtombs.m4: New file.
44190         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44191         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44193         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44194         * modules/wcsrtombs: New file.
44195         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44196         bugs.
44197
44198 2008-12-21  Bruno Haible  <bruno@clisp.org>
44199
44200         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44201         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44202         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44203         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44204         if not correct.
44205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44206         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44207         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44208         m4/locale-zh.m4, m4/codeset.m4.
44209         * doc/posix-functions/wcrtomb.texi: Document the bug.
44210
44211 2008-12-21  Bruno Haible  <bruno@clisp.org>
44212
44213         Work around a btowc() bug on IRIX 6.5.
44214         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44215         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44216         REPLACE_WTOBC if not.
44217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44218         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44219         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44220
44221 2008-12-21  Bruno Haible  <bruno@clisp.org>
44222
44223         * modules/wcrtomb-tests: New file.
44224         * tests/test-wcrtomb.sh: New file.
44225         * tests/test-wcrtomb.c: New file.
44226
44227         New module 'wcrtomb'.
44228         * lib/wchar.in.h (wcrtomb): New declaration.
44229         * lib/wcrtomb.c: New file.
44230         * m4/wcrtomb.m4: New file.
44231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44232         HAVE_WCRTOMB.
44233         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44234         HAVE_WCRTOMB.
44235         * modules/wcrtomb: New file.
44236         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44237
44238 2008-12-21  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44241         * modules/mbsrtowcs (Files): Likewise.
44242         * modules/wctob (Files): Likewise.
44243         * modules/c-strcase-tests (Files): Likewise.
44244         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44245         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44246         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44247         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44248         * modules/vasnprintf-posix-tests (Files): Likewise.
44249
44250 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44251
44252         gitlog-to-changelog: pass all command-line arguments to git-log
44253         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44254         it is sometimes convenient to filter the commits in various ways.
44255         gitlog-to-changelog only allows --since to specify a start date,
44256         but git-log itself supports many other filtering mechanisms.
44257         At the moment, I want to filter by branch name.  Rather than
44258         adding a --branch option to gitlog-to-changelog, it seems more
44259         flexible to simply pass all options directly to git-log and let
44260         git do the work.  Notice that this effectively makes --since a
44261         redundant option for gitlog-to-changelog, but removing it would
44262         require current usage to change since calls would then require
44263         an additional '--'.
44264
44265 2008-12-21  Bruno Haible  <bruno@clisp.org>
44266
44267         * modules/mbsnrtowcs-tests: New file.
44268         * tests/test-mbsnrtowcs1.sh: New file.
44269         * tests/test-mbsnrtowcs2.sh: New file.
44270         * tests/test-mbsnrtowcs3.sh: New file.
44271         * tests/test-mbsnrtowcs4.sh: New file.
44272         * tests/test-mbsnrtowcs.c: New file.
44273
44274         New module 'mbsnrtowcs'.
44275         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44276         * lib/mbsnrtowcs.c: New file.
44277         * lib/mbsrtowcs-state.c: New file.
44278         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44279         (internal_state): Remove variable.
44280         * m4/mbsnrtowcs.m4: New file.
44281         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44282         compilation units.
44283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44284         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44285         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44286         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44287         * modules/mbsnrtowcs: New file.
44288         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44289         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44290         portability problem.
44291
44292 2008-12-21  Bruno Haible  <bruno@clisp.org>
44293
44294         Work around mbsrtowcs bug.
44295         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44296         (gl_FUNC_MBSRTOWCS): Invoke it.
44297         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44298         m4/locale-zh.m4.
44299         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44300
44301 2008-12-21  Bruno Haible  <bruno@clisp.org>
44302
44303         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44304
44305 2008-12-21  Bruno Haible  <bruno@clisp.org>
44306
44307         Update doc for AIX.
44308         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44309         16-bit wchar_t type.
44310         * doc/posix-functions/btowc.texi: Likewise.
44311         * doc/posix-functions/fgetwc.texi: Likewise.
44312         * doc/posix-functions/fgetws.texi: Likewise.
44313         * doc/posix-functions/fputwc.texi: Likewise.
44314         * doc/posix-functions/fputws.texi: Likewise.
44315         * doc/posix-functions/fwide.texi: Likewise.
44316         * doc/posix-functions/fwprintf.texi: Likewise.
44317         * doc/posix-functions/fwscanf.texi: Likewise.
44318         * doc/posix-functions/getwchar.texi: Likewise.
44319         * doc/posix-functions/getwc.texi: Likewise.
44320         * doc/posix-functions/iswalnum.texi: Likewise.
44321         * doc/posix-functions/iswalpha.texi: Likewise.
44322         * doc/posix-functions/iswblank.texi: Likewise.
44323         * doc/posix-functions/iswcntrl.texi: Likewise.
44324         * doc/posix-functions/iswctype.texi: Likewise.
44325         * doc/posix-functions/iswdigit.texi: Likewise.
44326         * doc/posix-functions/iswgraph.texi: Likewise.
44327         * doc/posix-functions/iswlower.texi: Likewise.
44328         * doc/posix-functions/iswprint.texi: Likewise.
44329         * doc/posix-functions/iswpunct.texi: Likewise.
44330         * doc/posix-functions/iswspace.texi: Likewise.
44331         * doc/posix-functions/iswupper.texi: Likewise.
44332         * doc/posix-functions/iswxdigit.texi: Likewise.
44333         * doc/posix-functions/mbrtowc.texi: Likewise.
44334         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44335         * doc/posix-functions/mbstowcs.texi: Likewise.
44336         * doc/posix-functions/mbtowc.texi: Likewise.
44337         * doc/posix-functions/putwchar.texi: Likewise.
44338         * doc/posix-functions/putwc.texi: Likewise.
44339         * doc/posix-functions/swprintf.texi: Likewise.
44340         * doc/posix-functions/tolower.texi: Likewise.
44341         * doc/posix-functions/toupper.texi: Likewise.
44342         * doc/posix-functions/towctrans.texi: Likewise.
44343         * doc/posix-functions/ungetwc.texi: Likewise.
44344         * doc/posix-functions/vswprintf.texi: Likewise.
44345         * doc/posix-functions/wcrtomb.texi: Likewise.
44346         * doc/posix-functions/wcscat.texi: Likewise.
44347         * doc/posix-functions/wcschr.texi: Likewise.
44348         * doc/posix-functions/wcscmp.texi: Likewise.
44349         * doc/posix-functions/wcscoll.texi: Likewise.
44350         * doc/posix-functions/wcscpy.texi: Likewise.
44351         * doc/posix-functions/wcscspn.texi: Likewise.
44352         * doc/posix-functions/wcsftime.texi: Likewise.
44353         * doc/posix-functions/wcslen.texi: Likewise.
44354         * doc/posix-functions/wcsncat.texi: Likewise.
44355         * doc/posix-functions/wcsncmp.texi: Likewise.
44356         * doc/posix-functions/wcsncpy.texi: Likewise.
44357         * doc/posix-functions/wcspbrk.texi: Likewise.
44358         * doc/posix-functions/wcsrchr.texi: Likewise.
44359         * doc/posix-functions/wcsrtombs.texi: Likewise.
44360         * doc/posix-functions/wcsspn.texi: Likewise.
44361         * doc/posix-functions/wcsstr.texi: Likewise.
44362         * doc/posix-functions/wcstod.texi: Likewise.
44363         * doc/posix-functions/wcstof.texi: Likewise.
44364         * doc/posix-functions/wcstoimax.texi: Likewise.
44365         * doc/posix-functions/wcstok.texi: Likewise.
44366         * doc/posix-functions/wcstold.texi: Likewise.
44367         * doc/posix-functions/wcstoll.texi: Likewise.
44368         * doc/posix-functions/wcstol.texi: Likewise.
44369         * doc/posix-functions/wcstombs.texi: Likewise.
44370         * doc/posix-functions/wcstoull.texi: Likewise.
44371         * doc/posix-functions/wcstoul.texi: Likewise.
44372         * doc/posix-functions/wcstoumax.texi: Likewise.
44373         * doc/posix-functions/wcswidth.texi: Likewise.
44374         * doc/posix-functions/wcsxfrm.texi: Likewise.
44375         * doc/posix-functions/wctob.texi: Likewise.
44376         * doc/posix-functions/wctomb.texi: Likewise.
44377         * doc/posix-functions/wctrans.texi: Likewise.
44378         * doc/posix-functions/wctype.texi: Likewise.
44379         * doc/posix-functions/wcwidth.texi: Likewise.
44380         * doc/posix-functions/wmemchr.texi: Likewise.
44381         * doc/posix-functions/wmemcmp.texi: Likewise.
44382         * doc/posix-functions/wmemcpy.texi: Likewise.
44383         * doc/posix-functions/wmemmove.texi: Likewise.
44384         * doc/posix-functions/wmemset.texi: Likewise.
44385         * doc/posix-functions/wprintf.texi: Likewise.
44386         * doc/posix-functions/wscanf.texi: Likewise.
44387
44388 2008-12-21  Bruno Haible  <bruno@clisp.org>
44389
44390         Update doc for HP-UX 11.11.
44391         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44392         in HP-UX version 11.00, not in all versions of HP-UX 11.
44393         * doc/posix-functions/fwide.texi: Likewise.
44394         * doc/posix-functions/fwprintf.texi: Likewise.
44395         * doc/posix-functions/fwscanf.texi: Likewise.
44396         * doc/posix-functions/inet_ntop.texi: Likewise.
44397         * doc/posix-functions/inet_pton.texi: Likewise.
44398         * doc/posix-functions/mbrlen.texi: Likewise.
44399         * doc/posix-functions/mbrtowc.texi: Likewise.
44400         * doc/posix-functions/mbsinit.texi: Likewise.
44401         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44402         * doc/posix-functions/swprintf.texi: Likewise.
44403         * doc/posix-functions/swscanf.texi: Likewise.
44404         * doc/posix-functions/towctrans.texi: Likewise.
44405         * doc/posix-functions/vfwprintf.texi: Likewise.
44406         * doc/posix-functions/vswprintf.texi: Likewise.
44407         * doc/posix-functions/vwprintf.texi: Likewise.
44408         * doc/posix-functions/wcrtomb.texi: Likewise.
44409         * doc/posix-functions/wcsrtombs.texi: Likewise.
44410         * doc/posix-functions/wcsstr.texi: Likewise.
44411         * doc/posix-functions/wctob.texi: Likewise.
44412         * doc/posix-functions/wctrans.texi: Likewise.
44413         * doc/posix-functions/wmemchr.texi: Likewise.
44414         * doc/posix-functions/wmemcmp.texi: Likewise.
44415         * doc/posix-functions/wmemcpy.texi: Likewise.
44416         * doc/posix-functions/wmemmove.texi: Likewise.
44417         * doc/posix-functions/wmemset.texi: Likewise.
44418         * doc/posix-functions/wprintf.texi: Likewise.
44419         * doc/posix-functions/wscanf.texi: Likewise.
44420
44421 2008-12-21  Bruno Haible  <bruno@clisp.org>
44422
44423         Work around a portability problem.
44424         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44425         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44426
44427 2008-12-20  Bruno Haible  <bruno@clisp.org>
44428
44429         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44430         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44431         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44432         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44433         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44434
44435         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44436         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44437         set.
44438         (GNULIB_defined_mbstate_t): New macro.
44439         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44440         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44441         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44442         reuses the system's mbrtowc function but works around the bugs.
44443         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44444         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44445         macros.
44446         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44447         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44448         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44449         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44450         REPLACE_MBSINIT if mbsinit needs to be overridden.
44451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44452         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44453         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44454         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44455         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44456         m4/locale-zh.m4.
44457         (Depends): Add mbsinit.
44458         * modules/mbsinit (Depends): Add mbrtowc.
44459         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44460
44461 2008-12-20  Bruno Haible  <bruno@clisp.org>
44462
44463         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44464         so that there are no conversion errors on AIX.
44465         * tests/test-mbsrtowcs.c (main): LIkewise.
44466
44467 2008-12-20  Bruno Haible  <bruno@clisp.org>
44468
44469         Work around wctob bug on Solaris <= 9.
44470         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44471         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44473         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44474         * modules/wctob (Files): Add m4/locale-fr.m4.
44475         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44476
44477 2008-12-20  Bruno Haible  <bruno@clisp.org>
44478
44479         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44480         /dev/null.
44481         * tests/test-select-in.sh: Likewise.
44482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44483
44484 2008-12-20  Bruno Haible  <bruno@clisp.org>
44485
44486         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44487         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44488         Cygwin 1.5.x.
44489
44490 2008-12-20  Bruno Haible  <bruno@clisp.org>
44491
44492         Ensure mbstate_t is defined on HP-UX 11.11.
44493         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44494         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44495         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44496         AC_USE_SYSTEM_EXTENSIONS.
44497         * modules/fnmatch (Depends-on): Add extensions.
44498         * modules/mbrlen (Depends-on): Likewise.
44499         * modules/mbrtowc (Depends-on): Likewise.
44500         * modules/mbsinit (Depends-on): Likewise.
44501         * modules/mbsrtowcs (Depends-on): Likewise.
44502         * modules/mbswidth (Depends-on): Likewise.
44503         * modules/quotearg (Depends-on): Likewise.
44504         * modules/strftime (Depends-on): Likewise.
44505
44506 2008-12-20  Bruno Haible  <bruno@clisp.org>
44507
44508         Ensure wctob is declared on IRIX 6.5.
44509         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44510         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44511         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44513         of HAVE_WCTOB.
44514         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44515         HAVE_WCTOB.
44516         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44517
44518 2008-12-19  Bruno Haible  <bruno@clisp.org>
44519
44520         * modules/mbsrtowcs-tests: New file.
44521         * tests/test-mbsrtowcs1.sh: New file.
44522         * tests/test-mbsrtowcs2.sh: New file.
44523         * tests/test-mbsrtowcs3.sh: New file.
44524         * tests/test-mbsrtowcs4.sh: New file.
44525         * tests/test-mbsrtowcs.c: New file.
44526
44527         New module 'mbsrtowcs'.
44528         * lib/wchar.in.h (mbsrtowcs): New declaration.
44529         * lib/mbsrtowcs.c: New file.
44530         * m4/mbsrtowcs.m4: New file.
44531         * modules/mbsrtowcs: New file.
44532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44533         HAVE_MBSRTOWCS.
44534         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44535         HAVE_MBSRTOWCS.
44536         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44537
44538 2008-12-19  Bruno Haible  <bruno@clisp.org>
44539
44540         New module 'mbrlen'.
44541         * lib/wchar.in.h (mbrlen): New declaration.
44542         * lib/mbrlen.c: New file.
44543         * m4/mbrlen.m4: New file.
44544         * modules/mbrlen: New file.
44545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44546         HAVE_MBRLEN.
44547         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44548         HAVE_MBRLEN.
44549         * doc/posix-functions/mbrlen.texi: Document the new module.
44550
44551 2008-12-19  Bruno Haible  <bruno@clisp.org>
44552
44553         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44554         * modules/mbrtowc (Depends-on): Add verify.
44555         Suggested by Paul Eggert.
44556
44557 2008-12-18  Bruno Haible  <bruno@clisp.org>
44558
44559         * modules/mbsinit-tests: New file.
44560         * tests/test-mbsinit.sh: New file.
44561         * tests/test-mbsinit.c: New file.
44562
44563 2008-12-18  Bruno Haible  <bruno@clisp.org>
44564
44565         * modules/mbrtowc-tests: New file.
44566         * tests/test-mbrtowc1.sh: New file.
44567         * tests/test-mbrtowc2.sh: New file.
44568         * tests/test-mbrtowc3.sh: New file.
44569         * tests/test-mbrtowc4.sh: New file.
44570         * tests/test-mbrtowc.c: New file.
44571
44572         New module 'mbrtowc'.
44573         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44574         mbsinit and mbrtowc.
44575         (mbrtowc): New declaration.
44576         * lib/mbrtowc.c: New file.
44577         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44578         * modules/mbrtowc: New file.
44579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44580         HAVE_MBRTOWC.
44581         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44582         HAVE_MBRTOWC.
44583         * doc/posix-functions/mbrtowc.texi: Document the new module.
44584
44585 2008-12-18  Bruno Haible  <bruno@clisp.org>
44586
44587         New module 'wctob'.
44588         * lib/wchar.in.h (wctob): New declaration.
44589         * lib/wctob.c: New file.
44590         * m4/wctob.m4: New file.
44591         * modules/wctob: New file.
44592         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44593         HAVE_WCTOB.
44594         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44595         * doc/posix-functions/wctob.texi: Document the new module.
44596
44597 2008-12-18  Bruno Haible  <bruno@clisp.org>
44598
44599         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44600         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44601
44602 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44603
44604         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44605         G. Christensen" <tgc@jupiterrise.com>.
44606
44607         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44608         G. Christensen" <tgc@jupiterrise.com>.
44609
44610         * lib/flock.c: Need to include string.h.  Reported by "Tom
44611         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44612         <ebb9@byu.net>.
44613
44614 2008-12-18  Bruno Haible  <bruno@clisp.org>
44615
44616         * m4/locale-ja.m4: New file, from GNU gettext.
44617
44618 2008-12-17  Bruno Haible  <bruno@clisp.org>
44619
44620         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44621         Suggested by Eric Blake.
44622
44623 2008-12-17  Bruno Haible  <bruno@clisp.org>
44624
44625         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44626
44627 2008-12-17  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44630         * modules/mbsinit (Depends-on): Add verify.
44631         Suggested by Paul Eggert.
44632
44633 2008-12-17  Bruno Haible  <bruno@clisp.org>
44634
44635         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44636         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44637         gl_FUNC_MBRTOWC.
44638         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44639         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44640         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44641         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44642         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44643         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44644         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44645         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44646         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44647         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44648         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44649         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44650         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44651         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44652         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44653         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44654         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44655         * modules/trim (configure.ac): Likewise.
44656
44657 2008-12-17  Bruno Haible  <bruno@clisp.org>
44658
44659         * modules/btowc-tests: New file.
44660         * tests/test-btowc1.sh: New file.
44661         * tests/test-btowc2.sh: New file.
44662         * tests/test-btowc.c: New file.
44663
44664         New module 'btowc'.
44665         * lib/wchar.in.h (btowc): New declaration.
44666         * lib/btowc.c: New file.
44667         * m4/btowc.m4: New file.
44668         * modules/btowc: New file.
44669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44670         HAVE_BTOWC.
44671         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44672         * doc/posix-functions/btowc.texi: Document the new module.
44673
44674 2008-12-17  Bruno Haible  <bruno@clisp.org>
44675
44676         New module 'mbsinit'.
44677         * lib/wchar.in.h (mbsinit): New declaration.
44678         * lib/mbsinit.c: New file.
44679         * m4/mbsinit.m4: New file.
44680         * modules/mbsinit: New file.
44681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44682         HAVE_MBSINIT.
44683         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44684         HAVE_MBSINIT.
44685         * doc/posix-functions/mbsinit.texi: Document the new module.
44686
44687 2008-12-16  Bruno Haible  <bruno@clisp.org>
44688
44689         * lib/unistd.in.h: Add comment.
44690         * tests/test-environ.c: Don't include <stdlib.h>.
44691
44692 2008-12-16  Bruno Haible  <bruno@clisp.org>
44693
44694         * lib/parse-duration.h (parse_duration): Document return value
44695         convention.
44696         * lib/parse-duration.c: Include specification header first. Add
44697         comments.
44698         (_): Remove macro.
44699         (parse_year_month_day, parse_hour_minute_second): Move side effects
44700         outside of strchr call.
44701         (parse_non_iso8601): Move side effects outside of isspace call.
44702         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44703         call.
44704
44705 2008-12-16  Bruno Haible  <bruno@clisp.org>
44706
44707         * tests/test-parse-duration.sh: Produce no output when the test
44708         succeeds.
44709
44710 2008-12-16  Bruno Haible  <bruno@clisp.org>
44711
44712         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44713         expressions.
44714
44715 2008-12-15  Bruno Haible  <bruno@clisp.org>
44716
44717         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44718         * doc/glibc-functions/flistxattr.texi: Likewise.
44719         * doc/glibc-functions/fopencookie.texi: Likewise.
44720         * doc/glibc-functions/fremovexattr.texi: Likewise.
44721         * doc/glibc-functions/fsetxattr.texi: Likewise.
44722         * doc/glibc-functions/getxattr.texi: Likewise.
44723         * doc/glibc-functions/lgetxattr.texi: Likewise.
44724         * doc/glibc-functions/listxattr.texi: Likewise.
44725         * doc/glibc-functions/llistxattr.texi: Likewise.
44726         * doc/glibc-functions/lremovexattr.texi: Likewise.
44727         * doc/glibc-functions/lsetxattr.texi: Likewise.
44728         * doc/glibc-functions/removexattr.texi: Likewise.
44729         * doc/glibc-functions/setxattr.texi: Likewise.
44730         * doc/posix-functions/open_memstream.texi: Likewise.
44731
44732 2008-12-15  Eric Blake  <ebb9@byu.net>
44733
44734         Update doc for cygwin 1.7.
44735         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44736         functions.
44737         * doc/posix-functions/fchmodat.texi: Likewise.
44738         * doc/posix-functions/fchownat.texi: Likewise.
44739         * doc/posix-functions/fdopendir.texi: Likewise.
44740         * doc/posix-functions/fmemopen.texi: Likewise.
44741         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44742         * doc/posix-functions/fstatat.texi: Likewise.
44743         * doc/posix-functions/futimens.texi: Likewise.
44744         * doc/posix-functions/gai_strerror.texi: Likewise.
44745         * doc/posix-functions/getaddrinfo.texi: Likewise.
44746         * doc/posix-functions/getnameinfo.texi: Likewise.
44747         * doc/posix-functions/if_freenameindex.texi: Likewise.
44748         * doc/posix-functions/if_indextoname.texi: Likewise.
44749         * doc/posix-functions/if_nameindex.texi: Likewise.
44750         * doc/posix-functions/if_nametoindex.texi: Likewise.
44751         * doc/posix-functions/insque.texi: Likewise.
44752         * doc/posix-functions/linkat.texi: Likewise.
44753         * doc/posix-functions/llrint.texi: Likewise.
44754         * doc/posix-functions/llrintf.texi: Likewise.
44755         * doc/posix-functions/llrintl.texi: Likewise.
44756         * doc/posix-functions/lockf.texi: Likewise.
44757         * doc/posix-functions/lrintl.texi: Likewise.
44758         * doc/posix-functions/mkdirat.texi: Likewise.
44759         * doc/posix-functions/mkfifoat.texi: Likewise.
44760         * doc/posix-functions/mknodat.texi: Likewise.
44761         * doc/posix-functions/mq_close.texi: Likewise.
44762         * doc/posix-functions/mq_getattr.texi: Likewise.
44763         * doc/posix-functions/mq_notify.texi: Likewise.
44764         * doc/posix-functions/mq_open.texi: Likewise.
44765         * doc/posix-functions/mq_receive.texi: Likewise.
44766         * doc/posix-functions/mq_send.texi: Likewise.
44767         * doc/posix-functions/mq_setattr.texi: Likewise.
44768         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44769         * doc/posix-functions/mq_timedsend.texi: Likewise.
44770         * doc/posix-functions/mq_unlink.texi: Likewise.
44771         * doc/posix-functions/open_memstream.texi: Likewise.
44772         * doc/posix-functions/openat.texi: Likewise.
44773         * doc/posix-functions/posix_fadvise.texi: Likewise.
44774         * doc/posix-functions/posix_fallocate.texi: Likewise.
44775         * doc/posix-functions/posix_madvise.texi: Likewise.
44776         * doc/posix-functions/posix_memalign.texi: Likewise.
44777         * doc/posix-functions/posix_openpt.texi: Likewise.
44778         * doc/posix-functions/readlinkat.texi: Likewise.
44779         * doc/posix-functions/remque.texi: Likewise.
44780         * doc/posix-functions/renameat.texi: Likewise.
44781         * doc/posix-functions/rintl.texi: Likewise.
44782         * doc/posix-functions/sem_unlink.texi: Likewise.
44783         * doc/posix-functions/shm_open.texi: Likewise.
44784         * doc/posix-functions/shm_unlink.texi: Likewise.
44785         * doc/posix-functions/signgam.texi: Likewise.
44786         * doc/posix-functions/sigset.texi: Likewise.
44787         * doc/posix-functions/stpcpy.texi: Likewise.
44788         * doc/posix-functions/stpncpy.texi: Likewise.
44789         * doc/posix-functions/strerror.texi: Likewise.
44790         * doc/posix-functions/strtod.texi: Likewise.
44791         * doc/posix-functions/symlinkat.texi: Likewise.
44792         * doc/posix-functions/unlinkat.texi: Likewise.
44793         * doc/posix-functions/utimensat.texi: Likewise.
44794         * doc/glibc-functions/bindresvport.texi: Likewise.
44795         * doc/glibc-functions/dn_expand.texi: Likewise.
44796         * doc/glibc-functions/exp10.texi: Likewise.
44797         * doc/glibc-functions/exp10f.texi: Likewise.
44798         * doc/glibc-functions/fgetxattr.texi: Likewise.
44799         * doc/glibc-functions/flistxattr.texi: Likewise.
44800         * doc/glibc-functions/fopencookie.texi: Likewise.
44801         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44802         * doc/glibc-functions/fremovexattr.texi: Likewise.
44803         * doc/glibc-functions/fsetxattr.texi: Likewise.
44804         * doc/glibc-functions/getifaddrs.texi: Likewise.
44805         * doc/glibc-functions/getxattr.texi: Likewise.
44806         * doc/glibc-functions/lgetxattr.texi: Likewise.
44807         * doc/glibc-functions/listxattr.texi: Likewise.
44808         * doc/glibc-functions/llistxattr.texi: Likewise.
44809         * doc/glibc-functions/lremovexattr.texi: Likewise.
44810         * doc/glibc-functions/lsetxattr.texi: Likewise.
44811         * doc/glibc-functions/pow10.texi: Likewise.
44812         * doc/glibc-functions/pow10f.texi: Likewise.
44813         * doc/glibc-functions/rcmd_af.texi: Likewise.
44814         * doc/glibc-functions/removexattr.texi: Likewise.
44815         * doc/glibc-functions/res_init.texi: Likewise.
44816         * doc/glibc-functions/res_mkquery.texi: Likewise.
44817         * doc/glibc-functions/res_query.texi: Likewise.
44818         * doc/glibc-functions/res_querydomain.texi: Likewise.
44819         * doc/glibc-functions/res_send.texi: Likewise.
44820         * doc/glibc-functions/rresvport_af.texi: Likewise.
44821         * doc/glibc-functions/setxattr.texi: Likewise.
44822         * doc/glibc-functions/strcasestr.texi: Likewise.
44823
44824 2008-12-15  Bruno Haible  <bruno@clisp.org>
44825
44826         Fix compilation error on OSF/1 4.0.
44827         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44828         <sys/time.h>, simply delegate to the system header.
44829         Reported by Daniel Richard G. <oss@teragram.com>.
44830
44831 2008-12-15  Bruno Haible  <bruno@clisp.org>
44832
44833         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44834         * doc/posix-functions/fchmodat.texi: Likewise.
44835         * doc/posix-functions/fchownat.texi: Likewise.
44836         * doc/posix-functions/fdopendir.texi: Likewise.
44837         * doc/posix-functions/fstatat.texi: Likewise.
44838         * doc/posix-functions/mkdirat.texi: Likewise.
44839         * doc/posix-functions/unlinkat.texi: Likewise.
44840
44841 2008-12-14  Bruno Haible  <bruno@clisp.org>
44842
44843         Update doc for POSIX:2008.
44844         * doc/posix-functions/faccessat.texi: New file.
44845         * doc/posix-functions/fchmodat.texi: New file.
44846         * doc/posix-functions/fchownat.texi: New file.
44847         * doc/posix-functions/fdopendir.texi: New file.
44848         * doc/posix-functions/fstatat.texi: New file.
44849         * doc/posix-functions/futimens.texi: New file.
44850         * doc/posix-functions/linkat.texi: New file.
44851         * doc/posix-functions/mkdirat.texi: New file.
44852         * doc/posix-functions/mkfifoat.texi: New file.
44853         * doc/posix-functions/mknodat.texi: New file.
44854         * doc/posix-functions/open_wmemstream.texi: New file.
44855         * doc/posix-functions/openat.texi: New file.
44856         * doc/posix-functions/psiginfo.texi: New file.
44857         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44858         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44859         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44860         * doc/posix-functions/readlinkat.texi: New file.
44861         * doc/posix-functions/renameat.texi: New file.
44862         * doc/posix-functions/strerror_l.texi: New file.
44863         * doc/posix-functions/symlinkat.texi: New file.
44864         * doc/posix-functions/unlinkat.texi: New file.
44865         * doc/posix-functions/utimensat.texi: New file.
44866         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44867
44868 2008-12-14  Bruno Haible  <bruno@clisp.org>
44869
44870         Update doc for POSIX:2008.
44871         * doc/posix-functions/alphasort.texi: Renamed from
44872         doc/glibc-functions/alphasort.texi.
44873         * doc/posix-functions/dirfd.texi: Renamed from
44874         doc/glibc-functions/dirfd.texi.
44875         * doc/posix-functions/dprintf.texi: Renamed from
44876         doc/glibc-functions/dprintf.texi.
44877         * doc/posix-functions/duplocale.texi: Renamed from
44878         doc/glibc-functions/duplocale.texi.
44879         * doc/posix-functions/fexecve.texi: Renamed from
44880         doc/glibc-functions/fexecve.texi.
44881         * doc/posix-functions/fmemopen.texi: Renamed from
44882         doc/glibc-functions/fmemopen.texi.
44883         * doc/posix-functions/freelocale.texi: Renamed from
44884         doc/glibc-functions/freelocale.texi.
44885         * doc/posix-functions/getdate_err.texi: Renamed from
44886         doc/glibc-functions/getdate_err.texi.
44887         * doc/posix-functions/isalnum_l.texi: Renamed from
44888         doc/glibc-functions/isalnum_l.texi.
44889         * doc/posix-functions/isalpha_l.texi: Renamed from
44890         doc/glibc-functions/isalpha_l.texi.
44891         * doc/posix-functions/isblank_l.texi: Renamed from
44892         doc/glibc-functions/isblank_l.texi.
44893         * doc/posix-functions/iscntrl_l.texi: Renamed from
44894         doc/glibc-functions/iscntrl_l.texi.
44895         * doc/posix-functions/isdigit_l.texi: Renamed from
44896         doc/glibc-functions/isdigit_l.texi.
44897         * doc/posix-functions/isgraph_l.texi: Renamed from
44898         doc/glibc-functions/isgraph_l.texi.
44899         * doc/posix-functions/islower_l.texi: Renamed from
44900         doc/glibc-functions/islower_l.texi.
44901         * doc/posix-functions/isprint_l.texi: Renamed from
44902         doc/glibc-functions/isprint_l.texi.
44903         * doc/posix-functions/ispunct_l.texi: Renamed from
44904         doc/glibc-functions/ispunct_l.texi.
44905         * doc/posix-functions/isspace_l.texi: Renamed from
44906         doc/glibc-functions/isspace_l.texi.
44907         * doc/posix-functions/isupper_l.texi: Renamed from
44908         doc/glibc-functions/isupper_l.texi.
44909         * doc/posix-functions/iswalnum_l.texi: Renamed from
44910         doc/glibc-functions/iswalnum_l.texi.
44911         * doc/posix-functions/iswalpha_l.texi: Renamed from
44912         doc/glibc-functions/iswalpha_l.texi.
44913         * doc/posix-functions/iswblank_l.texi: Renamed from
44914         doc/glibc-functions/iswblank_l.texi.
44915         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44916         doc/glibc-functions/iswcntrl_l.texi.
44917         * doc/posix-functions/iswctype_l.texi: Renamed from
44918         doc/glibc-functions/iswctype_l.texi.
44919         * doc/posix-functions/iswdigit_l.texi: Renamed from
44920         doc/glibc-functions/iswdigit_l.texi.
44921         * doc/posix-functions/iswgraph_l.texi: Renamed from
44922         doc/glibc-functions/iswgraph_l.texi.
44923         * doc/posix-functions/iswlower_l.texi: Renamed from
44924         doc/glibc-functions/iswlower_l.texi.
44925         * doc/posix-functions/iswprint_l.texi: Renamed from
44926         doc/glibc-functions/iswprint_l.texi.
44927         * doc/posix-functions/iswpunct_l.texi: Renamed from
44928         doc/glibc-functions/iswpunct_l.texi.
44929         * doc/posix-functions/iswspace_l.texi: Renamed from
44930         doc/glibc-functions/iswspace_l.texi.
44931         * doc/posix-functions/iswupper_l.texi: Renamed from
44932         doc/glibc-functions/iswupper_l.texi.
44933         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44934         doc/glibc-functions/iswxdigit_l.texi.
44935         * doc/posix-functions/isxdigit_l.texi: Renamed from
44936         doc/glibc-functions/isxdigit_l.texi.
44937         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44938         doc/glibc-functions/mbsnrtowcs.texi.
44939         * doc/posix-functions/mkdtemp.texi: Renamed from
44940         doc/glibc-functions/mkdtemp.texi.
44941         * doc/posix-functions/newlocale.texi: Renamed from
44942         doc/glibc-functions/newlocale.texi.
44943         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44944         doc/glibc-functions/nl_langinfo_l.texi.
44945         * doc/posix-functions/open_memstream.texi: Renamed from
44946         doc/glibc-functions/open_memstream.texi.
44947         * doc/posix-functions/opterr.texi: Renamed from
44948         doc/glibc-functions/opterr.texi.
44949         * doc/posix-functions/optind.texi: Renamed from
44950         doc/glibc-functions/optind.texi.
44951         * doc/posix-functions/optopt.texi: Renamed from
44952         doc/glibc-functions/optopt.texi.
44953         * doc/posix-functions/psignal.texi: Renamed from
44954         doc/glibc-functions/psignal.texi.
44955         * doc/posix-functions/scandir.texi: Renamed from
44956         doc/glibc-functions/scandir.texi.
44957         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44958         doc/glibc-functions/sched_get_priority_min.texi.
44959         * doc/posix-functions/signgam.texi: Renamed from
44960         doc/glibc-functions/signgam.texi.
44961         * doc/posix-functions/stpcpy.texi: Renamed from
44962         doc/glibc-functions/stpcpy.texi.
44963         * doc/posix-functions/stpncpy.texi: Renamed from
44964         doc/glibc-functions/stpncpy.texi.
44965         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44966         doc/glibc-functions/strcasecmp_l.texi.
44967         * doc/posix-functions/strcoll_l.texi: Renamed from
44968         doc/glibc-functions/strcoll_l.texi.
44969         * doc/posix-functions/strfmon_l.texi: Renamed from
44970         doc/glibc-functions/strfmon_l.texi.
44971         * doc/posix-functions/strftime_l.texi: Renamed from
44972         doc/glibc-functions/strftime_l.texi.
44973         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44974         doc/glibc-functions/strncasecmp_l.texi.
44975         * doc/posix-functions/strndup.texi: Renamed from
44976         doc/glibc-functions/strndup.texi.
44977         * doc/posix-functions/strnlen.texi: Renamed from
44978         doc/glibc-functions/strnlen.texi.
44979         * doc/posix-functions/strsignal.texi: Renamed from
44980         doc/glibc-functions/strsignal.texi.
44981         * doc/posix-functions/strxfrm_l.texi: Renamed from
44982         doc/glibc-functions/strxfrm_l.texi.
44983         * doc/posix-functions/timer_gettime.texi: Renamed from
44984         doc/glibc-functions/timer_gettime.texi.
44985         * doc/posix-functions/tolower_l.texi: Renamed from
44986         doc/glibc-functions/tolower_l.texi.
44987         * doc/posix-functions/toupper_l.texi: Renamed from
44988         doc/glibc-functions/toupper_l.texi.
44989         * doc/posix-functions/towctrans_l.texi: Renamed from
44990         doc/glibc-functions/towctrans_l.texi.
44991         * doc/posix-functions/towlower_l.texi: Renamed from
44992         doc/glibc-functions/towlower_l.texi.
44993         * doc/posix-functions/towupper_l.texi: Renamed from
44994         doc/glibc-functions/towupper_l.texi.
44995         * doc/posix-functions/uselocale.texi: Renamed from
44996         doc/glibc-functions/uselocale.texi.
44997         * doc/posix-functions/vdprintf.texi: Renamed from
44998         doc/glibc-functions/vdprintf.texi.
44999         * doc/posix-functions/wcpcpy.texi:
45000         Renamed from doc/glibc-functions/wcpcpy.texi.
45001         * doc/posix-functions/wcpncpy.texi: Renamed from
45002         doc/glibc-functions/wcpncpy.texi.
45003         * doc/posix-functions/wcscasecmp.texi: Renamed from
45004         doc/glibc-functions/wcscasecmp.texi.
45005         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45006         doc/glibc-functions/wcscasecmp_l.texi.
45007         * doc/posix-functions/wcscoll_l.texi: Renamed from
45008         doc/glibc-functions/wcscoll_l.texi.
45009         * doc/posix-functions/wcsdup.texi: Renamed from
45010         doc/glibc-functions/wcsdup.texi.
45011         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45012         doc/glibc-functions/wcsncasecmp.texi.
45013         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45014         doc/glibc-functions/wcsncasecmp_l.texi.
45015         * doc/posix-functions/wcsnlen.texi: Renamed from
45016         doc/glibc-functions/wcsnlen.texi.
45017         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45018         doc/glibc-functions/wcsnrtombs.texi.
45019         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45020         doc/glibc-functions/wcsxfrm_l.texi.
45021         * doc/posix-functions/wctrans_l.texi: Renamed from
45022         doc/glibc-functions/wctrans_l.texi.
45023         * doc/posix-functions/wctype_l.texi: Renamed from
45024         doc/glibc-functions/wctype_l.texi.
45025         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45026         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45027         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45028         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45029         these subsections.
45030         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45031         Remove sections.
45032
45033 2008-12-14  Bruno Haible  <bruno@clisp.org>
45034
45035         Update doc for POSIX:2008.
45036         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45037
45038 2008-12-14  Bruno Haible  <bruno@clisp.org>
45039
45040         Update doc for POSIX:2008.
45041         * doc/pastposix-functions/bcmp.texi: Renamed from
45042         doc/posix-functions/bcmp.texi.
45043         * doc/pastposix-functions/bcopy.texi: Renamed from
45044         doc/posix-functions/bcopy.texi.
45045         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45046         doc/posix-functions/bsd_signal.texi.
45047         * doc/pastposix-functions/bzero.texi: Renamed from
45048         doc/posix-functions/bzero.texi.
45049         * doc/pastposix-functions/ecvt.texi: Renamed from
45050         doc/posix-functions/ecvt.texi.
45051         * doc/pastposix-functions/fcvt.texi: Renamed from
45052         doc/posix-functions/fcvt.texi.
45053         * doc/pastposix-functions/ftime.texi: Renamed from
45054         doc/posix-functions/ftime.texi.
45055         * doc/pastposix-functions/gcvt.texi: Renamed from
45056         doc/posix-functions/gcvt.texi.
45057         * doc/pastposix-functions/getcontext.texi: Renamed from
45058         doc/posix-functions/getcontext.texi.
45059         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45060         doc/posix-functions/gethostbyaddr.texi.
45061         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45062         doc/posix-functions/gethostbyname.texi.
45063         * doc/pastposix-functions/getwd.texi: Renamed from
45064         doc/posix-functions/getwd.texi.
45065         * doc/pastposix-functions/h_errno.texi: Renamed from
45066         doc/posix-functions/h_errno.texi.
45067         * doc/pastposix-functions/index.texi: Renamed from
45068         doc/posix-functions/index.texi.
45069         * doc/pastposix-functions/makecontext.texi: Renamed from
45070         doc/posix-functions/makecontext.texi.
45071         * doc/pastposix-functions/mktemp.texi: Renamed from
45072         doc/posix-functions/mktemp.texi.
45073         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45074         doc/posix-functions/pthread_attr_getstackaddr.texi.
45075         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45076         doc/posix-functions/pthread_attr_setstackaddr.texi.
45077         * doc/pastposix-functions/rindex.texi: Renamed from
45078         doc/posix-functions/rindex.texi.
45079         * doc/pastposix-functions/scalb.texi: Renamed from
45080         doc/posix-functions/scalb.texi.
45081         * doc/pastposix-functions/setcontext.texi: Renamed from
45082         doc/posix-functions/setcontext.texi.
45083         * doc/pastposix-functions/swapcontext.texi: Renamed from
45084         doc/posix-functions/swapcontext.texi.
45085         * doc/pastposix-functions/ualarm.texi: Renamed from
45086         doc/posix-functions/ualarm.texi.
45087         * doc/pastposix-functions/usleep.texi: Renamed from
45088         doc/posix-functions/usleep.texi.
45089         * doc/pastposix-functions/vfork.texi: Renamed from
45090         doc/posix-functions/vfork.texi.
45091         * doc/pastposix-functions/wcswcs.texi: Renamed from
45092         doc/posix-functions/wcswcs.texi.
45093         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45094         (Function Substitutes): Update.
45095
45096 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45097
45098         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45099         m4/strerror.m4.
45100
45101 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45102             Bruno Haible  <bruno@clisp.org>
45103
45104         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45105
45106 2008-12-13  Bruno Haible  <bruno@clisp.org>
45107
45108         * modules/strtoull (Depends-on): Remove unistd.
45109
45110 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45111
45112         * modules/strtoull (Depends-on): Add stdlib.
45113
45114 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45115
45116         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45117
45118 2008-12-10  Jim Meyering  <meyering@redhat.com>
45119
45120         gl_ASSERT: don't say assertions are disabled when they're not
45121         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45122         "checking whether to enable assertions... no", when they are in
45123         fact enabled.  This is solely a bug in the output of configure.
45124         In spite of saying "no", NDEBUG was not defined in that case.
45125         Also, as noted by Eric Blake, leave assertions enabled upon
45126         --enable-assert=INVALID.
45127
45128 2008-12-10  Bruno Haible  <bruno@clisp.org>
45129
45130         Change MODULES.html to refer to POSIX:2008 where possible.
45131         * MODULES.html.sh (POSIX2008_URL): New variable.
45132         (posix_headers): Remove sys/timeb, ucontext.
45133         (posix2001_headers): New variable.
45134         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45135         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45136         index, makecontext, mktemp, pthread_attr_getstackaddr,
45137         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45138         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45139         (posix2001_functions): New variable.
45140         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45141         otherwise.
45142
45143 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45144
45145         add missing include to parse-duration.c
45146         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45147         * modules/parse-duration (Depends-on): Add xalloc.
45148
45149         fix sed script reading maint.mk
45150         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45151         (syntax-check-rules): Use it.
45152
45153 2008-12-09  Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45156         MacOS X 10.4/PowerPC.
45157         Reported by Simon Josefsson.
45158
45159 2008-12-08  Jim Meyering  <meyering@redhat.com>
45160
45161         work around mingw's lack of some S_IF definitions
45162         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45163         Reported by Simon Josefsson.
45164
45165 2008-12-08  Bruno Haible  <bruno@clisp.org>
45166
45167         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45168         applied to variables. Needed on MacOS X 10.4/PowerPC.
45169         Reported by Simon Josefsson.
45170
45171 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45172         and Eric Blake  <ebb9@byu.net>
45173
45174         assert: honor --enable-assert
45175         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45176         order to honor --enable-assert, rather than treating it as a
45177         synonym for --disable-assert.
45178
45179 2008-12-08  Jim Meyering  <meyering@redhat.com>
45180
45181         * lib/posixtm.c: Remove now-useless declaration of mktime.
45182
45183         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45184
45185 2008-12-07  Bruno Haible  <bruno@clisp.org>
45186
45187         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45188         test_once): Mark functions as static.
45189         * tests/test-tls.c (test_tls): Likewise.
45190
45191 2008-12-07  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45194         iconv_register_autodetect.
45195
45196 2008-12-07  Jim Meyering  <meyering@redhat.com>
45197
45198         posixtm.c: avoid a warning
45199         * lib/posixtm.c (posixtime): Don't initialize tm0.
45200         It's no longer needed to placate gcc4's -Wuninitialized,
45201         and the attempt to placate would elicit a new warning.
45202
45203         unicodeio.c: mark unused parameters
45204         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45205         (fallback_failure_callback): Likewise.
45206
45207 2008-12-07  Bruno Haible  <bruno@clisp.org>
45208
45209         * gnulib-tool (func_create_testdir): When building the tests
45210         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45211         Reported by Simon Josefsson.
45212
45213 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45214
45215         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45216
45217 2008-12-06  Bruno Haible  <bruno@clisp.org>
45218
45219         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45220         Suggested by Eric Blake.
45221
45222 2008-12-06  Bruno Haible  <bruno@clisp.org>
45223
45224         Fix a c-stack test failure on MacOS X.
45225         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45226         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45227         handler for SIGBUS as well.
45228         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45229         install a signal handler for SIGBUS as well.
45230         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45231
45232 2008-12-06  Bruno Haible  <bruno@clisp.org>
45233
45234         Advocacy documentation.
45235         * doc/gnulib-intro.texi (Benefits): New section.
45236         * doc/gnulib.texi: Update.
45237
45238 2008-12-06  Bruno Haible  <bruno@clisp.org>
45239
45240         Document the 'manywarnings' module.
45241         * doc/manywarnings.texi: New file.
45242         * doc/gnulib.texi: Include it.
45243
45244 2008-12-05  Eric Blake  <ebb9@byu.net>
45245
45246         tests: silence some gcc warnings
45247         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45248         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45249         type mismatches.
45250
45251 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45252             Bruno Haible  <bruno@clisp.org>
45253
45254         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45255
45256 2008-11-29  Jim Meyering  <meyering@redhat.com>
45257
45258         unicodeio.c: mark unused parameters
45259         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45260         (fallback_failure_callback): Likewise.
45261
45262         fts: fix a thinko
45263         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45264         (set_stat_type): Return S_IF*-valued "type" directly.
45265         Prompted by James Youngman's spotting a related bug.
45266         Confirmed by further testing through find.
45267
45268         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45269         * lib/fts.c (D_TYPE): Define.
45270         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45271         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45272         (s_ifmt_shift_bits): New function.
45273         (set_stat_type): New function.
45274         (fts_build): When not calling fts_stat, call set_stat_type
45275         to propagate dirent.d_type info to fts_read caller.
45276         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45277         fts_statp->st_mode type information may be valid.
45278
45279 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45280
45281         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45282         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45283         <sds@gnu.org>.
45284
45285 2008-11-20  Bruno Haible  <bruno@clisp.org>
45286
45287         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45288         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45289         INCLUDE_NEXT.
45290         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45291         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45292         * modules/math (Makefile.am): Substitute
45293         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45294         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45295
45296 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45297             Bruno Haible  <bruno@clisp.org>
45298
45299         * lib/stdint.in.h: Define all type macros so that their expansion is
45300         a single typedef'ed token. Fixes a compilation failure in Boost which
45301         does "using ::int8_t;".
45302
45303 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45304
45305         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45306         gl_MANYWARN_ALL_GCC.
45307         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45308         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45309         * modules/manywarnings: New file.
45310         * MODULES.html.sh: Mention manywarnings module.
45311
45312 2008-11-18  Bruno Haible  <bruno@clisp.org>
45313
45314         * doc/gnulib-tool.texi (Unit tests): New section.
45315
45316 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45317
45318         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45319         paths like 'lib/po/foo.po'.
45320
45321 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45322
45323         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45324         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45325
45326 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45327
45328         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45329         parameter works.
45330
45331 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45332
45333         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45334
45335 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45336
45337         * modules/parse-duration-tests: New file.
45338         * tests/test-parse-duration.sh: New file.
45339         * tests/test-parse-duration.c: New file.
45340
45341         New module 'parse-duration'.
45342         * lib/parse-duration.h: New file.
45343         * lib/parse-duration.c: New file.
45344         * modules/parse-duration: New file.
45345
45346 2008-11-17  Bruno Haible  <bruno@clisp.org>
45347
45348         * tests/test-select-out.sh: Comment out the first pipe test.
45349         Reported by Simon Josefsson.
45350
45351 2008-11-17  Bruno Haible  <bruno@clisp.org>
45352
45353         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45354         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45355         gl_HOSTENT.
45356
45357 2008-11-17  Bruno Haible  <bruno@clisp.org>
45358
45359         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45360         -lnetwork and -lnet. Needed for Haiku and BeOS.
45361
45362 2008-11-16  Bruno Haible  <bruno@clisp.org>
45363
45364         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45365
45366 2008-11-16  Bruno Haible  <bruno@clisp.org>
45367
45368         Avoid test failure on Haiku.
45369         * tests/test-fsync.c: Include <errno.h>.
45370         (main): Don't require that fsync (0) fails.
45371
45372 2008-11-15  Bruno Haible  <bruno@clisp.org>
45373
45374         New module 'hostent'.
45375         * modules/hostent: New file.
45376         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45377
45378 2008-11-15  Bruno Haible  <bruno@clisp.org>
45379
45380         New module 'servent'.
45381         * modules/servent: New file.
45382         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45383
45384 2008-11-15  Bruno Haible  <bruno@clisp.org>
45385
45386         Avoid generating same test program with two different rules.
45387         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45388         test-frexp to test-frexp-nolibm.
45389         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45390         test-frexpl to test-frexpl-nolibm.
45391
45392 2008-11-15  Bruno Haible  <bruno@clisp.org>
45393
45394         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45395         $(FREXPL_LIBM).
45396
45397 2008-11-15  Bruno Haible  <bruno@clisp.org>
45398
45399         * lib/netdb.in.h: Activate the definitions also when the system's
45400         <netdb.h> has 'struct addrinfo'.
45401         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45402         EAI_OVERFLOW or AI_NUMERICSERV.
45403         * doc/posix-headers/netdb.texi: Document the problem.
45404
45405 2008-11-15  Bruno Haible  <bruno@clisp.org>
45406
45407         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45408
45409         Make the 'sched' module work on platforms where <sched.h> exists but
45410         is incomplete (such as Haiku).
45411         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45412         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45413         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45414         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45415         HAVE_STRUCT_SCHED_PARAM.
45416         * modules/sched (Depends-on): Add include_next.
45417         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45418         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45419         * doc/posix-headers/sched.texi: Document the issue.
45420
45421 2008-11-13  Jim Meyering  <meyering@redhat.com>
45422
45423         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45424         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45425         test would fail due to the difference in the Report bugs to ...
45426         line.  The expected address is empty, "<>", while the actual
45427         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45428
45429 2008-11-12  Bruno Haible  <bruno@clisp.org>
45430
45431         lstat: don't compile lstat.c on systems lacking lstat
45432         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45433         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45434         Reported by Daniel P. Berrange via Jim Meyering.
45435
45436 2008-11-12  Jim Meyering  <meyering@redhat.com>
45437
45438         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45439
45440 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45441
45442         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45443         instead.
45444
45445 2008-11-12  Bruno Haible  <bruno@clisp.org>
45446
45447         * lib/unicodeio.c: Include unistr.h.
45448         (utf8_wctomb): Remove function.
45449         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45450
45451 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45452
45453         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45454         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45455         <bruno@clisp.org>.
45456         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45457
45458 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45459
45460         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45461         * doc/gnulib.texi: Add section for warnings.
45462
45463 2008-11-11  Bruno Haible  <bruno@clisp.org>
45464
45465         * lib/sockets.h: Add a comment.
45466
45467 2008-11-11  Karl Berry  <karl@gnu.org>
45468
45469         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45470
45471 2008-11-11  Eric Blake  <ebb9@byu.net>
45472
45473         fdl.texi: avoid git symlinks
45474         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45475
45476 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45477
45478         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45479
45480 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45481
45482         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45483         (gl_WARN_ADD): Substitute $2 if literal.
45484
45485 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45486
45487         * m4/warning.m4: Remove.
45488
45489 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45490
45491         * m4/warnings.m4: Almost complete rewrite. :-)
45492
45493 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45494
45495         * modules/warnings: New module.
45496         * m4/warnings.m4: New file.
45497         * MODULES.html.sh: Mention warnings module.
45498         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45499         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45500
45501 2008-11-10  Eric Blake  <ebb9@byu.net>
45502
45503         fdl.texi: make a symlink to the latest version
45504         * doc/standards.texi: Revert today's earlier change.
45505         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45506         * doc/fdl.texi: ...and replace this with a symlink to the newer
45507         fdl-1.3.texi.
45508
45509 2008-11-10  Bruno Haible  <bruno@clisp.org>
45510
45511         * tests/test-select-fd.c (main): Accept the result file name as fourth
45512         argument.
45513         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45514         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45515
45516 2008-11-10  Bruno Haible  <bruno@clisp.org>
45517
45518         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45519         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45520         as autoconf-substituted macros.
45521         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45522         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45523         gl_NETDB_H_DEFAULTS. Set these variables.
45524         * modules/netdb (Makefile.am): Substitute these variables.
45525
45526 2008-11-10  Eric Blake  <ebb9@byu.net>
45527
45528         standards.texi: include correct file for FDL 1.3
45529         * doc/standards.texi (GNU Free Documentation License): Change
45530         include file to pull in FDL 1.3, not 1.2.
45531
45532         fdl.texi: revert accidental change to license
45533         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45534
45535 2008-11-10  Bruno Haible  <bruno@clisp.org>
45536
45537         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45538         cross-compiling guesses also when the native compile gives no result.
45539
45540 2008-11-10  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/spawni.c (__spawni): Force variable into the stack.
45543
45544 2008-11-10  Bruno Haible  <bruno@clisp.org>
45545
45546         Add support for Haiku.
45547         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45548         glibc and BeOS, but also on Haiku.
45549         * lib/fpurge.c (fpurge): Likewise.
45550         * lib/freadable.c (freadable): Likewise.
45551         * lib/freadahead.c (freadahead): Likewise.
45552         * lib/freading.c (freading): Likewise.
45553         * lib/freadptr.c (freadptr): Likewise.
45554         * lib/freadseek.c (freadptrinc): Likewise.
45555         * lib/fseeko.c (rpl_fseeko): Likewise.
45556         * lib/fseterr.c (fseterr): Likewise.
45557         * lib/fwritable.c (fwritable): Likewise.
45558         * lib/fwriting.c (fwriting): Likewise.
45559         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45560
45561 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45562
45563         * lib/config.charset: Treat Haiku like BeOS.
45564
45565 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45566
45567         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45568         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45569
45570 2008-11-08  Bruno Haible  <bruno@clisp.org>
45571
45572         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45573         AC_CACHE_CHECK.
45574
45575 2008-11-08  Bruno Haible  <bruno@clisp.org>
45576
45577         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45578
45579 2008-11-08  Bruno Haible  <bruno@clisp.org>
45580
45581         * tests/test-select-fd.c: New file.
45582         * tests/test-select-in.sh: New file.
45583         * tests/test-select-out.sh: New file.
45584         * tests/test-select-stdin.c: New file.
45585         * modules/select-tests (Files): Add the new files.
45586         (Depends-on): Add gettimeofday.
45587         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45588         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45589         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45590
45591 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45592             Bruno Haible  <bruno@clisp.org>
45593
45594         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45595
45596 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45597
45598         * build-aux/pmccabe2html: Added support for C++ source files.
45599
45600 2008-11-05  Ben Pfaff  <blp@gnu.org>
45601
45602         Fix lib/close.c build on Windows.
45603         * modules/close (Files): Add lib/w32sock.h.
45604
45605 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45606
45607         Accept Bison's NEWS format.
45608         * build-aux/announce-gen (print_news_deltas): Tweak
45609         $re_prefix.
45610
45611 2008-11-04  Bruno Haible  <bruno@clisp.org>
45612
45613         * modules/random_r (Maintainer): Add glibc.
45614
45615 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45616
45617         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45618         by karl@freefriends.org (Karl Berry).
45619         * doc/alloca.texi: Likewise.
45620         * doc/c-ctype.texi: Likewise.
45621         * doc/c-strcase.texi: Likewise.
45622         * doc/c-strcaseeq.texi: Likewise.
45623         * doc/c-strcasestr.texi: Likewise.
45624         * doc/c-strstr.texi: Likewise.
45625         * doc/c-strtod.texi: Likewise.
45626         * doc/c-strtold.texi: Likewise.
45627         * doc/ctime.texi: Likewise.
45628         * doc/error.texi: Likewise.
45629         * doc/fdl.texi: Likewise.
45630         * doc/gcd.texi: Likewise.
45631         * doc/getdate.texi: Likewise.
45632         * doc/gnulib-intro.texi: Likewise.
45633         * doc/gnulib-tool.texi: Likewise.
45634         * doc/gnulib.texi: Likewise.
45635         * doc/inet_ntoa.texi: Likewise.
45636         * doc/maintain.texi: Likewise.
45637         * doc/make-stds.texi: Likewise.
45638         * doc/quote.texi: Likewise.
45639         * doc/regexprops-generic.texi: Likewise.
45640         * doc/standards.texi: Likewise.
45641         * doc/verify.texi: Likewise.
45642         * doc/visibility.texi: Likewise.
45643         * doc/gnulib.texi (GNU Free Documentation License): Include
45644         fdl-1.3.texi instead of fdl.texi.
45645
45646 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45647
45648         * doc/fdl-1.3.texi: New file, from
45649         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45650         * modules/fdl-1.3: Add.
45651         * MODULES.html.sh: Add fdl-1.3.
45652
45653 2008-11-03  Bruno Haible  <bruno@clisp.org>
45654
45655         Make determination of absolute name of header file work with AIX xlc.
45656         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45657         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45658         preprocessing.
45659         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45660         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45661
45662 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45663
45664         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45665         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45666         <ludo@gnu.org>.
45667
45668 2008-11-02  Bruno Haible  <bruno@clisp.org>
45669
45670         Mark 'strpbrk' obsolete.
45671         * modules/strpbrk (Status, Notice): New sections.
45672         * modules/strtok_r (Depends-on): Add strpbrk.
45673
45674 2008-11-02  Bruno Haible  <bruno@clisp.org>
45675
45676         Mark 'strdup' obsolete.
45677         * modules/strdup (Status, Notice): New sections.
45678         * modules/findprog (Depends-on): Add strdup.
45679         * modules/getaddrinfo (Depends-on): Likewise.
45680         * modules/localename (Depends-on): Likewise.
45681         * modules/relocatable-lib (Depends-on): Likewise.
45682         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45683         * modules/relocatable-prog (Depends-on): Likewise.
45684         * modules/trim (Depends-on): Likewise.
45685         * modules/unictype/gen-ctype (Depends-on): Likewise.
45686         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45687
45688 2008-11-02  Bruno Haible  <bruno@clisp.org>
45689
45690         Mark 'strcspn' obsolete.
45691         * modules/strcspn (Status, Notice): New sections.
45692
45693 2008-11-02  Bruno Haible  <bruno@clisp.org>
45694
45695         Mark 'rmdir' obsolete.
45696         * modules/rmdir (Status, Notice): New sections.
45697         * modules/clean-temp (Depends-on): Add rmdir.
45698         * modules/openat (Depends-on): Likewise.
45699
45700 2008-11-02  Bruno Haible  <bruno@clisp.org>
45701
45702         Mark 'raise' obsolete.
45703         * modules/raise (Status, Notice): New sections.
45704         (Include): Specify <signal.h>.
45705         * modules/stdio (Depends-on): Add raise.
45706         * modules/write (Depends-on): Likewise.
45707
45708 2008-11-02  Bruno Haible  <bruno@clisp.org>
45709
45710         Mark 'memset' obsolete.
45711         * modules/memset (Status, Notice): New sections.
45712
45713 2008-11-02  Bruno Haible  <bruno@clisp.org>
45714
45715         Mark 'memmove' obsolete.
45716         * modules/memmove (Status, Notice): New sections.
45717         * modules/argp (Depends-on): Add memmove.
45718         * modules/argz (Depends-on): Likewise.
45719         * modules/canonicalize (Depends-on): Likewise.
45720         * modules/canonicalize-lgpl (Depends-on): Likewise.
45721         * modules/fts (Depends-on): Likewise.
45722         * modules/getcwd (Depends-on): Likewise.
45723         * modules/human (Depends-on): Likewise.
45724         * modules/regex (Depends-on): Likewise.
45725         * modules/striconveh (Depends-on): Likewise.
45726         * modules/trim (Depends-on): Likewise.
45727         * modules/unistr/u8-move (Depends-on): Likewise.
45728         * modules/unistr/u16-move (Depends-on): Likewise.
45729         * modules/unistr/u32-move (Depends-on): Likewise.
45730
45731 2008-11-02  Bruno Haible  <bruno@clisp.org>
45732
45733         Mark 'memcpy' obsolete.
45734         * modules/memcpy (Status, Notice): New sections.
45735
45736 2008-11-02  Bruno Haible  <bruno@clisp.org>
45737
45738         Mark 'memcmp' obsolete.
45739         * modules/memcmp (Status, Notice): New sections.
45740         * modules/argmatch (Depends-on): Add memchr.
45741         * modules/backupfile (Depends-on): Likewise.
45742         * modules/c-strcasestr (Depends-on): Likewise.
45743         * modules/crypto/des (Depends-on): Likewise.
45744         * modules/csharpcomp (Depends-on): Likewise.
45745         * modules/fnmatch (Depends-on): Likewise.
45746         * modules/git-merge-changelog (Depends-on): Likewise.
45747         * modules/isnand (Depends-on): Likewise.
45748         * modules/isnand-nolibm (Depends-on): Likewise.
45749         * modules/isnanf (Depends-on): Likewise.
45750         * modules/isnanf-nolibm (Depends-on): Likewise.
45751         * modules/isnanl (Depends-on): Likewise.
45752         * modules/isnanl-nolibm (Depends-on): Likewise.
45753         * modules/mbchar (Depends-on): Likewise.
45754         * modules/memcoll (Depends-on): Likewise.
45755         * modules/quotearg (Depends-on): Likewise.
45756         * modules/regex (Depends-on): Likewise.
45757         * modules/relocatable-prog (Depends-on): Likewise.
45758         * modules/same (Depends-on): Likewise.
45759         * modules/signbit (Depends-on): Likewise.
45760         * modules/strcasestr-simple (Depends-on): Likewise.
45761         * modules/unictype/gen-ctype (Depends-on): Likewise.
45762         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45763         * modules/uniname/uniname (Depends-on): Likewise.
45764         * modules/unistr/u8-cmp (Depends-on): Likewise.
45765
45766 2008-11-02  Bruno Haible  <bruno@clisp.org>
45767
45768         Mark 'memchr' obsolete.
45769         * modules/memchr (Status, Notice): New sections.
45770         * modules/argp (Depends-on): Add memchr.
45771         * modules/base64 (Depends-on): Likewise.
45772         * modules/c-strcasestr (Depends-on): Likewise.
45773         * modules/chdir-long (Depends-on): Likewise.
45774         * modules/fnmatch (Depends-on): Likewise.
45775         * modules/getsubopt (Depends-on): Likewise.
45776         * modules/git-merge-changelog (Depends-on): Likewise.
45777         * modules/glob (Depends-on): Likewise.
45778         * modules/strcasestr-simple (Depends-on): Likewise.
45779         * modules/strnlen (Depends-on): Likewise.
45780
45781 2008-11-02  Bruno Haible  <bruno@clisp.org>
45782
45783         Mark 'atexit' obsolete.
45784         * modules/atexit (Status, Notice): New sections.
45785         * modules/chdir-long (Depends-on): Add atexit.
45786         * modules/wait-process (Depends-on): Likewise.
45787
45788 2008-11-02  Bruno Haible  <bruno@clisp.org>
45789
45790         * gnulib-tool: New option --with-obsolete.
45791         (func_usage): Document it.
45792         (func_modules_transitive_closure): Drop obsolete dependencies if
45793         incobsolete is not true.
45794         (func_import): Read and save the incobsolete variable to the cache.
45795
45796 2008-11-02  Bruno Haible  <bruno@clisp.org>
45797
45798         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45799         * gnulib-tool: New option --extract-status.
45800         (func_usage): Document it.
45801         (sed_extract_prog): Recognize it.
45802         (func_get_status): New function.
45803
45804 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45805
45806         * modules/sockets (License): Change from LGPL to LGPLv2+.
45807
45808 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45809
45810         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45811
45812 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45813
45814         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45815         Mention times and sys_times.
45816         * modules/sys_times, modules/sys_times-tests: New modules.
45817         * modules/times, modules/times-tests: Likewise
45818         * m4/sys_times_h.m4: New file.
45819         * lib/sys_times.in.h: Likewise
45820         * lib/times.c: Likewise.
45821         * tests/test-sys_times.c: Likewise.
45822         * tests/test-times.c: Likewise.
45823         * doc/posix-headers/sys_times.texi: Update.
45824         * doc/posix-functions/times.texi: Update.
45825
45826 2008-10-28  Jim Meyering  <meyering@redhat.com>
45827
45828         * modules/tempname (Depends-on): Add lstat.
45829
45830         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45831
45832 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45833
45834         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45835         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45836         using idiom used elsewhere in gnulib.
45837
45838 2008-10-27  Jim Meyering  <meyering@redhat.com>
45839
45840         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45841
45842 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45843
45844         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45845         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45846         programs.
45847         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45848
45849 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45850
45851         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45852
45853 2008-10-27  Bruno Haible  <bruno@clisp.org>
45854
45855         * tests/test-lstat.c: Include <stdio.h>.
45856
45857 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45858
45859         * modules/lstat-tests: New module.
45860         * tests/test-lstat.c: New file.
45861
45862 2008-10-26  Jim Meyering  <meyering@redhat.com>
45863
45864         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45865
45866 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45867             Bruno Haible  <bruno@clisp.org>
45868
45869         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45870         * modules/configmake (Include): Add a note that the include must come
45871         after all system headers.
45872         * lib/javaversion.c: Include configmake.h after all other includes.
45873
45874 2008-10-26  Bruno Haible  <bruno@clisp.org>
45875
45876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45877         HAVE_STRUCT_RANDOM_DATA to 1.
45878         (gl_STDLIB_H): Simplify.
45879
45880 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45881
45882         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45883         substitute HAVE_STRUCT_RANDOM_DATA.
45884         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45885         random_data.
45886         * modules/stdlib (Makefile.am): Substitute
45887         HAVE_STRUCT_RANDOM_DATA.
45888
45889 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45890
45891         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45892         * doc/gnulib-intro.texi (Copyright): Likewise.
45893
45894 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45895
45896         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45897         findings.
45898
45899 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45900             Bruno Haible  <bruno@clisp.org>
45901
45902         * lib/unistd.in.h: Include <winsock2.h>.
45903         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45904         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45905         Provide dummy declarations.
45906         (gethostname): Override.
45907         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45908         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45909         gl_PREREQ_SYS_H_WINSOCK2.
45910         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45911         * doc/posix-functions/gethostname.texi: More details.
45912
45913 2008-10-25  Bruno Haible  <bruno@clisp.org>
45914
45915         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45916         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45917         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45918
45919         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45920         here ...
45921         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45922         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45923         gl_UNISTD_H_DEFAULTS.
45924
45925 2008-10-25  Eric Blake  <ebb9@byu.net>
45926
45927         signbit: avoid spurious compiler failure
45928         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45929         declarations inside function.
45930
45931 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45932             Bruno Haible  <bruno@clisp.org>
45933
45934         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45935         * modules/random_r (Depends-on): Add stdint.
45936
45937 2008-10-24  Bruno Haible  <bruno@clisp.org>
45938
45939         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45940         Eggert.
45941         * modules/strerror (License): Likewise.
45942
45943 2008-10-24  Jim Meyering  <meyering@redhat.com>
45944
45945         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45946         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45947
45948 2008-10-24  Eric Blake  <ebb9@byu.net>
45949
45950         getgroups: fix compilation when getgroups is available
45951         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45952         but with <config.h> override of getgroups disabled.
45953
45954 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45955
45956         * doc/gnulib.texi (Header files): Add note about C++ problems.
45957         Explained by Bruno Haible <bruno@clisp.org>.
45958
45959 2008-10-23  Bruno Haible  <bruno@clisp.org>
45960
45961         Define a dummy SA_NODEFER macro on Interix.
45962         * lib/signal.in.h (SA_NODEFER): Define fallback.
45963         Reported by Aleksey Cheusov <cheusov@tut.by> via
45964         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45965
45966 2008-10-23  Bruno Haible  <bruno@clisp.org>
45967
45968         * modules/freadahead (License): Change to LGPLv2+.
45969         Suggested by Simon Josefsson.
45970
45971 2008-10-23  Jim Meyering  <meyering@redhat.com>
45972
45973         random_r: new module
45974         * modules/random_r: New file.
45975         * m4/random_r.m4: New file.
45976         * lib/random_r.c: New file, from glibc.
45977         * modules/random_r-tests: New file.
45978         * tests/test-random_r.c: New file.
45979         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45980          Declare.
45981         (RAND_MAX): Define.
45982         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45983         * modules/stdlib: Substitute them, too.
45984         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45985         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45986         * doc/glibc-functions/random_r.texi: Likewise.
45987         * doc/glibc-functions/setstate_r.texi: Likewise.
45988         * doc/glibc-functions/srandom_r.texi: Likewise.
45989         * config/srclist.txt: Mention it.
45990
45991 2008-10-23  David Lutterkort  <lutter@redhat.com>
45992
45993         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45994         link requirement
45995
45996 2008-10-23  Jim Meyering  <meyering@redhat.com>
45997
45998         selinux-h: mark parameters of stub functions as intentionally unused
45999         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46000         * lib/se-context.in.h: Likewise.
46001
46002 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46003
46004         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46005
46006 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46007
46008         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46009
46010 2008-10-22  Eric Blake  <ebb9@byu.net>
46011
46012         glthread/thread: avoid compiler warning
46013         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46014         Add unreachable abort to silence compiler.
46015
46016 2008-10-22  Eric Blake  <ebb9@byu.net>
46017
46018         netdb: also supply struct addrinfo for cygwin 1.5.x
46019         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46020         older cygwin.
46021         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46022         cygwin.
46023         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46024
46025 2008-10-22  Bruno Haible  <bruno@clisp.org>
46026
46027         * users.txt: Update entry about pspp.
46028
46029 2008-10-21  Bruno Haible  <bruno@clisp.org>
46030
46031         Simplification.
46032         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46033         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46034
46035         Simplification.
46036         * lib/ioctl.c (ioctl): Don't undefine.
46037         * lib/socket.c (socket): Don't undefine.
46038
46039         Remove unused module indicator macros.
46040         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46041         GNULIB_$1 as a C macro.
46042
46043         * doc/posix-functions/close.texi: Undo last change.
46044         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46045         Windows platforms.
46046
46047 2008-10-21  Bruno Haible  <bruno@clisp.org>
46048
46049         Add gethostname() declaration to <unistd.h>.
46050         * lib/unistd.in.h (gethostname): New declaration.
46051         * lib/gethostname.c: Include <unistd.h>.
46052         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46053         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46055         and HAVE_GETHOSTNAME.
46056         * modules/gethostname (Depends-on): Add unistd.
46057         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46058         (Include): Specify <unistd.h>.
46059         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46060         HAVE_GETHOSTNAME.
46061         * tests/test-gethostname.c: Include <unistd.h> first.
46062
46063 2008-10-21  Bruno Haible  <bruno@clisp.org>
46064
46065         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46066         * modules/select-tests (Depends-on): Likewise.
46067         Reported by Simon Josefsson.
46068
46069 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46070
46071         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46072         * lib/accept.c: New file, based on winsock.c.
46073         * lib/bind.c: New file, based on winsock.c.
46074         * lib/connect.c: New file, based on winsock.c.
46075         * lib/getpeername.c: New file, based on winsock.c.
46076         * lib/getsockname.c: New file, based on winsock.c.
46077         * lib/getsockopt.c: New file, based on winsock.c.
46078         * lib/ioctl.c: New file, based on winsock.c.
46079         * lib/listen.c: New file, based on winsock.c.
46080         * lib/recv.c: New file, based on winsock.c.
46081         * lib/recvfrom.c: New file, based on winsock.c.
46082         * lib/send.c: New file, based on winsock.c.
46083         * lib/sendto.c: New file, based on winsock.c.
46084         * lib/setsockopt.c: New file, based on winsock.c.
46085         * lib/shutdown.c: New file, based on winsock.c.
46086         * lib/socket.c: New file, based on winsock.c.
46087         * lib/w32sock.h: New file, based on winsock.c.
46088         * lib/winsock.c: Remove file.
46089         * modules/accept: Likewise.
46090         * modules/bind: Likewise.
46091         * modules/connect: Likewise.
46092         * modules/getpeername: Likewise.
46093         * modules/getsockname: Likewise.
46094         * modules/getsockopt: Likewise.
46095         * modules/ioctl: Likewise.
46096         * modules/listen: Likewise.
46097         * modules/recv: Likewise.
46098         * modules/recvfrom: Likewise.
46099         * modules/send: Likewise.
46100         * modules/sendto: Likewise.
46101         * modules/setsockopt: Likewise.
46102         * modules/shutdown: Likewise.
46103         * modules/socket: Use socket.c instead of winsock.c.
46104         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46105         * doc/posix-functions/accept.texi: Doc fix.
46106         * doc/posix-functions/bind.texi: Doc fix.
46107         * doc/posix-functions/close.texi: Doc fix.
46108         * doc/posix-functions/connect.texi: Doc fix.
46109         * doc/posix-functions/getpeername.texi: Doc fix.
46110         * doc/posix-functions/getsockname.texi: Doc fix.
46111         * doc/posix-functions/getsockopt.texi: Doc fix.
46112         * doc/posix-functions/ioctl.texi: Doc fix.
46113         * doc/posix-functions/listen.texi: Doc fix.
46114         * doc/posix-functions/recv.texi: Doc fix.
46115         * doc/posix-functions/recvfrom.texi: Doc fix.
46116         * doc/posix-functions/send.texi: Doc fix.
46117         * doc/posix-functions/sendto.texi: Doc fix.
46118         * doc/posix-functions/setsockopt.texi: Doc fix.
46119         * doc/posix-functions/shutdown.texi: Doc fix.
46120         * doc/posix-functions/socket.texi: Doc fix.
46121
46122 2008-10-20  Bruno Haible  <bruno@clisp.org>
46123
46124         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46125         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46126         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46127         as an alias for SIGABRT.
46128         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46129         (sigaction): Map it to SIGABRT.
46130         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46131
46132 2008-10-20  Bruno Haible  <bruno@clisp.org>
46133
46134         * lib/fts.c: Don't include lstat.h.
46135         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46136
46137         Move the lstat() declaration to <sys/stat.h>.
46138         * lib/lstat.h: Remove file.
46139         * lib/sys_stat.in.h: Add special invocation convention.
46140         (lstat): New declaration.
46141         * lib/lstat.c (orig_lstat): New function.
46142         (rpl_lstat): Use orig_lstat instead of lstat.
46143         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46144         AC_C_INLINE. Set REPLACE_LSTAT.
46145         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46146         and REPLACE_LSTAT.
46147         * modules/lstat (Files): Remove lib/lstat.h.
46148         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46149         (Include): Specify <sys/stat.h> instead of lstat.h.
46150         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46151         REPLACE_LSTAT.
46152         * NEWS: Mention the change.
46153
46154 2008-10-20  Bruno Haible  <bruno@clisp.org>
46155
46156         * modules/posix_spawn-tests: New file.
46157         * tests/test-posix_spawn3.c: New file.
46158
46159 2008-10-20  Bruno Haible  <bruno@clisp.org>
46160
46161         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46162         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46163         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46164         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46165         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46166
46167 2008-10-20  Bruno Haible  <bruno@clisp.org>
46168
46169         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46170         of posix_spawn on AIX 5.3.
46171
46172 2008-10-20  Bruno Haible  <bruno@clisp.org>
46173
46174         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46175
46176 2008-10-20  Bruno Haible  <bruno@clisp.org>
46177
46178         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46179         of AC_LANG_PROGRAM.
46180
46181 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46182
46183         * lib/netdb.in.h: Don't define GNU specific constants until they
46184         are supported or needed.  Reported by Bruno Haible
46185         <bruno@clisp.org>.
46186
46187 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46188
46189         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46190
46191 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46192
46193         * lib/getaddrinfo.h: Remove file.
46194         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46195         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46196         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46197         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46198         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46199         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46200         * tests/test-getaddrinfo.c: Likewise.
46201         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46202         * NEWS: Mention change.
46203
46204 2008-10-19  Bruno Haible  <bruno@clisp.org>
46205
46206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46207
46208 2008-10-19  Bruno Haible  <bruno@clisp.org>
46209
46210         * lib/wait-process.c: Include simply <sys/wait.h>.
46211         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46212         WIFSTOPPED): Remove fallback definitions.
46213         * modules/wait-process (Depends-on): Add sys_wait.
46214
46215         New module 'sys_wait'.
46216         * modules/sys_wait: New file.
46217         * lib/sys_wait.in.h: New file, partially copied from
46218         lib/wait-process.c.
46219         * m4/sys_wait_h.m4: New file.
46220         * doc/posix-headers/sys_wait.texi: Mention the new module.
46221
46222 2008-10-19  Bruno Haible  <bruno@clisp.org>
46223
46224         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46225
46226 2008-10-19  Bruno Haible  <bruno@clisp.org>
46227
46228         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46229         * lib/wait-process.c (WAIT_T): Remove type.
46230         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46231         (wait_subprocess): Update.
46232
46233 2008-10-19  Bruno Haible  <bruno@clisp.org>
46234
46235         New module 'atoll'.
46236         * modules/atoll: New file.
46237         * lib/stdlib.in.h (atoll): New declaration.
46238         * lib/atoll.c: New file, from glibc with modifications.
46239         * m4/atoll.m4: New file.
46240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46241         HAVE_ATOLL.
46242         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46243         * doc/posix-functions/atoll.texi: Mention the new module.
46244
46245 2008-10-19  Bruno Haible  <bruno@clisp.org>
46246
46247         Add strtoull() declaration to <stdlib.h>.
46248         * lib/stdlib.in.h (strtoull): New declaration.
46249         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46250         Set HAVE_STRTOULL.
46251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46252         HAVE_STRTOULL.
46253         * modules/strtoull (Depends-on): Add stdlib.
46254         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46255         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46256         HAVE_STRTOULL.
46257
46258 2008-10-19  Bruno Haible  <bruno@clisp.org>
46259
46260         Add strtoll() declaration to <stdlib.h>.
46261         * lib/stdlib.in.h (strtoll): New declaration.
46262         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46263         Set HAVE_STRTOLL.
46264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46265         HAVE_STRTOLL.
46266         * modules/strtoll (Depends-on): Add stdlib.
46267         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46268         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46269
46270 2008-10-19  Bruno Haible  <bruno@clisp.org>
46271
46272         * modules/bcopy (Depends-on): Add strings.
46273         (Include): Specify <strings.h>.
46274
46275 2008-10-19  Bruno Haible  <bruno@clisp.org>
46276
46277         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46278
46279 2008-10-19  Bruno Haible  <bruno@clisp.org>
46280
46281         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46282         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46283         mingw.
46284
46285 2008-10-19  Bruno Haible  <bruno@clisp.org>
46286
46287         * lib/atanl.c: Don't include isnanl.h.
46288         * lib/cosl.c: Likewise.
46289         * lib/ldexpl.c: Likewise.
46290         * lib/logl.c: Likewise.
46291         * lib/sinl.c: Likewise.
46292         * lib/sqrtl.c: Likewise.
46293         * lib/tanl.c: Likewise.
46294
46295         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46296         * lib/isnanf.h: Remove file.
46297         * lib/isnand.h: Remove file.
46298         * lib/isnanl.h: Remove file.
46299         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46300         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46301         macros.
46302         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46303         HAVE_ISNANF, don't define it as a C macro.
46304         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46305         HAVE_ISNAND, don't define it as a C macro.
46306         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46307         HAVE_ISNANL, don't define it as a C macro.
46308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46309         HAVE_ISNAN[FDL].
46310         * modules/isnanf (Files): Remove lib/isnanf.h.
46311         (Depends-on): Add math.
46312         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46313         (Include): Specify <math.h> instead of isnanf.h.
46314         * modules/isnand (Files): Remove lib/isnand.h.
46315         (Depends-on): Add math.
46316         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46317         (Include): Specify <math.h> instead of isnand.h.
46318         * modules/isnanl (Files): Remove lib/isnanl.h.
46319         (Depends-on): Add math.
46320         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46321         (Include): Specify <math.h> instead of isnanl.h.
46322         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46323         HAVE_ISNAN[FDL].
46324         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46325         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46326         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46327         * NEWS: Mention the change.
46328
46329 2008-10-18  Bruno Haible  <bruno@clisp.org>
46330
46331         Add getusershell(), setusershell(), endusershell() declarations to
46332         <unistd.h>.
46333         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46334         declarations.
46335         * lib/getusershell.c: Include unistd.h.
46336         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46337         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46338         HAVE_GETUSERSHELL.
46339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46340         and HAVE_GETUSERSHELL.
46341         * modules/getusershell (Depends-on): Add unistd, extensions.
46342         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46343         (Include): Specify <unistd.h>.
46344         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46345         HAVE_GETUSERSHELL.
46346
46347 2008-10-18  Bruno Haible  <bruno@clisp.org>
46348
46349         Add a getloadavg() declaration to <stdlib.h>.
46350         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46351         getloadavg declaration.
46352         (getloadavg): New declaration.
46353         * lib/getloadavg.c: Include <stdlib.h> first.
46354         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46355         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46356         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46358         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46359         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46360         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46361         (Include): Specify <stdlib.h>.
46362         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46363         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46364
46365 2008-10-18  Bruno Haible  <bruno@clisp.org>
46366
46367         * lib/dirchownmod.c: Don't include lchmod.h.
46368
46369         Move the lchmod() declaration to <sys/stat.h>.
46370         * lib/lchmod.h: Remove file.
46371         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46372         (lchmod): New declaration, moved here from lib/lchown.h.
46373         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46374         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46375         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46376         and HAVE_LCHMOD.
46377         * modules/lchmod (Files): Remove lib/lchmod.h.
46378         (Depends-on): Add sys_stat, extensions.
46379         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46380         (Include): Specify <sys/stat.h> instead of lchmod.h.
46381         * modules/sys_stat (Depends-on): Add link-warning.
46382         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46383         definition of GL_LINK_WARNING.
46384         * NEWS: Mention the change.
46385
46386 2008-10-18  Bruno Haible  <bruno@clisp.org>
46387
46388         * lib/fchdir.c: Don't include dirfd.h.
46389         * lib/fts.c: Likewise.
46390         * lib/getcwd.c: Likewise.
46391         * lib/glob.c: Likewise.
46392
46393         Move the dirfd() declaration to <dirent.h>.
46394         * lib/dirfd.h: Remove file.
46395         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46396         (dirfd): New declaration.
46397         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46398         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46399         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46400         HAVE_DECL_DIRFD.
46401         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46402         HAVE_DECL_DIRFD.
46403         * modules/dirfd (Files): Remove lib/dirfd.h.
46404         (Depends-on): Add dirent, extensions.
46405         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46406         (Include): Specify <dirent.h> instead of dirfd.h.
46407         * modules/dirent (Depends-on): Add link-warning.
46408         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46409         definition of GL_LINK_WARNING.
46410         * NEWS: Mention the change.
46411
46412 2008-10-18  Bruno Haible  <bruno@clisp.org>
46413
46414         Move the euidaccess() declaration to <unistd.h>.
46415         * lib/euidaccess.h: Remove file.
46416         * lib/unistd.in.h (euidaccess): New declaration.
46417         * lib/euidaccess.c: Don't include euidaccess.h.
46418         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46419         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46421         and HAVE_EUIDACCESS.
46422         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46423         (Depends-on): Add unistd.
46424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46425         (Include): Specify <unistd.h> instead of euidaccess.h.
46426         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46427         HAVE_EUIDACCESS.
46428         * NEWS: Mention the change.
46429
46430 2008-10-18  Bruno Haible  <bruno@clisp.org>
46431
46432         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46433
46434         Move the getdomainname() declaration to <unistd.h>.
46435         * lib/getdomainname.h: Remove file.
46436         * lib/unistd.in.h (getdomainname): New declaration.
46437         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46438         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46439         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46440         HAVE_GETDOMAINNAME.
46441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46442         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46443         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46444         (Depends-on): Add unistd, extensions.
46445         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46446         (Includes): Specify <unistd.h> instead of getdomainname.h.
46447         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46448         HAVE_GETDOMAINNAME.
46449         * NEWS: Mention the change.
46450
46451 2008-10-18  Bruno Haible  <bruno@clisp.org>
46452
46453         * modules/dirent: New file.
46454         * m4/dirent_h.m4: New file.
46455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46456         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46457         * modules/fchdir (Files): Remove lib/dirent.in.h.
46458         (Depends-on): Add dirent.
46459         (Makefile.am): Move rules to modules/dirent.
46460         * doc/posix-headers/dirent.texi: Mention the new module.
46461
46462 2008-10-18  Bruno Haible  <bruno@clisp.org>
46463
46464         Avoid -Wunused-parameter warnings in public gnulib header files.
46465         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46466         macro.
46467         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46468
46469 2008-10-18  Bruno Haible  <bruno@clisp.org>
46470
46471         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46472         * doc/glibc-functions/error.texi: Mention the module 'error'.
46473         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46474         * doc/glibc-functions/getdomainname.texi: Mention the module
46475         'getdomainname'.
46476         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46477         * doc/glibc-functions/getpagesize.texi: Mention the module
46478         'getpagesize'.
46479         * doc/glibc-functions/getusershell.texi: Mention the module
46480         'getusershell'.
46481         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46482         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46483         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46484         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46485         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46486         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46487         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46488         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46489         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46490         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46491         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46492         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46493         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46494         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46495
46496 2008-10-17  Bruno Haible  <bruno@clisp.org>
46497
46498         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46499         HP-UX and IRIX, use -0.0L.
46500         * tests/test-ceill.c (minus_zero): Likewise.
46501         * tests/test-floorl.c (minus_zero): Likewise.
46502         * tests/test-frexpl.c (minus_zero): Likewise.
46503         * tests/test-isnan.c (minus_zerol): Likewise.
46504         * tests/test-isnanl.h (minus_zero): Likewise.
46505         * tests/test-ldexpl.c (minus_zero): Likewise.
46506         * tests/test-roundl.c (minus_zero): Likewise.
46507         * tests/test-signbit.c (minus_zerol): Likewise.
46508         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46509         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46510         * tests/test-truncl.c (minus_zero): Likewise.
46511         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46512         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46513         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46514         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46515
46516 2008-10-17  Bruno Haible  <bruno@clisp.org>
46517
46518         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46519         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46520         that it gets activated only for gcc >= 3.0.
46521         * lib/dirent.in.h: Likewise.
46522         * lib/errno.in.h: Likewise.
46523         * lib/fcntl.in.h: Likewise.
46524         * lib/float.in.h: Likewise.
46525         * lib/iconv.in.h: Likewise.
46526         * lib/inttypes.in.h: Likewise.
46527         * lib/locale.in.h: Likewise.
46528         * lib/math.in.h: Likewise.
46529         * lib/netdb.in.h: Likewise.
46530         * lib/netinet_in.in.h: Likewise.
46531         * lib/search.in.h: Likewise.
46532         * lib/signal.in.h: Likewise.
46533         * lib/spawn.in.h: Likewise.
46534         * lib/stdarg.in.h: Likewise.
46535         * lib/stdint.in.h: Likewise.
46536         * lib/stdio.in.h: Likewise.
46537         * lib/stdlib.in.h: Likewise.
46538         * lib/string.in.h: Likewise.
46539         * lib/strings.in.h: Likewise.
46540         * lib/sys_file.in.h: Likewise.
46541         * lib/sys_ioctl.in.h: Likewise.
46542         * lib/sys_select.in.h: Likewise.
46543         * lib/sys_socket.in.h: Likewise.
46544         * lib/sys_stat.in.h: Likewise.
46545         * lib/sys_time.in.h: Likewise.
46546         * lib/sysexits.in.h: Likewise.
46547         * lib/time.in.h: Likewise.
46548         * lib/unistd.in.h: Likewise.
46549         * lib/wchar.in.h: Likewise.
46550         * lib/wctype.in.h: Likewise.
46551         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46552
46553 2008-10-17  Jim Meyering  <meyering@redhat.com>
46554
46555         ignore-value: don't depend on inline module
46556         * modules/ignore-value (Depends-on): Remove 'inline'.
46557         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46558         Suggestion from Bruno Haible.
46559
46560 2008-10-17  Bruno Haible  <bruno@clisp.org>
46561
46562         New implementation of condition variables for Win32.
46563         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46564         (gl_linked_waitqueue_t): New type.
46565         (gl_cond_t): Use it.
46566         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46567         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46568         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46569         (glthread_cond_init_func, glthread_cond_wait_func,
46570         glthread_cond_timedwait_func, glthread_cond_signal_func,
46571         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46572         Reimplemented on the basis of gl_linked_waitqueue_t.
46573         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46574         gl_waitqueue_t.
46575         (gl_rwlock_t): Update.
46576         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46577
46578 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46579
46580         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46581         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46582
46583 2008-10-17  Jim Meyering  <meyering@redhat.com>
46584
46585         ignore-value: new module
46586         * modules/ignore-value: New file.
46587         * lib/ignore-value.h: New file.
46588         * MODULES.html.sh (Compiler warning management): New section,
46589         just for this module.  More to come.
46590
46591 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46592
46593         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46594         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46595         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46596
46597 2008-10-16  Jim Meyering  <meyering@redhat.com>
46598
46599         openat-die.c: avoid 'no previous prototype' warning
46600         * lib/openat-die.c: Include "openat.h".
46601         Reported by Reuben Thomas <rrt@sc3d.org>.
46602
46603 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46604
46605         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46606         * lib/netdb.in.h: Fix typo.
46607         Reported by Bruno Haible  <bruno@clisp.org>
46608
46609         * lib/netdb.in.h: Include sys/socket.h for platforms without
46610         netdb.h, to get structures like hostent on MinGW.
46611         * modules/netdb (Depends-on): Add sys_socket.
46612
46613 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46614
46615         * modules/netdb, modules/netdb-tests: New file.
46616         * m4/netdb_h.m4: New file.
46617         * lib/netdb.in.h: Add, currently just an empty file pending
46618         definitions.
46619         * tests/test-netdb.c: New file.
46620         * doc/posix-headers/netdb.texi: Mention that we replace it if
46621         needed.
46622         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46623         netdb.
46624
46625 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46626
46627         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46628         with code.
46629
46630 2008-10-13  Bruno Haible  <bruno@clisp.org>
46631
46632         * lib/glthread/cond.c (glthread_cond_wait_func,
46633         glthread_cond_timedwait_func): Add a comment.
46634
46635 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46636
46637         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46638         * tests/test-select.c: Likewise,
46639
46640 2008-10-13  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/glthread/cond.c (glthread_cond_wait_func,
46643         glthread_cond_timedwait_func): Fix variable name.
46644         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46645
46646 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46647
46648         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46649         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46650         struct sockaddr.sa_len.
46651         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46652
46653 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46654
46655         * build-aux/pmccabe2html: Add css and css_url parameters.
46656
46657 2008-10-12  Bruno Haible  <bruno@clisp.org>
46658
46659         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46660         calling aclx_get.
46661         Reported by Rainer Tammer <tammer@tammer.net>.
46662
46663 2008-10-12  Bruno Haible  <bruno@clisp.org>
46664
46665         Use msvcrt aware primitives for creation/termination of Win32 threads.
46666         * lib/glthread/thread.c: Include <process.h>.
46667         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46668         (wrapper_func): Update signature.
46669         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46670
46671 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46672             Bruno Haible  <bruno@clisp.org>
46673
46674         Provide a Win32 implementation of the 'cond' module.
46675         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46676         * lib/glthread/cond.c (glthread_cond_init_func,
46677         glthread_cond_wait_func, glthread_cond_timedwait_func,
46678         glthread_cond_signal_func, glthread_cond_broadcast_func,
46679         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46680         * modules/cond (Dependencies): Add gettimeofday.
46681
46682 2008-10-11  Bruno Haible  <bruno@clisp.org>
46683
46684         Make sleep work on older versions of mingw.
46685         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46686         only whether it exists.
46687         * doc/posix-functions/sleep.texi: Mention the problem with older
46688         versions of mingw.
46689
46690 2008-10-11  Bruno Haible  <bruno@clisp.org>
46691
46692         New module 'shutdown'.
46693         * modules/shutdown: New file.
46694         * lib/sys_socket.in.h (shutdown): New declaration.
46695         * lib/winsock.c (shutdown): New function.
46696         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46697         GNULIB_SHUTDOWN.
46698         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46699         * doc/posix-functions/shutdown.texi: Document the new module.
46700
46701 2008-10-11  Jim Meyering  <meyering@redhat.com>
46702
46703         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46704
46705 2008-10-11  Bruno Haible  <bruno@clisp.org>
46706
46707         New module 'fclose'.
46708         * modules/fclose: New file.
46709         * lib/stdio.in.h (fclose): New declaration.
46710         * lib/fclose.c: New file.
46711         * m4/fclose.m4: New file.
46712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46713         REPLACE_FCLOSE.
46714         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46715         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46716         REPLACE_FCLOSE.
46717         * modules/close (Depends-on): fclose.
46718         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46719
46720 2008-10-11  Bruno Haible  <bruno@clisp.org>
46721
46722         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46723         set errno and don't call _close.
46724
46725 2008-10-10  Bruno Haible  <bruno@clisp.org>
46726
46727         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46728         ACL, not afterwards. Fixes test failure on Cygwin.
46729
46730 2008-10-09  Ben Pfaff  <blp@gnu.org>
46731
46732         * build-aux/announce-gen: Fix gnulib version related part of usage
46733         message.  Die with a useful error message if no tarballs are
46734         found.
46735
46736 2008-10-10  Jim Meyering  <meyering@redhat.com>
46737
46738         bootstrap: use git's --depth=N option only if it's supported
46739         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46740         recognize the --depth option.  Reported by Pádraig Brady.
46741
46742 2008-10-09  Bruno Haible  <bruno@clisp.org>
46743
46744         New module 'ioctl'.
46745         * modules/ioctl: New file.
46746         * lib/sys_socket.in.h (ioctl): Remove declaration.
46747         * lib/winsock.c: Include <sys/ioctl.h>.
46748         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46749         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46750         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46751         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46752         * doc/posix-functions/ioctl.texi: Mention the new module.
46753
46754 2008-10-09  Bruno Haible  <bruno@clisp.org>
46755
46756         New module 'sys_ioctl'.
46757         * lib/sys_ioctl.in.h: New file.
46758         * m4/sys_ioctl_h.m4: New file.
46759         * modules/sys_ioctl: New file.
46760         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46761
46762 2008-10-09  Bruno Haible  <bruno@clisp.org>
46763
46764         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46765         * lib/winsock.c: Include <stdarg.h>.
46766         (rpl_ioctl): Change to second argument 'int' and then varargs.
46767
46768 2008-10-09  Bruno Haible  <bruno@clisp.org>
46769
46770         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46771         when the sys_socket module is present and the system has <winsock2.h>.
46772
46773 2008-10-09  Bruno Haible  <bruno@clisp.org>
46774
46775         * doc/posix-functions/close.texi: Mention module 'close' instead of
46776         module 'sys_socket'.
46777
46778 2008-10-09  Bruno Haible  <bruno@clisp.org>
46779
46780         * doc/glibc-headers/sys_ioctl.texi: New file.
46781         * doc/gnulib.texi: Include it.
46782
46783 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46784             Bruno Haible  <bruno@clisp.org>
46785
46786         Combine the two replacements of 'close'.
46787         * lib/sys_socket.in.h (close): Define to a reminder to include
46788         <unistd.h>.
46789         (_gl_close_fd_maybe_socket): New declaration.
46790         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46791         * lib/winsock.c (close): Remove undefinition.
46792         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46793         needed for the gnulib module 'close'.
46794         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46795         define to an error symbol or to a warning, if suitable.
46796         * lib/close.c: Include <sys/socket.h>.
46797         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46798         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46799         UNISTD_H_HAVE_WINSOCK2_H.
46800         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46802         UNISTD_H_HAVE_WINSOCK2_H.
46803         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46804         (configure.ac): Set a module indicator.
46805         (Makefile.am): Substitute GNULIB_CLOSE.
46806         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46807         * modules/poll-tests (Depends-on): Add close.
46808         * modules/select-tests (Depends-on): Likewise.
46809
46810 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46811             Bruno Haible  <bruno@clisp.org>
46812
46813         New module 'close'.
46814         * modules/close: New file.
46815         * lib/unistd.in.h (close): Move declaration out of the
46816         FCHDIR_REPLACEMENT scope.
46817         (_gl_unregister_fd): New declaration.
46818         * lib/close.c: New file.
46819         * lib/fchdir.c (rpl_close): Remove function.
46820         * m4/close.m4: New file.
46821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46822         close.
46823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46824         REPLACE_CLOSE.
46825         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46826         REPLACE_CLOSE.
46827         * modules/fchdir (Depends-on): Add close.
46828
46829 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46830             Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/fcntl.in.h (open): Simplify conditionals.
46833         (_gl_register_fd): New declaration.
46834         * lib/fchdir.c (rpl_open): Remove function.
46835         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46836         also.
46837         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46839         open.
46840
46841 2008-10-09  Jim Meyering  <meyering@redhat.com>
46842
46843         GNUmakefile: use the more name-space-friendly "_version"
46844         * top/GNUmakefile (_dummy): Update.
46845         (_version): Rename from "version".
46846
46847 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46848             Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46851         rpl_close.
46852         (_gl_register_fd): New function, extracted from rpl_open.
46853         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46854         (rpl_open, rpl_opendir): Use _gl_register_fd.
46855
46856 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46857
46858         Fix organization of 'open' replacement.
46859         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46860         (gl_FUNC_OPEN): Use it.
46861         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46862
46863 2008-10-08  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46866
46867 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46868
46869         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46870         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46871         listen).
46872
46873 2008-10-08  Eric Blake  <ebb9@byu.net>
46874
46875         GNUmakefile: add 'make version' target
46876         * top/GNUmakefile (_curr-ver): Split version update rules...
46877         (version): ...into a target.
46878
46879 2008-10-07  Bruno Haible  <bruno@clisp.org>
46880
46881         Use a more portable replacement expression for -0.0L.
46882         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46883         instead of -0.0L. Fix m4 quotation.
46884
46885         * tests/test-signbit.c: Include <float.h>.
46886         (minus_zero): New variable.
46887         (test_signbitl): Use minus_zero instead of -zero.
46888         * modules/signbit-tests (Depends-on): Add float.
46889
46890         * tests/test-ceill.c: Include <float.h>.
46891         (zero): Remove variable.
46892         (minus_zero): New variable.
46893         (main): Use minus_zero instead of -zero.
46894         * modules/ceill-tests (Depends-on): Add float.
46895
46896         * tests/test-floorl.c: Include <float.h>.
46897         (zero): Remove variable.
46898         (minus_zero): New variable.
46899         (main): Use minus_zero instead of -zero.
46900         * modules/floorl-tests (Depends-on): Add float.
46901
46902         * tests/test-roundl.c: Include <float.h>.
46903         (zero): Remove variable.
46904         (minus_zero): New variable.
46905         (main): Use minus_zero instead of -zero.
46906         * modules/roundl-tests (Depends-on): Add float.
46907
46908         * tests/test-truncl.c: Include <float.h>.
46909         (zero): Remove variable.
46910         (minus_zero): New variable.
46911         (main): Use minus_zero instead of -zero.
46912         * modules/truncl-tests (Depends-on): Add float.
46913
46914         * tests/test-frexpl.c (zero): Remove variable.
46915         (minus_zero): New variable.
46916         (main): Use minus_zero instead of -zero.
46917         * modules/frexpl-tests (Depends-on): Add float.
46918
46919         * tests/test-isnan.c (zerol): Remove variable.
46920         (minus_zerol): New variable.
46921         (test_long_double): Use minus_zerol instead of -zerol.
46922         * modules/isnan-tests (Depends-on): Add float.
46923
46924         * tests/test-isnanl.h (zero): Remove variable.
46925         (minus_zero): New variable.
46926         (main): Use minus_zero instead of -zero.
46927         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46928         * modules/isnanl-tests (Depends-on): Add float.
46929
46930         * tests/test-ldexpl.c (zero): Remove variable.
46931         (minus_zero): New variable.
46932         (main): Use minus_zero instead of -zero.
46933         * modules/ldexpl-tests (Depends-on): Add float.
46934
46935         * tests/test-snprintf-posix.h (zerol): Remove variable.
46936         (minus_zerol): New variable.
46937         (test_function): Use minus_zerol instead of -zerol.
46938         * modules/snprintf-posix-tests (Depends-on): Add float.
46939         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46940
46941         * tests/test-sprintf-posix.h (zerol): Remove variable.
46942         (minus_zerol): New variable.
46943         (test_function): Use minus_zerol instead of -zerol.
46944         * modules/sprintf-posix-tests (Depends-on): Add float.
46945         * modules/vsprintf-posix-tests (Depends-on): Add float.
46946
46947         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46948         (minus_zerol): New variable.
46949         (test_function): Use minus_zerol instead of -zerol.
46950         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46951
46952         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46953         (minus_zerol): New variable.
46954         (test_function): Use minus_zerol instead of -zerol.
46955         * modules/vasprintf-posix-tests (Depends-on): Add float.
46956
46957 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46958
46959         * MODULES.html.sh (Support for building documentation): Mention
46960         pmccabe2html.  Sort entries.
46961
46962         Add pmccabe2html module, from gnupdf.
46963         * build-aux/pmccabe.css: New file.
46964         * build-aux/pmccabe2html: New file.
46965         * m4/pmccabe2html.m4: New file.
46966         * modules/pmccabe2html: New file.
46967
46968 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46969
46970         flock: new module
46971         * MODULES.html.sh: Add to list of modules.
46972         * lib/flock.c: flock implementation for Windows and Unix systems
46973         which have fcntl.
46974         * doc/glibc-functions/flock.texi: Update documentation.
46975         * lib/sys_file.in.h: <sys/file.h> header file.
46976         * m4/flock.m4: M4 macros.
46977         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46978         * modules/flock: flock module.
46979         * modules/flock-tests: flock tests module.
46980         * modules/sys_file: sys/file.h module.
46981         * tests/test-flock.c: test suite for flock.
46982
46983 2008-10-06  Jim Meyering  <meyering@redhat.com>
46984
46985         bootstrap: check for LT_INIT more portably still ;-)
46986         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46987         Spotted by Bruno Haible.
46988
46989 2008-10-06  Eric Blake  <ebb9@byu.net>
46990
46991         test-signbit: avoid tripping Irix cc bug on -0.0L
46992         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46993         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46994         entire testsuite consistent and avoids an Irix 6.2 bug.
46995
46996 2008-10-05  Bruno Haible  <bruno@clisp.org>
46997             Jim Meyering  <jim@meyering.net>
46998
46999         Add an option for ignoring EPIPE during close_stdout.
47000         * lib/closeout.h: Include <stdbool.h>.
47001         (close_stdout_set_ignore_EPIPE): New declaration.
47002         * lib/closeout.c: Include <stdbool.h>.
47003         (ignore_EPIPE): New variable.
47004         (close_stdout_set_ignore_EPIPE): New function.
47005         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47006         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47007         failure.
47008         * modules/closeout (Depends-on): Add stdbool.
47009
47010 2008-10-05  Bruno Haible  <bruno@clisp.org>
47011
47012         * modules/accept: New file.
47013         * modules/bind: New file.
47014         * modules/connect: New file.
47015         * modules/getpeername: New file.
47016         * modules/getsockname: New file.
47017         * modules/getsockopt: New file.
47018         * modules/listen: New file.
47019         * modules/recv: New file.
47020         * modules/recvfrom: New file.
47021         * modules/send: New file.
47022         * modules/sendto: New file.
47023         * modules/setsockopt: New file.
47024         * modules/socket: New file.
47025         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47026         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47027         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47028         the particular module is requested. Add a link warning when the
47029         particular module is not requested.
47030         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47031         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47032         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47033         the particular module is requested.
47034         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47035         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47036         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47037         * modules/sys_socket (Depends-on): Add link-warning.
47038         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47039         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47040         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47041         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47042         GL_LINK_WARNING.
47043         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47044         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47045         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47046         * doc/posix-functions/getpeername.texi: Mention the new module
47047         'getpeername'.
47048         * doc/posix-functions/getsockname.texi: Mention the new module
47049         'getsockname'.
47050         * doc/posix-functions/getsockopt.texi: Mention the new module
47051         'getsockopt'.
47052         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47053         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47054         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47055         * doc/posix-functions/send.texi: Mention the new module 'send'.
47056         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47057         * doc/posix-functions/setsockopt.texi: Mention the new module
47058         'setsockopt'.
47059         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47060         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47061         listen, connect, accept.
47062         * modules/select-tests (Depends-on): Likewise.
47063
47064 2008-10-05  Bruno Haible  <bruno@clisp.org>
47065
47066         * lib/winsock.c (strerror): Remove unused #undef.
47067         (rpl_close): Remove unused local variable.
47068
47069         * modules/sys_socket (Depends-on); Add errno.
47070
47071 2008-10-05  Bruno Haible  <bruno@clisp.org>
47072
47073         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47074         (select): Add a link warning when the 'select' module is not used.
47075         * modules/sys_select (Depends-on): Add link-warning.
47076         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47077         Suggested by Paolo Bonzini.
47078
47079 2008-10-05  Jim Meyering  <meyering@redhat.com>
47080
47081         bootstrap: check for LT_INIT more portably
47082         * build-aux/bootstrap: Avoid using grep -E, since it's not
47083         portable enough.  Suggestion from Bruno Haible.
47084
47085 2008-10-05  Bruno Haible  <bruno@clisp.org>
47086
47087         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47088         as being fixed by gnulib.
47089
47090 2008-10-05  Bruno Haible  <bruno@clisp.org>
47091
47092         * modules/select-tests: New file, mostly copied from
47093         modules/sys_select-tests.
47094         * tests/test-select.c: New file, mostly copied from
47095         tests/test-sys_select.c.
47096         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47097         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47098         (Makefile.am): Remove test_sys_select_LDADD.
47099
47100         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47101         to an undefined symbol, for an error message.
47102         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47103         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47104         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47105         winsock-select.c here.
47106         * modules/sys_select (Files): Remove lib/winsock-select.c.
47107         (Depends-on): Remove alloca.
47108         (Makefile.am): Substitute GNULIB_SELECT.
47109         * modules/select: New file.
47110         * doc/posix-functions/select.texi: Update.
47111
47112 2008-10-05  Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47115         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47116         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47117         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47118         getdtablesize.
47119         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47120         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47121
47122 2008-10-05  Bruno Haible  <bruno@clisp.org>
47123
47124         * modules/getdtablesize-tests: New file.
47125         * tests/test-getdtablesize.c: New file.
47126
47127         New module 'getdtablesize'.
47128         * lib/unistd.in.h (getdtablesize): New declaration.
47129         * lib/getdtablesize.c: New file.
47130         * m4/getdtablesize.m4: New file.
47131         * modules/getdtablesize: New file.
47132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47133         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47134         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47135         HAVE_GETDTABLESIZE.
47136         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47137
47138 2008-10-05  Bruno Haible  <bruno@clisp.org>
47139
47140         * modules/sched (Makefile.am): Fix typo.
47141         Reported by Simon Josefsson.
47142
47143 2008-10-05  Jim Meyering  <meyering@redhat.com>
47144
47145         bootstrap: check for LT_INIT, too
47146         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47147         are deprecated.  Suggestion from Ralf Wildenhues.
47148
47149 2008-10-05  Bruno Haible  <bruno@clisp.org>
47150
47151         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47152         overriding them by ours.
47153         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47154
47155 2008-10-05  Jim Meyering  <meyering@redhat.com>
47156
47157         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47158         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47159         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47160
47161 2008-10-04  Bruno Haible  <bruno@clisp.org>
47162
47163         * modules/dup2 (License): Change to LGPLv2+.
47164         * modules/sleep (License): Likewise.
47165         * modules/perror (License): Likewise.
47166         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47167         Blake.
47168         * modules/signal (License): Likewise.
47169         * modules/sigprocmask (License): Likewise.
47170         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47171         Meyering.
47172
47173 2008-10-04  Bruno Haible  <bruno@clisp.org>
47174
47175         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47176         Reported by Rainer Tammer <tammer@tammer.net>.
47177
47178 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47179             Bruno Haible  <bruno@clisp.org>
47180
47181         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47182         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47183         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47184
47185 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47186
47187         filevercmp: new module
47188         * lib/filevercmp.h: New function filevercmp comparing version strings.
47189         * lib/filevercmp.c: Implementation of filevercmp function.
47190         * modules/filevercmp: Module metadata.
47191         * tests/test-filevercmp.c: Unit test for new module.
47192         * modules/filevercmp-tests: Unit test metadata.
47193         * MODULES.html.sh: Add filevercmp module.
47194
47195 2008-10-03  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/c-ctype.h: Add comment.
47198         Reported by Jim Meyering.
47199
47200 2008-10-02  Bruno Haible  <bruno@clisp.org>
47201
47202         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47203
47204 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47205
47206         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47207         name of bootstrap.conf accordingly.
47208
47209 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47210
47211         * build-aux/bootstrap: Install git-merge-changelog configuration
47212         items into .gitconfig if needed.
47213
47214 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47215
47216         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47217         git repository, and initialize/update it accordingly.
47218
47219 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47220
47221         * modules/fsync-tests: New file.
47222         * tests/test-fsync.c: New file.
47223
47224         New module 'fsync'.
47225         * lib/fsync.c: New file.
47226         * m4/fsync.m4: New file.
47227         * modules/fsync: New file.
47228         * lib/unistd.in.h (fsync): New declaration.
47229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47230         GNULIB_FSYNC and HAVE_FSYNC.
47231         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47232         * MODULES.html.sh (posix_functions): Add fsync.
47233         * doc/posix-functions/fsync.texi: Mention the new module.
47234
47235 2008-10-02  Jim Meyering  <meyering@redhat.com>
47236
47237         fts.c: sync with similar code from coreutils' remove.c
47238         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47239         Guard also with "#if defined __linux__", since for now at least,
47240         this code is Linux-kernel-specific.
47241
47242 2008-10-02  Jim Meyering  <meyering@redhat.com>
47243
47244         fts: bug fixes
47245         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47246         Include <sys/vfs.h>, not <sys/statfs.h>.
47247
47248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47249         Include <sys/vfs.h>, not <sys/statfs.h>.
47250
47251 2008-10-01  Bruno Haible  <bruno@clisp.org>
47252
47253         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47254         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47255         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47256         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47257         * doc/posix-functions/posix_spawnp.texi: Likewise.
47258         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47259         whether posix_spawn actually works.
47260         * m4/pipe.m4 (gl_PIPE): Likewise.
47261         * modules/execute (Files): Add m4/posix_spawn.m4.
47262         * modules/pipe (Files): Add m4/posix_spawn.m4.
47263         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47264
47265 2008-10-01  Jim Meyering  <meyering@redhat.com>
47266
47267         remove trailing spaces
47268         * NEWS: Likewise.
47269         * lib/poll.c (poll): Likewise.
47270         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47271         * lib/winsock.c (rpl_close): Likewise.
47272         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47273         * modules/yield: Likewise.
47274         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47275         * tests/test-sys_select.c (connect_to_socket): Likewise.
47276
47277         fts.c: adjust a new interface to be more generally useful
47278         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47279         (fts_build): Adjust caller.
47280
47281 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47282
47283         * modules/cond-tests: New file.
47284         * tests/test-cond.c: New file.
47285
47286 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47287             Bruno Haible  <bruno@clisp.org>
47288
47289         * modules/cond (Dependencies): Add errno, time.
47290         * lib/glthread/cond.h: Include <time.h>.
47291         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47292         across platforms.
47293
47294 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47295             Bruno Haible  <bruno@clisp.org>
47296
47297         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47298
47299 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47300             Bruno Haible  <bruno@clisp.org>
47301
47302         * modules/tls-tests (Depends-on): Add thread, yield.
47303         (configure.ac): Remove all checks.
47304         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47305         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47306         gl_thread_self): Remove definitions. Include glthread/thread.h and
47307         glthread/yield.h instead.
47308         (test_tls): Pass an additional NULL argument to gl_thread_join.
47309
47310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47311             Bruno Haible  <bruno@clisp.org>
47312
47313         * modules/lock-tests (Depends-on): Add thread, yield.
47314         (configure.ac): Remove all checks.
47315         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47316         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47317         gl_thread_self): Remove definitions. Include glthread/thread.h and
47318         glthread/yield.h instead.
47319         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47320         additional NULL argument to gl_thread_join.
47321
47322 2008-09-30  Bruno Haible  <bruno@clisp.org>
47323
47324         Fix the Win32 implementation of the 'thread' module.
47325         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47326         pointer type.
47327         (gl_thread_self): Invoke gl_thread_self_func.
47328         (gl_thread_self_func): New declaration.
47329         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47330         (do_init_self_key, init_self_key): New functions.
47331         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47332         Remove some fields.
47333         (running_threads, running_lock): Remove variables.
47334         (get_current_thread_handle): New function.
47335         (gl_thread_self_func, wrapper_func, glthread_create_func,
47336         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47337         simplified.
47338
47339 2008-09-30  Bruno Haible  <bruno@clisp.org>
47340
47341         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47342         files.
47343
47344 2008-09-30  Jim Meyering  <meyering@redhat.com>
47345
47346         fts.m4: correct the test for statfs.f_type
47347         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47348         when checking for statfs.f_type.
47349
47350 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47351
47352         tests: avoid some compiler warnings
47353         * tests/test-memchr.c (main): Pass NULL indirectly.
47354         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47355
47356 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47357
47358         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47359         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47360         exactly specified dayshifts.
47361         (dayshift): New rule.
47362         (rel): Add dayshift.
47363         (relative_time_table) [tomorrow, yesterday, today, now]:
47364         Use tDAY_SHIFT in place of tDAY_UNIT.
47365         * tests/test-getdate.c: Add tests for now-disallowed countable
47366         dayshifts, e.g., "4 yesterday ago".
47367
47368 2008-09-29  Bruno Haible  <bruno@clisp.org>
47369
47370         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47371         * tests/test-posix_spawn1.in.sh: Renamed from
47372         tests/test-posix_spawn.in.sh.
47373         * tests/test-posix_spawn2.c: New file.
47374         * tests/test-posix_spawn2.in.sh: New file.
47375         * modules/posix_spawnp-tests (Files): Update.
47376         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47377
47378 2008-09-29  Bruno Haible  <bruno@clisp.org>
47379
47380         Propagate effects of putenv/setenv/unsetenv to child processes.
47381         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47382         * lib/pipe.c (create_pipe): Likewise.
47383
47384 2008-09-29  Bruno Haible  <bruno@clisp.org>
47385
47386         Enable use of shell scripts as executables in mingw.
47387         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47388         run the program as a shell script.
47389         * lib/pipe.c (create_pipe): Likewise.
47390         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47391         resulting array.
47392
47393 2008-09-29  Eric Blake  <ebb9@byu.net>
47394
47395         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47396
47397 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47398
47399         * doc/posix-functions/accept.texi: Update mingw problems.
47400         * doc/posix-functions/bind.texi: Update mingw problems.
47401         * doc/posix-functions/close.texi: Update mingw problems.
47402         * doc/posix-functions/connect.texi: Update mingw problems.
47403         * doc/posix-functions/getpeername.texi: Update mingw problems.
47404         * doc/posix-functions/getsockname.texi: Update mingw problems.
47405         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47406         * doc/posix-functions/ioctl.texi: Update mingw problems.
47407         * doc/posix-functions/listen.texi: Update mingw problems.
47408         * doc/posix-functions/recv.texi: Update mingw problems.
47409         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47410         * doc/posix-functions/select.texi: Update mingw problems.
47411         * doc/posix-functions/send.texi: Update mingw problems.
47412         * doc/posix-functions/sendto.texi: Update mingw problems.
47413         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47414         * doc/posix-functions/socket.texi: Update mingw problems.
47415
47416 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47417             Bruno Haible  <bruno@clisp.org>
47418
47419         * lib/sys_select.in.h: Include sys/time.h.
47420         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47421         * modules/sys_select: Depend on sys_time.
47422         * tests/test-sys_select.c: Test that sys/select.h defines struct
47423         timeval fully.
47424
47425 2008-09-29  Bruno Haible  <bruno@clisp.org>
47426
47427         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47428         * lib/sys_select.in.h: Likewise.
47429
47430 2008-09-29  Bruno Haible  <bruno@clisp.org>
47431
47432         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47433
47434 2008-09-29  Bruno Haible  <bruno@clisp.org>
47435
47436         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47437         Set LIBSOCKET instead of augmenting LIBS.
47438         * modules/sockets (Link): New section.
47439         * modules/sockets-tests (test_sockets_LDADD): New variable.
47440         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47441         * modules/poll-tests (test_poll_LDADD): New variable.
47442         * NEWS: Document the change.
47443
47444 2008-09-29  Bruno Haible  <bruno@clisp.org>
47445
47446         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47447         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47448         ARPA_INET_H directly.
47449         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47450
47451 2008-09-28  Bruno Haible  <bruno@clisp.org>
47452
47453         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47454         from gl_HEADER_SYS_SOCKET.
47455         (gl_HEADER_SYS_SOCKET): Invoke it.
47456         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47457
47458 2008-09-28  Bruno Haible  <bruno@clisp.org>
47459
47460         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47461         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47462         Needed on OSF/1 4.0.
47463
47464 2008-09-28  Bruno Haible  <bruno@clisp.org>
47465
47466         Override open more carefully.
47467         * lib/open.c (orig_open): New function.
47468         (rpl_open): Use orig_open instead of open.
47469         * lib/fcntl.in.h: Add special invocation convention.
47470         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47471         (gl_FUNC_OPEN): Invoke it.
47472
47473         Override freopen more carefully.
47474         * lib/freopen.c (orig_freopen): New function.
47475         (rpl_freopen): Use orig_freopen instead of freopen.
47476         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47477         (gl_FUNC_FREOPEN): Invoke it.
47478
47479         Override fopen more carefully.
47480         * lib/fopen.c (orig_fopen): New function.
47481         (rpl_fopen): Use orig_fopen instead of fopen.
47482         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47483         (gl_FUNC_FOPEN): Invoke it.
47484         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47485
47486 2008-09-28  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47489         SIGPIPE.
47490
47491 2008-09-28  Bruno Haible  <bruno@clisp.org>
47492
47493         * tests/test-sigaction.c (handler, main): Disable the check whether
47494         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47495         glibc systems with LinuxThreads.
47496
47497 2008-09-28  Bruno Haible  <bruno@clisp.org>
47498
47499         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47500
47501         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47502         with AIX xlc.
47503         * lib/fcntl.in.h (open): Likewise.
47504         Reported by Rainer Tammer <tammer@tammer.net>.
47505
47506 2008-09-28  Bruno Haible  <bruno@clisp.org>
47507
47508         * modules/posix_spawnp-tests: New file.
47509         * tests/test-posix_spawn.c: New file.
47510         * tests/test-posix_spawn.in.sh: New file.
47511
47512         New module 'posix_spawnp'.
47513         * modules/posix_spawnp: New file.
47514         * lib/spawnp.c: New file, from GNU libc with modifications.
47515         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47516
47517         New module 'posix_spawn'.
47518         * modules/posix_spawn: New file.
47519         * lib/spawn.c: New file, from GNU libc with modifications.
47520         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47521
47522         New module 'posix_spawnattr_destroy'.
47523         * modules/posix_spawnattr_destroy: New file.
47524         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47525         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47526         module.
47527
47528         New module 'posix_spawnattr_setsigmask'.
47529         * modules/posix_spawnattr_setsigmask: New file.
47530         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47531         modifications.
47532         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47533         new module.
47534
47535         New module 'posix_spawnattr_getsigmask'.
47536         * modules/posix_spawnattr_getsigmask: New file.
47537         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47538         modifications.
47539         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47540         new module.
47541
47542         New module 'posix_spawnattr_setsigdefault'.
47543         * modules/posix_spawnattr_setsigdefault: New file.
47544         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47545         modifications.
47546         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47547         new module.
47548
47549         New module 'posix_spawnattr_getsigdefault'.
47550         * modules/posix_spawnattr_getsigdefault: New file.
47551         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47552         modifications.
47553         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47554         new module.
47555
47556         New module 'posix_spawnattr_setschedpolicy'.
47557         * modules/posix_spawnattr_setschedpolicy: New file.
47558         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47559         modifications.
47560         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47561         new module.
47562
47563         New module 'posix_spawnattr_getschedpolicy'.
47564         * modules/posix_spawnattr_getschedpolicy: New file.
47565         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47566         modifications.
47567         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47568         new module.
47569
47570         New module 'posix_spawnattr_setschedparam'.
47571         * modules/posix_spawnattr_setschedparam: New file.
47572         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47573         modifications.
47574         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47575         new module.
47576
47577         New module 'posix_spawnattr_getschedparam'.
47578         * modules/posix_spawnattr_getschedparam: New file.
47579         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47580         modifications.
47581         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47582         new module.
47583
47584         New module 'posix_spawnattr_setpgroup'.
47585         * modules/posix_spawnattr_setpgroup: New file.
47586         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47587         modifications.
47588         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47589         module.
47590
47591         New module 'posix_spawnattr_getpgroup'.
47592         * modules/posix_spawnattr_getpgroup: New file.
47593         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47594         modifications.
47595         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47596         module.
47597
47598         New module 'posix_spawnattr_setflags'.
47599         * modules/posix_spawnattr_setflags: New file.
47600         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47601         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47602         module.
47603
47604         New module 'posix_spawnattr_getflags'.
47605         * modules/posix_spawnattr_getflags: New file.
47606         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47607         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47608         module.
47609
47610         New module 'posix_spawnattr_init'.
47611         * modules/posix_spawnattr_init: New file.
47612         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47613         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47614         module.
47615
47616         New module 'posix_spawn_file_actions_destroy'.
47617         * modules/posix_spawn_file_actions_destroy: New file.
47618         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47619         modifications.
47620         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47621         the new module.
47622
47623         New module 'posix_spawn_file_actions_addopen'.
47624         * modules/posix_spawn_file_actions_addopen: New file.
47625         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47626         modifications.
47627         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47628         the new module.
47629
47630         New module 'posix_spawn_file_actions_adddup2'.
47631         * modules/posix_spawn_file_actions_adddup2: New file.
47632         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47633         modifications.
47634         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47635         the new module.
47636
47637         New module 'posix_spawn_file_actions_addclose'.
47638         * modules/posix_spawn_file_actions_addclose: New file.
47639         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47640         modifications.
47641         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47642         the new module.
47643
47644         New module 'posix_spawn_file_actions_init'.
47645         * modules/posix_spawn_file_actions_init: New file.
47646         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47647         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47648         new module.
47649
47650         New module 'posix_spawn-internal'.
47651         * modules/posix_spawn-internal: New file.
47652         * lib/spawn_int.h: New file, from GNU libc with modifications.
47653         * lib/spawni.c: New file, from GNU libc with modifications.
47654         * m4/posix_spawn.m4: New file.
47655
47656         New module 'spawn'.
47657         * modules/spawn: New file.
47658         * lib/spawn.in.h: New file, from GNU libc with modifications.
47659         * m4/spawn_h.m4: New file.
47660         * doc/posix-headers/spawn.texi: Mention the new module.
47661
47662 2008-09-28  Bruno Haible  <bruno@clisp.org>
47663
47664         * modules/sched-tests: New file.
47665         * tests/test-sched.c: New file.
47666
47667         New module 'sched'.
47668         * modules/sched: New file.
47669         * lib/sched.in.h: New file.
47670         * m4/sched_h.m4: New file.
47671         * doc/posix-headers/sched.texi: Mention the new module.
47672
47673 2008-09-27  Eric Blake  <ebb9@byu.net>
47674
47675         Fix previous patch, and tweak references to $0.
47676         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47677         (func_version, func_gnulib_dir): Don't call this program
47678         gnulib-tool.
47679         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47680         with using $0 in function.
47681         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47682         (func_fatal_error): Reuse the name the user invoked us with.
47683
47684 2008-09-27  Bruno Haible  <bruno@clisp.org>
47685
47686         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47687         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47688         (gl_ICONV_H): Not here.
47689         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47690         instead of assigning ICONV_H directly.
47691
47692         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47694         WCHAR_H directly.
47695
47696 2008-09-27  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47699         * modules/arpa_inet (Depends-on): Add link-warning.
47700         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47701         * modules/unistd (Makefile.am): Likewise.
47702
47703 2008-09-26  Bruno Haible  <bruno@clisp.org>
47704
47705         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47706         variables.
47707         (func_version): Essentially copied from gnulib-tool.
47708         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47709         func_readlink): Copied from gnulib-tool.
47710
47711 2008-09-26  Bruno Haible  <bruno@clisp.org>
47712
47713         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47714         invoking git-version-gen.
47715
47716 2008-09-26  Bruno Haible  <bruno@clisp.org>
47717
47718         * posix-modules: Update to directory names changed on 2008-01-19.
47719         Remove commas in output before splitting into words. No more need to
47720         avoid 'ftruncate' since 2007-02-19.
47721
47722 2008-09-26  Bruno Haible  <bruno@clisp.org>
47723
47724         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47725
47726 2008-09-26  Bruno Haible  <bruno@clisp.org>
47727
47728         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47729         * modules/fwriteerror (Depends-on): Add errno.
47730
47731 2008-09-26  Bruno Haible  <bruno@clisp.org>
47732
47733         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47734         * tests/test-vc-list-files-cvs.sh: Likewise.
47735
47736 2008-09-26  Bruno Haible  <bruno@clisp.org>
47737
47738         * doc/posix-headers/sys_resource.texi: Reorder items.
47739
47740 2008-09-26  Jim Meyering  <meyering@redhat.com>
47741
47742         fts: tweak inode comparison function
47743         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47744         inode numbers, as documented.
47745
47746         fts: sort dirent entries on inode number before traversing
47747         This avoids a quadratic, seek-related performance penalty when
47748         operating on a directory containing many entries (measurable at 10k;
47749         3.5 hours at 2 million entries with a cold cache) on certain types
47750         of file systems, including ext3 and ext4, but not tmpfs.
47751         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47752         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47753         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47754         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47755         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47756         (fts_build): Set the stat.st_ino member from D_INO.
47757         If it is likely to be useful, sort dirent entries on inode number.
47758
47759         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47760         and the struct statfs.f_type member.
47761         * modules/fts (Depends-on): Add d-ino.
47762
47763 2008-09-26  Bruno Haible  <bruno@clisp.org>
47764
47765         * modules/sigpipe-die (Depends-on): Add sigpipe.
47766
47767         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47768         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47769         and GNULIB_STDIO_H_SIGPIPE are set.
47770         * lib/stdio-write.c: New file.
47771         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47772         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47773         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47774         REPLACE_STDIO_WRITE_FUNCS.
47775         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47776         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47777         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47778         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47779         * modules/stdio (Files): Add lib/stdio-write.c.
47780         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47781         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47782         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47783         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47784         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47785         REPLACE_FPRINTF_POSIX.
47786         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47787         REPLACE_PRINTF_POSIX.
47788         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47789         REPLACE_VFPRINTF_POSIX.
47790         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47791         REPLACE_VPRINTF_POSIX.
47792         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47793         SIGPIPE issue.
47794         * doc/posix-functions/fputc.texi: Likewise.
47795         * doc/posix-functions/fputs.texi: Likewise.
47796         * doc/posix-functions/fwrite.texi: Likewise.
47797         * doc/posix-functions/printf.texi: Likewise.
47798         * doc/posix-functions/putc.texi: Likewise.
47799         * doc/posix-functions/putchar.texi: Likewise.
47800         * doc/posix-functions/puts.texi: Likewise.
47801         * doc/posix-functions/vfprintf.texi: Likewise.
47802         * doc/posix-functions/vprintf.texi: Likewise.
47803
47804         * modules/safe-write (Depends-on): Add write.
47805
47806         * modules/sigpipe-tests: New file.
47807         * tests/test-sigpipe.c: New file.
47808         * tests/test-sigpipe.sh: New file.
47809
47810         * modules/write: New file.
47811         * lib/unistd.in.h: Include <sys/types.h>.
47812         (write): New declaration.
47813         * lib/write.c: New file.
47814         * m4/write.m4: New file.
47815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47816         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47817         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47818         GNULIB_WRITE, REPLACE_WRITE.
47819         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47820         and the SIGPIPE issue.
47821
47822         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47823         (raise): New declaration.
47824         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47825         (ext_signal): New function.
47826         (rpl_raise): New function.
47827         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47828         GNULIB_SIGNAL_H_SIGPIPE.
47829         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47830         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47831
47832         * modules/sigpipe: New file.
47833         * m4/sigpipe.m4: New file.
47834
47835 2008-09-25  Derek Price  <derek@ximbiot.com>
47836             Bruno Haible  <bruno@clisp.org>
47837
47838         * gnulib-tool (func_import): Report all license incompatibilities, not
47839         just the first one.
47840
47841 2008-09-25  Bruno Haible  <bruno@clisp.org>
47842
47843         * gnulib-tool (func_import): When computing the edits, consider not
47844         only the Makefile.ams that exist but also those that will be generated.
47845
47846 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47847
47848         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47849         fixes gnulib-tool --test warning about duplicate dependency.
47850
47851 2008-09-25  Bruno Haible  <bruno@clisp.org>
47852
47853         * gnulib-tool: Don't ask the user to perform edits in the generated
47854         Makefile.ams.
47855         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47856         apply to the Makefile.am being generated.
47857         (func_emit_tests_Makefile_am): Execute edits that apply to the
47858         Makefile.am being generated.
47859         (func_import): Setup list of Makefile.am edits before emitting the
47860         Makefile.ams, not at the end.
47861         (func_create_testdir): Update.
47862         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47863
47864 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47865
47866         * gnulib-tool (func_import): Store the --tests-base option in the
47867         comment in gnulib-cache.m4.
47868
47869 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47870
47871         * NEWS: Document increased portability that sys_select now provides.
47872
47873         * lib/sys_select.in.h: Install select wrapper.
47874         * lib/sys_socket.in.h: Use more descriptive name when there is no
47875         select wrapper.
47876         * lib/winsock-select.c: New.
47877         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47878         Require gl_HEADER_SYS_SOCKET.
47879         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47880         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47881         * tests/test-sys_select.c: Add functional tests.
47882
47883 2008-09-24  Eric Blake  <ebb9@byu.net>
47884
47885         open, fopen: close fd leak in last patch
47886         * lib/open.c (rpl_open): Close fd before returning error.
47887         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47888         * doc/posix-functions/open.texi (open): Document that Irix also
47889         has the bug.
47890         * doc/posix-functions/fopen.texi (fopen): Likewise.
47891         Reported by Paolo Bonzini.
47892
47893 2008-09-24  Bruno Haible  <bruno@clisp.org>
47894
47895         Ensure that a filename ending in a slash cannot be used to access a
47896         non-directory.
47897         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47898         to check whether it's really a directory.
47899         * lib/fopen.c: Include fcntl.h, unistd.h.
47900         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47901         and fdopen().
47902         * modules/fopen (Depends-on): Add unistd.
47903         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47904         * tests/test-fopen.c (main): Likewise.
47905         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47906         * doc/posix-functions/fopen.texi: Likewise.
47907         Reported by Eric Blake.
47908
47909 2008-09-23  Eric Blake  <ebb9@byu.net>
47910
47911         c-stack: avoid compiler optimizations when provoking overflow
47912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47913         recursion harder to optimize, to ensure a stack overflow occurs.
47914         * tests/test-c-stack.c (recurse): Likewise.
47915         Borrowed from libsigsegv.
47916
47917         c-stack: work around Irix sigaltstack bug
47918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47919         whether sigaltstack uses wrong end of stack_t (copied in part from
47920         libsigsegv).
47921         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47922         Irix bug, without requiring an over-allocation.
47923         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47924         bug.
47925
47926         fopen: document mingw bug on directories
47927         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47928         not allowing a stream visiting a directory, even though reading
47929         from such a stream is not portable.
47930
47931 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47932
47933         * lib/poll.c: Rewrite.
47934         * modules/poll: Depend on alloca.
47935
47936 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47937
47938         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47939         instead define prototypes for a full set of wrappers.  Ensure
47940         that Cygwin does not use the compatibility code, which is only
47941         for MinGW.
47942         * lib/winsock.c: New.
47943         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47944         * modules/sys_socket: Add lib/winsock.c.
47945
47946         * modules/poll-tests: Add errno and perror.
47947         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47948
47949 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47950
47951         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47952
47953 2008-09-23  Bruno Haible  <bruno@clisp.org>
47954
47955         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47956         * doc/glibc-functions/*: Likewise.
47957
47958 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47959
47960         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47961         success.
47962
47963 2008-09-22  Eric Blake  <ebb9@byu.net>
47964             Bruno Haible  <bruno@clisp.org>
47965
47966         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47967         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47968         supply %A but mishandle pseudo-NaN.
47969         Reported by Simon Josefsson.
47970
47971 2008-09-21  Bruno Haible  <bruno@clisp.org>
47972
47973         * tests/test-lock.c (main): Tweak skip message.
47974         * tests/test-tls.c (main): Likewise.
47975
47976 2008-09-21  Bruno Haible  <bruno@clisp.org>
47977
47978         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47979         whether 'struct sigaction' has sa_sigaction here...
47980         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47981         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47982
47983 2008-09-21  Bruno Haible  <bruno@clisp.org>
47984
47985         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47986         section.
47987         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47988         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47989         the new section.
47990         (Support for obsolete systems lacking POSIX:2001): New section.
47991         (String handling <string.h>): Move strdup to the new section.
47992         Suggested by Simon Josefsson and Paolo Bonzini.
47993
47994 2008-09-21  Bruno Haible  <bruno@clisp.org>
47995
47996         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47997         exponents in %e and %g results on 'long double'. Needed for mingw's
47998         improved *printf functions.
47999         * tests/test-vasprintf-posix.c (test_function): Likewise.
48000         * tests/test-snprintf-posix.h (test_function): Likewise.
48001         * tests/test-sprintf-posix.h (test_function): Likewise.
48002         Reported by Eric Blake.
48003
48004 2008-09-21  Bruno Haible  <bruno@clisp.org>
48005
48006         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48007         * tests/test-sprintf-posix.h (test_function): Likewise.
48008
48009 2008-09-21  Bruno Haible  <bruno@clisp.org>
48010
48011         * modules/getpass (Depends-on): Add strdup-posix.
48012
48013         New module 'strdup-posix'.
48014         * modules/strdup-posix: New file.
48015         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48016         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48018         REPLACE_STRDUP.
48019         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48020         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48021         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48022         strdup-posix.
48023
48024         * modules/strdup (Depends-on): Remove malloc-posix.
48025
48026 2008-09-20  Bruno Haible  <bruno@clisp.org>
48027
48028         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48029         Wildenhues.
48030
48031 2008-09-20  Bruno Haible  <bruno@clisp.org>
48032
48033         Ensure that wint_t gets defined on IRIX 5.3.
48034         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48035         * lib/wctype.in.h (wint_t): Likewise.
48036         (__wctype_wint_t): Remove type.
48037         (isw*): Use wint_t instead of __wctype_wint_t.
48038         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48039         * modules/wchar (Files): Add m4/wint_t.m4.
48040         (Makefile.am): Substitute HAVE_WINT_T.
48041         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48042         * tests/test-wctype.c: Check that wint_t is defined.
48043         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48044         * doc/posix-headers/wctype.texi: Likewise.
48045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48046
48047 2008-09-18  Bruno Haible  <bruno@clisp.org>
48048
48049         * gnulib-tool (func_exit): Update comment.
48050
48051 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48052
48053         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48054         assumes strdup exists and does not depend on strdup to return
48055         ENOMEM on out of memory conditions.
48056
48057 2008-09-18  Bruno Haible  <bruno@clisp.org>
48058
48059         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48060         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48061         digits for the exponent.
48062
48063 2008-09-18  Jim Meyering  <meyering@redhat.com>
48064             Bruno Haible  <bruno@clisp.org>
48065
48066         * lib/vasnprintf.c (decimal_point_char): Define also if
48067         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48068
48069 2008-09-16  Bruno Haible  <bruno@clisp.org>
48070         and Eric Blake  <ebb9@byu.net>
48071
48072         vasnprintf: support Irix 5.3
48073         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48074         that mishandle long double infinity.
48075         Reported by Tom G. Christensen.
48076
48077 2008-09-16  Bruno Haible  <bruno@clisp.org>
48078
48079         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48080         Solaris 9.
48081         * doc/glibc-functions/alphasort.texi: Likewise.
48082         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48083
48084 2008-09-16  Jim Meyering  <meyering@redhat.com>
48085
48086         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48087         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48088         a umask modification leak out of a subshell.  Otherwise, the
48089         opensolaris /bin/sh would be accepted and thus cause unwarranted
48090         failures in the coreutils test suite.
48091
48092 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48093
48094         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48095         to succeed.
48096
48097 2008-09-16  Jim Meyering  <meyering@redhat.com>
48098
48099         avoid spurious test failure when library is built without ACL support
48100         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48101         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48102         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48103         * tests/test-copy-acl.sh: Likewise.
48104
48105 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48106
48107         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48108         based on character occurrence counts.
48109
48110 2008-09-15  Eric Blake  <ebb9@byu.net>
48111
48112         tests: avoid some compiler warnings
48113         * tests/test-memchr.c (main): Pass NULL indirectly.
48114         * tests/test-closein.c (main): Avoid unused variable.
48115
48116 2008-09-15  Bruno Haible  <bruno@clisp.org>
48117
48118         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48119         are missing on OpenBSD 4.0 individually.
48120         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48121
48122 2008-09-15  Bruno Haible  <bruno@clisp.org>
48123
48124         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48125         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48126         * doc/posix-functions/perror.texi: Likewise.
48127         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48128         is missing.
48129         Reported by Eric Blake.
48130
48131         * lib/errno.in.h: Use replacement values >= 2000.
48132         Reported by Eric Blake.
48133
48134 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48135
48136         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48137         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48138         limit.
48139         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48140         compareseq was aborted.
48141
48142 2008-09-14  Bruno Haible  <bruno@clisp.org>
48143
48144         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48145         yvec_edit_count.
48146         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48147         (fstrcmp_bounded): Simplify result computation accordingly.
48148
48149 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48150
48151         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48152         (fstrcmp): Define in terms of fstrcmp_bounded.
48153         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48154         lower_bound argument.
48155         Return quickly if the result is certainly < lower_bound.
48156         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48157
48158 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48159
48160         * lib/diffseq.h (EARLY_ABORT): New macro.
48161         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48162         evaluates to true.
48163
48164 2008-09-14  Bruno Haible  <bruno@clisp.org>
48165
48166         * modules/perror-tests: New file.
48167         * tests/test-perror.sh: New file.
48168         * tests/test-perror.c: New file.
48169
48170         New module 'perror'.
48171         * lib/stdio.in.h (perror): New declaration.
48172         * lib/perror.c: New file.
48173         * m4/perror.m4: New file.
48174         * modules/perror: New file.
48175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48176         * doc/posix-functions/perror.texi: Mention the perror module.
48177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48178         REPLACE_PERROR.
48179         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48180         REPLACE_PERROR.
48181
48182 2008-09-14  Bruno Haible  <bruno@clisp.org>
48183
48184         * modules/stdio (Makefile.am): Reorder to match the order in
48185         lib/stdio.in.h.
48186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48187
48188 2008-09-13  Bruno Haible  <bruno@clisp.org>
48189
48190         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48191
48192 2008-09-13  Bruno Haible  <bruno@clisp.org>
48193
48194         Extend strerror to cover the added errno values.
48195         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48196         (rpl_strerror): Provide error messages for the added errno values and
48197         for the WSA* values.
48198         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48199         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48200         strerror.
48201         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48202         * modules/strerror (Depends-on): Add errno.
48203         * doc/posix-functions/strerror.texi: Document the change.
48204         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48205         and EOVERFLOW.
48206
48207 2008-09-13  Bruno Haible  <bruno@clisp.org>
48208
48209         * modules/EOVERFLOW: Remove file.
48210         * m4/eoverflow.m4: Remove file.
48211         * modules/EOVERFLOW-tests: Remove file.
48212         * tests/test-EOVERFLOW.c: Remove file.
48213         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48214         * modules/ftell (Depends-on): Likewise.
48215         * modules/getdelim (Depends-on): Likewise.
48216         * modules/getugroups (Depends-on): Likewise.
48217         * modules/poll (Depends-on): Likewise.
48218         * modules/snprintf (Depends-on): Likewise.
48219         * modules/sprintf-posix (Depends-on): Likewise.
48220         * modules/vasnprintf (Depends-on): Likewise.
48221         * modules/vasprintf (Depends-on): Likewise.
48222         * modules/vfprintf-posix (Depends-on): Likewise.
48223         * modules/vsnprintf (Depends-on): Likewise.
48224         * modules/vsprintf-posix (Depends-on): Likewise.
48225         * modules/xvasprintf (Depends-on): Likewise.
48226         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48227         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48228         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48229         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48230         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48231         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48232         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48233         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48234         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48235         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48236         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48237         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48238         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48239         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48240         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48241         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48242         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48243         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48244         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48245         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48246         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48247         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48248         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48249         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48250         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48251         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48252         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48253         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48254         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48255         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48256         * MODULES.html.sh: Remove EOVERFLOW.
48257         * NEWS: Mention the change.
48258
48259 2008-09-13  Bruno Haible  <bruno@clisp.org>
48260
48261         * modules/errno-tests: New file.
48262         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48263
48264         * lib/errno.in.h: New file.
48265         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48266         * modules/errno: New file.
48267         * doc/posix-headers/errno.texi: Update documentation.
48268         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48269
48270 2008-09-13  Bruno Haible  <bruno@clisp.org>
48271
48272         * tests/test-poll.c: Use #if for native Windows, rather than testing
48273         __MSVCRT__.
48274
48275 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48276             Bruno Haible  <bruno@clisp.org>
48277
48278         * lib/glob.c: Don't include <pwd.h> on native Windows.
48279         (WINDOWS32): New macro.
48280         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48281
48282 2008-09-13  Bruno Haible  <bruno@clisp.org>
48283
48284         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48285         (ETIMEDOUT): Remove macro.
48286         (glthread_cond_timedwait_multithreaded): New declaration.
48287         (glthread_cond_timedwait): Use it.
48288         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48289         (glthread_cond_timedwait_multithreaded): New function.
48290
48291 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48292
48293         * modules/poll-tests: Do not check for io.h.
48294         * tests/test-poll.c: Check for __MSVCRT__ instead.
48295
48296 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48297
48298         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48299         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48300         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48301
48302 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48303
48304         * modules/poll-tests: New.
48305         * tests/test-poll.c: New.
48306
48307 2008-09-12  Eric Blake  <ebb9@byu.net>
48308
48309         frexp: test for NetBSD failure on -0.0
48310         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48311         not all, bugs from NetBSD 3.0 have been fixed.
48312         * doc/posix-functions/frexp.texi (frexp): Document bug.
48313         Reported by Thomas Klausner.
48314
48315         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48316         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48317         literal -0.0.
48318         Reported by Jonathan C. Patschke <jp@centtech.com>.
48319
48320 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48321
48322         * lib/glthread/cond.h: Use dummy implementation also if
48323         USE_WIN32_THREADS.
48324
48325 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48326
48327         * modules/fnmatch-posix (License): Change to LGPLv2+.
48328         * modules/fnmatch-gnu (License): Likewise.
48329
48330 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48331
48332         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48333
48334 2008-09-11  Jim Meyering  <meyering@redhat.com>
48335
48336         * users.txt: Add gtk-vnc.
48337
48338 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48339
48340         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48341         rotate amounts.
48342
48343         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48344         required for 16-bit and 8-bit rotates.
48345         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48346         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48347         UINT8_MAX instead of hard-coded constants.
48348         Suggested by Paul Eggert.
48349
48350 2008-09-07  Bruno Haible  <bruno@clisp.org>
48351
48352         * tests/test-striconveh.c (main): Check behaviour when converting from
48353         UTF-7.
48354
48355         Make striconveh work better with stateful encodings.
48356         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48357         that iconv does not increment the inptr when returning -1/EINVAL.
48358
48359 2008-09-07  Bruno Haible  <bruno@clisp.org>
48360
48361         * build-aux/config.rpath: Update according to libtool-2.2.6.
48362         * build-aux/config.libpath: Likewise.
48363
48364 2008-09-06  Bruno Haible  <bruno@clisp.org>
48365
48366         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48367         * lib/freadptr.c (freadptr): Likewise.
48368         * lib/freadseek.c (freadptrinc): Likewise.
48369         Reported by Simon Josefsson.
48370
48371 2008-09-06  Bruno Haible  <bruno@clisp.org>
48372
48373         * modules/freadptr (License): Change to LGPLv2+.
48374         * modules/freadseek (License): Likewise.
48375         Suggested by Eric Blake.
48376
48377         * modules/memchr2 (License): Change to LGPLv2+.
48378         Approved by Eric Blake.
48379
48380 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48381             Bruno Haible  <bruno@clisp.org>
48382
48383         Make gnulib-tool work with native 'sed' on AIX.
48384         * gnulib-tool (sed_noop): New variable.
48385         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48386         func_add_or_update, func_create_testdir): Use it to initialize sed
48387         script variables.
48388         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48389
48390 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48391             Bruno Haible  <bruno@clisp.org>
48392
48393         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48394         also works after #include directives.
48395
48396 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48397
48398         getdate.y: reject an out-of-range timezone value
48399         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48400         the range [-24...+24].  When specified with only one or two digits,
48401         * tests/test-getdate.c: Tests for the fix.
48402         * doc/getdate.texi: Document this change.
48403
48404 2008-09-03  Bruno Haible  <bruno@clisp.org>
48405
48406         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48407
48408 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48409
48410         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48411         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48412         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48413         Blake <ebb9@byu.net>.
48414
48415         * tests/test-bitrotate.c: Add more test vectors.
48416
48417 2008-09-02  Eric Blake  <ebb9@byu.net>
48418
48419         vasnprintf-posix: handle large precision via %.*d
48420         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48421         when handling it ourselves.
48422         * tests/test-vasnprintf-posix.c (test_function): Add test.
48423         * tests/test-snprintf-posix.h (test_function): Likewise.
48424         * tests/test-sprintf-posix.h (test_function): Likewise.
48425         * tests/test-vasprintf-posix.c (test_function): Likewise.
48426         Reported by Alain Guibert.
48427
48428 2008-09-01  Eric Blake  <ebb9@byu.net>
48429
48430         c-stack: make configure-time check more robust
48431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48432         successful sigaction call.
48433         Reported by Tom G. Christensen.
48434
48435 2008-09-01  Bruno Haible  <bruno@clisp.org>
48436
48437         New module 'findprog-lgpl'.
48438         * modules/findprog-lgpl: New file.
48439         * lib/findprog-lgpl.c: New file.
48440         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48441         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48442         to decide whether to use strdup or xstrdup, concatenated_filename or
48443         xconcatenated_filename.
48444
48445 2008-09-01  Bruno Haible  <bruno@clisp.org>
48446
48447         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48448         'xconcat-filename' (GPL).
48449         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48450         (License): Change to LGPLv2+.
48451         * modules/xconcat-filename: New file.
48452         * lib/concat-filename.h (concatenated_filename): Change specification.
48453         (xconcatenated_filename): New declaration.
48454         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48455         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48456         memory situations.
48457         * lib/xconcat-filename.c: New file.
48458         * NEWS: Mention the change.
48459         * lib/findprog.c: Include concat-filename.h, not filename.h.
48460         (find_in_path): Use xconcatenated_filename instead of
48461         concatenated_filename.
48462         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48463         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48464         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48465         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48466         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48467         instead of concatenated_filename.
48468         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48469         (execute_java_class): Use xconcatenated_filename instead of
48470         concatenated_filename.
48471         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48472         * modules/javacomp (Depends-on): Likewise.
48473         * modules/javaexec (Depends-on): Likewise.
48474
48475 2008-09-01  Bruno Haible  <bruno@clisp.org>
48476
48477         Split module 'filename' into 'filename' and 'concat-filename'.
48478         * modules/filename: Keep only lib/filename.h.
48479         (License): Change to LGPLv2+.
48480         * modules/concat-filename: New file, extracted from modules/filename.
48481         * lib/filename.h (concatenated_filename): Remove declaration.
48482         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48483         * lib/concat-filename.c: Include concat-filename.h.
48484         * NEWS: Mention the change.
48485
48486 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48487
48488         * lib/bitrotate.h (rotl8, rotr8): Add.
48489
48490         * modules/bitrotate (configure.ac): Need
48491         AC_REQUIRE([AC_C_INLINE]).
48492         (Description): Mention stdint.h.  Reported by Bruno Haible
48493         <bruno@clisp.org>.
48494
48495         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48496         Paolo Bonzini <bonzini@gnu.org>.
48497
48498 2008-08-31  Bruno Haible  <bruno@clisp.org>
48499
48500         Assume Solaris specific bi-arch conventions on Solaris systems.
48501         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48502         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48503         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48504         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48505         like acl_libdirstem.
48506         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48507         acl_libdirstem.
48508         * NEWS: Mention the change.
48509         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48510
48511 2008-08-31  Jim Meyering  <meyering@redhat.com>
48512
48513         * lib/strftime.h: Add comments describing the two added arguments.
48514
48515         remove duplicate #include directives
48516         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48517         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48518
48519 2008-08-31  Bruno Haible  <bruno@clisp.org>
48520
48521         New module 'sigpipe-die'.
48522         * modules/sigpipe-die: New file.
48523         * lib/sigpipe-die.h: New file.
48524         * lib/sigpipe-die.c: New file.
48525         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48526
48527 2008-08-31  Bruno Haible  <bruno@clisp.org>
48528
48529         Don't override previously installed signal handlers.
48530         * lib/fatal-signal.c (saved_sigactions): New variable.
48531         (uninstall_handlers): Reset the signal to the saved handler, not
48532         to SIG_DFL (except when ignored).
48533         (install_handlers): Save the previous handlers.
48534
48535 2008-08-30  Bruno Haible  <bruno@clisp.org>
48536
48537         * gnulib-tool (func_reset_sigpipe): New function.
48538         (func_get_automake_snippet, func_modules_transitive_closure,
48539         func_import): Invoke it before a join command that reads from stdin,
48540         to avoid "echo: write error: Broken pipe" error messages on stderr.
48541         Reported by Sam Steingold <sds@gnu.org>.
48542
48543 2008-08-30  Bruno Haible  <bruno@clisp.org>
48544
48545         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48546         Code copied from m4/open.m4.
48547         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48548         access and the filename ends in a slash. Code copied from lib/open.c.
48549         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48550         * tests/test-fopen.c (main): Check against bug with trailing slash.
48551
48552 2008-08-29  Bruno Haible  <bruno@clisp.org>
48553
48554         Avoid some "gcc -pedantic" warnings.
48555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48556         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48557         * lib/dirent.in.h: Likewise.
48558         * lib/fcntl.in.h: Likewise.
48559         * lib/float.in.h: Likewise.
48560         * lib/iconv.in.h: Likewise.
48561         * lib/inttypes.in.h: Likewise.
48562         * lib/locale.in.h: Likewise.
48563         * lib/math.in.h: Likewise.
48564         * lib/netinet_in.in.h: Likewise.
48565         * lib/search.in.h: Likewise.
48566         * lib/signal.in.h: Likewise.
48567         * lib/stdarg.in.h: Likewise.
48568         * lib/stdint.in.h: Likewise.
48569         * lib/stdio.in.h: Likewise.
48570         * lib/stdlib.in.h: Likewise.
48571         * lib/string.in.h: Likewise.
48572         * lib/strings.in.h: Likewise.
48573         * lib/sys_select.in.h: Likewise.
48574         * lib/sys_socket.in.h: Likewise.
48575         * lib/sys_stat.in.h: Likewise.
48576         * lib/sys_time.in.h: Likewise.
48577         * lib/sysexits.in.h: Likewise.
48578         * lib/time.in.h: Likewise.
48579         * lib/unistd.in.h: Likewise.
48580         * lib/wchar.in.h: Likewise.
48581         * lib/wctype.in.h: Likewise.
48582         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48583         * modules/fchdir (Makefile.am): Likewise.
48584         * modules/fcntl (Makefile.am): Likewise.
48585         * modules/float (Makefile.am): Likewise.
48586         * modules/iconv_open (Makefile.am): Likewise.
48587         * modules/inttypes (Makefile.am): Likewise.
48588         * modules/locale (Makefile.am): Likewise.
48589         * modules/math (Makefile.am): Likewise.
48590         * modules/netinet_in (Makefile.am): Likewise.
48591         * modules/search (Makefile.am): Likewise.
48592         * modules/signal (Makefile.am): Likewise.
48593         * modules/stdarg (Makefile.am): Likewise.
48594         * modules/stdint (Makefile.am): Likewise.
48595         * modules/stdio (Makefile.am): Likewise.
48596         * modules/stdlib (Makefile.am): Likewise.
48597         * modules/string (Makefile.am): Likewise.
48598         * modules/strings (Makefile.am): Likewise.
48599         * modules/sys_select (Makefile.am): Likewise.
48600         * modules/sys_socket (Makefile.am): Likewise.
48601         * modules/sys_stat (Makefile.am): Likewise.
48602         * modules/sys_time (Makefile.am): Likewise.
48603         * modules/sysexits (Makefile.am): Likewise.
48604         * modules/time (Makefile.am): Likewise.
48605         * modules/unistd (Makefile.am): Likewise.
48606         * modules/wchar (Makefile.am): Likewise.
48607         * modules/wctype (Makefile.am): Likewise.
48608         Reported by Reuben Thomas <rrt@sc3d.org>.
48609
48610 2008-08-29  Bruno Haible  <bruno@clisp.org>
48611
48612         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48613         any more.
48614
48615 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48616
48617         * MODULES.html.sh (Misc): Add bitrotate.
48618
48619         * modules/bitrotate: New file.
48620
48621         * lib/bitrotate.h: New file.
48622
48623         * modules/bitrotate-tests: New file.
48624
48625         * tests/test-bitrotate.c: New file.
48626
48627         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48628         on the bitrotate module.
48629
48630         * lib/arctwo.c: Use new bitrotate module.
48631
48632 2008-08-29  Jim Meyering  <meyering@redhat.com>
48633
48634         bootstrap: merge changes from coreutils
48635         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48636         of copied files.  Remove a kludge, now that this is fixed.
48637         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48638         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48639         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48640
48641 2008-08-29  Bruno Haible  <bruno@clisp.org>
48642
48643         * MODULES.html.sh: Remove --cvs-urls option.
48644
48645 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48646
48647         maint.mk: adjust to file name change
48648         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48649
48650 2008-08-28  Jim Meyering  <meyering@redhat.com>
48651
48652         * modules/getndelim2 (License): Relicense to LGPLv2+.
48653         Approved by Richard Stallman for the version of 1995, and by
48654         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48655
48656 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48657
48658         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48659         dummy if one is not available.  Do not touch them if
48660         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48661         (getc_maybe_unlocked): New.
48662         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48663
48664 2008-08-26  Eric Blake  <ebb9@byu.net>
48665
48666         doc/INSTALL: resync from autoconf
48667         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48668         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48669         moving...
48670         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48671         * INSTALL: Regenerate.
48672         * INSTALL.ISO: New file.
48673         * INSTALL.UTF-8: Likewise.
48674
48675 2008-08-26  Jim Meyering  <meyering@redhat.com>
48676
48677         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48678         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48679         these definitions conditional, so that they may be overridden, too.
48680
48681 2008-08-26  Bruno Haible  <bruno@clisp.org>
48682
48683         Generate INSTALL file variants with prettier quotes.
48684         * doc/Makefile (INSTALL_PRELUDE): New macro.
48685         (INSTALL): Use it.
48686         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48687
48688 2008-08-26  Bruno Haible  <bruno@clisp.org>
48689
48690         Run makeinfo in an English locale.
48691         * doc/Makefile (MAKEINFO): New variable.
48692
48693 2008-08-26  Bruno Haible  <bruno@clisp.org>
48694
48695         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48696         Suggested by Eric Blake.
48697
48698 2008-08-25  Bruno Haible  <bruno@clisp.org>
48699
48700         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48701
48702 2008-08-25  Eric Blake  <ebb9@byu.net>
48703
48704         c-stack: test that stack overflow can be caught
48705         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48706         that platform allows handling stack overflow; at least OS/2 EMX
48707         has sigaltstack, but crashes before transferring control to
48708         handler on stack overflow.
48709         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48710         check for HAVE_STACK_OVERFLOW_HANDLING.
48711         Reported by Elbert Pol.
48712
48713 2008-08-25  Bruno Haible  <bruno@clisp.org>
48714
48715         * doc/posix-functions/strftime.texi: Fix description of strftime
48716         module.
48717
48718 2008-08-24  Bruno Haible  <bruno@clisp.org>
48719
48720         * tests/uniwidth/test-uc_width2.c: New file.
48721         * tests/uniwidth/test-uc_width2.sh: New file.
48722         * modules/uniwidth/width-tests (Files): Add the new files.
48723         (TESTS): Add uniwidth/test-uc_width2.sh.
48724         (TESTS_ENVIRONMENT): New variable.
48725         (check_PROGRAMS): Add test-uc_width2.
48726         (test_uc_width2_SOURCES): New variable.
48727
48728         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48729         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48730         not 0x00AB.
48731         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48732
48733 2008-08-22  Eric Blake  <ebb9@byu.net>
48734
48735         test-lock, test-tls: mention why a test is skipped
48736         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48737         skipped.
48738         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48739
48740         count-one-bits: relax license
48741         * modules/count-one-bits (License): Relicense to LGPLv2+.
48742         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48743
48744 2008-08-22  Andreas Schwab  <schwab@suse.de>
48745
48746         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48747         Remove spurious space in assignment.
48748
48749 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48750
48751         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48752         Paul Eggert <eggert@CS.UCLA.EDU>.
48753
48754 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48755
48756         * modules/gettext: Add m4/threadlib.m4.
48757
48758 2008-08-19  Eric Blake  <ebb9@byu.net>
48759
48760         test-c-stack: fix compilation failure on FreeBSD 5.0
48761         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48762         headers before <sys/resource.h>.
48763         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48764         the bug.
48765         Reported by Nelson H. F. Beebe.
48766
48767         strverscmp: migrate from "strverscmp.h" to <string.h>
48768         * modules/string (Makefile.am): Add new hooks.
48769         * modules/strverscmp (Files): Remove strverscmp.h.
48770         (Depends-on): Add string.
48771         (configure.ac): Add indicator.
48772         (Include): Mention new header.
48773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48774         defaults.
48775         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48776         results.
48777         * lib/strverscmp.h: Delete.
48778         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48779         * tests/test-strverscmp.c (includes): Adjust client.
48780         * lib/check-version.c (includes): Likewise.
48781         * NEWS: Document the change.
48782
48783         strverscmp: add unit test
48784         * modules/strverscmp-tests: New file.
48785         * tests/test-strverscmp.c: Likewise.
48786
48787 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48788
48789         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48790         regarding Windows crypto stuff, from Mono.
48791
48792 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48793
48794         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48795         if present, for intel RND.  Return error on failures.
48796
48797 2008-08-18  Ben Pfaff  <blp@gnu.org>
48798
48799         gitlog-to-changelog: give better diagnostic for failed pipe-open
48800         * build-aux/gitlog-to-changelog: Improve error message: suggest
48801         that the version of Git may be too old.
48802
48803 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48804
48805         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48806         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48807
48808 2008-08-18  Bruno Haible  <bruno@clisp.org>
48809
48810         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48811         pthread_in_use().
48812
48813 2008-08-18  Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/glthread/threadlib.c: Include <pthread.h>.
48816
48817 2008-08-18  Bruno Haible  <bruno@clisp.org>
48818
48819         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48820         glthread_recursive_lock_* macros.
48821         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48822         Fix syntax error.
48823
48824 2008-08-18  Bruno Haible  <bruno@clisp.org>
48825
48826         * lib/glthread/thread.c: Avoid forcing a context switch right after
48827         thread creation.
48828
48829 2008-08-17  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48832         * lib/glthread/thread.h: Provide Win32 specific implementation.
48833         * modules/thread (Files): Add lib/glthread/thread.c.
48834         (Depends-on): Add lock.
48835         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48836
48837 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48838
48839         New module 'yield'.
48840         * modules/yield: New file.
48841         * lib/glthread/yield.h: New file.
48842         * m4/yield.m4: New file.
48843         * MODULES.html.sh (Multithreading): Add yield.
48844
48845 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48846
48847         New module 'thread'.
48848         * modules/thread: New file.
48849         * lib/glthread/thread.h: New file.
48850         * m4/thread.m4: New file.
48851         * MODULES.html.sh (Multithreading): Add thread.
48852
48853 2008-08-17  Bruno Haible  <bruno@clisp.org>
48854
48855         * lib/glthread/lock.h: Include <stdlib.h> always.
48856         * lib/glthread/tls.h: Likewise.
48857         * lib/glthread/cond.h: Likewise.
48858
48859 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48860
48861         New module 'cond'.
48862         * modules/cond: New file.
48863         * lib/glthread/cond.h: New file.
48864         * lib/glthread/cond.c: New file.
48865         * m4/cond.m4: New file.
48866         * MODULES.html.sh (Multithreading): Add cond.
48867
48868 2008-08-16  Eric Blake  <ebb9@byu.net>
48869
48870         c-stack: fix regression on Irix 5.3 from 2008-06-21
48871         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48872         sa_sigaction...
48873         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48874         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48875         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48876         * modules/signal (Makefile.am): Use the value.
48877         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48878         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48879         * doc/posix-headers/signal.texi (signal.h): Document this
48880         portability issue.
48881         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48882         Reported by Tom G. Christensen.
48883
48884 2008-08-17  Bruno Haible  <bruno@clisp.org>
48885
48886         New module 'threadlib'.
48887         * modules/threadlib: New file.
48888         * lib/glthread/threadlib.c: New file, extracted from
48889         lib/glthread/lock.c.
48890         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48891         functions.
48892         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48893         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48894         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48895         macros.
48896         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48897         (gl_DISABLE_THREADS): Remove macro.
48898         * modules/lock (Files): Remove build-aux/config.rpath.
48899         (Depends-on): Remove havelib. Add threadlib.
48900         (configure.ac-early): Remove section.
48901         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48902         * modules/tls (Depends-on): Remove lock. Add threadlib.
48903         (Link): New section, copied from threadlib.
48904         * MODULES.html.sh (Multithreading): Add threadlib.
48905
48906 2008-08-14  Bruno Haible  <bruno@clisp.org>
48907
48908         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48909         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48910         glthread_rwlock_unlock, glthread_rwlock_destroy,
48911         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48912         glthread_recursive_lock_destroy): Define as macros always.
48913         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48914         glthread_lock_lock.
48915         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48916         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48917         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48918         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48919         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48920         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48921         (glthread_recursive_lock_lock_func): Renamed from
48922         glthread_recursive_lock_lock.
48923         (glthread_recursive_lock_unlock_func): Renamed from
48924         glthread_recursive_lock_unlock.
48925         (glthread_recursive_lock_destroy_func): Renamed from
48926         glthread_recursive_lock_destroy.
48927
48928 2008-08-14  Bruno Haible  <bruno@clisp.org>
48929
48930         * lib/glthread/lock.h: Renamed from lib/lock.h.
48931         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48932         * lib/glthread/tls.h: Renamed from lib/tls.h.
48933         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48934         * lib/fstrcmp.c: Update includes.
48935         * lib/strsignal.c: Update includes.
48936         * modules/lock (Files, Makefile.am): Update.
48937         (Include): Change to "glthread/lock.h".
48938         * modules/tls (Files, Makefile.am): Update.
48939         (Include): Change to "glthread/tls.h".
48940         * tests/test-lock.c: Update includes.
48941         * tests/test-tls.c: Update includes.
48942         * NEWS: Mention the renamed header files.
48943
48944 2008-08-11  Jim Meyering  <meyering@redhat.com>
48945
48946         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48947
48948 2008-08-11  Eric Blake  <ebb9@byu.net>
48949
48950         test-c-stack: avoid C99-ism
48951         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48952         before statement.
48953         Reported by Alain Guibert.
48954
48955 2008-08-10  Jim Meyering  <meyering@redhat.com>
48956
48957         ensure that return value of uinttostr et al are not ignored
48958         * lib/inttostr.h (__GNUC_PREREQ): Define.
48959         (__attribute_warn_unused_result__): Define.
48960         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48961
48962 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48963
48964         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48965         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48966
48967 2008-08-07  Jim Meyering  <meyering@redhat.com>
48968
48969         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48970
48971         * modules/mkstemp (License): Relicense under LGPLv2+.
48972         * modules/tempname (License): Likewise.
48973
48974 2008-08-06  Bruno Haible  <bruno@clisp.org>
48975
48976         * lib/poll.c (poll): Further micro-optimization.
48977
48978 2008-08-06  Jim Meyering  <meyering@redhat.com>
48979
48980         inet_pton.c: use locale-independent tolower
48981         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48982         (inet_pton6): Use c_tolower rather than tolower.
48983         * modules/inet_pton (Depends-on): Add c-ctype.
48984
48985 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48986
48987         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48988         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48989
48990 2008-08-06  Jim Meyering  <meyering@redhat.com>
48991
48992         * modules/inet_pton (License): Relicense under LGPLv2+.
48993
48994 2008-08-03  Bruno Haible  <bruno@clisp.org>
48995
48996         Additional non-aborting API for lock and tls.
48997         * lib/lock.h: Include <errno.h>.
48998         (glthread_lock_init): New macro/function.
48999         (gl_lock_init): Define as wrapper around glthread_lock_init.
49000         (glthread_lock_lock): New macro/function.
49001         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49002         (glthread_lock_unlock): New macro/function.
49003         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49004         (glthread_lock_destroy): New macro/function.
49005         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49006         (glthread_rwlock_init): New macro/function.
49007         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49008         (glthread_rwlock_rdlock): New macro/function.
49009         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49010         (glthread_rwlock_wrlock): New macro/function.
49011         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49012         (glthread_rwlock_unlock): New macro/function.
49013         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49014         (glthread_rwlock_destroy): New macro/function.
49015         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49016         (glthread_recursive_lock_init): New macro/function.
49017         (gl_recursive_lock_init): Define as wrapper around
49018         glthread_recursive_lock_init.
49019         (glthread_recursive_lock_lock): New macro/function.
49020         (gl_recursive_lock_lock): Define as wrapper around
49021         glthread_recursive_lock_lock.
49022         (glthread_recursive_lock_unlock): New macro/function.
49023         (gl_recursive_lock_unlock): Define as wrapper around
49024         glthread_recursive_lock_unlock.
49025         (glthread_recursive_lock_destroy): New macro/function.
49026         (gl_recursive_lock_destroy): Define as wrapper around
49027         glthread_recursive_lock_destroy.
49028         (glthread_once): New macro/function.
49029         (gl_once): Define as wrapper around glthread_once.
49030         Update function declarations.
49031         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49032         glthread_rwlock_init. Return error code.
49033         (glthread_rwlock_rdlock_multithreaded): Renamed from
49034         glthread_rwlock_rdlock. Return error code.
49035         (glthread_rwlock_wrlock_multithreaded): Renamed from
49036         glthread_rwlock_wrlock. Return error code.
49037         (glthread_rwlock_unlock_multithreaded): Renamed from
49038         glthread_rwlock_unlock. Return error code.
49039         (glthread_rwlock_destroy_multithreaded): Renamed from
49040         glthread_rwlock_destroy. Return error code.
49041         (glthread_recursive_lock_init_multithreaded): Renamed from
49042         glthread_recursive_lock_init. Return error code.
49043         (glthread_recursive_lock_lock_multithreaded): Renamed from
49044         glthread_recursive_lock_lock. Return error code.
49045         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49046         glthread_recursive_lock_unlock. Return error code.
49047         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49048         glthread_recursive_lock_destroy. Return error code.
49049         (glthread_once_call): Make static.
49050         (glthread_once_multithreaded): Renamed from glthread_once.
49051         * lib/tls.h: Include <errno.h>.
49052         (glthread_tls_key_init): New macro/function.
49053         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49054         (glthread_tls_set): New macro/function.
49055         (gl_tls_set): Define as wrapper around glthread_tls_set.
49056         (glthread_tls_key_destroy): New macro/function.
49057         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49058         Update function declarations.
49059         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49060         glthread_tls_get.
49061         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49062
49063 2008-08-04  Eric Blake  <ebb9@byu.net>
49064
49065         gnumakefile: use space, not TAB, outside of targets
49066         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49067
49068 2008-08-02  Jim Meyering  <meyering@redhat.com>
49069
49070         getdate.y: avoid locale-dependent date parsing failure
49071         In Turkish locales, getdate would fail to recognize keywords
49072         containing a lowercase "i".  The solution is not to rely on
49073         locale-sensitive case-conversion.
49074         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49075         (lookup_word): Use c_toupper in place of toupper.
49076         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49077         Reported by Vefa Bicakci <bicave@superonline.com> in
49078         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49079         * modules/getdate (Depends-on): Add c-ctype.
49080
49081 2008-08-02  Bruno Haible  <bruno@clisp.org>
49082
49083         * gnulib-tool (func_import): When updating or creating a .gitignore
49084         file, prepend each added line with a slash, and ignore leading slashes
49085         from the existing lines.
49086         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49087
49088 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49089
49090         Portability fix for GNU make 3.79.1.
49091         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49092         versions do not understand.
49093
49094 2008-08-01  Bruno Haible  <bruno@clisp.org>
49095
49096         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49097         * tests/test-isnanf.h (zero): New variable.
49098         (main): Avoid literal -0.0f.
49099         * tests/test-isnand.h (zero): New variable.
49100         (main): Avoid literal -0.0.
49101         * tests/test-isnanl.h (zero): New variable.
49102         (main): Avoid literal -0.0L.
49103         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49104         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49105         -0.0, -0.0L.
49106         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49107         (test_signbitd): Avoid literal -0.0.
49108         (test_signbitl): Avoid literal -0.0L.
49109         * tests/test-ceilf1.c (zero): New variable.
49110         (main): Avoid literal -0.0f.
49111         * tests/test-ceill.c (zero): New variable.
49112         (main): Avoid literal -0.0L.
49113         * tests/test-floorf1.c (zero): New variable.
49114         (main): Avoid literal -0.0f.
49115         * tests/test-floorl.c (zero): New variable.
49116         (main): Avoid literal -0.0L.
49117         * tests/test-roundf1.c (zero): New variable.
49118         (main): Avoid literal -0.0f.
49119         * tests/test-round1.c (zero): New variable.
49120         (main): Avoid literal -0.0.
49121         * tests/test-roundl.c (zero): New variable.
49122         (main): Avoid literal -0.0L.
49123         * tests/test-truncf1.c (zero): New variable.
49124         (main): Avoid literal -0.0f.
49125         * tests/test-trunc1.c (zero): New variable.
49126         (main): Avoid literal -0.0.
49127         * tests/test-truncl.c (zero): New variable.
49128         (main): Avoid literal -0.0L.
49129         * tests/test-frexp.c (zero): New variable.
49130         (main): Avoid literal -0.0.
49131         * tests/test-frexpl.c (zero): New variable.
49132         (main): Avoid literal -0.0L.
49133         * tests/test-ldexpl.c (zero): New variable.
49134         (main): Avoid literal -0.0L.
49135         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49136         (zerod, zerol): New variables.
49137         (test_function): Avoid literals -0.0, -0.0L.
49138         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49139         (zerod, zerol): New variables.
49140         (test_function): Avoid literals -0.0, -0.0L.
49141         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49142         (zerod, zerol): New variables.
49143         (test_function): Avoid literals -0.0, -0.0L.
49144         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49145         (zerod, zerol): New variables.
49146         (test_function): Avoid literals -0.0, -0.0L.
49147         * tests/test-strtod.c (zero): New variable.
49148         (main): Avoid literal -0.0.
49149         Reported by Jonathan C. Patschke <jp@centtech.com>.
49150
49151 2008-07-31  Jim Meyering  <meyering@redhat.com>
49152
49153         sha256.h: correct definition of SHA224_DIGEST_SIZE
49154         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49155         Reported by Paulie Pena IV <paulie4@gmail.com>.
49156         Define as 224 / 8, rather than as a literal.
49157         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49158         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49159         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49160
49161 2008-07-31  Bruno Haible  <bruno@clisp.org>
49162
49163         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49164         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49165         Reported by Jonathan Patschke <jp@centtech.com>.
49166
49167 2008-07-31  Bruno Haible  <bruno@clisp.org>
49168
49169         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49170         Reported by Paolo Bonzini <bonzini@gnu.org>.
49171
49172 2008-07-30  Eric Blake  <ebb9@byu.net>
49173
49174         test-strtod: allow compilation without -lm
49175         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49176         Reported by Dennis Clarke <blastwave@gmail.com>.
49177
49178 2008-07-28  Jim Meyering  <meyering@redhat.com>
49179
49180         bootstrap: work also when there are no .po files in po/
49181         * build-aux/bootstrap (update_po_files): Complete the change
49182         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49183
49184 2008-07-27  Jim Meyering  <meyering@redhat.com>
49185
49186         * users.txt: Add zile.
49187
49188 2008-07-26  Ben Pfaff  <blp@gnu.org>
49189
49190         Add missing dependencies on new m4/exponent[fdl].m4 files.
49191         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49192         * modules/isnand-nolibm: Add m4/exponentd.m4.
49193         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49194         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49195         m4/isnan[fdl].m4, because the macros actually used moved.
49196         Reported by Jim Meyering.
49197
49198 2008-07-14  Ben Pfaff  <blp@gnu.org>
49199
49200         Add isinf module.
49201         * lib/isinf.c: New file.
49202         * lib/math.in.h: Define isinf macro if we have decided to replace
49203         it.
49204         * m4/isinf.m4: New file.
49205         * m4/math_h.m4: Initialize and substitute variables for isinf
49206         module.
49207         * modules/isinf: New file.
49208         * modules/isinf-tests: New file.
49209         * modules/math: Add substitutions for new module.
49210         * tests/test-isinf.c: New file.
49211         * doc/posix-functions/isinf.texi: Mention new module.
49212         * MODULES.html.sh: Mention new module.
49213
49214 2008-07-14  Ben Pfaff  <blp@gnu.org>
49215
49216         Factor out some macros for use by additional modules.
49217         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49218         exponentf.m4.
49219         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49220         exponentd.m4.
49221         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49222         file exponentl.m4.
49223         * m4/exponentf.m4: New file.
49224         * m4/exponentd.m4: New file.
49225         * m4/exponentl.m4: New file.
49226         * modules/isnanf: Use new file m4/exponentf.m4.
49227         * modules/isnand: Use new file m4/exponentd.m4.
49228         * modules/isnanl: Use new file m4/exponentl.m4.
49229
49230 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49231
49232         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49233         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49234         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49235         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49236
49237         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49238         readlink on platforms without PATH_MAX.
49239
49240 2008-07-21  Eric Blake  <ebb9@byu.net>
49241
49242         Warn, not fail, on stale version.
49243         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49244
49245         Don't allow installation with stale devel version number.
49246         * top/GNUmakefile (_is-install-target): New macro.
49247         (_curr-ver): Forbid installation with stale version number.
49248
49249 2008-07-20  Bruno Haible  <bruno@clisp.org>
49250
49251         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49252         TESTS_ENVIRONMENT.
49253         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49254
49255 2008-07-20  Bruno Haible  <bruno@clisp.org>
49256
49257         * lib/c-stack.h (c_stack_action): Add documentation.
49258         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49259
49260 2008-07-20  Bruno Haible  <bruno@clisp.org>
49261
49262         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49263         * modules/readlink (License): Likewise.
49264
49265 2008-07-17  Eric Blake  <ebb9@byu.net>
49266
49267         * modules/c-stack (Link): Fix typo.
49268
49269         Make c-stack use libsigsegv, when available.
49270         * modules/c-stack (Depends-on): Add libsigsegv.
49271         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49272         needed.
49273         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49274         (segv_handler, overflow_handler, c_stack_action)
49275         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49276         implementation when libsigsegv is available, but only when using
49277         the library is necessary.
49278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49279         comment, explaining why XSI check fails on Linux.
49280         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49281         * tests/test-c-stack2.sh: Tweak skip message.
49282         * NEWS: Document new link-time requirements.
49283
49284 2008-07-16  Eric Blake  <ebb9@byu.net>
49285
49286         c-stack: Expose false positives when not using libsigsegv.
49287         * modules/c-stack-tests (Files): Expand test.
49288         * tests/test-c-stack.c (main): Add means to conditionally trigger
49289         non-overflow SIGSEGV.
49290         * tests/test-c-stack2.sh: New file.
49291
49292 2008-07-14  Bruno Haible  <bruno@clisp.org>
49293
49294         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49295         Reported by Eric Blake.
49296
49297 2008-07-14  Sam Steingold  <sds@gnu.org>
49298             Bruno Haible  <bruno@clisp.org>
49299
49300         New module libsigsegv.
49301         * modules/libsigsegv: New file.
49302         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49303         modifications.
49304         * MODULES.html.sh (Signal handling): New section.
49305
49306 2008-07-14  Bruno Haible  <bruno@clisp.org>
49307
49308         * modules/unictype/ctype-* (Description): Add the word "function".
49309         Improves the resulting doc in MODULES.html.
49310
49311 2008-07-12  Ben Pfaff  <blp@gnu.org>
49312
49313         Add longlong module.
49314         * modules/longlong: New file.
49315
49316 2008-07-12  Bruno Haible  <bruno@clisp.org>
49317
49318         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49319         to empty.
49320
49321 2008-07-10  Ben Pfaff  <blp@gnu.org>
49322
49323         Add isnan module.
49324         * doc/posix-functions/isnan.texi: Mention new module.
49325         * lib/math.in.h: Define isnan macro if we have decided to replace
49326         it.
49327         * m4/isnan.m4: New file.
49328         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49329         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49330         also.
49331         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49332         redundancy.
49333         * m4/math_h.m4: Initialize and substitute variables for isnan
49334         module.
49335         * modules/isnan: New file.
49336         * modules/isnan-tests: New file.
49337         * modules/math: Add substitutions for new module.
49338         * tests/test-isnan.c: New file.
49339         * MODULES.html.sh: Mention new module.
49340
49341 2008-07-10  Ben Pfaff  <blp@gnu.org>
49342
49343         Add isnanf module.
49344         * lib/isnanf.m4: New file.
49345         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49346         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49347         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49348         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49349         * modules/isnanf: New file.
49350         * modules/isnanf-tests: New file.
49351         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49352         files.
49353         * tests/test-isnanf-nolibm.c: factored most of its contents into
49354         new file tests/test-isnanf.h.
49355         * tests/test-isnanf.h: New file.
49356         * tests/test-isnanf.c: New file.
49357         * MODULES.html.sh: Mention new module.
49358         * doc/glibc-functions/isnanf.texi: Mention new module.
49359
49360 2008-07-10  Ben Pfaff  <blp@gnu.org>
49361
49362         Add isnand module.
49363         * lib/isnand.h: New file.
49364         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49365         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49366         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49367         functionality also.
49368         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49369         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49370         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49371         * modules/isnand: New file.
49372         * modules/isnand-tests: New file.
49373         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49374         files.
49375         * tests/test-isnand-nolibm.c: factored most of its contents into
49376         new file tests/test-isnand.h.
49377         * tests/test-isnand.h: New file.
49378         * tests/test-isnand.c: New file.
49379         * MODULES.html.sh: Mention new module.
49380
49381 2008-07-10  Ben Pfaff  <blp@gnu.org>
49382
49383         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49384         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49385         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49386         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49387         * modules/isnanf-nolibm: Update references to renamed files.
49388         * modules/isnand-nolibm: Likewise.
49389         * modules/isnanf-nolibm-tests: Likewise.
49390         * modules/isnand-nolibm-tests: Likewise.
49391         * lib/frexp.c: Likewise.
49392         * lib/isfinite.c: Likewise.
49393         * lib/signbitd.c: Likewise.
49394         * lib/signbitf.c: Likewise.
49395         * lib/vasnprintf.c: Likewise.
49396         * tests/test-ceilf1.c: Likewise.
49397         * tests/test-ceilf2.c: Likewise.
49398         * tests/test-floorf1.c: Likewise.
49399         * tests/test-floorf2.c: Likewise.
49400         * tests/test-frexp.c: Likewise.
49401         * tests/test-round1.c: Likewise.
49402         * tests/test-round2.c: Likewise.
49403         * tests/test-roundf1.c: Likewise.
49404         * tests/test-strtod.c: Likewise.
49405         * tests/test-trunc1.c: Likewise.
49406         * tests/test-trunc2.c: Likewise.
49407         * tests/test-truncf1.c: Likewise.
49408         * tests/test-truncf2.c: Likewise.
49409         * NEWS: Mention the renamed header files.
49410
49411 2008-07-11  Jim Meyering  <meyering@redhat.com>
49412
49413         vc-list-files: make the last-resort awk code more portable
49414         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49415         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49416         does not support it.
49417
49418 2008-07-10  Eric Blake  <ebb9@byu.net>
49419
49420         Work with tar's bootstrap.
49421         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49422         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49423         an m4 comment.
49424
49425 2008-07-09  Jim Meyering  <meyering@redhat.com>
49426
49427         posix-shell.m4: fix typo that made this test malfunction
49428         * m4/posix-shell.m4: Remove capitalization in variable name.
49429
49430 2008-07-08  Bruno Haible  <bruno@clisp.org>
49431
49432         * m4/onceonly.m4: Update comments.
49433         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49434
49435 2008-07-04  Jim Meyering  <meyering@redhat.com>
49436
49437         * users.txt: Add vc-dwim.
49438         (bison, coreutils): Use the gitweb URL.
49439
49440 2008-07-03  Jim Meyering  <meyering@redhat.com>
49441
49442         * users.txt: Add libffcall.  From Sam Steingold.
49443
49444 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49445
49446         getdate.y: do not ignore TZ with relative day, month or year offset
49447         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49448         relative-date-handling, since otherwise, the latter would clobber the
49449         sole output (an updated Start value) of the tz-handling block.
49450         * tests/test-getdate.c: Tests for the fix
49451
49452 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49453
49454         Recognize 'foo_LIBRARIES += libgnu.a'.
49455         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49456         makefile snippet has already specified an installation location,
49457         also using '+='.
49458
49459 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49460
49461         getdate.y: factor out common actions
49462         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49463         Use them in place of open-coded actions.
49464
49465 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49466
49467         Add self-test for getdate module.
49468         * modules/getdate-tests: New file.
49469         * tests/test-getdate.c: New file.
49470
49471 2008-06-29  Bruno Haible  <bruno@clisp.org>
49472
49473         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49474         .gitignore.
49475         Reported by Sylvain Beucler <beuc@beuc.net>.
49476
49477 2008-06-29  Bruno Haible  <bruno@clisp.org>
49478
49479         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49480         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49481
49482 2008-06-29  Bruno Haible  <bruno@clisp.org>
49483
49484         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49485         EXTRA_DIST.
49486         Reported by Sylvain Beucler <beuc@beuc.net>.
49487
49488 2008-06-26  Jim Meyering  <meyering@redhat.com>
49489
49490         make several modules depend on the "open" module
49491         This provides slightly increased consistency when opening-for-write
49492         the name of a non-directory spelled with a trailing slash.
49493         * modules/chdir-safer: Likewise.
49494         * modules/chown: Likewise.
49495         * modules/clean-temp: Likewise.
49496         * modules/copy-file: Likewise.
49497         * modules/fchdir: Likewise.
49498         * modules/fcntl-safer: Likewise.
49499         * modules/pipe: Likewise.
49500         * modules/utime: Likewise.
49501         Prompted by Eric Blake and Bruno Haible.
49502
49503 2008-06-24  Andreas Schwab  <schwab@suse.de>
49504
49505         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49506         literals can be used as initializers for global variables.
49507
49508 2008-06-23  Eric Blake  <ebb9@byu.net>
49509
49510         Make gnulib-cache.m4 easier to diff.
49511         * gnulib-tool (func_import): Allow newlines when reading cached
49512         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49513
49514 2008-06-23  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49517         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49518         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49519         m4/signalblocking.m4.
49520         (gl_PREREQ_SIGACTION): Don't invoke it.
49521         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49522         gl_PREREQ_SIG_HANDLER_H.
49523         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49524         Don't check for sigaction here.
49525
49526 2008-06-23  Bruno Haible  <bruno@clisp.org>
49527
49528         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49529         (install_handlers): Don't set the SA_RESETHAND flag.
49530
49531 2008-06-23  Bruno Haible  <bruno@clisp.org>
49532
49533         * m4/sigaction.m4: Comment fixes.
49534         * lib/signal.in.h: Likewise.
49535
49536 2008-06-23  Eric Blake  <ebb9@byu.net>
49537
49538         Fix typo.
49539         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49540
49541         Avoid SA_ namespace.
49542         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49543         Reported by Ralf Wildenhues.
49544
49545         Avoid test failure due to SA_RESTORER.
49546         * tests/test-sigaction.c (SA_MASK): New macro.
49547         (main): Avoid failing due to extension flags being set.
49548         Reported by Jim Meyering.
49549
49550         Revert use of sig-handler.h in sigprocmask.c.
49551         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49552         it requires the existence of struct sigaction.
49553         * lib/sigprocmask.c (handler_t): Restore typedef.
49554         (rpl_signal, old_handlers): Use local type.
49555
49556 2008-06-22  Bruno Haible  <bruno@clisp.org>
49557
49558         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49559         conditionally.
49560         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49561
49562 2008-06-22  Bruno Haible  <bruno@clisp.org>
49563
49564         * doc/posix-functions/siginterrupt.texi: Move note.
49565
49566         * lib/signal.in.h (SA_RESTART): New macro.
49567         * lib/sigaction.c: Update comment.
49568
49569         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49570
49571         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49572         (gl_PREREQ_SIGPROCMASK): Invoke it.
49573         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49574
49575         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49576
49577         * lib/sigprocmask.c: Update a comment.
49578
49579 2008-06-21  Eric Blake  <ebb9@byu.net>
49580
49581         Use sigaction module rather than signal().
49582         * modules/c-stack (Depends-on): Add sigaction.
49583         * modules/fatal-signal (Depends-on): Likewise.
49584         * modules/nanosleep (Depends-on): Likewise.
49585         * modules/sigprocmask (Files): Add sig-handler.h.
49586         * modules/sigaction (Files): Likewise.
49587         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49588         Eggert.
49589         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49590         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49591         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49592         (init_fatal_signals): Likewise.
49593         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49594         (siginterrupt): Delete fallback.
49595         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49596         instead.
49597         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49598         siginterrupt.
49599
49600         New module sigaction, for mingw.
49601         * modules/sigaction: New module...
49602         * modules/sigaction-tests: ...and its test.
49603         * m4/sigaction.m4: New file.
49604         * lib/sigaction.c: Likewise.
49605         * tests/test-sigaction.c: Likewise.
49606         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49607         * modules/signal (Makefile.am): Likewise.
49608         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49609         needed.
49610         * doc/posix-headers/signal.texi (signal.h): Mention provided
49611         types.
49612         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49613         that sigaction is preferable.
49614         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49615         module.
49616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49617         sigaction.
49618
49619         Improve robustness of sigprocmask by overriding signal.
49620         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49621         is in use.
49622         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49623         (SIGKILL, SIGSTOP): Provide fallbacks.
49624         (rpl_signal): Implement.
49625         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49626         signal can be called inside handlers.
49627
49628         Fix nanosleep module on mingw.
49629         * modules/nanosleep (Depends-on): Add sys_select.
49630         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49631
49632         Fix licensing of sigprocmask.
49633         * modules/raise (License): Relicense as LGPL.
49634
49635 2008-06-21  Bruno Haible  <bruno@clisp.org>
49636
49637         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49638         result if it contains question marks.
49639         Reported by Michael Geng <linux@michaelgeng.de>.
49640
49641 2008-06-19  Bruno Haible  <bruno@clisp.org>
49642
49643         Fix CVS-ism.
49644         * doc/gnulib.texi: Include updated-stamp.texi.
49645         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49646         (updated-stamp.texi): New rule.
49647         (gnulib.info): Depend on it.
49648         * doc/.gitignore: Add updated-stamp.texi.
49649         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49650
49651 2008-06-19  Bruno Haible  <bruno@clisp.org>
49652
49653         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49654         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49655
49656 2008-06-19  Eric Blake  <ebb9@byu.net>
49657
49658         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49659         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49660         Reported by Stepan Kasal.
49661
49662 2008-06-18  Bruno Haible  <bruno@clisp.org>
49663
49664         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49665         Reported by Eric Blake.
49666
49667 2008-06-18  Eric Blake  <ebb9@byu.net>
49668
49669         Work around cygwin 1.5.25 strsignal bug.
49670         * tests/test-strsignal.c: Allow for const char *.
49671         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49672
49673 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49674
49675         * users.txt: Update URL to article and add author/date
49676         information.
49677
49678 2008-06-17  Bruno Haible  <bruno@clisp.org>
49679
49680         New macro gl_DISABLE_THREADS.
49681         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49682         if the user did not pass --enable-threads or --disable-threads option.
49683         (gl_DISABLE_THREADS): New macro.
49684         Reported by Eric Blake <ebb9@byu.net>.
49685
49686 2008-06-17  Bruno Haible  <bruno@clisp.org>
49687
49688         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49689         when the macro ignores it.
49690         Based on a patch by Eric Blake <ebb9@byu.net>.
49691
49692 2008-06-17  Bruno Haible  <bruno@clisp.org>
49693
49694         * modules/tls (License): Change to LGPLv2+.
49695         Reported by Eric Blake.
49696
49697 2008-06-17  Eric Blake  <ebb9@byu.net>
49698
49699         Simplify c-stack prerequisites.
49700         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49701         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49702         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49703         check.
49704         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49705         <sys/resource.h>.
49706
49707         Move c-stack test into testsuite.
49708         * modules/c-stack-tests: New file.
49709         * lib/c-stack.c [DEBUG]: Move test program...
49710         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49711         fail test if sigaltstack is lacking.
49712         * tests/test-c-stack.sh: New driver file.
49713
49714 2008-06-16  Eric Blake  <ebb9@byu.net>
49715
49716         Use raise module consistently.
49717         * modules/fatal-signal (Depends-on): Add raise.
49718         * modules/sigprocmask (Depends-on): Likewise.
49719         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49720         * lib/sigprocmask.c (sigprocmask): Likewise.
49721         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49722         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49723
49724         Fix compliance bug in sigpending.
49725         * lib/sigprocmask.c (sigpending): Return pending array via
49726         parameter, not return value.
49727
49728 2008-06-14  Eric Blake  <ebb9@byu.net>
49729
49730         Improve obstack-printf test code.
49731         * tests/test-obstack-printf.c (test_function): Fix comment, and
49732         simplify usage of obstack_* in macros.  Add a test for coverage.
49733         Reported by Bruno Haible.
49734
49735 2008-06-14  Bruno Haible  <bruno@clisp.org>
49736
49737         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49738         array size as a constant, not as a const variable.
49739         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49740         AC_USE_SYSTEM_EXTENSIONS.
49741         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49742         Test whether the obstack_printf function actually exists.
49743         * modules/obstack-printf (Depends-on): Add extensions.
49744         (Include): Remove obstack.h.
49745         * modules/obstack-printf-posix (Depends-on): Add extensions.
49746         (Include): Remove obstack.h.
49747
49748 2008-06-13  Eric Blake  <ebb9@byu.net>
49749
49750         Add obstack-printf and obstack-printf-posix modules.
49751         * modules/obstack-printf: New file.
49752         * modules/obstack-printf-posix: Likewise.
49753         * MODULES.html.sh (Misc): Mention them.
49754         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49755         Likewise.
49756         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49757         Likewise.
49758         * modules/stdio (Makefile.am): Accomodate new modules.
49759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49760         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49761         Declare.
49762         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49763         functions.
49764         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49765         (gl_REPLACE_OBSTACK_PRINTF): New macros
49766         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49767         * tests/test-obstack-printf.c: New file.
49768         * modules/obstack-printf-tests: Likewise.
49769         * modules/obstack-printf-posix-tests: Likewise.
49770
49771 2008-06-11  Bruno Haible  <bruno@clisp.org>
49772
49773         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49774         * lib/open.c: Include errno.h.
49775         (open): Fail when attempting to write to a file that has a trailing
49776         slash.
49777         * tests/test-open.c (main): Test against trailing slash bug.
49778         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49779
49780 2008-06-10  Bruno Haible  <bruno@clisp.org>
49781
49782         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49783         for $? to work inside the trap command, with various /bin/sh-s.
49784         * tests/test-vc-list-files-cvs.sh: Likewise.
49785
49786 2008-06-10  Bruno Haible  <bruno@clisp.org>
49787
49788         * lib/acl-internal.h: Don't include gettext.h here.
49789         * lib/set-mode-acl.c: Include gettext.h here.
49790         * lib/copy-acl.c: Likewise.
49791
49792 2008-06-10  Bruno Haible  <bruno@clisp.org>
49793
49794         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49795         * lib/wait-process.c (wait_subprocess): Likewise.
49796         * lib/execute.h (execute): Add termsigp argument.
49797         * lib/execute.c (execute): Likewise.
49798         * lib/csharpcomp.c (compile_csharp_using_pnet,
49799         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49800         * lib/csharpexec.c (execute_csharp_using_pnet,
49801         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49802         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49803         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49804         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49805         is_jikes_present): Update.
49806         * lib/javaexec.c (execute_java_class): Update.
49807         * lib/javaversion.c (execute_and_read_line): Update.
49808         * NEWS: Document the changes.
49809         Reported by Eric Blake.
49810
49811 2008-06-10  Eric Blake  <ebb9@byu.net>
49812
49813         Add missing include.
49814         * tests/test-strstr.c (includes): Add <signal.h>.
49815         * tests/test-strcasestr.c (includes): Likewise.
49816         * tests/test-memmem.c (includes): Likewise.
49817
49818 2008-06-10  Bruno Haible  <bruno@clisp.org>
49819
49820         * lib/wait-process.c (wait_subprocess): Add an assertion.
49821
49822 2008-06-10  Bruno Haible  <bruno@clisp.org>
49823
49824         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49825
49826 2008-06-10  Bruno Haible  <bruno@clisp.org>
49827
49828         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49829         using alarm().
49830         * tests/test-strcasestr.c (main): Likewise.
49831         * tests/test-strstr.c (main): Likewise.
49832
49833 2008-06-09  Bruno Haible  <bruno@clisp.org>
49834
49835         Work around the Solaris 10 ACE ACLs ABI change.
49836         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49837         declare if ACL_NO_TRIVIAL is present.
49838         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49839         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49840         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49841         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49842         define if ACL_NO_TRIVIAL is present.
49843         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49844         and use the current ABI.
49845         (file_has_acl): Use same #if condition as elsewhere.
49846         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49847         in use, and use the current ABI.
49848         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49849         Reported by Jim Meyering.
49850
49851 2008-06-09  Eric Blake  <ebb9@byu.net>
49852
49853         Work around environments that (stupidly) ignore SIGALRM.
49854         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49855         before using alarm().
49856         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49857         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49858         Reported by Ian Beckwith <ianb@erislabs.net>.
49859
49860         Produce autobuild blurb earlier in log.
49861         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49862
49863 2008-06-09  Jim Meyering  <meyering@redhat.com>
49864         and OndÅ™ej Vašík  <ovasik@redhat.com>
49865
49866         utimens.c: correct kernel bug work-around
49867         OndÅ™ej Vašík found that the invalid return value of 280 indicates
49868         failure, not success, and the kernel bug we're trying to work
49869         around affects not just the utimensat call, but also the fallback
49870         futimens call.
49871         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49872         not success.
49873         [HAVE_FUTIMENS]: Use the same work-around, here.
49874
49875 2008-06-09  Jim Meyering  <meyering@redhat.com>
49876
49877         add more guards around definition of ACE_-related code
49878         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49879         ALLOW and ACE_OWNER are also defined.
49880
49881 2008-06-08  Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/acl-internal.h: Add me as co-author.
49884         * lib/file-has-acl.c: Likewise.
49885         * lib/set-mode-acl.c: Likewise.
49886         * lib/copy-acl.c: Likewise.
49887
49888 2008-06-08  Bruno Haible  <bruno@clisp.org>
49889
49890         Add support for AIX ACLs.
49891         * lib/acl-internal.h (acl_nontrivial): New declaration.
49892         * lib/file-has-acl.c (acl_nontrivial): New function.
49893         (file_has_acl): Add implementation using AIX 4 ACL API.
49894         * lib/set-mode-acl.c (qset_acl): Likewise.
49895         * lib/copy-acl.c (qcopy_acl): Likewise.
49896
49897 2008-06-08  Bruno Haible  <bruno@clisp.org>
49898
49899         Add support for HP-UX ACLs.
49900         * lib/acl-internal.h (acl_nontrivial): New declaration.
49901         * lib/file-has-acl.c (acl_nontrivial): New function.
49902         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49903         * lib/set-mode-acl.c (qset_acl): Likewise.
49904         * lib/copy-acl.c (qcopy_acl): Likewise.
49905
49906 2008-06-08  Bruno Haible  <bruno@clisp.org>
49907
49908         Add support for Cygwin ACLs.
49909         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49910         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49911         the chmod_or_fchmod call.
49912         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49913
49914 2008-06-08  Bruno Haible  <bruno@clisp.org>
49915
49916         Fix bug with setuid modes in Solaris 10+ code.
49917         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49918         succeeded, when the mode contains some special bits.
49919
49920 2008-06-08  Bruno Haible  <bruno@clisp.org>
49921
49922         Add support for Solaris 7..10 ACLs.
49923         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49924         declarations.
49925         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49926         functions.
49927         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49928         * lib/set-mode-acl.c (qset_acl): Likewise.
49929         * lib/copy-acl.c (qcopy_acl): Likewise.
49930
49931 2008-06-08  Bruno Haible  <bruno@clisp.org>
49932
49933         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49934         declaration.
49935         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49936         (acl_access_nontrivial): Remove MacOS X case.
49937         (file_has_acl): Use acl_extended_nontrivial.
49938         * lib/copy-acl.c (qcopy_acl): Likewise.
49939
49940 2008-06-08  Bruno Haible  <bruno@clisp.org>
49941
49942         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49943
49944 2008-06-08  Jim Meyering  <meyering@redhat.com>
49945
49946         * modules/acl (Maintainer): Add Bruno Haible.
49947
49948 2008-06-07  Bruno Haible  <bruno@clisp.org>
49949
49950         Improve support for Tru64 ACLs.
49951         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49952         ACL on OSF/1.
49953
49954 2008-06-07  Bruno Haible  <bruno@clisp.org>
49955
49956         Add support for MacOS X ACLs.
49957         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49958         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49959         * lib/set-mode-acl.c (qset_acl): Likewise.
49960         * lib/copy-acl.c (qcopy_acl): Likewise.
49961
49962 2008-06-07  Bruno Haible  <bruno@clisp.org>
49963
49964         Fix memory leak introduced on 2008-05-22.
49965         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49966         use.
49967
49968 2008-06-07  Bruno Haible  <bruno@clisp.org>
49969
49970         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49971         to construct an empty ACL.
49972
49973 2008-06-07  Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49976         precisely.
49977         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49978
49979 2008-06-07  Bruno Haible  <bruno@clisp.org>
49980
49981         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49982         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49983
49984 2008-06-07  Bruno Haible  <bruno@clisp.org>
49985
49986         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49987         regardless of POSIX.
49988         * doc/posix-functions/_longjmp.texi: Likewise.
49989         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49990         SystemV platform in this case.
49991
49992 2008-06-06  Eric Blake  <ebb9@byu.net>
49993
49994         Document abort() bugs.
49995         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49996
49997         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49998         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49999         sigsetjmp.
50000         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50001         siglongjmp, but only as a macro.
50002         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50003         is obsolete.
50004         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50005
50006         Tweak documentation to cover cygwin argz bugs.
50007         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50008         argz bug fix; no code change needed since no cygwin releases
50009         occurred between the last fix and the bug being tested.
50010         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50011         module and recently fixed cygwin bugs.
50012         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50013         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50014         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50015         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50016         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50017         Likewise.
50018         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50019         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50020         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50021         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50022         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50023         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50024         Likewise.
50025
50026         Avoid gcc warning on cygwin.
50027         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50028         !ACL_NO_TRIVIAL]: Avoid unused variable.
50029
50030 2008-06-05  Eric Blake  <ebb9@byu.net>
50031
50032         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50033         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50034         git-version-gen fails to come up with a version.
50035         Reported by Simon Josefsson.
50036
50037 2008-06-05  Jim Meyering  <meyering@redhat.com>
50038             Paul Eggert  <eggert@cs.ucla.edu>
50039
50040         utimens.c: work around a probable Linux kernel bug
50041         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50042         appears to be a kernel bug that causes utimensat to return 280
50043         instead of 0, indicating success.
50044
50045 2008-06-04  Bruno Haible  <bruno@clisp.org>
50046
50047         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50048         2008-06-01 commit.
50049
50050 2008-06-04  Bruno Haible  <bruno@clisp.org>
50051
50052         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50053         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50054         (file_has_acl): Use it. Save errno afterwards.
50055         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50056
50057 2008-06-03  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50060         draft code. Simplify #ifs.
50061         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50062         Put Solaris code after POSIX-draft code. Fix comments regarding
50063         Solaris 10, HP-UX. Mention Cygwin.
50064         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50065
50066 2008-06-03  Eric Blake  <ebb9@byu.net>
50067
50068         Provide fallback for older kernels.
50069         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50070         Provide runtime fallback if kernel lacks support.
50071         Reported by Mike Frysinger.
50072
50073 2008-06-02  Bruno Haible  <bruno@clisp.org>
50074
50075         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50076         it exists.
50077
50078 2008-06-02  Bruno Haible  <bruno@clisp.org>
50079
50080         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50081         * lib/copy-acl.c (qcopy_acl): Update comment.
50082
50083 2008-06-02  Bruno Haible  <bruno@clisp.org>
50084
50085         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50086         like ACL APIs.
50087
50088 2008-06-02  Bruno Haible  <bruno@clisp.org>
50089
50090         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50091         * tests/test-set-mode-acl.sh: Likewise.
50092         * tests/test-copy-acl.sh: Likewise.
50093         * tests/test-copy-file.sh: Likewise.
50094
50095 2008-06-02  Bruno Haible  <bruno@clisp.org>
50096
50097         * tests/test-file-has-acl.sh: Remove unused code.
50098
50099 2008-06-01  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50102         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50103         messages.
50104         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50105
50106 2008-06-01  Bruno Haible  <bruno@clisp.org>
50107
50108         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50109         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50110         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50111         APIs.
50112         * modules/acl-tests (configure.ac): Remove tests now contained in
50113         m4/acl.m4.
50114
50115 2008-06-02  Jim Meyering  <meyering@redhat.com>
50116
50117         announce-gen: use a better key-server host name
50118         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50119         it may be more consistently reliable.  Suggested by Werner Koch
50120         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50121
50122 2008-06-01  Bruno Haible  <bruno@clisp.org>
50123
50124         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50125         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50126
50127 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50128
50129         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50130
50131 2008-06-01  Bruno Haible  <bruno@clisp.org>
50132
50133         New ACL tests.
50134         * tests/test-file-has-acl.sh: New file.
50135         * tests/test-file-has-acl.c: New file.
50136         * tests/test-set-mode-acl.sh: New file.
50137         * tests/test-set-mode-acl.c: New file.
50138         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50139         * tests/test-copy-acl.c: New file.
50140         * modules/acl-tests: New file, based on modules/copy-file-tests.
50141         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50142         (Depends-on): Add acl-tests.
50143         (configure.ac): Remove checks.
50144         (Makefile.am): Don't create test-sameacls program here any more.
50145
50146 2008-06-01  Bruno Haible  <bruno@clisp.org>
50147
50148         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50149         * tests/test-sameacls.c: Include progname.h.
50150         (main): Invoke set_program_name. Portability fixes for MacOS X,
50151         Solaris, HP-UX.
50152
50153 2008-06-01  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50156         function.
50157         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50158
50159 2008-06-01  Bruno Haible  <bruno@clisp.org>
50160
50161         * modules/rpmatch (Depends-on): Add strdup.
50162
50163 2008-06-01  Bruno Haible  <bruno@clisp.org>
50164
50165         * lib/pipe.c: Include unistd-safer.h.
50166         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50167         * modules/pipe (Depends-on): Add unistd-safer.
50168
50169 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50170
50171         * modules/autobuild (configure.ac): Call AB_INIT.
50172
50173 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50174
50175         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50176         Suggested by Bruno Haible <bruno@clisp.org>.
50177
50178 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50179
50180         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50181         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50182         <bruno@clisp.org>.
50183
50184 2008-05-29  Eric Blake  <ebb9@byu.net>
50185
50186         Prefer new POSIX 200x interfaces over futimesat.
50187         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50188         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50189         when available.
50190         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50191
50192 2008-05-28  Bruno Haible  <bruno@clisp.org>
50193
50194         * modules/stpcpy (License): Change to LGPLv2+.
50195         Requested by David Lutterkort <dlutter@redhat.com>.
50196
50197 2008-05-27  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50200         current mingw.
50201         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50202
50203 2008-05-27  Bruno Haible  <bruno@clisp.org>
50204
50205         * modules/iconv_open (Link): New section, from module 'iconv'.
50206         * modules/striconv (Link): Likewise.
50207         * modules/striconveh (Link): Likewise.
50208         * modules/xstriconv (Link): Likewise.
50209         * modules/unicodeio (Link): Likewise.
50210         * modules/propername (Link): Likewise.
50211         Reported by Jim Meyering.
50212
50213 2008-05-26  Jim Meyering  <meyering@redhat.com>
50214
50215         sha256: do not artificially restrict buffer length to be < 2^32
50216         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50217         uint32_t to size_t.
50218         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50219         to match.
50220
50221         avoid unaligned access errors, e.g., on sparc
50222         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50223         direct access through a possibly-unaligned uint64* pointer.
50224         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50225         direct access through a possibly-unaligned uint32* pointer.
50226         Prompted by this patch from Tom "spot" Callaway:
50227         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50228
50229         sha512.c: fix typo in comment
50230         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50231
50232 2008-05-25  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50235         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50236         (Makefile.am): Update lib_SOURCES.
50237
50238 2008-05-25  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50241
50242 2008-05-25  Jim Meyering  <meyering@redhat.com>
50243
50244         useless-if-before-free: freed expr may have white-space differences
50245         * build-aux/useless-if-before-free: Recognize cases in which the
50246         freed expression differs from the tested one in embedded white
50247         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50248         $1 was used, so we can't make any regexp shy.  Improved tests now
50249         detect this.
50250
50251         useless-if-before-free: accept white space in the expression.
50252         * build-aux/useless-if-before-free: For now, any white space
50253         in the expression must be identical in the free argument.
50254
50255         useless-if-before-free: efficiency tweak
50256         * build-aux/useless-if-before-free: Make the expression-matching
50257         regexp "shy".
50258         Make the *outer* regexp shy, not the expr-matching one.
50259
50260         update code-in-comment to accept cast of free arg
50261         * build-aux/useless-if-before-free: Update regexp.
50262
50263 2008-05-25  Bruno Haible  <bruno@clisp.org>
50264
50265         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50266         * modules/copy-file-tests (Files, Makefile.am): Update.
50267         * tests/test-copy-file.c (func_test_copy): Update.
50268
50269 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50270
50271         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50272
50273 2008-05-23  Bruno Haible  <bruno@clisp.org>
50274
50275         Improve support for ACLs on OSF/1.
50276         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50277         Remove fallback for unknown flavors of ACLs.
50278
50279 2008-05-22  Bruno Haible  <bruno@clisp.org>
50280
50281         Add support for ACLs on OSF/1.
50282         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50283         replacements.
50284         (acl_free_text): New macro fallback.
50285         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50286         acl_free.
50287         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50288         acl_free_text function. Require AC_C_INLINE.
50289
50290 2008-05-22  Bruno Haible  <bruno@clisp.org>
50291
50292         Make copy_acl work on MacOS X 10.5.
50293         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50294         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50295         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50296         If MODE_INSIDE_ACL, don't assume that every system has the same text
50297         representation for ACLs as FreeBSD.
50298         * lib/copy-acl.c (copy_acl): Add support for platforms with
50299         !MODE_INSIDE_ACL.
50300         * lib/file-has-acl.c (file_has_acl): Likewise.
50301         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50302         FreeBSD, MacOS X, or IRIX, respectively.
50303
50304 2008-05-22  Bruno Haible  <bruno@clisp.org>
50305
50306         * lib/acl.h: Don't include <sys/acl.h>.
50307         (GETACLCNT): Move fallback to lib/acl-internal.h.
50308         * lib/acl-internal.h: Include <sys/acl.h> here.
50309         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50310
50311 2008-05-22  Bruno Haible  <bruno@clisp.org>
50312
50313         Split off copy_acl function to separate file.
50314         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50315         * lib/acl.c (copy_acl): Moved function to separate file.
50316         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50317         * modules/acl (Files): Add lib/copy-acl.c.
50318         (Makefiles.am): Augment lib_SOURCES.
50319
50320 2008-05-22  Bruno Haible  <bruno@clisp.org>
50321
50322         * modules/copy-file-tests: New file.
50323         * tests/test-copy-file.sh: New file.
50324         * tests/test-copy-file.c: New file.
50325         * tests/test-copy-file-sameacls.c: New file.
50326
50327 2008-05-22  Eric Blake  <ebb9@byu.net>
50328
50329         Avoid gcc warning.
50330         * tests/test-memcmp.c (main): Pass NULL indirectly.
50331
50332 2008-05-21  Bruno Haible  <bruno@clisp.org>
50333
50334         Add reference doc about ACLs.
50335         * doc/acl-resources.txt: New file.
50336         * doc/acl-cygwin.txt: New file.
50337
50338 2008-05-21  Bruno Haible  <bruno@clisp.org>
50339
50340         Avoid one more warning from gcc.
50341         * lib/vasnprintf.c (IF_LINT): Update comments.
50342         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50343
50344 2008-05-21  Jim Meyering  <meyering@redhat.com>
50345
50346         avoid a warning from gcc
50347         * lib/vasnprintf.c (IF_LINT): Define.
50348         (scale10_round_decimal_long_double):
50349         Use it to avoid a "may be used uninitialized" warning.
50350         (scale10_round_decimal_double): Likewise.
50351
50352 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50353
50354         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50355         declared.
50356
50357 2008-05-20  Bruno Haible  <bruno@clisp.org>
50358
50359         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50360         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50361
50362 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50363
50364         * modules/memcmp-tests: New file.
50365         * tests/test-memcmp.c: New file.
50366
50367 2008-05-19  Bruno Haible  <bruno@clisp.org>
50368
50369         * modules/propername (Notice, configure.ac): Put quoted "..." into
50370         --keyword option.
50371         * lib/propername.h: Update comments accordingly.
50372         Reported by Eric Blake.
50373
50374 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50375
50376         * modules/getpass-gnu (Depends-on): Add fseeko.
50377
50378 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50379
50380         * modules/base64-tests: New file.
50381
50382 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50383
50384         * lib/base64.c (base64_decode_ctx): If a decode context structure
50385         was passed in use it to ignore newlines.  If a context structure
50386         was _not_ passed in, continue to treat newlines as garbage (this
50387         is the historical behavior).  Formerly base64_decode.
50388         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50389         takes a decode context structure.
50390         * lib/base64.h (base64_decode): Macro for four-argument calls.
50391         (base64_decode_alloc): Likewise.
50392         * lib/base64.c (base64_decode_ctx): If a decode context structure
50393         was passed in use it to ignore newlines.  If a context structure
50394         was _not_ passed in, continue to treat newlines as garbage (this
50395         is the historical behavior).  Formerly base64_decode.
50396         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50397         takes a decode context structure.
50398         * lib/base64.h (base64_decode): Macro for four-argument calls.
50399         (base64_decode_alloc): Likewise.
50400
50401 2008-05-19  Jim Meyering  <meyering@redhat.com>
50402
50403         avoid a warning from gcc
50404         * lib/trim.c (IF_LINT): Define.
50405         (trim2): Use it to avoid a "may be used uninitialized" warning.
50406
50407         Fix doc typo.
50408         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50409
50410 2008-05-19  Bruno Haible  <bruno@clisp.org>
50411
50412         * doc/glibc-functions/getpass.texi: Document limits of other
50413         implementations.
50414
50415 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50416             Bruno Haible <bruno@clisp.org>
50417
50418         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50419
50420 2008-05-18  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/propername: New file, from GNU gettext.
50423         * lib/propername.h: New file, from GNU gettext.
50424         * lib/propername.c: New file, from GNU gettext.
50425         * MODULES.html.sh (Internationalization functions): Add propername.
50426
50427 2008-05-16  Jim Meyering  <meyering@redhat.com>
50428             Bruno Haible  <bruno@clisp.org>
50429
50430         Avoid some warnings from "gcc -Wshadow".
50431         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50432
50433 2008-05-15  Eric Blake  <ebb9@byu.net>
50434
50435         Extend previous patch to cygwin 1.7.0.
50436         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50437         fast implementation in cygwin >= 1.7.0.
50438         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50440
50441 2008-05-15  Bruno Haible  <bruno@clisp.org>
50442
50443         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50444         implementation in glibc >= 2.9.
50445         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50447
50448 2008-05-15  Bruno Haible  <bruno@clisp.org>
50449
50450         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50451         (Unicode string functions): Add unilbrk/*.
50452         Reported by Karl Berry.
50453
50454 2008-05-15  Eric Blake  <ebb9@byu.net>
50455
50456         Fix violation of <stdbool.h> replacement in regex.
50457         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50458         * lib/regexec.c (re_search_internal): Likewise.
50459         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50460
50461 2008-05-15  Jim Meyering  <meyering@redhat.com>
50462
50463         avoid distracting test output when git or cvs is not found
50464         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50465         * tests/test-vc-list-files-git.sh: Likewise.
50466
50467 2008-05-15  Eric Blake  <ebb9@byu.net>
50468
50469         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50470         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50471         glibc version.
50472         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50473         * doc/posix-functions/strstr.texi (strstr): Likewise.
50474         * lib/str-two-way.h (MAX): Sychronize with glibc.
50475
50476 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50477
50478         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50479         opr.ctx_type.
50480         (calc_first): Initialize constraint field.
50481         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50482         Fix grammar.
50483         (duplicate_node): Merge constraint field for all node types.
50484         (calc_eclosure_iter): Look at constraint field for all node types.
50485         * lib/regex_internal.c (create_cd_newstate): Don't look at
50486         opr.ctx_type.
50487
50488 2008-05-14  Bruno Haible  <bruno@clisp.org>
50489
50490         Help GCC to do better code generation.
50491         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50492         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50493         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50494         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50495         Declare with attribute 'malloc' if supported.
50496
50497 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50498
50499         use "echo STR|wc -c" rather than unportable "expr length STR"
50500         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50501         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50502
50503 2008-05-14  Jim Meyering  <meyering@redhat.com>
50504
50505         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50506         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50507         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50508         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50509         via Collin Lasse.
50510
50511 2008-05-14  Eric Blake  <ebb9@byu.net>
50512
50513         Avoid quadratic growth in gl_LIBSOURCES.
50514         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50515         Suggested by Bruno Haible.
50516
50517         Test xmemdup0.
50518         * modules/xmemdup0-tests: New file.
50519         * tests/test-xmemdup0.c: Likewise.
50520
50521 2008-05-13  Eric Blake  <ebb9@byu.net>
50522
50523         Split xmemdup0 into its own module.
50524         * modules/xmemdup0: New file.
50525         * lib/xmemdup0.h: Likewise.
50526         * lib/xmemdup0.c: Likewise.
50527         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50528         * lib/xalloc.h (xmemdup0): Remove.
50529         * lib/xmalloc.c (xmemdup0): Likewise.
50530
50531 2008-05-13  Eric Blake  <ebb9@byu.net>
50532             Bruno Haible  <bruno@clisp.org>
50533
50534         Reduce number of forks required during autoconf.
50535         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50536         and gl_LIBSOURCES_DIR.
50537         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50538         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50539         m4_syscmd per file.
50540         <m4_foreach_w>: Move...
50541         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50542
50543 2008-05-13  Eric Blake  <ebb9@byu.net>
50544
50545         * gnulib-tool: Fix various comment typos.
50546
50547 2008-05-12  Bruno Haible  <bruno@clisp.org>
50548
50549         Tailor the linebreaking algorithm.
50550         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50551
50552 2008-05-12  Bruno Haible  <bruno@clisp.org>
50553
50554         Update to Unicode 5.0.0.
50555         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50556         LBP_JV, LBP_JT. Redistribute values.
50557         (unilbrk_table): Change size.
50558         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50559         Unicode TR#14 rev. 22.
50560         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50561         LBP_JV, LBP_JT. Redistribute values.
50562         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50563         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50564         Update.
50565         * lib/unilbrk/lbrkprop1.h: Regenerated.
50566         * lib/unilbrk/lbrkprop2.h: Regenerated.
50567         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50568         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50569         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50570         Likewise.
50571         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50572         Likewise.
50573         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50574         result.
50575         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50576         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50577         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50578         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50579         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50580         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50581
50582 2008-05-11  Bruno Haible  <bruno@clisp.org>
50583
50584         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50585
50586 2008-05-11  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50589         * modules/unilbrk/gen-lbrk: New file.
50590
50591 2008-05-11  Bruno Haible  <bruno@clisp.org>
50592
50593         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50594         * m4/sha512.m4 (gl_SHA512): Likewise.
50595
50596 2008-05-11  Jim Meyering  <meyering@redhat.com>
50597
50598         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50599         * modules/crypto/sha256: New file.
50600         * modules/crypto/sha512: Likewise.
50601         * lib/sha256.c: Likewise.
50602         * lib/sha256.h: Likewise.
50603         * lib/sha512.c: Likewise.
50604         * lib/sha512.h: Likewise.
50605         * lib/u64.h: Likewise.
50606         * m4/sha256.m4: Likewise.
50607         * m4/sha512.m4: Likewise.
50608         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50609
50610 2008-05-10  Bruno Haible  <bruno@clisp.org>
50611
50612         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50613         (Input/Output <stdio.h>): Add xprintf.
50614         (Signal handling <signal.h>): Add strsignal.
50615         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50616         (Core language properties): Add func.
50617         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50618         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50619         strings.
50620         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50621         (Input/output): New section.
50622         (File system functions): Add openat-die, stat-macros.
50623         (Networking functions): Add sockets.
50624         (Unicode string functions): Add unictype/*.
50625         (Support for building libraries and executables): Add gperf.
50626         (Support for building documentation): Add agpl-3.0.
50627         (Misc): Add nocrash.
50628
50629 2008-05-10  Bruno Haible  <bruno@clisp.org>
50630
50631         * modules/unictype/gen-ctype: New file.
50632
50633 2008-05-10  Jim Meyering  <meyering@redhat.com>
50634
50635         Make chdir-safer.c more efficient on a system with no symlinks.
50636         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50637         also if ELOOP is zero.  Suggested by Bruno Haible.
50638
50639         Make chdir-safer.c slightly safer.
50640         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50641         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50642
50643         Avoid compile failure on systems without ELOOP (like mingw).
50644         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50645         Reported by Bruno Haible.
50646
50647 2008-05-10  Bruno Haible  <bruno@clisp.org>
50648
50649         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50650         (is_utf8_encoding): Use a case-insensitive comparison.
50651         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50652         streq.
50653
50654 2008-05-10  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50657         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50658         * lib/unilbrk/ulc-common.h (iconv_string_length,
50659         iconv_string_keeping_offsets): Remove declarations.
50660         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50661         Don't include <iconv.h>, streq.h, xsize.h.
50662         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50663         conversion.
50664         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50665         <iconv.h>, streq.h, xsize.h.
50666         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50667         conversion.
50668         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50669         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50670         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50671         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50672
50673 2008-05-10  Bruno Haible  <bruno@clisp.org>
50674
50675         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50676         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50677
50678         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50679         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50680
50681         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50682         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50683
50684         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50685         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50686
50687         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50688         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50689
50690         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50691         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50692
50693         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50694         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50695
50696         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50697         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50698
50699 2008-05-10  Bruno Haible  <bruno@clisp.org>
50700
50701         Split up 'linebreak' module.
50702         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50703         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50704         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50705         modifications.
50706         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50707         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50708         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50709         lib/linebreak.c.
50710         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50711         lib/linebreak.c.
50712         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50713         lib/linebreak.c.
50714         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50715         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50716         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50717         lib/linebreak.c.
50718         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50719         lib/linebreak.c.
50720         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50721         lib/linebreak.c.
50722         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50723         lib/linebreak.c.
50724         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50725         lib/linebreak.c.
50726         * modules/unilbrk/base: New file.
50727         * modules/unilbrk/tables: New file.
50728         * modules/unilbrk/u8-possible-linebreaks: New file.
50729         * modules/unilbrk/u16-possible-linebreaks: New file.
50730         * modules/unilbrk/u32-possible-linebreaks: New file.
50731         * modules/unilbrk/ulc-common: New file.
50732         * modules/unilbrk/ulc-possible-linebreaks: New file.
50733         * modules/unilbrk/u8-width-linebreaks: New file.
50734         * modules/unilbrk/u16-width-linebreaks: New file.
50735         * modules/unilbrk/u32-width-linebreaks: New file.
50736         * modules/unilbrk/ulc-width-linebreaks: New file.
50737         * lib/linebreak.h: Remove file.
50738         * lib/linebreak.c: Remove file.
50739         * m4/linebreak.m4: Remove file.
50740         * modules/linebreak: Remove file.
50741         * NEWS: Mention the changes.
50742
50743 2008-05-09  Eric Blake  <ebb9@byu.net>
50744
50745         Add xmemdup0.
50746         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50747         implementation.
50748         * lib/xmalloc.c (xmemdup0): New C implementation.
50749
50750 2008-05-08  Bruno Haible  <bruno@clisp.org>
50751
50752         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50753
50754 2008-05-07  Eric Blake  <ebb9@byu.net>
50755
50756         Support cross-compilation of <wctype.h>.
50757         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50758         AC_CACHE_CHECK.
50759
50760 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50761
50762         * build-aux/vc-list-files: Add support for bzr.
50763
50764 2008-05-03  Jim Meyering  <meyering@redhat.com>
50765
50766         avoid failed assertion with tight malloc
50767         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50768
50769 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50770
50771         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50772         are needed from arpa/inet.h.
50773         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50774         Reported by Bruno Haible.
50775
50776 2008-05-02  Jim Meyering  <meyering@redhat.com>
50777
50778         avoid compilation error on FreeBSD 6
50779         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50780
50781 2008-05-01  Jim Meyering  <meyering@redhat.com>
50782
50783         useless-if-before-free: correct --help's exit status description
50784         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50785         for one or more matches, etc.  Reported by Bruno Haible.
50786
50787         vc-list-files: make the stand-alone gnulib test work
50788         * modules/vc-list-files-tests (configure.ac):
50789         Define and AC_SUBST abs_aux_dir.
50790         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50791         $(abs_top_srcdir) to each script and having each of them
50792         duplicate the work of setting PATH, set PATH here, using
50793         the new variable, abs_aux_dir instead.
50794         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50795         * tests/test-vc-list-files-git.sh: Likewise.
50796         Reported by Bruno Haible.
50797
50798 2008-05-01  Bruno Haible  <bruno@clisp.org>
50799
50800         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50801         reallocation. Rename 'done' to 'found_delimiter'.
50802
50803 2008-05-01  Jim Meyering  <meyering@redhat.com>
50804
50805         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50806         * build-aux/vc-list-files: Use `...`, not $(...).
50807
50808 2008-04-30  Jim Meyering  <meyering@redhat.com>
50809
50810         add tests for vc-list-files
50811         * modules/vc-list-files-tests: New module.
50812         * tests/test-vc-list-files-cvs.sh: New file.
50813         * tests/test-vc-list-files-git.sh: New file.
50814
50815         avoid a warning from gcc
50816         * lib/getndelim2.c (IF_LINT): Define.
50817         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50818
50819         vc-list-files: work properly with build-aux/cvsu, too
50820         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50821         to all cvs-based clauses.
50822
50823         vc-list-files: work properly in the CVS+awk case, too
50824         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50825
50826         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50827         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50828         take more than one file argument, so .  Add quotes, just in case $dir
50829         ever contains a shell meta-character.  Prompted by Soren Hansen in
50830         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50831
50832 2008-04-29  Eric Blake  <ebb9@byu.net>
50833
50834         Optimize getndelim2 to use block operations when possible.
50835         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50836         freadseek, and memchr2.
50837         * lib/getndelim2.c (getndelim2): Use them for block reads.
50838
50839 2008-04-29  Bruno Haible  <bruno@clisp.org>
50840
50841         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50842         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50843         * modules/inet_ntop (Depends-on): Add extensions.
50844         * modules/inet_pton (Depends-on): Likewise.
50845         Reported by Simon Josefsson.
50846
50847 2008-04-29  Jim Meyering  <meyering@redhat.com>
50848
50849         When the is more than one match in a block, match all of them.
50850         * build-aux/useless-if-before-free: Iterate through each block
50851         until there are no more matches.
50852
50853         Fix broken useless-if-before-free script.
50854         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50855         the expression to match cast of argument to free-like function.
50856
50857 2008-04-29  Eric Blake  <ebb9@byu.net>
50858
50859         Use new header.
50860         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50861
50862 2008-04-29  Jim Meyering  <meyering@redhat.com>
50863
50864         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50865         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50866         by gnulib to exist and to declare e.g., inet_ntop.
50867         Don't include "inet_ntop.h", now removed.
50868
50869         * m4/arpa_inet_h.m4: Remove trailing blanks.
50870
50871 2008-04-29  Eric Blake  <ebb9@byu.net>
50872
50873         Silence valgrind on safe reads beyond potential array bounds.
50874         * lib/rawmemchr.valgrind: New file.
50875         * lib/strchrnul.valgrind: Likewise.
50876         * modules/rawmemchr (Files): Distribute new file.
50877         * modules/strchrnul (Files): Likewise.
50878         Suggested by Bruno Haible.
50879
50880 2008-04-29  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50883         (inet_ntop, inet_pton): Change portability warning's wording.
50884         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50885         Invoke gl_CHECK_NEXT_HEADERS.
50886         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50887         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50888         set ARPA_INET_H.
50889         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50890         * modules/arpa_inet (Description): No longer only for systems that
50891         lack it.
50892         (Depends-on): Add include_next.
50893         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50894         HAVE_ARPA_INET_H.
50895
50896 2008-04-29  Jim Meyering  <meyering@redhat.com>
50897
50898         * modules/mkdir (License): Re-license as LGPLv2+.
50899
50900 2008-04-29  Bruno Haible  <bruno@clisp.org>
50901
50902         * modules/rawmemchr (Maintainer): Set to Eric.
50903         * modules/strchrnul (Maintainer): Likewise.
50904
50905 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50906
50907         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50908         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50909
50910         * modules/arpa_inet (arpa/inet.h): Use them.
50911
50912 2008-04-28  Eric Blake  <ebb9@byu.net>
50913
50914         Test getndelim2.
50915         * modules/getndelim2-tests: New file.
50916         * tests/test-getndelim2.c: Likewise.
50917         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50918         stream.
50919         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50920
50921         * MODULES.html.sh: Document new module.
50922
50923 2008-04-20  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/c-stack.c (die): Use raise.
50926         * modules/c-stack (Depends-on): Add raise.
50927
50928 2008-04-28  Bruno Haible  <bruno@clisp.org>
50929
50930         Expect rpmatch to be declared.
50931         * lib/yesno.c (rpmatch): Remove declaration.
50932
50933         Declare rpmatch.
50934         * lib/stdlib.in.h (rpmatch): New declaration.
50935         * lib/rpmatch.c: Include <stdlib.h> first.
50936         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50937         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50939         HAVE_RPMATCH.
50940         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50941         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50942         (Include): Set to <stdlib.h>.
50943         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50944         HAVE_RPMATCH.
50945         * NEWS: Document the change.
50946
50947 2008-04-28  Bruno Haible  <bruno@clisp.org>
50948
50949         Change rpmatch to use nl_langinfo when appropriate.
50950         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50951         (N_): New macro.
50952         (localized_pattern): New function/macro.
50953         (try): Remove match, nomatch arguments. Copy the pattern into safe
50954         memory before caching it.
50955         (rpmatch): Use localized_pattern. Add translator comments.
50956         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50957         Suggested by Eric Blake.
50958         * modules/rpmatch (Depends-on): Add stdbool.
50959
50960 2008-04-28  Eric Blake  <ebb9@byu.net>
50961
50962         Add rawmemchr module, matching glibc.
50963         * modules/string (Makefile.am): New indicator.
50964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50965         * lib/string.in.h (rawmemchr): Declare when appropriate.
50966         * modules/rawmemchr: New file.
50967         * m4/rawmemchr.m4: Likewise.
50968         * lib/rawmemchr.c: Likewise.
50969         * modules/rawmemchr-tests: Likewise.
50970         * tests/test-rawmemchr.c: Likewise.
50971         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50972         module.
50973         * modules/strchrnul (Depends-on): Add rawmemchr.
50974         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50975
50976         Whitespace cleanup.
50977         * tests/test-strchrnul.c: Reindent.
50978         * lib/strchrnul.c: Likewise.
50979
50980         Optimize and test strchrnul.
50981         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50982         * modules/strchrnul-tests: New file.
50983         * tests/test-strchrnul.c: Likewise.
50984
50985         Remove intprops dependency.
50986         * modules/memchr (Depends-on): Remove intprops.
50987         * modules/memrchr (Depends-on): Likewise.
50988         * modules/memchr2 (Depends-on): Likewise.
50989         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50990         * lib/memrchr.c (__memrchr): Likewise.
50991         * lib/memrchr2.c (memchr2): Likewise.
50992         Reported by Simon Josefsson.
50993
50994 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50995
50996         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50997         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50998
50999 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51000
51001         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51002
51003         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51004
51005         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51006
51007         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51008         declarations.
51009         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51010
51011         * m4/inet_pton.m4: Don't check for header files.
51012
51013         * m4/inet_ntop.m4: Don't check for header files.
51014
51015 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51016
51017         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51018         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51019         trigger for cygwin).
51020         Reported by Bruno Haible  <bruno@clisp.org>.
51021
51022 2008-04-28  Bruno Haible  <bruno@clisp.org>
51023
51024         * doc/posix-functions/strdup.texi: Mention mingw problem.
51025
51026 2008-04-27  Bruno Haible  <bruno@clisp.org>
51027
51028         * modules/stat-time-tests (Depends-on): Add sleep.
51029         * tests/test-stat-time.c (force_unlink): New function.
51030         (cleanup): Use it.
51031         (test_mtime): Remove the ctime related tests.
51032         (test_ctime): New function, containing the ctime related tests.
51033         (main): Call test_ctime, except on native Windows platforms.
51034
51035 2008-04-27  Bruno Haible  <bruno@clisp.org>
51036
51037         * lib/rpmatch.c (rpmatch): Add some comments.
51038         Reported by James Youngman <jay@gnu.org>.
51039
51040 2008-04-27  Bruno Haible  <bruno@clisp.org>
51041
51042         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51043         quiet NaNs.
51044
51045 2008-04-27  Bruno Haible  <bruno@clisp.org>
51046
51047         Make test-yesno.sh work on mingw.
51048         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51049         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51050         (main): Set stdin to binary mode.
51051         * modules/yesno-tests (Depends-on): Add binary-io.
51052
51053 2008-04-27  Bruno Haible  <bruno@clisp.org>
51054
51055         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51056         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51057         argument that lie outside the IEEE 854 domain.
51058         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51059         (gl_ISFINITE): Use it.
51060         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51061
51062 2008-04-27  Bruno Haible  <bruno@clisp.org>
51063
51064         Allow local renaming in config.h.
51065         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51066
51067 2008-04-27  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/memchr.c (__memchr): Change type of 'i'.
51070         * lib/memchr2.c (memchr2): Likewise.
51071
51072 2008-04-26  Eric Blake  <ebb9@byu.net>
51073         and Bruno Haible  <bruno@clisp.org>
51074
51075         Optimize and test memrchr.
51076         * modules/memrchr (Depends-on): Add intprops.
51077         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51078         * modules/memrchr-tests: New file.
51079         * tests/test-memrchr.c: New file.
51080
51081 2008-04-26  Bruno Haible  <bruno@clisp.org>
51082
51083         Add tentative support for DragonFly BSD.
51084         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51085         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51086         fp.
51087         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51088         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51089         * lib/fpurge.c (fpurge): Likewise.
51090         * lib/freadable.c (freaadable): Likewise.
51091         * lib/freadahead.c (freadahead): Likewise.
51092         * lib/freading.c (freading): Likewise.
51093         * lib/freadptr.c (freadptr): Likewise.
51094         * lib/freadseek.c (freadptrinc): Likewise.
51095         * lib/fseeko.c (fseeko): Likewise.
51096         * lib/fseterr.c (fseterr): Likewise.
51097         * lib/fwritable.c (fwritable): Likewise.
51098         * lib/fwriting.c (fwriting): Likewise.
51099
51100 2008-04-26  Bruno Haible  <bruno@clisp.org>
51101
51102         * lib/stdio-impl.h: New file.
51103         * lib/fbufmode.c: Include stdio-impl.h.
51104         (fbufmode): Use fp_, remove redundant #defines.
51105         * lib/fflush.c: Include stdio-impl.h.
51106         (clear_ungetc_buffer): Remove redundant #defines.
51107         * lib/fpurge.c: Include stdio-impl.h.
51108         (fpurge): Remove redundant #defines.
51109         * lib/freadable.c: Include stdio-impl.h.
51110         (freadable): Remove redundant #defines.
51111         * lib/freadahead.c: Include stdio-impl.h.
51112         (freadahead): Remove redundant #defines.
51113         * lib/freading.c: Include stdio-impl.h.
51114         (freading): Remove redundant #defines.
51115         * lib/freadptr.c: Include stdio-impl.h.
51116         (freadptr): Remove redundant #defines.
51117         * lib/freadseek.c: Include stdio-impl.h.
51118         (freadptrinc): Remove redundant #defines.
51119         * lib/fseeko.c: Include stdio-impl.h.
51120         (rpl_fseeko): Remove redundant #defines.
51121         * lib/fseterr.c: Include stdio-impl.h.
51122         (fseterr): Remove redundant #defines.
51123         * lib/fwritable.c: Include stdio-impl.h.
51124         (fwritable: Remove redundant #defines.
51125         * lib/fwriting.c: Include stdio-impl.h.
51126         (fwriting): Remove redundant #defines.
51127         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51128         * modules/fflush (Files): Likewise.
51129         * modules/fpurge (Files): Likewise.
51130         * modules/freadable (Files): Likewise.
51131         * modules/freadahead (Files): Likewise.
51132         * modules/freading (Files): Likewise.
51133         * modules/freadptr (Files): Likewise.
51134         * modules/freadseek (Files): Likewise.
51135         * modules/fseeko (Files): Likewise.
51136         * modules/fseterr (Files): Likewise.
51137         * modules/fwritable (Files): Likewise.
51138         * modules/fwriting (Files): Likewise.
51139
51140 2008-04-26  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51143         restore_seek_optimization, update_fpos_cache): New functions, extracted
51144         from rpl_fflush.
51145         (rpl_fflush): Use them.
51146         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51147         (gl_REPLACE_FFLUSH): Use it.
51148
51149 2008-04-26  Bruno Haible  <bruno@clisp.org>
51150
51151         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51152         on Solaris.
51153         * tests/test-xstrtoimax.sh: Likewise.
51154         * tests/test-xstrtoumax.sh: Likewise.
51155         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51156
51157 2008-04-26  Bruno Haible  <bruno@clisp.org>
51158
51159         * modules/memchr-tests: New file.
51160         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51161
51162 2008-04-26  Eric Blake  <ebb9@byu.net>
51163             Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/memchr.c: Include intprops.h.
51166         (__memchr): Optimize parallel detection of matching bytes. Rename local
51167         variables. Add explanatory comments.
51168
51169 2008-04-26  Bruno Haible  <bruno@clisp.org>
51170
51171         Fix module 'memchr', broken since 2000-10-28.
51172         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51173
51174 2008-04-26  Bruno Haible  <bruno@clisp.org>
51175
51176         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51177         comments.
51178
51179 2008-04-25  Eric Blake  <ebb9@byu.net>
51180
51181         Use native fstatat on cygwin 1.7.0.
51182         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51183         first.
51184
51185 2008-04-23  Eric Blake  <ebb9@byu.net>
51186
51187         Improve memchr2 performance.
51188         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51189         NUL bytes.
51190         * modules/memchr2 (Depends-on): Use intprops.h.
51191
51192 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51193
51194         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51195         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51196         <blp@cs.stanford.edu>.
51197
51198 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51199
51200         * lib/arpa_inet.in.h: New file.
51201
51202         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51203         (Makefile.am): Sed in substitute header file.
51204
51205         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51206         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51207
51208         * modules/inet_ntop (configure.ac): Use
51209         gl_ARPA_INET_MODULE_INDICATOR.
51210
51211         * modules/inet_pton (configure.ac): Use
51212         gl_ARPA_INET_MODULE_INDICATOR.
51213
51214 2008-04-22  Jim Meyering  <meyering@redhat.com>
51215
51216         * modules/verify (License): Re-license as LGPLv2+.
51217
51218 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51219
51220         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51221         parameter to void* as per POSIX standard (MinGW uses char*).
51222
51223 2008-04-21  Bruno Haible  <bruno@clisp.org>
51224
51225         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51226         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51227         Define to replacements if REPLACE_ISWCNTRL is 1.
51228         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51229         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51230         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51231         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51232         what it fixes.
51233         * doc/posix-functions/iswalpha.texi: Likewise.
51234         * doc/posix-functions/iswblank.texi: Likewise.
51235         * doc/posix-functions/iswcntrl.texi: Likewise.
51236         * doc/posix-functions/iswdigit.texi: Likewise.
51237         * doc/posix-functions/iswgraph.texi: Likewise.
51238         * doc/posix-functions/iswlower.texi: Likewise.
51239         * doc/posix-functions/iswprint.texi: Likewise.
51240         * doc/posix-functions/iswpunct.texi: Likewise.
51241         * doc/posix-functions/iswspace.texi: Likewise.
51242         * doc/posix-functions/iswupper.texi: Likewise.
51243         * doc/posix-functions/iswxdigit.texi: Likewise.
51244         Reported by Alain Guibert.
51245
51246 2008-04-21  Bruno Haible  <bruno@clisp.org>
51247
51248         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51249         Patch by Alain Guibert.
51250
51251 2008-04-21  Bruno Haible  <bruno@clisp.org>
51252
51253         Fix test failures on mingw.
51254         * tests/test-xstrtol.c (print_no_progname): New function.
51255         (main): Install it in error_print_progname hook.
51256         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51257         * tests/test-xstrtoimax.sh: Likewise.
51258         * tests/test-xstrtoumax.sh: Likewise.
51259
51260 2008-04-21  Bruno Haible  <bruno@clisp.org>
51261
51262         Fix test failure on mingw.
51263         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51264
51265 2008-04-21  Bruno Haible  <bruno@clisp.org>
51266
51267         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51268         Actually assign a value.
51269
51270 2008-04-20  Bruno Haible  <bruno@clisp.org>
51271
51272         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51273         take 2.
51274         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51275         'canonicalize-lgpl' module is also used.
51276         * lib/canonicalize-lgpl.c: Undo last change.
51277         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51278
51279 2008-04-20  Bruno Haible  <bruno@clisp.org>
51280
51281         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51282         config.h. Provide _mkdir based fallback for mingw.
51283         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51284         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51285         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51286         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51287         rather than defining mkdir in config.h.
51288         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51289         (gl_SYS_STAT_H_DEFAULTS): New macro.
51290         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51291         HAVE_IO_H any more.
51292         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51293         HAVE_DECL_MKDIR and HAVE_IO_H.
51294
51295 2008-04-20  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/isapipe.c: Port to native Windows platforms.
51298
51299 2008-04-20  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51302
51303 2008-04-21  Eric Blake  <ebb9@byu.net>
51304
51305         Work around preprocessors that don't handle UINTMAX_MAX.
51306         * lib/memchr2.c (memchr2): Avoid embedded #if.
51307         Reported by Alain Guibert, fix suggested by Bruno Haible.
51308
51309 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51310
51311         * doc/posix-functions/strftime.texi (strftime): Explain better
51312         Windows incompatibility.  Suggested by Micah Cowan
51313         <micah@cowan.name>.
51314
51315 2008-04-20  Bruno Haible  <bruno@clisp.org>
51316
51317         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51318         unistr/u8-mblen.
51319
51320 2008-04-20  Bruno Haible  <bruno@clisp.org>
51321
51322         Fix test failure on platforms with non-GNU iconv.
51323         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51324         (U_TO_U8): Use it, rather than u16_to_u8.
51325         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51326         units at the end of the input string.
51327         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51328
51329 2008-04-20  Bruno Haible  <bruno@clisp.org>
51330
51331         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51332         when the resulting length is 0.
51333         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51334
51335 2008-04-20  Bruno Haible  <bruno@clisp.org>
51336
51337         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51338         works.
51339         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51340
51341 2008-04-20  Bruno Haible  <bruno@clisp.org>
51342
51343         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51344         * modules/tsearch-tests (configure.ac): Test for initstate function.
51345
51346 2008-04-20  Bruno Haible  <bruno@clisp.org>
51347
51348         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51349         for nlink_t if missing.
51350         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51351
51352 2008-04-19  Bruno Haible  <bruno@clisp.org>
51353
51354         Work around snprintf bug on Linux libc5.
51355         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51357         gl_SNPRINTF_SIZE1.
51358         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51359         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51360         that test failed.
51361         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51362         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51363         * modules/snprintf (Files): Add m4/printf.m4.
51364         * modules/vsnprintf (Files): Likewise.
51365         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51366         * doc/posix-functions/vsnprintf.texi: Likewise.
51367
51368 2008-04-19  Bruno Haible  <bruno@clisp.org>
51369
51370         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51371         from 0.0058 to less than 10^-7.
51372
51373 2008-04-19  Bruno Haible  <bruno@clisp.org>
51374
51375         Fix rounding when a precision is given.
51376         * lib/vasnprintf.c (is_borderline): New function.
51377         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51378         9...9x.
51379         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51380         %e, %g.
51381         * tests/test-vasprintf-posix.c (test_function): Likewise.
51382         * tests/test-snprintf-posix.h (test_function): Likewise.
51383         * tests/test-sprintf-posix.h (test_function): Likewise.
51384         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51385         * tests/test-printf-posix.h (test_function): Likewise.
51386         * tests/test-printf-posix.output: Update.
51387         Reported by John Darrington <john@darrington.wattle.id.au> via
51388         Ben Pfaff <blp@cs.stanford.edu>.
51389
51390 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51391
51392         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51393         Suggested by Bruno Haible <bruno@clisp.org>.
51394
51395 2008-04-17  Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51398         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51399         implementation.
51400         Patch by Bruce Merry <bmerry@gmail.com>.
51401
51402 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51403
51404         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51405         doesn't work under Windows.
51406
51407 2008-04-16  Bruno Haible  <bruno@clisp.org>
51408
51409         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51410         New macros.
51411         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51412         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51413         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51414         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51415         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51416         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51417         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51418         macros.
51419         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51420         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51421         Northern Sotho, Uighur.
51422
51423 2008-04-16  Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51426         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51427         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51428         Reported by Daniel Bergström <daniel@octocode.com>.
51429
51430 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51431             Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51434         function.
51435         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51436         New functions, mostly extracted from gl_locale_name_default.
51437         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51438
51439 2008-04-16  Eric Blake  <ebb9@byu.net>
51440
51441         Adjust strtod detection to catch glibc 2.7 bug.
51442         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51443         Reported by John Gatewood Ham.
51444
51445 2008-04-16  Bruno Haible  <bruno@clisp.org>
51446
51447         Add tentative support for Linux libc5.
51448         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51449         * lib/fpurge.c (fpurge): Likewise.
51450         * lib/freadable.c (freadable): Likewise.
51451         * lib/freadahead.c (freadahead): Likewise.
51452         * lib/freading.c (freading): Likewise.
51453         * lib/freadptr.c (freadptr): Likewise.
51454         * lib/freadseek.c (freadptrinc): Likewise.
51455         * lib/fseeko.c (rpl_fseeko): Likewise.
51456         * lib/fseterr.c (fseterr): Likewise.
51457         * lib/fwritable.c (fwritable): Likewise.
51458         * lib/fwriting.c (fwriting): Likewise.
51459         Reported by Alain Guibert <alguibert+bts@free.fr>.
51460
51461 2008-04-15  Bruno Haible  <bruno@clisp.org>
51462
51463         * modules/mathl (configure.ac): Define module indicator.
51464
51465 2008-04-15  Bruno Haible  <bruno@clisp.org>
51466
51467         * lib/logl.c (logl): Remove unused variables.
51468
51469 2008-04-15  Bruno Haible  <bruno@clisp.org>
51470
51471         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51472         fails.
51473
51474 2008-04-15  Bruno Haible  <bruno@clisp.org>
51475
51476         * lib/trim.c (trim2): Fix argument of isspace() macro.
51477
51478 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51479
51480         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51481         to 0.
51482         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51483
51484 2008-04-14  Bruno Haible  <bruno@clisp.org>
51485
51486         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51487         AC_LANG_PROGRAM argument.
51488         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51489         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51491         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51492         * m4/math_h.m4 (gl_MATH_H): Likewise.
51493         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51494         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51495         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51496         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51497         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51498         * m4/regex.m4 (gl_REGEX): Likewise.
51499         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51500         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51502         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51503         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51504         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51507
51508 2008-04-14  Jim Meyering  <meyering@redhat.com>
51509
51510         test-strtod: fix typos: s/abs/fabs/
51511         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51512
51513 2008-04-13  Bruno Haible  <bruno@clisp.org>
51514
51515         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51516         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51517         module is also used and while not building the reloc-wrapper.
51518
51519 2008-04-13  Bruno Haible  <bruno@clisp.org>
51520
51521         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51522
51523 2008-04-13  Bruno Haible  <bruno@clisp.org>
51524
51525         Fix AIX compilation failure introduced on 2008-04-02.
51526         * tests/test-frexp.c (exp): Undefine before redefining.
51527         * tests/test-frexpl.c (exp): Likewise.
51528
51529 2008-04-13  Bruno Haible  <bruno@clisp.org>
51530
51531         Work around a HP-UX stdio bug.
51532         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51533         * tests/test-ftello.c (main): Likewise.
51534         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51535         * doc/posix-functions/ftello.texi: Likewise.
51536
51537 2008-04-13  Bruno Haible  <bruno@clisp.org>
51538
51539         Make test-signbit pass on HP-UX/hppa.
51540         * tests/test-signbit.c (minus_zerol): New variable.
51541         (test_signbitl): Use it.
51542
51543 2008-04-13  Bruno Haible  <bruno@clisp.org>
51544
51545         Make truncl work on OSF/1 4.0.
51546         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51547         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51548         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51550         HAVE_DECL_TRUNCL.
51551         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51552         HAVE_DECL_TRUNCL.
51553         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51554
51555 2008-04-13  Bruno Haible  <bruno@clisp.org>
51556
51557         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51558
51559 2008-04-13  Bruno Haible  <bruno@clisp.org>
51560
51561         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51562         expression, so as to avoid HP-UX 11 cc compiler bug.
51563
51564 2008-04-13  Bruno Haible  <bruno@clisp.org>
51565
51566         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51567
51568 2008-04-13  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/git-merge-changelog.c: Remove empty declaration outside of
51571         functions.
51572
51573 2008-04-13  Bruno Haible  <bruno@clisp.org>
51574
51575         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51576
51577 2008-04-13  Bruno Haible  <bruno@clisp.org>
51578
51579         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51580         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51581         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51582         also if it exists but lacks definitions of the SHUT_* macros.
51583         * modules/sys_socket (Description): Update.
51584         Reported by Elbert Pol <e.pol@chello.nl>.
51585
51586 2008-04-13  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/localcharset.c (OS2): Don't redefine if already defined.
51589         Reported by Elbert Pol <e.pol@chello.nl>.
51590
51591 2008-04-13  Bruno Haible  <bruno@clisp.org>
51592
51593         * lib/binary-io.h [__EMX__]: Include <io.h>.
51594         Reported by Elbert Pol <e.pol@chello.nl>.
51595
51596 2008-04-12  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/fpucw.h: Enable the definitions also for x86_64.
51599         Needed for NetBSD/x86_64.
51600         Reported by Thomas Klausner <tk@giga.or.at>.
51601
51602 2008-04-12  Bruno Haible  <bruno@clisp.org>
51603
51604         * tests/test-strtod.c: Include isnand.h.
51605         (main): Use isnand instead of isnan.
51606         Reported by Jim Meyering.
51607
51608 2008-04-12  Bruno Haible  <bruno@clisp.org>
51609
51610         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51611         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51612
51613 2008-04-12  Jim Meyering  <meyering@redhat.com>
51614
51615         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51616
51617 2008-04-12  Bruno Haible  <bruno@clisp.org>
51618
51619         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51620         Reported by Elbert Pol <e.pol@chello.nl>.
51621
51622 2008-04-12  Eric Blake  <ebb9@byu.net>
51623
51624         Work around Solaris 10 math.h bug.
51625         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51626         (gl_MATH_H_DEFAULTS): Set up default.
51627         * modules/math (Makefile.am): Replace new indicators.
51628         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51629         * tests/test-math.c (main): Test this.
51630         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51631         * doc/posix-headers/math.texi (math.h): Mention bug.
51632         Reported by Nelson H. F. Beebe and Jim Meyering.
51633
51634 2008-04-11  Bruno Haible  <bruno@clisp.org>
51635
51636         Adapt to future versions of Apple GCC.
51637         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51638         Reported by Peter O'Gorman <peter@pogma.com>.
51639
51640 2008-04-11  Bruno Haible  <bruno@clisp.org>
51641
51642         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51643
51644 2008-04-11  Bruno Haible  <bruno@clisp.org>
51645
51646         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51647
51648         * modules/getaddrinfo-tests (Makefile.am): Define
51649         test_getaddrinfo_LDADD.
51650
51651 2008-04-11  Bruno Haible  <bruno@clisp.org>
51652
51653         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51654         (init): Fix syntax error.
51655         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51656         is declared.
51657
51658 2008-04-11  Bruno Haible  <bruno@clisp.org>
51659
51660         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51661         * modules/glob (Depends-on): Add stdbool.
51662
51663 2008-04-11  Bruno Haible  <bruno@clisp.org>
51664
51665         * lib/trim.c: Include <string.h>.
51666
51667 2008-04-11  Eric Blake  <ebb9@byu.net>
51668
51669         Avoid compile failure on OS/2.
51670         * lib/regex_internal.h (internal_function): Disable optimization
51671         on OS/2 (__EMX__), where it caused compiler error.
51672         Reported by Elbert Pol.
51673
51674 2008-04-11  Bruno Haible  <bruno@clisp.org>
51675
51676         Flush the standard error stream before aborting. Needed on mingw.
51677         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51678         * tests/test-array_list.c (ASSERT): Likewise.
51679         * tests/test-array_oset.c (ASSERT): Likewise.
51680         * tests/test-avltree_list.c (ASSERT): Likewise.
51681         * tests/test-avltree_oset.c (ASSERT): Likewise.
51682         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51683         * tests/test-binary-io.c (ASSERT): Likewise.
51684         * tests/test-byteswap.c (ASSERT): Likewise.
51685         * tests/test-c-ctype.c (ASSERT): Likewise.
51686         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51687         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51688         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51689         * tests/test-c-strstr.c (ASSERT): Likewise.
51690         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51691         * tests/test-canonicalize.c (ASSERT): Likewise.
51692         * tests/test-carray_list.c (ASSERT): Likewise.
51693         * tests/test-ceilf1.c (ASSERT): Likewise.
51694         * tests/test-ceilf2.c (ASSERT): Likewise.
51695         * tests/test-ceill.c (ASSERT): Likewise.
51696         * tests/test-count-one-bits.c (ASSERT): Likewise.
51697         * tests/test-fbufmode.c (ASSERT): Likewise.
51698         * tests/test-fflush2.c (ASSERT): Likewise.
51699         * tests/test-floorf1.c (ASSERT): Likewise.
51700         * tests/test-floorf2.c (ASSERT): Likewise.
51701         * tests/test-floorl.c (ASSERT): Likewise.
51702         * tests/test-fopen.c (ASSERT): Likewise.
51703         * tests/test-fpending.c (ASSERT): Likewise.
51704         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51705         * tests/test-fpurge.c (ASSERT): Likewise.
51706         * tests/test-freadable.c (ASSERT): Likewise.
51707         * tests/test-freadahead.c (ASSERT): Likewise.
51708         * tests/test-freading.c (ASSERT): Likewise.
51709         * tests/test-freadptr.c (ASSERT): Likewise.
51710         * tests/test-freadptr2.c (ASSERT): Likewise.
51711         * tests/test-freadseek.c (ASSERT): Likewise.
51712         * tests/test-freopen.c (ASSERT): Likewise.
51713         * tests/test-frexp.c (ASSERT): Likewise.
51714         * tests/test-frexpl.c (ASSERT): Likewise.
51715         * tests/test-fseek.c (ASSERT): Likewise.
51716         * tests/test-fseeko.c (ASSERT): Likewise.
51717         * tests/test-fstrcmp.c (ASSERT): Likewise.
51718         * tests/test-ftell.c (ASSERT): Likewise.
51719         * tests/test-ftello.c (ASSERT): Likewise.
51720         * tests/test-func.c (ASSERT): Likewise.
51721         * tests/test-fwritable.c (ASSERT): Likewise.
51722         * tests/test-fwriting.c (ASSERT): Likewise.
51723         * tests/test-getdelim.c (ASSERT): Likewise.
51724         * tests/test-getline.c (ASSERT): Likewise.
51725         * tests/test-i-ring.c (ASSERT): Likewise.
51726         * tests/test-iconv-utf.c (ASSERT): Likewise.
51727         * tests/test-iconv.c (ASSERT): Likewise.
51728         * tests/test-isfinite.c (ASSERT): Likewise.
51729         * tests/test-isnand.c (ASSERT): Likewise.
51730         * tests/test-isnanf.c (ASSERT): Likewise.
51731         * tests/test-isnanl.h (ASSERT): Likewise.
51732         * tests/test-ldexpl.c (ASSERT): Likewise.
51733         * tests/test-linked_list.c (ASSERT): Likewise.
51734         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51735         * tests/test-localename.c (ASSERT): Likewise.
51736         * tests/test-lseek.c (ASSERT): Likewise.
51737         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51738         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51739         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51740         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51741         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51742         * tests/test-mbschr.c (ASSERT): Likewise.
51743         * tests/test-mbscspn.c (ASSERT): Likewise.
51744         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51745         * tests/test-mbspbrk.c (ASSERT): Likewise.
51746         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51747         * tests/test-mbsrchr.c (ASSERT): Likewise.
51748         * tests/test-mbsspn.c (ASSERT): Likewise.
51749         * tests/test-mbsstr1.c (ASSERT): Likewise.
51750         * tests/test-mbsstr2.c (ASSERT): Likewise.
51751         * tests/test-mbsstr3.c (ASSERT): Likewise.
51752         * tests/test-memchr2.c (ASSERT): Likewise.
51753         * tests/test-memmem.c (ASSERT): Likewise.
51754         * tests/test-open.c (ASSERT): Likewise.
51755         * tests/test-printf-frexp.c (ASSERT): Likewise.
51756         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51757         * tests/test-printf-posix.c (ASSERT): Likewise.
51758         * tests/test-quotearg.c (ASSERT): Likewise.
51759         * tests/test-rbtree_list.c (ASSERT): Likewise.
51760         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51761         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51762         * tests/test-round1.c (ASSERT): Likewise.
51763         * tests/test-roundf1.c (ASSERT): Likewise.
51764         * tests/test-roundl.c (ASSERT): Likewise.
51765         * tests/test-signbit.c (ASSERT): Likewise.
51766         * tests/test-sleep.c (ASSERT): Likewise.
51767         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51768         * tests/test-snprintf.c (ASSERT): Likewise.
51769         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51770         * tests/test-stat-time.c (ASSERT): Likewise.
51771         * tests/test-strcasestr.c (ASSERT): Likewise.
51772         * tests/test-strerror.c (ASSERT): Likewise.
51773         * tests/test-striconv.c (ASSERT): Likewise.
51774         * tests/test-striconveh.c (ASSERT): Likewise.
51775         * tests/test-striconveha.c (ASSERT): Likewise.
51776         * tests/test-strsignal.c (ASSERT): Likewise.
51777         * tests/test-strstr.c (ASSERT): Likewise.
51778         * tests/test-strtod.c (ASSERT): Likewise.
51779         * tests/test-trunc1.c (ASSERT): Likewise.
51780         * tests/test-trunc2.c (ASSERT): Likewise.
51781         * tests/test-truncf1.c (ASSERT): Likewise.
51782         * tests/test-truncf2.c (ASSERT): Likewise.
51783         * tests/test-truncl.c (ASSERT): Likewise.
51784         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51785         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51786         * tests/test-vasnprintf.c (ASSERT): Likewise.
51787         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51788         * tests/test-vasprintf.c (ASSERT): Likewise.
51789         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51790         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51791         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51792         * tests/test-vsnprintf.c (ASSERT): Likewise.
51793         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51794         * tests/test-wcwidth.c (ASSERT): Likewise.
51795         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51796         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51797         * tests/test-xvasprintf.c (ASSERT): Likewise.
51798         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51799         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51800         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51801         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51802         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51803         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51804         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51805         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51806         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51807         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51808         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51809         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51810         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51811         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51812         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51813         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51814         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51815         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51816         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51817         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51818         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51819         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51820         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51821         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51822         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51823         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51824         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51825         * tests/unictype/test-combining.c (ASSERT): Likewise.
51826         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51827         * tests/unictype/test-digit.c (ASSERT): Likewise.
51828         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51829         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51830         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51831         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51832         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51833         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51834         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51835         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51836         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51837         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51838         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51839         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51840         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51841         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51842         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51843         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51844         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51845         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51846         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51847         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51848         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51849         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51850         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51851         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51852         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51853         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51854         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51855         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51856         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51857         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51858         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51859         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51860         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51861         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51862         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51863         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51864         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51865         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51866         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51867         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51868         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51869         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51870         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51871         Reported by Eric Blake.
51872
51873 2008-04-11  Bruno Haible  <bruno@clisp.org>
51874
51875         * lib/wchar.in.h: Tweak comment.
51876
51877 2008-04-11  Bruno Haible  <bruno@clisp.org>
51878
51879         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51880         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51881         gl_COMMON.
51882         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51883
51884 2008-04-11  Bruno Haible  <bruno@clisp.org>
51885
51886         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51887
51888 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51889
51890         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51891         of attempting to use non-existing /dev/*random.  Based on patch
51892         from Adam Strzelecki <ono@java.pl> in
51893         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51894
51895 2008-04-08  Bruno Haible  <bruno@clisp.org>
51896
51897         Add tentative support for emx+gcc.
51898         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51899         * lib/fpurge.c (fpurge): Likewise.
51900         * lib/freadable.c (freadable): Likewise.
51901         * lib/freadahead.c (freadahead): Likewise.
51902         * lib/freading.c (freading): Likewise.
51903         * lib/freadptr.c (freadptr): Likewise.
51904         * lib/freadseek.c (freadptrinc): Likewise.
51905         * lib/fseeko.c (rpl_fseeko): Likewise.
51906         * lib/fseterr.c (fseterr): Likewise.
51907         * lib/fwritable.c (fwritable): Likewise.
51908         * lib/fwriting.c (fwriting): Likewise.
51909         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51910
51911 2008-04-09  Eric Blake  <ebb9@byu.net>
51912
51913         Avoid some autoconf warnings.
51914         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51915         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51916         * m4/afs.m4 (gl_AFS): Likewise.
51917         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51918         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51919         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51920         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51921         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51922         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51923         (AC_CHECK_DECLS_ONCE): Likewise.
51924         Rename file...
51925         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51926         gnulib-tool requires autoconf 2.59 or better.
51927         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51928
51929 2008-04-08  Eric Blake  <ebb9@byu.net>
51930
51931         Use 'git describe --match' if present (added in git 1.5.5).
51932         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51933         if possible.
51934
51935 2008-04-08  Bruno Haible  <bruno@clisp.org>
51936
51937         Add tentative support for OpenServer.
51938         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51939         _ptr, _cnt.
51940         * lib/fpurge.c (fpurge): Likewise.
51941         * lib/freadable.c (freadable): Likewise.
51942         * lib/freadahead.c (freadahead): Likewise.
51943         * lib/freading.c (freading): Likewise.
51944         * lib/freadptr.c (freadptr): Likewise.
51945         * lib/freadseek.c (freadptrinc): Likewise.
51946         * lib/fseeko.c (rpl_fseeko): Likewise.
51947         * lib/fseterr.c (fseterr): Likewise.
51948         * lib/fwritable.c (fwritable): Likewise.
51949         * lib/fwriting.c (fwriting): Likewise.
51950         Reported by Roger Cornelius <rac@tenzing.org> and
51951         Brian K. White <brian@aljex.com>.
51952
51953 2008-04-06  Jim Meyering  <meyering@redhat.com>
51954
51955         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51956
51957 2008-04-06  Bruno Haible  <bruno@clisp.org>
51958
51959         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51960         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51961         * tests/test-printf-posix.sh: Likewise.
51962         * tests/test-vfprintf-posix.sh: Likewise.
51963         * tests/test-vprintf-posix.sh: Likewise.
51964         * tests/test-xprintf-posix.sh: Likewise.
51965
51966 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51967
51968         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51969         hide error from 'ls', needed on OS/2.
51970         Report by Elbert Pol <elbert.pol@gmail.com>.
51971
51972 2008-04-04  Eric Blake  <ebb9@byu.net>
51973
51974         Make test-fseeko.c failures meaningful.
51975         * tests/test-fseeko.c: Print line number on failure.
51976         * tests/test-fseek.c: Likewise.
51977         Reported by Nelson H. F. Beebe.
51978
51979         Improve strtod bug detection check.
51980         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51981         required for Solaris 10.
51982         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51983
51984 2008-04-04  Bruno Haible  <bruno@clisp.org>
51985
51986         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51987         by m4/setenv.m4.
51988
51989 2008-04-03  Eric Blake  <ebb9@byu.net>
51990
51991         Ensure sane .version contents.
51992         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51993         version string.
51994         * build-aux/git-version-gen: Improve documentation.
51995
51996         Make GNU make output nicer.
51997         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51998         MAKECMDGOALS to enforce message for all command line targets.  Set
51999         srcdir for use in maint.mk.
52000
52001         Another maintainer tweak.
52002         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52003         a target that regenerates version.
52004
52005 2008-04-03  Jim Meyering  <meyering@redhat.com>
52006
52007         vc-list-files: don't cause coreutils "make po-check" failure
52008         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52009
52010 2008-04-03  Eric Blake  <ebb9@byu.net>
52011
52012         Allow VPATH usage of vc-list-files.
52013         * build-aux/vc-list-files (scriptversion): Add timestamp.
52014         (options): Add --help, --version, -C.
52015         (CVS): Support installed cvsu.
52016
52017 2008-04-02  Bruno Haible  <bruno@clisp.org>
52018
52019         Avoid some "statement with no effect" warnings from gcc.
52020         * tests/test-wctype.c (main): Explicitly ignore unused values.
52021         Reported by Jim Meyering.
52022
52023 2008-04-02  Jim Meyering  <meyering@redhat.com>
52024
52025         Avoid some warnings from "gcc -Wshadow".
52026         * tests/test-frexp.c (exp): Define to a different identifier.
52027         * tests/test-frexpl.c (exp): Likewise.
52028
52029 2008-04-03  Jim Meyering  <meyering@redhat.com>
52030
52031         bootstrap: remove dangling *.[ch] symlinks from lib
52032         * build-aux/bootstrap [dangling symlink removal]: Move find's
52033         -depth option to precede all others, to avoid a warning.
52034         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52035
52036 2008-04-02  Bruno Haible  <bruno@clisp.org>
52037
52038         Avoid some warnings from "gcc -Wshadow".
52039         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52040         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52041         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52042         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52043         Reported by Jim Meyering.
52044
52045 2008-04-01  Bruno Haible  <bruno@clisp.org>
52046
52047         Fix test to work on IRIX 6.5 with cc.
52048         * tests/test-math.c (numeric_equal): New function.
52049         (main): Use it.
52050
52051 2008-04-01  Bruno Haible  <bruno@clisp.org>
52052
52053         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52054
52055 2008-04-01  Bruno Haible  <bruno@clisp.org>
52056
52057         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52058         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52059         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52060         (Depends-on): Remove math.
52061
52062         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52063         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52064         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52065         (Depends-on): Remove math.
52066
52067         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52068         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52069         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52070         (Depends-on): Remove math.
52071         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52072         (Depends-on): Remove math.
52073
52074         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52075         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52076         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52077         (Depends-on): Remove math.
52078         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52079         (Depends-on): Remove math.
52080
52081         * tests/test-round1.c: Include nan.h.
52082         (main): Use NaNd instead of NAN.
52083         * modules/round-tests (Files): Add tests/nan.h.
52084
52085         * tests/test-trunc1.c: Include nan.h.
52086         (main): Use NaNd instead of NAN.
52087         * modules/trunc-tests (Files): Add tests/nan.h.
52088
52089         * tests/test-roundf1.c: Include nan.h.
52090         (main): Use NaNf instead of NAN.
52091         * modules/roundf-tests (Files): Add tests/nan.h.
52092
52093         * tests/test-truncf1.c: Include nan.h.
52094         (main): Use NaNf instead of NAN.
52095         * modules/truncf-tests (Files): Add tests/nan.h.
52096
52097         * tests/test-ceilf1.c: Include nan.h.
52098         (main): Use NaNf instead of NAN.
52099         * modules/ceilf-tests (Files): Add tests/nan.h.
52100
52101         * tests/test-floorf1.c: Include nan.h.
52102         (main): Use NaNf instead of NAN.
52103         * modules/floorf-tests (Files): Add tests/nan.h.
52104
52105         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52106         (main): Use NaNf instead of NAN.
52107         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52108
52109         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52110         (main): Use NaNd instead of NAN.
52111         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52112
52113         * tests/test-frexp.c: Include nan.h.
52114         (main): Use NaNd instead of NAN.
52115         * modules/frexp-tests (Files): Add tests/nan.h.
52116
52117         * lib/isnan.c: Don't include <math.h>.
52118         (FUNC): Don't use NAN macro.
52119         * modules/isnand-nolibm (Depends-on): Remove math.
52120         * modules/isnanf-nolibm (Depends-on): Remove math.
52121         * modules/isnanl (Depends-on): Remove math.
52122         * modules/isnanl-nolibm (Depends-on): Remove math.
52123
52124         * tests/nan.h: New file.
52125
52126 2008-04-01  Eric Blake  <ebb9@byu.net>
52127
52128         Fix typos.
52129         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52130         values to be the right type.
52131
52132         For now, cater to gnulib strtod inaccuracies.
52133         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52134         fractional results.  While not as nice from a QoI perspective, it
52135         is a quicker patch than correctly implementing decimal to binary
52136         rounding.
52137
52138 2008-03-31  Eric Blake  <ebb9@byu.net>
52139
52140         Guarantee a definition of NAN.
52141         * lib/math.in.h (NAN): Define if missing.
52142         * tests/test-math.c (main): Test it.
52143         * doc/posix-headers/math.texi (math.h): Document this.
52144         * lib/isnan.c (rpl_isnand): Use it.
52145         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52146         * tests/test-floorf1.c (NaN): Likewise.
52147         * tests/test-frexp.c (NaN): Likewise.
52148         * tests/test-isnand.c (NaN): Likewise.
52149         * tests/test-isnanf.c (NaN): Likewise.
52150         * tests/test-round1.c (NaN): Likewise.
52151         * tests/test-roundf1.c (NaN): Likewise.
52152         * tests/test-snprintf-posix.h (NaN): Likewise.
52153         * tests/test-sprintf-posix.h (NaN): Likewise.
52154         * tests/test-trunc1.c (NaN): Likewise.
52155         * tests/test-truncf1.c (NaN): Likewise.
52156         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52157         * tests/test-vasprintf-posix.c (NaN): Likewise.
52158         * modules/isnand-nolibm (Depends-on): Add math.
52159         * modules/isnanf-nolibm (Depends-on): Likewise.
52160         * modules/isnanl (Depends-on): Likewise.
52161         * modules/isnanl-nolibm (Depends-on): Likewise.
52162         * modules/snprintf-posix-tests (Depends-on): Likewise.
52163         * modules/sprintf-posix-tests (Depends-on): Likewise.
52164         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52165         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52166         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52167         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52168
52169 2008-03-31  Bruno Haible  <bruno@clisp.org>
52170
52171         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52172         * doc/posix-functions/strtod.texi: Likewise.
52173
52174 2008-03-31  Bruno Haible  <bruno@clisp.org>
52175
52176         * tests/test-strtod.c (main): Don't use C99 syntax.
52177
52178 2008-03-31  Bruno Haible  <bruno@clisp.org>
52179
52180         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52181         Reported by Eric Blake.
52182
52183 2008-03-31  Jim Meyering  <meyering@redhat.com>
52184
52185         Don't compare actual signbit return values.
52186         * tests/test-strtod.c (main): Rather, compare only their
52187         zero/non-zero nature.
52188
52189 2008-03-31  Eric Blake  <ebb9@byu.net>
52190
52191         More strtod documentation.
52192         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52193         failures as distinct bugs.
52194
52195 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52196
52197         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52198         Problem reported by Erik Benada in
52199         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52200
52201 2008-03-30  Bruno Haible  <bruno@clisp.org>
52202
52203         * tests/test-strtod.c: Add comments about which assertion fails on which
52204         platform.
52205         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52206
52207 2008-03-30  Eric Blake  <ebb9@byu.net>
52208
52209         Test signbit behavior on zeros.
52210         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52211         (test_signbitd, test_signbitl): Likewise.
52212
52213         More strtod touchups.
52214         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52215         sign of negative underflow, for now.  Use .5, not .1.
52216         * doc/posix-functions/strtod.texi (strtod): Mention these
52217         limitations.
52218         Reported by Jim Meyering.
52219
52220 2008-03-30  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52223         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52224
52225 2008-03-30  Bruno Haible  <bruno@clisp.org>
52226
52227         Avoid failure when attempting to return empty iconv results on some
52228         platforms.
52229         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52230         allocation, don't report ENOMEM when the resulting string is empty.
52231
52232 2008-03-30  Bruno Haible  <bruno@clisp.org>
52233
52234         Fix buffer overrun.
52235         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52236         Don't consider the width for tmp_length. Check count against tmp_length
52237         before doing the padding. Ensure enough allocation during padding.
52238
52239 2008-03-30  Eric Blake  <ebb9@byu.net>
52240
52241         strtod touchups.
52242         * lib/strtod.c (strtod): Avoid compiler warnings.
52243         Reported by Jim Meyering.
52244
52245 2008-03-30  Bruno Haible  <bruno@clisp.org>
52246
52247         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52248         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52249         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52250         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52251         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52252         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52253         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52254         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52255
52256         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52257         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52258         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52259         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52260         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52261         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52262         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52263         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52264
52265         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52266         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52267         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52268         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52269         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52270         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52271         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52272         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52273
52274         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52275         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52276
52277         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52278         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52279
52280         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52281         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52282
52283         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52284         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52285         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52286
52287         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52289         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52290
52291         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52293         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52294
52295         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52296         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52297         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52298
52299         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52300         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52302         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52303         (Depends-on): Add EOVERFLOW.
52304         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52305         (Depends-on): Add EOVERFLOW.
52306         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52307         (Depends-on): Add EOVERFLOW.
52308         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52309         (Depends-on): Add EOVERFLOW.
52310         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52311         (Depends-on): Add EOVERFLOW.
52312         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52313         (Depends-on): Add EOVERFLOW.
52314         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52315         (Depends-on): Add EOVERFLOW.
52316         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52317         (Depends-on): Add EOVERFLOW.
52318
52319         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52321         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52322
52323         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52324         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52325         * modules/snprintf (Depends-on): Add EOVERFLOW.
52326
52327         * lib/poll.c (EOVERFLOW): Remove fallback.
52328         * modules/poll (Depends-on): Add EOVERFLOW.
52329
52330         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52331         * modules/getugroups (Depends-on): Add EOVERFLOW.
52332
52333         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52334         * modules/getdelim (Depends-on): Add EOVERFLOW.
52335
52336         * lib/ftell.c (EOVERFLOW): Remove fallback.
52337         * modules/ftell (Depends-on): Add EOVERFLOW.
52338
52339         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52340         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52341         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52342
52343         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52344
52345         * modules/EOVERFLOW-tests: New file.
52346         * tests/test-EOVERFLOW.c: New file.
52347
52348         * modules/EOVERFLOW: New file.
52349         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52350
52351 2008-03-30  Bruno Haible  <bruno@clisp.org>
52352
52353         Fix bug introduced on 2007-06-10.
52354         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52355         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52356
52357 2008-03-30  Bruno Haible  <bruno@clisp.org>
52358
52359         Improve freadseek's efficiency after ungetc.
52360         * lib/freadseek.c: Include freadahead.h.
52361         (freadptrinc): New function, extracted from freadseek.
52362         (freadseek): Use it in a loop. Use freadahead to determine the number
52363         of loop iterations.
52364         * modules/freadseek (Depends-on): Add freadahead.
52365         (configure.ac): Require AC_C_INLINE.
52366
52367 2008-03-30  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/freadseek.c (freadseek): Don't ignore the return value of
52370         freadptr.
52371
52372 2008-03-29  Eric Blake  <ebb9@byu.net>
52373
52374         Add hex float support.
52375         * modules/strtod (Depends-on): Add c-ctype.
52376         (Link): Mention POW_LIB.
52377         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52378         whitespace between 'e' and exponent.
52379         * tests/test-strtod.c (main): Enable hex float tests.
52380         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52381         now provides.
52382
52383         Document various strtod bugs, with some fixes.
52384         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52385         "-0x", "inf", "nan", and hex constants.
52386         * doc/posix-functions/atof.texi (atof): Likewise.
52387         * modules/stdlib (Makefile.am): Support strtod.
52388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52389         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52390         detect additional strtod bugs.
52391         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52392         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52393         bool where appropriate.  Parse 'inf' and 'nan'.
52394         * tests/test-strtod.c: New file.
52395         * modules/strtod (Depends-on): Add stdbool, stdlib.
52396         (configure.ac): Turn on module indicator.
52397         * modules/strtod-tests: New module.
52398
52399 2008-03-29  Eric Blake  <ebb9@byu.net>
52400
52401         Fix ftell on mingw.
52402         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52403         * modules/ftell-tests (Depends-on): Add binary-io.
52404         * modules/ftello-tests (Depends-on): Likewise.
52405         * tests/test-ftell.c (main): Enhance test to cover behavior after
52406         ungetc.  Enforce binary mode.
52407         * tests/test-ftello.c (main): Likewise.
52408
52409         Pass test-freadseek on cygwin.
52410         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52411         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52412         ungetc buffer.
52413
52414         * tests/test-fflush2.c (main): Fix typo.
52415
52416 2008-03-29  Bruno Haible  <bruno@clisp.org>
52417
52418         * tests/test-fflush2.c (main): Temporarily disable the contents of
52419         this test.
52420         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52421         Reported by Eric Blake.
52422
52423 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52424
52425         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52426         (GC_SHA224_DIGEST_SIZE): Add.
52427
52428         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52429         (gc_hash_digest_length): Likewise.
52430         (gc_hash_buffer): Likewise.
52431
52432 2008-03-25  Bruno Haible  <bruno@clisp.org>
52433
52434         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52435         detail which gettext release to use.
52436         Reported by Simon Josefsson.
52437
52438 2008-03-26  Jim Meyering  <meyering@redhat.com>
52439
52440         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52441         * modules/gnumakefile (clean-GNUmakefile): Also, use
52442         test ... && ... || : syntax rather than if-then ... fi.
52443
52444         gnumakefile: Don't double-quote-expand $(VPATH) value.
52445         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52446
52447 2008-03-24  Eric Blake  <ebb9@byu.net>
52448
52449         Alter GNUmakefile to install into top directory.
52450         * modules/maintainer-makefile: Split, and add dependency...
52451         * modules/gnumakefile: to this new module.
52452         * build-aux/GNUmakefile: Move...
52453         * top/GNUmakefile: ...here.
52454         * build-aux/maint.mk: Move...
52455         * top/maint.mk: ...here.
52456         * MODULES.html.sh (Support for maintaining...): Document new
52457         module.
52458
52459 2008-03-23  Bruno Haible  <bruno@clisp.org>
52460
52461         * gnulib-tool: New options --vc-files, --no-vc-files.
52462         (func_usage): Document them.
52463         (vc_files): New variable.
52464         (func_import): Consider vc_files.
52465         (func_create_testdir): Set vc_files to empty.
52466         Suggested by Jim Meyering and Karl Berry.
52467
52468 2008-03-23  Bruno Haible  <bruno@clisp.org>
52469
52470         Fix regex compilation error on HP-UX 11.
52471         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52472         * modules/regex (Files): Add m4/mbstate_t.m4.
52473         Reported by Ton Voon <ton.voon@altinity.com>.
52474
52475 2008-03-23  Bruno Haible  <bruno@clisp.org>
52476
52477         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52478
52479 2008-03-23  Eric Blake  <ebb9@byu.net>
52480             Bruno Haible  <bruno@clisp.org>
52481
52482         Install files from top/ in the destination directory.
52483         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52484         augmentation also for the files from top/.
52485         (func_import, func_create_testdir): Rewrite file names:
52486         top/filename -> filename.
52487
52488 2008-03-23  Bruno Haible  <bruno@clisp.org>
52489
52490         Tweak "gnulib --version" output.
52491         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52492
52493 2008-03-23  Bruno Haible  <bruno@clisp.org>
52494
52495         Tweak "gnulib --version" output.
52496         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52497         rather than contents of ChangeLog, when possible.
52498
52499 2008-03-21  Eric Blake  <ebb9@byu.net>
52500
52501         More --version tweaks.
52502         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52503         date of last ChangeLog entry.
52504
52505 2008-03-21  Jim Meyering  <meyering@redhat.com>
52506
52507         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52508
52509 2008-03-20  Eric Blake  <ebb9@byu.net>
52510
52511         VPATH fix.
52512         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52513
52514 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52515
52516         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52517         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52518
52519 2008-03-20  Eric Blake  <ebb9@byu.net>
52520
52521         Sync GNUmakefile with coreutils.
52522         * build-aux/GNUmakefile (have-Makefile): Rename...
52523         (_have-Makefile): ...to this, for namespace consideration.
52524         (GNUmakefile.cfg): Include, if present.
52525         (_autoreconf): Define a default.
52526         (_is-dist-target): New rule for rebuilds to pick up intra-release
52527         version.
52528         (maint-cfg.mk): Rename...
52529         (cfg.mk): ...to this.
52530
52531 2008-03-18  Jim Meyering  <meyering@redhat.com>
52532
52533         New script and module: mktempd
52534         * MODULES.html.sh (maint+release support): Add mktempd.
52535         * build-aux/mktempd: New file.
52536         * modules/mktempd: New file.
52537
52538 2008-03-15  Jim Meyering  <meyering@redhat.com>
52539
52540         Undo last change.
52541         * lib/sha1.c, lib/md5.c: 63 != ~63.
52542         Reported by Andreas Schwab.
52543
52544         sha1.c, md5.c: Hoist a redundant expression.
52545         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52546         "ctx->buflen" only once, before calling *_process_block.
52547         * lib/md5.c (md5_process_bytes): Likewise.
52548
52549 2008-03-14  Eric Blake  <ebb9@byu.net>
52550
52551         Bump copyright year in files generated by gnulib-tool.
52552         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52553         gnulib-tool, rather than hard-coding it.
52554
52555         Fix 'gnulib-tool --version' output to work with git.
52556         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52557         (startup): ...here.
52558         (func_version): Use it to invoke git-version-gen, rather than
52559         relying on CVS keyword expansion.  Modernize wording.
52560         (cvsdatestamp, last_checkin_date, version): Kill unused
52561         variables.
52562
52563 2008-03-12  Jim Meyering  <meyering@redhat.com>
52564
52565         Recognize optional cast of the argument to free.
52566         * build-aux/useless-if-before-free: Update regexps.
52567
52568         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52569
52570 2008-03-11  Bruno Haible  <bruno@clisp.org>
52571
52572         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52573         by a single package.
52574         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52575         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52576         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52577         Reported by Sam Steingold <sds@gnu.org>.
52578
52579 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52580
52581         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52582         repositories.
52583
52584 2008-03-11  Bruno Haible  <bruno@clisp.org>
52585
52586         Avoid conflicts between local macro definitions.
52587         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52588         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52589
52590 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52591             Bruno Haible  <bruno@clisp.org>
52592
52593         Make va_copy work with some version of xlc on AIX 5.1.
52594         * lib/stdarg.in.h: New file.
52595         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52596         On AIX, use a <stdarg.h> file substitute.
52597         * modules/stdarg (Files): Add lib/stdarg.in.h.
52598         (Depends-on): Add include_next.
52599         (Makefile.am): Build a stdarg.h substitute if requested.
52600         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52601
52602 2008-03-10  Bruno Haible  <bruno@clisp.org>
52603
52604         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52605         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52606         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52607
52608 2008-03-10  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/stdlib (Depends-on): Add include_next, remove
52611         absolute-header.
52612
52613 2008-03-09  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/freadahead.h (freadahead): Document more precisely.
52616         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52617         the sum of both buffer sizes.
52618         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52619         * NEWS: Document the change.
52620
52621 2008-03-09  Bruno Haible  <bruno@clisp.org>
52622
52623         Extend freadptr to return also the buffer size.
52624         * lib/freadptr.h (freadptr): Add sizep argument.
52625         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52626         (freadptr): Add sizep argument. Determine buffer size like freadahead
52627         does.
52628         * tests/test-freadptr.c: Don't include freadahead.h.
52629         (main): Adapt for new calling convention of freadptr.
52630         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52631         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52632         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52633         tests/test-freadptr2.sh.
52634         (Depends): Remove freadahead.
52635         (TESTS): Add test-freadptr2.sh.
52636         (check_PROGRAMS): Add test-freadptr2.
52637
52638 2008-03-09  Bruno Haible  <bruno@clisp.org>
52639
52640         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52641         Report and solution by Simon Josefsson.
52642
52643 2008-03-06  Bruno Haible  <bruno@clisp.org>
52644
52645         Make fflush after ungetc work on BSD platforms.
52646         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52647         * tests/test-fflush2.c: New file.
52648         * tests/test-fflush2.sh: New file.
52649         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52650         tests/test-fflush2.c.
52651         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52652         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52653
52654 2008-03-06  Eric Blake  <ebb9@byu.net>
52655
52656         Likewise for ftello.
52657         * modules/ftello (Dependencies): Add extensions.
52658         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52659
52660 2008-03-06  Bruno Haible  <bruno@clisp.org>
52661
52662         * modules/fseeko (Dependencies): Add extensions.
52663         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52664         Needed on glibc systems.
52665
52666 2008-03-06  Bruno Haible  <bruno@clisp.org>
52667
52668         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52669         email address.
52670         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52671
52672 2008-03-06  Bruno Haible  <bruno@clisp.org>
52673
52674         * users.txt: Add libgnupdf.
52675
52676 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52677
52678         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52679         (Header File Substitutes, Function Substitutes,
52680         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52681         (Build robot for gnulib): Fix typo.
52682
52683 2008-03-06  Bruno Haible  <bruno@clisp.org>
52684
52685         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52686         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52687
52688 2008-03-06  Bruno Haible  <bruno@clisp.org>
52689
52690         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52691         * doc/gnulib.texi: Include it.
52692
52693 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52694
52695         * modules/func (License): Change license to unlimited; there was
52696         no LGPL parts in the module anyway.
52697
52698 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52699
52700         * modules/__func__: Renamed to modules/func.
52701         * modules/__func__-tests: Renamed to modules/func-tests.
52702         * tests/test-__func__.c: Renamed to tests/test-func.c.
52703         * m4/__func__.m4: Renamed to m4/func.m4.
52704         * doc/gnulib.texi (__func__): Section renamed to func.
52705         Suggested by Eric Blake <ebb9@byu.net>.
52706
52707 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52708
52709         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52710         about __func__.  Make example self-contained.  Suggested by Eric
52711         Blake <ebb9@byu.net>.
52712
52713         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52714         Suggested by Eric Blake <ebb9@byu.net>.
52715
52716 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52717
52718         * modules/__func__: New file.
52719         * modules/__func__-tests: New file.
52720         * tests/test-__func__.c: New file.
52721         * m4/__func__.m4: New file.
52722         * doc/gnulib.texi (__func__): Document __func__ module.
52723
52724 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52725
52726         * modules/byteswap (License): Re-license as LGPLv2+.
52727
52728 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52729
52730         * doc/Makefile: Add pdf target.
52731
52732 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52733
52734         * modules/inline (License): Use 'unlimited', since there are only
52735         *.m4 files in this module.
52736
52737 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52738             Bruno Haible  <bruno@clisp.org>
52739
52740         Add support for HP C 7.1 on OpenVMS 8.3.
52741         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52742
52743 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52744
52745         Update VMS specifics.
52746         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52747
52748 2008-03-02  Jim Meyering  <meyering@redhat.com>
52749
52750         Remove the last dependency on the "free" module.
52751         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52752         Reported by Bob Proulx.
52753
52754         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52755
52756         Remove useless "if" tests before free.  Deprecate "free" module.
52757         * doc/posix-functions/free.texi: Mention that this
52758         module is no longer useful.
52759         * modules/free (Notice): Say this module is obsolete.
52760         * modules/readutmp (Depends-on): Remove free.
52761         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52762         * lib/putenv.c (putenv): Likewise.
52763         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52764         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52765         * tests/test-c-strcasestr.c (main): Likewise.
52766         * tests/test-c-strstr.c (main): Likewise.
52767         * tests/test-mbscasestr1.c (main): Likewise.
52768         * tests/test-mbscasestr2.c (main): Likewise.
52769         * tests/test-mbsstr1.c (main): Likewise.
52770         * tests/test-mbsstr2.c (main): Likewise.
52771         * tests/test-memmem.c (main): Likewise.
52772         * tests/test-strcasestr.c (main): Likewise.
52773         * tests/test-striconv.c (main): Likewise.
52774         * tests/test-striconveh.c (main): Likewise.
52775         * tests/test-striconveha.c (main): Likewise.
52776         * tests/test-strstr.c (main): Likewise.
52777
52778         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52779
52780         bootstrap: sync from coreutils again
52781         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52782
52783 2008-03-01  Jim Meyering  <meyering@redhat.com>
52784
52785         bootstrap: sync from coreutils
52786         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52787         also when the target doesn't exist.
52788
52789 2008-03-01  Eric Blake  <ebb9@byu.net>
52790
52791         Fix bugs in last patch.
52792         * lib/memchr2.c (memchr2): Fix typo.
52793         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52794         extension.
52795         Reported by Bruce Korb.
52796
52797         New module 'memchr2'.
52798         * modules/memchr2: New file.
52799         * modules/memchr2-tests: Likewise.
52800         * lib/memchr2.h: Likewise.
52801         * lib/memchr2.c: Likewise, based on memchr.c.
52802         * tests/test-memchr2.c: New test.
52803         * MODULES.html.sh (String handling): Add memchr2.
52804
52805 2008-02-29  Bruno Haible  <bruno@clisp.org>
52806
52807         * modules/freadseek-tests: New file.
52808         * tests/test-freadseek.sh: New file.
52809         * tests/test-freadseek.c: New file.
52810
52811         New module 'freadseek'.
52812         * modules/freadseek: New file.
52813         * lib/freadseek.h: New file.
52814         * lib/freadseek.c: New file.
52815         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52816
52817 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52818
52819         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52820         wydawca.
52821
52822         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52823         program_invocation_name and program_invocation_short_name are
52824         present.
52825
52826 2008-02-28  Bruno Haible  <bruno@clisp.org>
52827
52828         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52829         * tests/test-freadptr.sh: Also test non-seekable stdin.
52830
52831 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52832
52833         * build-aux/bootstrap (source_base, m4_base)
52834         (doc_base, tests_base): New variables.
52835         (gnulib_tool_options): Do not hardcode base directories, use
52836         the above variables instead.
52837
52838 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52839
52840         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52841
52842 2008-02-28  Bruno Haible  <bruno@clisp.org>
52843
52844         * modules/freadptr-tests: New file.
52845         * tests/test-freadptr.sh: New file.
52846         * tests/test-freadptr.c: New file.
52847
52848         New module 'freadptr'.
52849         * modules/freadptr: New file.
52850         * lib/freadptr.h: New file.
52851         * lib/freadptr.c: New file.
52852         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52853
52854 2008-02-26  Karl Berry  <karl@freefriends.org>
52855
52856         Sync from Libtool:
52857         * libltdl/argz.c (argz_add, argz_count): New functions.
52858         * libltdl/argz.in.h: Declare them.
52859         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52860
52861 2008-02-22  Bruno Haible  <bruno@clisp.org>
52862
52863         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52864         is a pointer type.  Needed for HP-UX 10.
52865         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52866         * doc/posix-functions/gmtime_r.texi: Likewise.
52867         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52868
52869 2008-02-24  Bruno Haible  <bruno@clisp.org>
52870
52871         * modules/environ-tests: New file.
52872         * tests/test-environ.c: New file.
52873
52874         New module 'environ'.
52875         * modules/environ: New file.
52876         * lib/unistd.in.h (environ): New declaration.
52877         * m4/environ.m4: New file.
52878         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52879         after use.
52880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52881         HAVE_DECL_ENVIRON.
52882         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52883         HAVE_DECL_ENVIRON.
52884         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52885         wrong claim that 'environ' is missing on some systems.
52886         * modules/execute (Depends-on): Add environ.
52887         * lib/execute.c (environ): Remove fallback declaration.
52888         * modules/pipe (Depends-on): Add environ.
52889         * lib/pipe.c (environ): Remove fallback declaration.
52890         * modules/setenv (Depends-on): Add environ.
52891         * lib/setenv.c (environ): Remove fallback declaration.
52892         * modules/unsetenv (Depends-on): Add environ.
52893         * lib/unsetenv.c (environ): Remove fallback declaration.
52894         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52895         m4/environ.m4.
52896         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52897         (gl_PREREQ_UNSETENV): Likewise.
52898
52899 2008-02-24  Bruno Haible  <bruno@clisp.org>
52900
52901         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52902
52903 2008-02-20  Bob Proulx  <bob@proulx.com>
52904
52905         Enable use of older two part flavor 'git describe'.
52906         * build-aux/git-version-gen: If using the older two part flavor of
52907         git version then recreate the third part now present in the
52908         newer three part flavor of git describe.
52909
52910 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52911
52912         * lib/fts.c (fts_build): Typo correction to comment.
52913
52914 2008-02-17  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52917         generating no-op conflicts.
52918
52919 2008-02-17  Bruno Haible  <bruno@clisp.org>
52920
52921         Speed up by 10%.
52922         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52923         result_entries, rather than an index-based loop.
52924
52925 2008-02-17  Bruno Haible  <bruno@clisp.org>
52926
52927         Speed up by 25%.
52928         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52929         'hashcode_cached'.
52930         (entry_create): New function.
52931         (entry_hashcode): Use the cached hashcode if possible.
52932         (read_changelog_file, try_split_merged_entry): Use entry_create.
52933
52934 2008-02-17  Bruno Haible  <bruno@clisp.org>
52935
52936         Speed up from O(n^2) to O(n) for long ChangeLog files.
52937         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52938         (read_changelog_file): Change implementation of entries_reversed list
52939         to rbtreehash.
52940         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52941
52942 2008-02-17  Bruno Haible  <bruno@clisp.org>
52943
52944         New option --split-merged-entry.
52945         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52946         (find_paragraph_end, try_split_merged_entry): New functions.
52947         (long_options): Add option --split-merged-entry.
52948         (usage): Document option --split-merged-entry.
52949         (main): Implement option --split-merged-entry.
52950         Reported by Eric Blake.
52951
52952 2008-02-17  Bruno Haible  <bruno@clisp.org>
52953
52954         * lib/git-merge-changelog.c: Include c-strstr.h.
52955         (main): Support the "git pull --rebase" situation.
52956         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52957         Reported by Eric Blake.
52958
52959 2008-02-16  Eric Blake  <ebb9@byu.net>
52960
52961         Avoid doubling \ in common case of "c-maybe" quoting style.
52962         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52963         eliding outer quotes.
52964         * lib/quotearg.h: Document this.
52965         * tests/test-quotearg.c (result_strings, inputs, results_g)
52966         (flag_results, locale_results): Test it by adding a new string to
52967         each test group.
52968         (compare_strings): Test new string.
52969
52970 2008-02-13  Eric Blake  <ebb9@byu.net>
52971
52972         Avoid trigraph quoting in default output.
52973         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52974         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52975         unless explicitly requested.
52976         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52977
52978 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52979
52980         Don't rely on signed integer overflowing to negative value.
52981         * lib/getugroups.c (getugroups): Include <limits.h>.
52982         Instead, compare against INT_MAX, and increment only if the test passes.
52983
52984 2008-02-13  Jim Meyering  <meyering@redhat.com>
52985         and Eric Blake  <ebb9@byu.net>
52986
52987         Avoid shadowing warning and compile errors on Linux.
52988         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52989         forwarding macros on Linux.
52990         (dcgettext): Define a stub, for Linux.
52991         (results_g, main): Avoid warnings.
52992
52993 2008-02-12  Eric Blake  <ebb9@byu.net>
52994
52995         Silence warning in last patch.
52996         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52997
52998         Quotearg part 4: add tests, fix c-maybe colon quoting.
52999         * lib/quotearg.h: Improve documentation.
53000         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53001         escapes when adding outer quotes.  When quoting trigraphs, use
53002         valid C notation.  When quoting NUL, omit extra characters if next
53003         character is not digit.  Alter prototype.
53004         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53005         callers.
53006         * modules/quotearg-tests: New module.
53007         * tests/test-quotearg.c: New test.
53008
53009 2008-02-07  Eric Blake  <ebb9@byu.net>
53010
53011         Quotearg part 3: add flag to control outer quote elision.
53012         * lib/quotearg.h (c_maybe_quoting_style): New style.
53013         (enum quoting_flags): Better documentation of flags.
53014         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53015         c-maybe style.
53016         (quotearg_buffer_restyled): Handle new flag to elide outer
53017         quotes.
53018
53019         Quotearg part 2: add flag that can control NUL elision.
53020         * lib/quotearg.h (set_quoting_flags): New prototype.
53021         * lib/quotearg.c (struct quoting_options): Add flag field.
53022         (set_quoting_flags): New function.
53023         (quotearg_buffer_restyled): Add flags parameter.
53024         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53025         (quotearg_n_options): Set the flag, since length cannot be
53026         returned.
53027         (quoting_options_from_style): Default flags correctly.
53028
53029         Quotearg part 1: more wrappers, restore quotearg_char state.
53030         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53031         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53032         (quotearg_colon_mem): New wrappers.
53033         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53034         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53035         functions.
53036         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53037         (quotearg_colon_mem): New functions.
53038
53039 2008-02-11  Bruno Haible  <bruno@clisp.org>
53040
53041         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53042         library in the current directory: it does not work with parallel make.
53043         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53044
53045 2008-02-11  Bruno Haible  <bruno@clisp.org>
53046
53047         * .gitattributes: New file.
53048
53049 2008-02-11  Jim Meyering  <meyering@redhat.com>
53050
53051         useless-if-before-free: Fix reversed exit values.
53052         * build-aux/useless-if-before-free: Use correct values
53053         for EXIT_MATCH and EXIT_NO_MATCH.
53054
53055         * build-aux/useless-if-before-free: Close stdout carefully.
53056
53057 2008-02-10  Bruno Haible  <bruno@clisp.org>
53058
53059         New module 'git-merge-changelog'.
53060         * modules/git-merge-changelog: New file.
53061         * lib/git-merge-changelog.c: New file.
53062
53063 2008-02-10  Jim Meyering  <meyering@redhat.com>
53064
53065         useless-if-before-free: New option: --list (-l).
53066
53067         useless-if-before-free: Don't exit immediately upon open failure.
53068         * build-aux/useless-if-before-free: Exit 2 for errors.
53069         Upon failure to open a file, don't exit immediately.
53070         Rather, just warn and continue with any remaining files.
53071
53072 2008-02-10  Bruno Haible  <bruno@clisp.org>
53073
53074         New abstract list operation 'node_set_value'.
53075         * lib/gl_list.h (gl_list_node_set_value): New function.
53076         (struct gl_list_implementation): New field node_set_value.
53077         * lib/gl_list.c (gl_list_node_set_value): New function.
53078         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53079         (gl_array_list_implementation): Update.
53080         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53081         (gl_carray_list_implementation): Update.
53082         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53083         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53084         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53085         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53086         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53087         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53088         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53089         Update.
53090         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53091         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53092         (gl_sublist_list_implementation): Update.
53093
53094 2008-02-10  Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53097         Needed when ELEMENT is #defined to 'some_type *'.
53098
53099 2008-02-10  Jim Meyering  <meyering@redhat.com>
53100
53101         New script and module: useless-if-before-free
53102         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53103         * build-aux/useless-if-before-free: New file.
53104         * modules/useless-if-before-free: New file.
53105
53106         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53107
53108         xstrtol_error: Fix typo.
53109         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53110         s/exit_failure/exit_status/.
53111
53112 2008-02-09  Jim Meyering  <meyering@redhat.com>
53113
53114         New script and module: gitlog-to-changelog
53115         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53116         * modules/gitlog-to-changelog: New file.
53117         * build-aux/gitlog-to-changelog: New file.
53118
53119 2008-02-08  Jim Meyering  <meyering@redhat.com>
53120
53121         Avoid two "parameter unused" warnings.
53122         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53123         Mark "st" as used.
53124
53125         Use "git COMMAND", not "git-COMMAND".
53126         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53127         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53128         * build-aux/git-version-gen: Use "git status", not "git-status".
53129
53130 2008-02-07  Bruno Haible  <bruno@clisp.org>
53131
53132         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53133         Avoids a crash on Windows Vista.
53134         Reported by Adam Strzelecki <ono@java.pl> via
53135         Simon Josefsson <simon@josefsson.org>.
53136
53137 2008-02-06  Bruno Haible  <bruno@clisp.org>
53138
53139         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53140         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53141         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53143         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53144         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53145         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53146         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53149         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53152         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53154         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53155         left-adjust flag.
53156         * tests/test-snprintf-posix.h (test_function): Likewise.
53157         * tests/test-sprintf-posix.h (test_function): Likewise.
53158         * tests/test-vasprintf-posix.c (test_function): Likewise.
53159         * doc/posix-functions/fprintf.texi: Update.
53160         * doc/posix-functions/printf.texi: Update.
53161         * doc/posix-functions/snprintf.texi: Update.
53162         * doc/posix-functions/sprintf.texi: Update.
53163         * doc/posix-functions/vfprintf.texi: Update.
53164         * doc/posix-functions/vprintf.texi: Update.
53165         * doc/posix-functions/vsnprintf.texi: Update.
53166         * doc/posix-functions/vsprintf.texi: Update.
53167         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53168
53169 2008-02-06  Bruno Haible  <bruno@clisp.org>
53170
53171         Fix bug introduced on 2008-01-26.
53172         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53173
53174 2008-02-06  Bruno Haible  <bruno@clisp.org>
53175
53176         Fix bug introduced on 2007-06-10.
53177         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53178         !NEED_PRINTF_FLAG_ZERO.
53179
53180 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53181
53182         getloadavg: use libperfstat on AIX5
53183         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53184
53185 2008-02-03  Bruno Haible  <bruno@clisp.org>
53186
53187         * lib/diffseq.h: Add comments about required #includes.
53188         Reported by Michael Biggs <gnulib@doubleplum.net>.
53189
53190 2008-02-01  Bruno Haible  <bruno@clisp.org>
53191
53192         * users.txt: Add gnuit.
53193
53194 2008-01-31  Bruno Haible  <bruno@clisp.org>
53195
53196         * lib/md4.c (set_uint32): Mark as inline.
53197         * lib/md5.c (set_uint32): Likewise.
53198         * lib/sha1.c (set_uint32): Likewise.
53199         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53200         * m4/md5.m4 (gl_MD5): Likewise.
53201         * m4/sha1.m4 (gl_SHA1): Likewise.
53202
53203 2008-01-31  Jim Meyering  <meyering@redhat.com>
53204
53205         Use "sizeof VAR", rather than a literal "4".
53206         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53207         * lib/md4.c (md4_read_ctx): Likewise.
53208         * lib/sha1.c (sha1_read_ctx): Likewise.
53209
53210 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53211
53212         * tests/test-sha1.c: New file, based on test-md5.c.
53213
53214         * modules/crypto/sha1-tests: New file.
53215
53216 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53217
53218         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53219
53220 2008-01-31  Jim Meyering  <meyering@redhat.com>
53221
53222         Prefer "sizeof v" over the equivalent "4".
53223         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53224         * lib/md5.c (set_uint32): Likewise.
53225         * lib/sha1.c (set_uint32): Likewise.
53226
53227 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53228
53229         * lib/sha1.c (set_uint32): Mark function as static.
53230
53231 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53232
53233         md2: clarify comments to say that alignment is not required.
53234         * lib/md2.h: Remove warning about alignment in comment.
53235         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53236         never been required.
53237
53238 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53239
53240         md4: adapt alignment constraint fix from sha1.
53241         * lib/md4.c (set_uint32): New function, from sha1.c
53242         (md4_read_ctx): Use it.
53243         (md4_finish_ctx): Doc fix.
53244         * lib/md4.h: Doc fix.
53245
53246 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53247
53248         md5: adapt alignment constraint fix from sha1.
53249         * lib/md5.c (set_uint32): New function, from sha1.c
53250         (md5_read_ctx): Use it.
53251         (md5_finish_ctx): Doc fix.
53252         * lib/md5.h: Doc fix.
53253
53254 2008-01-30  Peter Palfrader  <weasel@debian.org>
53255
53256         sha1: remove the result buffer alignment constraint
53257         * lib/sha1.c (set_uint32): New function.
53258         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53259         constraint.
53260         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53261         * lib/sha1.h: Likewise.
53262
53263 2008-01-30  Andreas Schwab  <schwab@suse.de>
53264             Bruno Haible  <bruno@clisp.org>
53265
53266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53267         correct definition of LDBL_MIN_EXP.
53268
53269 2008-01-30  Karl Berry  <karl@gnu.org>
53270
53271         * config/srclist-update: try to preserve x bit on updates.
53272         * config/srclistvars.sh: update for karl.
53273
53274 2008-01-29  Jim Meyering  <meyering@redhat.com>
53275
53276         vasnprintf.c: Avoid warning about unused label
53277         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53278         "overflow" label definition and associated code with the
53279         same cpp condition that guards the sole use of that label.
53280
53281 2008-01-26  Bruno Haible  <bruno@clisp.org>
53282
53283         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53284         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53285         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53286         * lib/isnanl-nolibm.h (isnanl): Likewise.
53287         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53288
53289 2008-01-26  Bruno Haible  <bruno@clisp.org>
53290
53291         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53292         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53293
53294 2008-01-26  Bruno Haible  <bruno@clisp.org>
53295
53296         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53297         GCC >= 4.0 built-in.
53298         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53299
53300 2008-01-26  Bruno Haible  <bruno@clisp.org>
53301
53302         Rename isnan, applicable to 'double' only, to isnand.
53303         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53304         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53305         (configure.ac): Update.
53306         (Include): Replace "isnan.h" with "isnand.h".
53307         * m4/isnand.m4: Renamed from m4/isnan.m4.
53308         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53309         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53310         instead of isnan.c.
53311         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53312         instead of HAVE_ISNAN_IN_LIBC.
53313         (isnand): Renamed from isnan.
53314         * lib/isnand.c: New file.
53315         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53316         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53317         (Makefile.am): Update.
53318         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53319         Include isnand.h instead of isnan.h.
53320         (main): Test isnand instead of isnan.
53321         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53322         isnan-nolibm.
53323         * modules/frexp (Depends-on): Likewise.
53324         * modules/frexp-tests (Depends-on): Likewise.
53325         * modules/frexp-nolibm (Depends-on): Likewise.
53326         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53327         * modules/isfinite (Depends-on): Likewise.
53328         * modules/round-tests (Depends-on): Likewise.
53329         * modules/signbit (Depends-on): Likewise.
53330         * modules/signbit-tests (Depends-on): Likewise.
53331         * modules/snprintf-posix (Depends-on): Likewise.
53332         * modules/sprintf-posix (Depends-on): Likewise.
53333         * modules/trunc-tests (Depends-on): Likewise.
53334         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53335         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53336         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53337         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53338         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53339         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53340         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53341         * modules/vasnprintf-posix (Depends-on): Likewise.
53342         * modules/vasprintf-posix (Depends-on): Likewise.
53343         * modules/vfprintf-posix (Depends-on): Likewise.
53344         * modules/vsnprintf-posix (Depends-on): Likewise.
53345         * modules/vsprintf-posix (Depends-on): Likewise.
53346         * lib/frexp.c: Include isnand.h instead of isnan.h.
53347         (ISNAN): Set to isnand instead of isnan.
53348         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53349         (gl_isfinited): Use isnand instead of isnan.
53350         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53351         (gl_signbitd): Use isnand instead of isnan.
53352         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53353         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53354         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53355         (main): Use isnand instead of isnan.
53356         * tests/test-round1.c: Include isnand.h.
53357         (main): Use isnand instead of isnan.
53358         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53359         (ISNAN): Set to isnand instead of isnan.
53360         * tests/test-trunc1.c: Include isnand.h.
53361         (main): Use isnand instead of isnan.
53362         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53363         (equal): Use isnand instead of isnan.
53364         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53365         isnand-nolibm.
53366         * NEWS: Mention the change.
53367
53368 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53369             Bruno Haible  <bruno@clisp.org>
53370
53371         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53372         the GCC builtins for signbits are present and set
53373         REPLACE_SIGNBIT_USING_GCC if so.
53374         * lib/math.in.h (signbit): Define using GCC builtins if
53375         REPLACE_SIGNBIT_USING_GCC is set.
53376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53377         REPLACE_SIGNBIT_USING_GCC.
53378         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53379
53380 2008-01-25  Jim Meyering  <meyering@redhat.com>
53381
53382         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53383         * lib/poll.c: Include <config.h>, not "config.h".
53384         * tests/test-getaddrinfo.c: Likewise.
53385
53386 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53387
53388         * modules/sockets-tests: New file.
53389
53390 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53391
53392         * modules/sockets: New module, can be used to call WSA_Startup and
53393         WSA_Cleanup when needed.
53394
53395         * lib/sockets.h, lib/sockets.c: New files.
53396
53397         * m4/sockets.m4: New file.
53398
53399         * tests/test-sockets.c: New file.
53400
53401 2008-01-19  Bruno Haible  <bruno@clisp.org>
53402
53403         * doc/posix-headers: Renamed from doc/headers.
53404         * doc/posix-functions: Renamed from doc/functions.
53405         * doc/gnulib.texi: Update.
53406
53407 2008-01-19  Bruno Haible  <bruno@clisp.org>
53408
53409         * doc/glibc-functions/strcasestr.texi: Include contents of
53410         doc/functions/strcasestr.texi, fixing the list of platforms.
53411         * doc/functions/strcasestr.texi: Remove file.
53412
53413 2008-01-19  Bruno Haible  <bruno@clisp.org>
53414
53415         * doc/glibc-functions/memmem.texi: Include contents of
53416         doc/functions/memmem.texi.
53417         * doc/functions/memmem.texi: Remove file.
53418
53419 2008-01-18  Bruno Haible  <bruno@clisp.org>
53420
53421         * doc/glibc-functions/*.texi: New files.
53422         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53423         to use the new files.
53424
53425 2008-01-17  Bruno Haible  <bruno@clisp.org>
53426
53427         * tests/test-gethostname.c (main): Fix printf statement.
53428
53429 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53430
53431         * modules/gethostname-tests: New file.
53432
53433         * tests/test-gethostname.c: New file.
53434
53435 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53436
53437         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53438         used by the UNAME case.  Reported by Bruno Haible
53439         <bruno@clisp.org>.
53440
53441 2008-01-17  Eric Blake  <ebb9@byu.net>
53442
53443         Convert c-strcasestr to be more efficient.
53444         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53445         (Depends-on): Add c-strcase, remove malloca, strnlen.
53446         * tests/test-c-strcasestr.c (main): Enhance test.
53447         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53448
53449 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53450
53451         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53452         Use it in creating po/Makevars.
53453
53454 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53455
53456         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53457         Applications that requires it should initialize libgcrypt
53458         manually.
53459
53460 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53461
53462         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53463
53464 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53465
53466         Fix problem with getdate on mingw32 reported by Simon Josefsson
53467         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53468         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53469         tzname", when deciding whether to declare tzname.
53470         * lib/strftime.c (tzname): Likewise.
53471
53472 2008-01-15  Bruno Haible  <bruno@clisp.org>
53473
53474         Work around a MacOS X 10.5 bug in frexpl().
53475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53476         * doc/functions/frexpl.texi: Document the bug.
53477         Reported by Elias Pipping <pipping@gentoo.org>.
53478
53479 2008-01-14  Eric Blake  <ebb9@byu.net>
53480
53481         Touch up previous patch.
53482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53483         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53484
53485         Convert strcasestr module to use Two-Way algorithm.
53486         * modules/strcasestr-simple: New module, based on the old
53487         strcasestr, but with Two-Way rather than KMP.
53488         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53489         * lib/string.in.h (rpl_strcasestr): Declare.
53490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53491         performance.
53492         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53493         * modules/string (Makefile.am): Support strcasestr.
53494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53495         * modules/strcasestr-tests (Depends-on): Check for alarm.
53496         * tests/test-strcasestr.c: Augment test.
53497         * lib/str-two-way.h: Clean up stray macro.
53498         * NEWS: Document new module.
53499         * MODULES.html.sh (string handling): Likewise.
53500         * doc/functions/strcasestr.texi: New file.
53501         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53502         here, since it is not a POSIX function.
53503
53504 2008-01-14  Colin Watson  <cjwatson@debian.org>
53505             Bruno Haible  <bruno@clisp.org>
53506
53507         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53508         works fine; if not, set REPLACE_STRSIGNAL.
53509         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53511         REPLACE_STRSIGNAL.
53512         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53513         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53514         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53515
53516 2008-01-14  Bruno Haible  <bruno@clisp.org>
53517
53518         * modules/strsignal (Include): Change to <string.h>.
53519
53520 2008-01-14  Colin Watson  <cjwatson@debian.org>
53521
53522         * modules/argp (Notice): Add a notice recommending to change
53523         XGETTEXT_OPTIONS.
53524         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53525
53526 2008-01-13  Colin Watson  <cjwatson@debian.org>
53527
53528         * modules/strsignal-tests: New file.
53529         * tests/test-strsignal.c: New file.
53530
53531         * lib/strsignal.c: New file, from glibc with modifications.
53532         * lib/siglist.h: New file, from glibc with modifications.
53533         * lib/string.in.h (strsignal): New declaration.
53534         * m4/strsignal.m4: New file.
53535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53536         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53537         * modules/strsignal: New file.
53538         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53539         HAVE_DECL_STRSIGNAL.
53540
53541 2008-01-13  Bruno Haible  <bruno@clisp.org>
53542
53543         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53544         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53545         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53546         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53547
53548 2008-01-13  Bruno Haible  <bruno@clisp.org>
53549
53550         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53551         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53552         * lib/argp.h (__attribute__): Likewise.
53553         * lib/c-stack.c (__attribute__): Likewise.
53554         * lib/error.h (__attribute__): Likewise.
53555         * lib/fts.c (__attribute__): Likewise.
53556         * lib/openat.h (__attribute__): Likewise.
53557         * lib/stdio.in.h (__attribute__): Likewise.
53558         * lib/string.in.h (__attribute__): Likewise.
53559         * lib/utimens.c (__attribute__): Likewise.
53560         * lib/vasnprintf.h (__attribute__): Likewise.
53561         * lib/xalloc.h (__attribute__): Likewise.
53562         * lib/xprintf.h (__attribute__): Likewise.
53563         * lib/xstrtol.h (__attribute__): Likewise.
53564         * lib/xvasprintf.h (__attribute__): Likewise.
53565
53566 2008-01-12  Bruno Haible  <bruno@clisp.org>
53567
53568         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53569         * doc/glibc-headers/a.out.texi: New file.
53570         * doc/glibc-headers/aliases.texi: New file.
53571         * doc/glibc-headers/alloca.texi: New file.
53572         * doc/glibc-headers/ar.texi: New file.
53573         * doc/glibc-headers/argp.texi: New file.
53574         * doc/glibc-headers/argz.texi: New file.
53575         * doc/glibc-headers/byteswap.texi: New file.
53576         * doc/glibc-headers/crypt.texi: New file.
53577         * doc/glibc-headers/endian.texi: New file.
53578         * doc/glibc-headers/envz.texi: New file.
53579         * doc/glibc-headers/err.texi: New file.
53580         * doc/glibc-headers/error.texi: New file.
53581         * doc/glibc-headers/execinfo.texi: New file.
53582         * doc/glibc-headers/fpu_control.texi: New file.
53583         * doc/glibc-headers/fstab.texi: New file.
53584         * doc/glibc-headers/fts.texi: New file.
53585         * doc/glibc-headers/getopt.texi: New file.
53586         * doc/glibc-headers/ieee754.texi: New file.
53587         * doc/glibc-headers/ifaddrs.texi: New file.
53588         * doc/glibc-headers/libintl.texi: New file.
53589         * doc/glibc-headers/mcheck.texi: New file.
53590         * doc/glibc-headers/mntent.texi: New file.
53591         * doc/glibc-headers/obstack.texi: New file.
53592         * doc/glibc-headers/paths.texi: New file.
53593         * doc/glibc-headers/printf.texi: New file.
53594         * doc/glibc-headers/pty.texi: New file.
53595         * doc/glibc-headers/resolv.texi: New file.
53596         * doc/glibc-headers/shadow.texi: New file.
53597         * doc/glibc-headers/sysexits.texi: New file.
53598         * doc/glibc-headers/ttyent.texi: New file.
53599
53600 2008-01-12  Jim Meyering  <meyering@redhat.com>
53601
53602         announce-gen: emit Gnulib's git-based version string.
53603         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53604         New option --gnulib-version=V, where V is expected to be
53605         the output of running git describe in the gnulib directory.
53606         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53607         not useful, and plan to stop publishing an xdelta file with each
53608         coreutils release.
53609
53610         * build-aux/announce-gen: Also check for lzma-compressed files.
53611
53612 2008-01-11  Bruno Haible  <bruno@clisp.org>
53613
53614         * tests/test-memmem.c (main): Increase maximum allowed time.
53615         * tests/test-strstr.c (main): Likewise.
53616
53617 2008-01-11  Bruno Haible  <bruno@clisp.org>
53618
53619         * doc/functions/memmem.texi: Add more precisions about platforms.
53620         * doc/functions/strstr.texi: Likewise.
53621
53622 2008-01-10  Eric Blake  <ebb9@byu.net>
53623
53624         * m4/strstr.m4: Delete cruft from copy-n-paste.
53625         Reported by Bruno Haible.
53626
53627 2008-01-10  Bruno Haible  <bruno@clisp.org>
53628
53629         Make c-strstr rely on strstr.
53630         * lib/c-strstr.c: Don't include str-kmp.h.
53631         (c_strstr): Define in terms of strstr.
53632         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53633         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53634
53635 2008-01-10  Bruno Haible  <bruno@clisp.org>
53636
53637         * doc/gnulib.texi (String Functions in C Locale): New section.
53638         * doc/c-ctype.texi: New file.
53639         * doc/c-strcase.texi: New file.
53640         * doc/c-strcaseeq.texi: New file.
53641         * doc/c-strcasestr.texi: New file.
53642         * doc/c-strstr.texi: New file.
53643         * doc/c-strtod.texi: New file.
53644         * doc/c-strtold.texi: New file.
53645
53646 2008-01-10  Eric Blake  <ebb9@byu.net>
53647
53648         * lib/relocatable.h: Fix a comment.
53649
53650 2008-01-10  Eric Blake  <ebb9@byu.net>
53651
53652         Share two-way algorithm.
53653         * lib/str-two-way.h: New file, merged from...
53654         * lib/memmem.c: ...here...
53655         * lib/strstr.c: ...and here.
53656         * modules/memmem (Files): Use it.
53657         * modules/strstr (Files): Likewise.
53658
53659         Avoid quadratic strstr implementations.
53660         * lib/strstr.c: New file.
53661         * m4/strstr.m4: Likewise.
53662         * modules/strstr: Likewise.
53663         * modules/strstr-tests: Likewise.
53664         * tests/test-strstr.c: Likewise.
53665         * lib/string.in.h (rpl_strstr): Declare.
53666         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53667         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53668         * modules/string (Makefile.am): Likewise.
53669         * MODULES.html.sh (string handling): Mention new module.
53670         * doc/functions/strstr.texi (strstr): Document the bug.
53671
53672 2008-01-10  Bruno Haible  <bruno@clisp.org>
53673
53674         * lib/relocatable.h (relocate): State whether result is freshly
53675         allocated or not.
53676         * lib/relocatable.c (relocate): Return a freshly allocated string
53677         instead of a pointer to a privately held string.
53678         Reported by Sylvain Beucler <beuc@gnu.org>.
53679
53680 2008-01-10  Colin Watson  <cjwatson@debian.org>
53681
53682         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53683         s/S_ISNLK/S_ISLNK/.
53684
53685 2008-01-09  Bruno Haible  <bruno@clisp.org>
53686
53687         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53688         and other files.
53689         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53690         if it's only a guess.
53691         * modules/memmem: Simplify by depending on memmem-simple.
53692
53693 2008-01-09  Bruno Haible  <bruno@clisp.org>
53694
53695         Work around OpenBSD 4.0 tdelete() bug.
53696         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53697         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53698         macros and don't redefine the enum values.
53699         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53700         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53701         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53702
53703 2008-01-09  Bruno Haible  <bruno@clisp.org>
53704
53705         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53706         (main): Don't perform the tests if setlocale did not install a UTF-8
53707         locale. Needed on OpenBSD 4.0.
53708         * modules/wcwidth-tests (Depends-on): Add localcharset.
53709
53710 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53711
53712         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53713         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53714         * NEWS: announce this.
53715         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53716
53717 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53718         and Eric Blake  <ebb9@byu.net>
53719
53720         Add memmem-simple module.
53721         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53722         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53723         * modules/memmem-simple: New file.
53724         * modules/memmem (Description): Tweak.
53725         * MODULES.html.sh (string handling): Mention new module.
53726         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53727         addressed by memmem-simple.
53728         * NEWS: Document the difference.
53729
53730 2008-01-09  Eric Blake  <ebb9@byu.net>
53731
53732         Give gcc some memmem optimization hints.
53733         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53734         (strcasestr): Declare as pure.
53735         * modules/memmem (Maintainer): Claim my implementation.
53736
53737 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53738
53739         Support AIX 6.1 and higher.
53740         * build-aux/config.libpath: Likewise.
53741         * build-aux/config.rpath: Likewise.
53742
53743 2008-01-08  Jim Meyering  <meyering@redhat.com>
53744             Bruno Haible  <bruno@clisp.org>
53745
53746         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53747         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53748         Reported by Peter Fales in
53749         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53750
53751 2008-01-08  Bruno Haible  <bruno@clisp.org>
53752
53753         * modules/unictype/category-of (Depends-on): Add
53754         unictype/category-none.
53755         * modules/unictype/category-and-tests (Depends-on): Add
53756         unictype/category-{L,N,Lu,Nd}.
53757         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53758         * modules/unictype/category-or-tests (Depends-on): Add
53759         unictype/category-{L,N}.
53760         * modules/unictype/category-name-tests (Depends-on): Add
53761         unictype/category-{Z,Nl}.
53762         Reported by Simon Josefsson.
53763
53764 2008-01-08  Bruno Haible  <bruno@clisp.org>
53765
53766         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53767         convention better.
53768         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53769         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53770         Reported by Peter Miller <millerp@canb.auug.org.au>.
53771
53772 2008-01-08  Eric Blake  <ebb9@byu.net>
53773
53774         Rewrite memmem to guarantee linear complexity without malloc.
53775         * lib/memmem.c (memmem): Use Two-Way rather than
53776         Knuth-Morris-Pratt, to allow O(1) space usage.
53777         (critical_factorization, two_way_short_needle)
53778         (two_way_long_needle): New functions.
53779         (knuth_morris_pratt): Delete.
53780         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53781         Add stdint.
53782         * tests/test-memmem.c (main): Add tests for periodic needle and
53783         sublinear performance.
53784         * doc/functions/memmem.texi (memmem): Document other deficiencies
53785         in cygwin and older glibc.
53786
53787 2008-01-08  Bruno Haible  <bruno@clisp.org>
53788
53789         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53790         augmentation.
53791
53792 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53793
53794         Add a configure time option: --disable-acl.
53795         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53796         AC_ARG_ENABLE(acl).
53797
53798 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53799
53800         * tests/test-localename.c: Don't include obsolete "setenv.h".
53801
53802         * modules/localename-tests (Depends-on): Need unsetenv.
53803
53804 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53805
53806         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53807
53808 2008-01-06  Colin Watson  <cjwatson@debian.org>
53809
53810         * users.txt: Add man-db.
53811
53812 2008-01-07  Bruno Haible  <bruno@clisp.org>
53813
53814         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53815         previous section name.
53816
53817 2008-01-07  Bruno Haible  <bruno@clisp.org>
53818
53819         * lib/progname.c (set_program_name): Don't strip off a leading
53820         "lt-" prefix outside a .libs directory.
53821         Suggested by Paul Eggert.
53822
53823 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53824             Bruno Haible  <bruno@clisp.org>
53825
53826         Improve memory cleanup in 'relocatable' module.
53827         * lib/relocatable.h (compute_curr_prefix): Change return type to
53828         'char *'.
53829         * lib/relocatable.c (compute_curr_prefix): Change return type to
53830         'char *'. Free curr_installdir after use.
53831         (relocate): Free curr_prefix_better after use.
53832         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53833
53834 2008-01-01  Bruno Haible  <bruno@clisp.org>
53835
53836         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53837         failure on older glibc systems.
53838         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53839
53840 2008-01-05  Eric Blake  <ebb9@byu.net>
53841
53842         Avoid quadratic system memmem.
53843         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53844         Reported by Ralf Wildenhues.
53845
53846         Fix memmem test for mingw.
53847         * modules/memmem-tests (configure.ac): Check for alarm.
53848         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53849         it.
53850         * doc/functions/memmem.texi: New file.
53851         * doc/gnulib.texi (Function Substitutes): Add memmem.
53852         Reported by Bruno Haible.
53853
53854 2008-01-04  Bruno Haible  <bruno@clisp.org>
53855
53856         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53857         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53858         gl_HEADER_STRING_H_DEFAULTS.
53859
53860 2008-01-04  Eric Blake  <ebb9@byu.net>
53861
53862         Shorten duration of memmem test.
53863         * tests/test-memmem.c (main): Use alarm to declare failure if test
53864         is taking too long.
53865         Reported by Ralf Wildenhues.
53866
53867 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53868
53869         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53870         string, needed by strerror.
53871
53872 2008-01-03  Colin Watson  <cjwatson@debian.org>
53873             Bruno Haible  <bruno@clisp.org>
53874
53875         * doc/gnulib-tool.texi (Localization): New section.
53876
53877 2008-01-02  Bruno Haible  <bruno@clisp.org>
53878
53879         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53880         variables to 'unsigned char *' type.
53881         Reported by Paul Eggert.
53882
53883 2008-01-02  Jim Meyering  <jim@meyering.net>
53884
53885         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53886
53887 2007-12-31  Jim Meyering  <jim@meyering.net>
53888
53889         Avoid use of private FTS type name.
53890         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53891
53892 2007-12-30  Karl Berry  <karl@gnu.org>
53893
53894         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53895         work around defect in Texinfo and/or the standalone Info browser.
53896
53897 2007-12-30  Bruno Haible  <bruno@clisp.org>
53898
53899         Unify 5 copies of the KMP code.
53900         * lib/str-kmp.h: New file.
53901         * lib/c-strcasestr.c: Include str-kmp.h.
53902         (knuth_morris_pratt): Remove function.
53903         (c_strcasestr): Update.
53904         * lib/c-strstr.c: Include str-kmp.h.
53905         (knuth_morris_pratt): Remove function.
53906         (c_strcasestr): Update.
53907         * lib/mbscasestr.c: Include str-kmp.h.
53908         (knuth_morris_pratt_unibyte): Remove function.
53909         * lib/mbsstr.c: Include str-kmp.h.
53910         (knuth_morris_pratt_unibyte): Remove function.
53911         * lib/strcasestr.c: Include str-kmp.h.
53912         (knuth_morris_pratt): Remove function.
53913         (strcasestr): Update.
53914         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53915         * modules/c-strstr (Files): Likewise.
53916         * modules/mbscasestr (Files): Likewise.
53917         * modules/mbsstr (Files): Likewise.
53918         * modules/strcasestr (Files): Likewise.
53919         Suggested by Paul Eggert.
53920
53921 2007-12-30  Bruno Haible  <bruno@clisp.org>
53922
53923         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53924         defined.
53925
53926 2007-12-30  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/xmalloca.h: Include xalloc.h.
53929         (xnmalloca): New macro.
53930
53931 2007-12-30  Bruno Haible  <bruno@clisp.org>
53932
53933         * lib/malloca.h (nmalloca): New macro.
53934         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53935         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53936         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53937         knuth_morris_pratt_multibyte): Likewise.
53938         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53939         knuth_morris_pratt_multibyte): Likewise.
53940         * lib/memmem.c (knuth_morris_pratt): Likewise.
53941         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53942
53943 2007-12-25  Bruno Haible  <bruno@clisp.org>
53944
53945         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53946         * lib/glob.c: Don't include openat.h.
53947         (link_exists2_p): Add back the code that deals with the
53948         !GLOB_ALTDIRFUNC case.
53949         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53950         let it do the filename concatenation.
53951         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53952         * modules/glob (Depends-on): Remove openat.
53953
53954 2007-12-31  Bruno Haible  <bruno@clisp.org>
53955
53956         * modules/dirfd (License): Change to LGPLv2+.
53957         Approved by Jim Meyering.
53958
53959 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53962         when multiplying M by sizeof (size_t).
53963
53964 2007-12-10  Martin Lambers  <marlam@marlam.de>
53965
53966         Override getpagesize on mingw.
53967         * lib/getpagesize.c: New file.
53968         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53969         * modules/getpagesize (Files): Add lib/getpagesize.c.
53970         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53972         REPLACE_GETPAGESIZE.
53973         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53974
53975 2007-12-25  Bruno Haible  <bruno@clisp.org>
53976
53977         * modules/localcharset (Notice): New field.
53978         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53979         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53980
53981 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53982             Bruno Haible  <bruno@clisp.org>
53983
53984         Avoid using the syntax symbol() in formatted documentation.
53985         * MODULES.html.sh (func_module): When replacing symbol() with a
53986         hyperlink, remove the parentheses. Show an error if some remain.
53987         Recognize and render the '...' syntax.
53988         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53989         Rework. Add paragraph about GCC's inlining.
53990         * doc/alloca.texi: Likewise.
53991         * doc/error.texi: Remove parentheses from symbol reference.
53992         * doc/gnulib-intro.texi: Likewise.
53993         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53994         * modules/fnmatch (Description): Reword to say "the ... function".
53995         * modules/full-read (Description): Likewise.
53996         * modules/full-write (Description): Likewise.
53997         * modules/safe-read (Description): Likewise.
53998         * modules/safe-write (Description): Likewise.
53999         * modules/strchrnul (Description): Likewise.
54000         * modules/trim (Description): Likewise.
54001         * modules/error (Description): Remove parentheses from symbol
54002         references.
54003         * modules/verror (Description): Likewise.
54004         Reported by Karl Berry.
54005
54006 2007-12-25  Bruno Haible  <bruno@clisp.org>
54007
54008         Fixup after 2007-10-16 commit.
54009         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54010
54011 2007-12-24  Bruno Haible  <bruno@clisp.org>
54012
54013         Make --enable-relocatable work with DESTDIR.
54014         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54015         to compute installdir from destprog.
54016         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54017         also set the RELOC_DESTDIR variable.
54018         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54019
54020 2007-12-24  Bruno Haible  <bruno@clisp.org>
54021
54022         Fix link error due to xalloc_die().
54023         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54024         of xreadlink.
54025         * lib/relocwrapper.c: Update comments.
54026         * build-aux/install-reloc: Remove xreadlink.c from file list.
54027         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54028         xreadlink.c.
54029         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54030
54031 2007-12-24  Bruno Haible  <bruno@clisp.org>
54032
54033         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54034         * lib/setenv.h: Remove file.
54035         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54036         lib/setenv.h.
54037         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54038         (Depends-on): Add stdlib.
54039         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54040         gl_FUNC_UNSETENV.
54041         (Include): Replace setenv.h with <stdlib.h>.
54042         * modules/unsetenv: New file.
54043         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54044         * lib/unsetenv.c: Include <stdlib.h> first.
54045         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54046         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54047         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54048         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54049         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54050         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54052         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54053         * doc/functions/unsetenv.texi: Update.
54054         * modules/xsetenv (Depends-on): Add unsetenv.
54055         * modules/getdate (Depends-on): Likewise.
54056         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54057         * lib/xsetenv.c: Don't include setenv.h.
54058         * lib/getdate.y: Likewise.
54059         * lib/relocwrapper.c: Likewise.
54060         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54061         (Depends-on): Add stdlib.
54062         * NEWS: Mention the changes.
54063         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54064
54065 2007-12-23  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54068         indentation.
54069
54070 2007-12-23  Bruno Haible  <bruno@clisp.org>
54071
54072         * lib/c-strcasestr.c: Add more comments.
54073         * lib/c-strstr.c: Likewise.
54074         * lib/mbscasestr.c: Likewise.
54075         * lib/mbsstr.c: Likewise.
54076         * lib/strcasestr.c: Likewise.
54077         * lib/memmem.c: Likewise.
54078
54079 2007-12-23  Bruno Haible  <bruno@clisp.org>
54080
54081         * tests/test-memmem.c: Include <string.h> first.
54082
54083 2007-12-22  Bruno Haible  <bruno@clisp.org>
54084
54085         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54086         the contents of $testsbase.
54087         Reported by Ralf Wildenhues.
54088
54089 2007-12-22  Bruno Haible  <bruno@clisp.org>
54090
54091         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54092         two variables local_ldadd_before, local_ldadd_last.
54093
54094 2007-12-20  Eric Blake  <ebb9@byu.net>
54095
54096         Work around circular library issue when cross-compiling.
54097         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54098         that progname.o does not need to pull in rpl_memcmp.
54099
54100 2007-12-19  Eric Blake  <ebb9@byu.net>
54101
54102         Fix memmem to avoid O(n^2) worst-case complexity.
54103         * lib/memmem.c (knuth_morris_pratt): New function.
54104         (memmem): Use it if first few naive iterations fail.
54105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54106         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54107         * modules/memchr (License): Likewise.
54108         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54109         malloca.
54110         * tests/test-memmem.c: Rewrite, borrowing ideas from
54111         test-mbsstr1.c; the old version wouldn't even compile!
54112         * modules/memmem-tests: New file.
54113         * lib/string.in.h (rpl_memmem): Add declaration.
54114         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54116         REPLACE_MEMMEM.
54117
54118 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54119
54120         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54121         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54122         before any system include files, and undef after them all.  This
54123         should fix a problem on VMS reported by John E. Malmberg in
54124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54125
54126 2007-12-17  Eric Blake  <ebb9@byu.net>
54127
54128         Revert addition of verify, for BSD/OS.
54129         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54130         can't handle large files, for the sake of obsolete platforms.
54131         * modules/fseeko (Depends-on): Remove verify.
54132         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54133         * doc/functions/ftello.texi (ftello): Likewise.
54134         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54135         Reported by Larry Jones.
54136
54137 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54138
54139         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54140         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54141
54142 2007-12-17  Jim Meyering  <meyering@redhat.com>
54143
54144         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54145         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54146         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54147         * modules/getcwd (Depends-on): Add openat.
54148         Reported by Petr Salinger.
54149
54150 2007-12-17  Bruno Haible  <bruno@clisp.org>
54151
54152         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54153         avoid a segmentation fault of the configure test on x86_64 systems.
54154
54155 2007-12-15  Jim Meyering  <meyering@redhat.com>
54156
54157         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54158
54159 2007-12-13  Eric Blake  <ebb9@byu.net>
54160
54161         Another fseek test.
54162         * tests/test-fseek.c (main): Also test ungetc handling.
54163         * tests/test-fseeko.c (main): Likewise.
54164         * modules/fseeko (Depends-on): Add verify.
54165         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54166         large.
54167         Reported by Larry Jones.
54168
54169         Fix fseeko on mingw.
54170         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54171         seek.
54172
54173         Beef up fseek tests.
54174         * tests/test-fseek.c (main): Also test eof handling.
54175         * tests/test-fseeko.c (main): Likewise.
54176         Reported by Larry Jones.
54177
54178 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54179
54180         Fix fseeko on BSD-based platforms.
54181         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54182         successful seek.
54183
54184 2007-12-12  Eric Blake  <ebb9@byu.net>
54185
54186         Allow circular dependency of separate libtests.a
54187         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54188         when use_libtests.
54189
54190 2007-12-11  Eric Blake  <ebb9@byu.net>
54191
54192         Fix bug with -0.0L in previous patch.
54193         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54194         * tests/test-isnan.c (main): Also test on zeroes.
54195         * tests/test-isnanf.c (main): Likewise.
54196         * tests/test-isnanl.h (main): Likewise.
54197
54198         Detect pseudo-denormals on x86 even when cross-compiling.
54199         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54200         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54201         invalid bit patterns that happen to satisfy ==.
54202
54203         Avoid link failures with separate libtests.a.
54204         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54205         last, to satisfy circular dependencies.
54206
54207 2007-12-11  Eric Blake  <ebb9@byu.net>
54208         and Bruno Haible  <bruno@clisp.org>
54209
54210         Fix OpenBSD 4.0 <float.h> handling of long double.
54211         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54212         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54213         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54214
54215 2007-12-11  Jim Meyering  <meyering@redhat.com>
54216
54217         * users.txt: Add libvirt.
54218
54219         Support versions of autoconf prior to 2.59c.
54220         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54221         if it is not already defined.
54222
54223 2007-12-09  Bruno Haible  <bruno@clisp.org>
54224
54225         Let 'gnulib-tool --import' collect sources needed for the tests in
54226         tests/ rather than in lib/.
54227         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54228         argument. If true, add rules to generate libtests.a, and put libtests.a
54229         into $(LDADD). Consider source files in subdirectories and set
54230         uses_subdirs.
54231         (func_emit_initmacro_start, func_emit_initmacro_end,
54232         func_emit_initmacro_done): Pass all arguments explicitly.
54233         (func_import): Determine two module lists main_modules,
54234         testsrelated_modules. Determine use_libtests. Determine two variables
54235         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54236         instead of just sed_transform_lib_file. Determine two variables
54237         main_files and testsrelated_files. Compute 'files' as the union of
54238         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54239         func_add_or_update. In the generated gnulib-comp.m4, collect the
54240         object files for tests/ in different variables than those for lib/.
54241         Substitute LIBTESTS_LIBDEPS.
54242         (func_create_testdir): Combine the uses_subdirs results from
54243         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54244
54245 2007-12-09  Bruno Haible  <bruno@clisp.org>
54246
54247         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54248         the build-aux directory.
54249
54250 2007-12-09  Bruno Haible  <bruno@clisp.org>
54251
54252         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54253         introduced on 2006-09-09.
54254
54255 2007-12-07  Jim Meyering  <meyering@redhat.com>
54256
54257         Let these macros work also with autoconf-2.59.
54258         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54259         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54260         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54261
54262 2007-12-06  Jim Meyering  <meyering@redhat.com>
54263
54264         Avoid a configure-time syntax error in gl_FUNC_ACL.
54265         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54266         function in each branch, before testing the cache variable.
54267
54268 2007-12-04  Eric Blake  <ebb9@byu.net>
54269
54270         Make scripts executable.
54271         * build-aux/config.guess: Add execute permissions.
54272         * build-aux/config.sub: Likewise.
54273         * build-aux/gendocs.sh: Likewise.
54274
54275         Fix frexp on mingw.
54276         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54277         cross-compiling.
54278         * doc/functions/frexp.texi (frexp): Document the bug.
54279
54280         Make cygwin fseeko check more reliable.
54281         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54282         version numbers, rather than unrelated feature check.
54283         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54284         * doc/functions/ftello.texi (ftello): Likewise.
54285         Reported by Bruno Haible.
54286
54287         * m4/strerror.m4: Bump version number.
54288
54289 2007-12-03  Bruno Haible  <bruno@clisp.org>
54290
54291         * doc/functions/mprotect.texi: Mention the mingw problem.
54292
54293 2007-12-03  Eric Blake  <ebb9@byu.net>
54294
54295         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54296         REPLACE_STRERROR is initialized before this macro.
54297
54298 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54299
54300         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54301         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54302         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54303         put -lsec in even for programs other than 'ls'.  This fixes a problem
54304         for gettext reported by Bruno Haible in
54305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54306         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54307         Add support for Solaris 10.  This isn't efficient, but should get the
54308         job done for now.
54309
54310 2007-12-03  James Youngman  <jay@gnu.org>
54311
54312         * doc/regexprops-generic.texi: change "an close-group" to "a
54313         close-group" and "illegal" to "not allowed".
54314
54315 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54316
54317         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54318         pr_byname.h. Needed for the rare case when the maintainer has done
54319         "make maintainer-clean" in the source directory and then attempts a
54320         build outside the source directory.
54321         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54322         scripts_byname.h.
54323
54324 2007-12-02  Martin Lambers <marlam@marlam.de>
54325             Bruno Haible  <bruno@clisp.org>
54326
54327         * lib/getpagesize.h: Remove file.
54328         * lib/unistd.in.h: Include declaration of getpagesize here.
54329         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54330         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54331         HAVE_SYS_PARAM_H.
54332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54333         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54334         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54335         (Depends-on): Add unistd.
54336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54337         (Include): Use <unistd.h> instead of getpagesize.h.
54338         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54339         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54340         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54341         gl_GETPAGESIZE invocation, already handled by module dependency.
54342         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54343
54344 2007-12-02  Bruno Haible  <bruno@clisp.org>
54345
54346         * modules/strings-tests: New file.
54347         * tests/test-strings.c: New file.
54348
54349         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54350         * lib/strings.in.h: New file.
54351         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54352         * m4/strings_h.m4: New file.
54353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54354         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54355         * modules/strings: New file.
54356         * modules/string (Makefile.am): Update.
54357         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54358         Reported by Karl Berry.
54359
54360 2007-12-01  Eric Blake  <ebb9@byu.net>
54361
54362         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54363         accomodate fix in cygwin 1.5.25.
54364
54365 2007-12-01  Jim Meyering  <meyering@redhat.com>
54366
54367         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54368         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54369         that would inhibit utf8-optimization of a regexp containing line-
54370         or buffer-anchors, e.g., `^', `$'.
54371
54372 2007-11-30  Bruno Haible  <bruno@clisp.org>
54373
54374         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54375         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54376         glthread_recursive_lock_init.
54377         * lib/lock.c (glthread_recursive_lock_init)
54378         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54379         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54380
54381 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54382
54383         New function qset_acl, like set_acl but with syscall semantics.
54384         * lib/acl.h (qset_acl): New decl.
54385         * lib/acl.c (qset_acl): New function.
54386         (set_acl): Use new function.  Use more-consistent diagnostics.
54387
54388 2007-11-28  Jim Meyering  <meyering@redhat.com>
54389
54390         * modules/physmem (License): Change from GPL to LGPLv2+.
54391
54392 2007-11-26  Bruno Haible  <bruno@clisp.org>
54393
54394         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54395         'long double' type has excess precision.
54396         Reported by Jim Meyering in
54397         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54398
54399 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54400
54401         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54402         Sync from <http://gnu.org/licenses>.
54403         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54404         with license text from same location.
54405         * doc/maintain.texi, doc/standards.texi:  Sync from
54406         <http://savannah.gnu.org/projects/gnustandards>.
54407
54408 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54409         and Jim Meyering  <meyering@redhat.com>
54410
54411         Adjust getdate' grammar to accept a slightly more regular language.
54412         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54413         Before, the former was rejected.
54414         * lib/getdate.y (digits_to_date_time): New function, factored
54415         out of ...
54416         (number): ...here.  Just call digits_to_date_time.
54417         (hybrid): New non-terminal to handle an <unsigned number,
54418         signed relative offset> sequence consistently.
54419
54420 2007-11-18  Jim Meyering  <meyering@redhat.com>
54421
54422         Pull my changes from coreutils:
54423         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54424         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54425         use of $gnulib_tool_option_extras, so that it's separated from the
54426         preceding argument.
54427
54428         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54429         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54430         parent destination directories before copying a file into place.
54431
54432 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54433
54434         bootstrap: work also with 4-argument variant of AC_INIT
54435         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54436
54437 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54438
54439         Port test-getaddrinfo to Solaris.
54440         Problem reported by Bruno Haible in
54441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54442         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54443         explanation of setting 'hints'.
54444         Don't reject an implementation merely because it returns EAI_SERVICE.
54445         (EAI_SERVICE): Define to 0 if not defined.
54446
54447 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         The license of gnu-make and posix-shell is now "GPLed build tool".
54450         * modules/gnu-make (License): Likewise.
54451         * modules/posix-shell (License): Likewise.
54452
54453         New module posix-shell, for determining a POSIX shell
54454         or perhaps something that is close enough to a POSIX shell.
54455         * m4/posix-shell.m4: New file.
54456         * modules/posix-shell: New file.
54457
54458         * MODULES.html.sh: Mention new module.
54459
54460         New module gnu-make, for determining whether we're using GNU Make.
54461         * m4/gnu-make.m4: New file.
54462         * modules/gnu-make: New file.
54463         * MODULES.html.sh: Mention new module.
54464
54465 2007-11-14  Jim Meyering  <meyering@redhat.com>
54466
54467         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54468         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54469         use this macro to create a function _definition_.
54470         Remove useless "#undef ARGMATCH_DIE".
54471
54472 2007-11-14  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/config.charset: Update for OpenBSD 4.1.
54475         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54476
54477 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         Document 64-bit #if problems in stdint.texi.
54480         * doc/headers/stdint.texi (stdint.h): Mention problems with
54481         64-bit-#if, and how to work around them.
54482
54483         Don't insist on 'long long int' support in the preprocessor.  It
54484         breaks too many things.  For example, PRIdMAX still uses a 'long
54485         long int' format with the latest Sun compiler, even though
54486         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54487         preprocessor problem.  This causes the latest coreutils to dump
54488         core on Solaris 10 sparc with the Sun C compiler.
54489         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54490         the troublesome expressions at configure-time, not at #if-time.
54491         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54492         preprocessor.
54493         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54494         compile-time C checks, done at 'configure'-time.
54495         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54496         * modules/inttypes (Makefile): Substitute the new symbols that
54497         gl_INTTYPES_H now generates.
54498         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54499
54500 2007-11-12  Bruno Haible  <bruno@clisp.org>
54501
54502         Tests for Unicode character classification functions.
54503
54504         * modules/unictype/bidicategory-byname-tests: New file.
54505         * modules/unictype/bidicategory-name-tests: New file.
54506         * modules/unictype/bidicategory-of-tests: New file.
54507         * modules/unictype/bidicategory-test-tests: New file.
54508         * modules/unictype/block-list-tests: New file.
54509         * modules/unictype/block-of-tests: New file.
54510         * modules/unictype/block-test-tests: New file.
54511         * modules/unictype/category-C-tests: New file.
54512         * modules/unictype/category-Cc-tests: New file.
54513         * modules/unictype/category-Cf-tests: New file.
54514         * modules/unictype/category-Cn-tests: New file.
54515         * modules/unictype/category-Co-tests: New file.
54516         * modules/unictype/category-Cs-tests: New file.
54517         * modules/unictype/category-L-tests: New file.
54518         * modules/unictype/category-Ll-tests: New file.
54519         * modules/unictype/category-Lm-tests: New file.
54520         * modules/unictype/category-Lo-tests: New file.
54521         * modules/unictype/category-Lt-tests: New file.
54522         * modules/unictype/category-Lu-tests: New file.
54523         * modules/unictype/category-M-tests: New file.
54524         * modules/unictype/category-Mc-tests: New file.
54525         * modules/unictype/category-Me-tests: New file.
54526         * modules/unictype/category-Mn-tests: New file.
54527         * modules/unictype/category-N-tests: New file.
54528         * modules/unictype/category-Nd-tests: New file.
54529         * modules/unictype/category-Nl-tests: New file.
54530         * modules/unictype/category-No-tests: New file.
54531         * modules/unictype/category-P-tests: New file.
54532         * modules/unictype/category-Pc-tests: New file.
54533         * modules/unictype/category-Pd-tests: New file.
54534         * modules/unictype/category-Pe-tests: New file.
54535         * modules/unictype/category-Pf-tests: New file.
54536         * modules/unictype/category-Pi-tests: New file.
54537         * modules/unictype/category-Po-tests: New file.
54538         * modules/unictype/category-Ps-tests: New file.
54539         * modules/unictype/category-S-tests: New file.
54540         * modules/unictype/category-Sc-tests: New file.
54541         * modules/unictype/category-Sk-tests: New file.
54542         * modules/unictype/category-Sm-tests: New file.
54543         * modules/unictype/category-So-tests: New file.
54544         * modules/unictype/category-Z-tests: New file.
54545         * modules/unictype/category-Zl-tests: New file.
54546         * modules/unictype/category-Zp-tests: New file.
54547         * modules/unictype/category-Zs-tests: New file.
54548         * modules/unictype/category-and-not-tests: New file.
54549         * modules/unictype/category-and-tests: New file.
54550         * modules/unictype/category-byname-tests: New file.
54551         * modules/unictype/category-name-tests: New file.
54552         * modules/unictype/category-none-tests: New file.
54553         * modules/unictype/category-of-tests: New file.
54554         * modules/unictype/category-or-tests: New file.
54555         * modules/unictype/category-test-withtable-tests: New file.
54556         * modules/unictype/combining-class-tests: New file.
54557         * modules/unictype/ctype-alnum-tests: New file.
54558         * modules/unictype/ctype-alpha-tests: New file.
54559         * modules/unictype/ctype-blank-tests: New file.
54560         * modules/unictype/ctype-cntrl-tests: New file.
54561         * modules/unictype/ctype-digit-tests: New file.
54562         * modules/unictype/ctype-graph-tests: New file.
54563         * modules/unictype/ctype-lower-tests: New file.
54564         * modules/unictype/ctype-print-tests: New file.
54565         * modules/unictype/ctype-punct-tests: New file.
54566         * modules/unictype/ctype-space-tests: New file.
54567         * modules/unictype/ctype-upper-tests: New file.
54568         * modules/unictype/ctype-xdigit-tests: New file.
54569         * modules/unictype/decimal-digit-tests: New file.
54570         * modules/unictype/digit-tests: New file.
54571         * modules/unictype/mirror-tests: New file.
54572         * modules/unictype/numeric-tests: New file.
54573         * modules/unictype/property-alphabetic-tests: New file.
54574         * modules/unictype/property-ascii-hex-digit-tests: New file.
54575         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54576         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54577         * modules/unictype/property-bidi-block-separator-tests: New file.
54578         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54579         * modules/unictype/property-bidi-common-separator-tests: New file.
54580         * modules/unictype/property-bidi-control-tests: New file.
54581         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54582         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54583         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54584         * modules/unictype/property-bidi-european-digit-tests: New file.
54585         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54586         * modules/unictype/property-bidi-left-to-right-tests: New file.
54587         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54588         * modules/unictype/property-bidi-other-neutral-tests: New file.
54589         * modules/unictype/property-bidi-pdf-tests: New file.
54590         * modules/unictype/property-bidi-segment-separator-tests: New file.
54591         * modules/unictype/property-bidi-whitespace-tests: New file.
54592         * modules/unictype/property-byname-tests: New file.
54593         * modules/unictype/property-combining-tests: New file.
54594         * modules/unictype/property-composite-tests: New file.
54595         * modules/unictype/property-currency-symbol-tests: New file.
54596         * modules/unictype/property-dash-tests: New file.
54597         * modules/unictype/property-decimal-digit-tests: New file.
54598         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54599         * modules/unictype/property-deprecated-tests: New file.
54600         * modules/unictype/property-diacritic-tests: New file.
54601         * modules/unictype/property-extender-tests: New file.
54602         * modules/unictype/property-format-control-tests: New file.
54603         * modules/unictype/property-grapheme-base-tests: New file.
54604         * modules/unictype/property-grapheme-extend-tests: New file.
54605         * modules/unictype/property-grapheme-link-tests: New file.
54606         * modules/unictype/property-hex-digit-tests: New file.
54607         * modules/unictype/property-hyphen-tests: New file.
54608         * modules/unictype/property-id-continue-tests: New file.
54609         * modules/unictype/property-id-start-tests: New file.
54610         * modules/unictype/property-ideographic-tests: New file.
54611         * modules/unictype/property-ids-binary-operator-tests: New file.
54612         * modules/unictype/property-ids-trinary-operator-tests: New file.
54613         * modules/unictype/property-ignorable-control-tests: New file.
54614         * modules/unictype/property-iso-control-tests: New file.
54615         * modules/unictype/property-join-control-tests: New file.
54616         * modules/unictype/property-left-of-pair-tests: New file.
54617         * modules/unictype/property-line-separator-tests: New file.
54618         * modules/unictype/property-logical-order-exception-tests: New file.
54619         * modules/unictype/property-lowercase-tests: New file.
54620         * modules/unictype/property-math-tests: New file.
54621         * modules/unictype/property-non-break-tests: New file.
54622         * modules/unictype/property-not-a-character-tests: New file.
54623         * modules/unictype/property-numeric-tests: New file.
54624         * modules/unictype/property-other-alphabetic-tests: New file.
54625         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54626         * modules/unictype/property-other-grapheme-extend-tests: New file.
54627         * modules/unictype/property-other-id-continue-tests: New file.
54628         * modules/unictype/property-other-id-start-tests: New file.
54629         * modules/unictype/property-other-lowercase-tests: New file.
54630         * modules/unictype/property-other-math-tests: New file.
54631         * modules/unictype/property-other-uppercase-tests: New file.
54632         * modules/unictype/property-paired-punctuation-tests: New file.
54633         * modules/unictype/property-paragraph-separator-tests: New file.
54634         * modules/unictype/property-pattern-syntax-tests: New file.
54635         * modules/unictype/property-pattern-white-space-tests: New file.
54636         * modules/unictype/property-private-use-tests: New file.
54637         * modules/unictype/property-punctuation-tests: New file.
54638         * modules/unictype/property-quotation-mark-tests: New file.
54639         * modules/unictype/property-radical-tests: New file.
54640         * modules/unictype/property-sentence-terminal-tests: New file.
54641         * modules/unictype/property-soft-dotted-tests: New file.
54642         * modules/unictype/property-space-tests: New file.
54643         * modules/unictype/property-terminal-punctuation-tests: New file.
54644         * modules/unictype/property-test-tests: New file.
54645         * modules/unictype/property-titlecase-tests: New file.
54646         * modules/unictype/property-unassigned-code-value-tests: New file.
54647         * modules/unictype/property-unified-ideograph-tests: New file.
54648         * modules/unictype/property-uppercase-tests: New file.
54649         * modules/unictype/property-variation-selector-tests: New file.
54650         * modules/unictype/property-white-space-tests: New file.
54651         * modules/unictype/property-xid-continue-tests: New file.
54652         * modules/unictype/property-xid-start-tests: New file.
54653         * modules/unictype/property-zero-width-tests: New file.
54654         * modules/unictype/scripts-tests: New file.
54655         * modules/unictype/syntax-c-ident-tests: New file.
54656         * modules/unictype/syntax-c-whitespace-tests: New file.
54657         * modules/unictype/syntax-java-ident-tests: New file.
54658         * modules/unictype/syntax-java-whitespace-tests: New file.
54659         * tests/unictype/test-bidi_byname.c: New file.
54660         * tests/unictype/test-bidi_name.c: New file.
54661         * tests/unictype/test-bidi_of.c: New file.
54662         * tests/unictype/test-bidi_test.c: New file.
54663         * tests/unictype/test-block_list.c: New file.
54664         * tests/unictype/test-block_of.c: New file.
54665         * tests/unictype/test-block_test.c: New file.
54666         * tests/unictype/test-categ_and.c: New file.
54667         * tests/unictype/test-categ_and_not.c: New file.
54668         * tests/unictype/test-categ_byname.c: New file.
54669         * tests/unictype/test-categ_name.c: New file.
54670         * tests/unictype/test-categ_none.c: New file.
54671         * tests/unictype/test-categ_of.c: New file.
54672         * tests/unictype/test-categ_or.c: New file.
54673         * tests/unictype/test-categ_test_withtable.c: New file.
54674         * tests/unictype/test-combining.c: New file.
54675         * tests/unictype/test-decdigit.c: New file.
54676         * tests/unictype/test-digit.c: New file.
54677         * tests/unictype/test-mirror.c: New file.
54678         * tests/unictype/test-numeric.c: New file.
54679         * tests/unictype/test-pr_byname.c: New file.
54680         * tests/unictype/test-pr_test.c: New file.
54681         * tests/unictype/test-predicate-part1.h: New file.
54682         * tests/unictype/test-predicate-part2.h: New file.
54683         * tests/unictype/test-scripts.c: New file.
54684         * tests/unictype/test-sy_c_ident.c: New file.
54685         * tests/unictype/test-sy_java_ident.c: New file.
54686
54687         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54688         for Unicode 5.0.0.
54689         * tests/unictype/test-categ_Cc.c: Likewise.
54690         * tests/unictype/test-categ_Cf.c: Likewise.
54691         * tests/unictype/test-categ_Cn.c: Likewise.
54692         * tests/unictype/test-categ_Co.c: Likewise.
54693         * tests/unictype/test-categ_Cs.c: Likewise.
54694         * tests/unictype/test-categ_L.c: Likewise.
54695         * tests/unictype/test-categ_Ll.c: Likewise.
54696         * tests/unictype/test-categ_Lm.c: Likewise.
54697         * tests/unictype/test-categ_Lo.c: Likewise.
54698         * tests/unictype/test-categ_Lt.c: Likewise.
54699         * tests/unictype/test-categ_Lu.c: Likewise.
54700         * tests/unictype/test-categ_M.c: Likewise.
54701         * tests/unictype/test-categ_Mc.c: Likewise.
54702         * tests/unictype/test-categ_Me.c: Likewise.
54703         * tests/unictype/test-categ_Mn.c: Likewise.
54704         * tests/unictype/test-categ_N.c: Likewise.
54705         * tests/unictype/test-categ_Nd.c: Likewise.
54706         * tests/unictype/test-categ_Nl.c: Likewise.
54707         * tests/unictype/test-categ_No.c: Likewise.
54708         * tests/unictype/test-categ_P.c: Likewise.
54709         * tests/unictype/test-categ_Pc.c: Likewise.
54710         * tests/unictype/test-categ_Pd.c: Likewise.
54711         * tests/unictype/test-categ_Pe.c: Likewise.
54712         * tests/unictype/test-categ_Pf.c: Likewise.
54713         * tests/unictype/test-categ_Pi.c: Likewise.
54714         * tests/unictype/test-categ_Po.c: Likewise.
54715         * tests/unictype/test-categ_Ps.c: Likewise.
54716         * tests/unictype/test-categ_S.c: Likewise.
54717         * tests/unictype/test-categ_Sc.c: Likewise.
54718         * tests/unictype/test-categ_Sk.c: Likewise.
54719         * tests/unictype/test-categ_Sm.c: Likewise.
54720         * tests/unictype/test-categ_So.c: Likewise.
54721         * tests/unictype/test-categ_Z.c: Likewise.
54722         * tests/unictype/test-categ_Zl.c: Likewise.
54723         * tests/unictype/test-categ_Zp.c: Likewise.
54724         * tests/unictype/test-categ_Zs.c: Likewise.
54725         * tests/unictype/test-ctype_alnum.c: Likewise.
54726         * tests/unictype/test-ctype_alpha.c: Likewise.
54727         * tests/unictype/test-ctype_blank.c: Likewise.
54728         * tests/unictype/test-ctype_cntrl.c: Likewise.
54729         * tests/unictype/test-ctype_digit.c: Likewise.
54730         * tests/unictype/test-ctype_graph.c: Likewise.
54731         * tests/unictype/test-ctype_lower.c: Likewise.
54732         * tests/unictype/test-ctype_print.c: Likewise.
54733         * tests/unictype/test-ctype_punct.c: Likewise.
54734         * tests/unictype/test-ctype_space.c: Likewise.
54735         * tests/unictype/test-ctype_upper.c: Likewise.
54736         * tests/unictype/test-ctype_xdigit.c: Likewise.
54737         * tests/unictype/test-decdigit.h: Likewise.
54738         * tests/unictype/test-digit.h: Likewise.
54739         * tests/unictype/test-numeric.h: Likewise.
54740         * tests/unictype/test-pr_alphabetic.c: Likewise.
54741         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54742         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54743         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54744         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54745         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54746         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54747         * tests/unictype/test-pr_bidi_control.c: Likewise.
54748         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54749         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54750         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54751         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54752         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54753         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54754         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54755         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54756         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54757         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54758         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54759         * tests/unictype/test-pr_combining.c: Likewise.
54760         * tests/unictype/test-pr_composite.c: Likewise.
54761         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54762         * tests/unictype/test-pr_dash.c: Likewise.
54763         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54764         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54765         * tests/unictype/test-pr_deprecated.c: Likewise.
54766         * tests/unictype/test-pr_diacritic.c: Likewise.
54767         * tests/unictype/test-pr_extender.c: Likewise.
54768         * tests/unictype/test-pr_format_control.c: Likewise.
54769         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54770         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54771         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54772         * tests/unictype/test-pr_hex_digit.c: Likewise.
54773         * tests/unictype/test-pr_hyphen.c: Likewise.
54774         * tests/unictype/test-pr_id_continue.c: Likewise.
54775         * tests/unictype/test-pr_id_start.c: Likewise.
54776         * tests/unictype/test-pr_ideographic.c: Likewise.
54777         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54778         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54779         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54780         * tests/unictype/test-pr_iso_control.c: Likewise.
54781         * tests/unictype/test-pr_join_control.c: Likewise.
54782         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54783         * tests/unictype/test-pr_line_separator.c: Likewise.
54784         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54785         * tests/unictype/test-pr_lowercase.c: Likewise.
54786         * tests/unictype/test-pr_math.c: Likewise.
54787         * tests/unictype/test-pr_non_break.c: Likewise.
54788         * tests/unictype/test-pr_not_a_character.c: Likewise.
54789         * tests/unictype/test-pr_numeric.c: Likewise.
54790         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54791         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54792         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54793         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54794         * tests/unictype/test-pr_other_id_start.c: Likewise.
54795         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54796         * tests/unictype/test-pr_other_math.c: Likewise.
54797         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54798         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54799         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54800         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54801         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54802         * tests/unictype/test-pr_private_use.c: Likewise.
54803         * tests/unictype/test-pr_punctuation.c: Likewise.
54804         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54805         * tests/unictype/test-pr_radical.c: Likewise.
54806         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54807         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54808         * tests/unictype/test-pr_space.c: Likewise.
54809         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54810         * tests/unictype/test-pr_titlecase.c: Likewise.
54811         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54812         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54813         * tests/unictype/test-pr_uppercase.c: Likewise.
54814         * tests/unictype/test-pr_variation_selector.c: Likewise.
54815         * tests/unictype/test-pr_white_space.c: Likewise.
54816         * tests/unictype/test-pr_xid_continue.c: Likewise.
54817         * tests/unictype/test-pr_xid_start.c: Likewise.
54818         * tests/unictype/test-pr_zero_width.c: Likewise.
54819         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54820         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54821
54822 2007-11-12  Bruno Haible  <bruno@clisp.org>
54823
54824         Unicode character classification functions.
54825         * lib/unictype.h: New file.
54826         * modules/unictype/base: New file.
54827         * modules/unictype/category-L: New file.
54828         * modules/unictype/category-Lu: New file.
54829         * modules/unictype/category-Ll: New file.
54830         * modules/unictype/category-Lt: New file.
54831         * modules/unictype/category-Lm: New file.
54832         * modules/unictype/category-Lo: New file.
54833         * modules/unictype/category-M: New file.
54834         * modules/unictype/category-Mn: New file.
54835         * modules/unictype/category-Mc: New file.
54836         * modules/unictype/category-Me: New file.
54837         * modules/unictype/category-N: New file.
54838         * modules/unictype/category-Nd: New file.
54839         * modules/unictype/category-Nl: New file.
54840         * modules/unictype/category-No: New file.
54841         * modules/unictype/category-P: New file.
54842         * modules/unictype/category-Pc: New file.
54843         * modules/unictype/category-Pd: New file.
54844         * modules/unictype/category-Ps: New file.
54845         * modules/unictype/category-Pe: New file.
54846         * modules/unictype/category-Pi: New file.
54847         * modules/unictype/category-Pf: New file.
54848         * modules/unictype/category-Po: New file.
54849         * modules/unictype/category-S: New file.
54850         * modules/unictype/category-Sm: New file.
54851         * modules/unictype/category-Sc: New file.
54852         * modules/unictype/category-Sk: New file.
54853         * modules/unictype/category-So: New file.
54854         * modules/unictype/category-Z: New file.
54855         * modules/unictype/category-Zs: New file.
54856         * modules/unictype/category-Zl: New file.
54857         * modules/unictype/category-Zp: New file.
54858         * modules/unictype/category-C: New file.
54859         * modules/unictype/category-Cc: New file.
54860         * modules/unictype/category-Cf: New file.
54861         * modules/unictype/category-Cs: New file.
54862         * modules/unictype/category-Co: New file.
54863         * modules/unictype/category-Cn: New file.
54864         * modules/unictype/category-or: New file.
54865         * modules/unictype/category-of: New file.
54866         * modules/unictype/category-test: New file.
54867         * modules/unictype/category-test-withtable: New file.
54868         * modules/unictype/category-byname: New file.
54869         * modules/unictype/category-none: New file.
54870         * modules/unictype/category-and: New file.
54871         * modules/unictype/category-and-not: New file.
54872         * modules/unictype/category-name: New file.
54873         * modules/unictype/combining-class: New file.
54874         * modules/unictype/category-all: New file.
54875         * modules/unictype/bidicategory-all: New file.
54876         * modules/unictype/bidicategory-byname: New file.
54877         * modules/unictype/bidicategory-name: New file.
54878         * modules/unictype/bidicategory-of: New file.
54879         * modules/unictype/bidicategory-test: New file.
54880         * modules/unictype/decimal-digit: New file.
54881         * modules/unictype/digit: New file.
54882         * modules/unictype/numeric: New file.
54883         * modules/unictype/mirror: New file.
54884         * modules/unictype/property-white-space: New file.
54885         * modules/unictype/property-alphabetic: New file.
54886         * modules/unictype/property-other-alphabetic: New file.
54887         * modules/unictype/property-not-a-character: New file.
54888         * modules/unictype/property-default-ignorable-code-point: New file.
54889         * modules/unictype/property-other-default-ignorable-code-point: New
54890         file.
54891         * modules/unictype/property-deprecated: New file.
54892         * modules/unictype/property-logical-order-exception: New file.
54893         * modules/unictype/property-variation-selector: New file.
54894         * modules/unictype/property-private-use: New file.
54895         * modules/unictype/property-unassigned-code-value: New file.
54896         * modules/unictype/property-uppercase: New file.
54897         * modules/unictype/property-other-uppercase: New file.
54898         * modules/unictype/property-lowercase: New file.
54899         * modules/unictype/property-other-lowercase: New file.
54900         * modules/unictype/property-titlecase: New file.
54901         * modules/unictype/property-soft-dotted: New file.
54902         * modules/unictype/property-id-start: New file.
54903         * modules/unictype/property-other-id-start: New file.
54904         * modules/unictype/property-id-continue: New file.
54905         * modules/unictype/property-other-id-continue: New file.
54906         * modules/unictype/property-xid-start: New file.
54907         * modules/unictype/property-xid-continue: New file.
54908         * modules/unictype/property-pattern-white-space: New file.
54909         * modules/unictype/property-pattern-syntax: New file.
54910         * modules/unictype/property-join-control: New file.
54911         * modules/unictype/property-grapheme-base: New file.
54912         * modules/unictype/property-grapheme-extend: New file.
54913         * modules/unictype/property-other-grapheme-extend: New file.
54914         * modules/unictype/property-grapheme-link: New file.
54915         * modules/unictype/property-bidi-control: New file.
54916         * modules/unictype/property-bidi-left-to-right: New file.
54917         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54918         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54919         * modules/unictype/property-bidi-european-digit: New file.
54920         * modules/unictype/property-bidi-eur-num-separator: New file.
54921         * modules/unictype/property-bidi-eur-num-terminator: New file.
54922         * modules/unictype/property-bidi-arabic-digit: New file.
54923         * modules/unictype/property-bidi-common-separator: New file.
54924         * modules/unictype/property-bidi-block-separator: New file.
54925         * modules/unictype/property-bidi-segment-separator: New file.
54926         * modules/unictype/property-bidi-whitespace: New file.
54927         * modules/unictype/property-bidi-non-spacing-mark: New file.
54928         * modules/unictype/property-bidi-boundary-neutral: New file.
54929         * modules/unictype/property-bidi-pdf: New file.
54930         * modules/unictype/property-bidi-embedding-or-override: New file.
54931         * modules/unictype/property-bidi-other-neutral: New file.
54932         * modules/unictype/property-hex-digit: New file.
54933         * modules/unictype/property-ascii-hex-digit: New file.
54934         * modules/unictype/property-ideographic: New file.
54935         * modules/unictype/property-unified-ideograph: New file.
54936         * modules/unictype/property-radical: New file.
54937         * modules/unictype/property-ids-binary-operator: New file.
54938         * modules/unictype/property-ids-trinary-operator: New file.
54939         * modules/unictype/property-zero-width: New file.
54940         * modules/unictype/property-space: New file.
54941         * modules/unictype/property-non-break: New file.
54942         * modules/unictype/property-iso-control: New file.
54943         * modules/unictype/property-format-control: New file.
54944         * modules/unictype/property-dash: New file.
54945         * modules/unictype/property-hyphen: New file.
54946         * modules/unictype/property-punctuation: New file.
54947         * modules/unictype/property-line-separator: New file.
54948         * modules/unictype/property-paragraph-separator: New file.
54949         * modules/unictype/property-quotation-mark: New file.
54950         * modules/unictype/property-sentence-terminal: New file.
54951         * modules/unictype/property-terminal-punctuation: New file.
54952         * modules/unictype/property-currency-symbol: New file.
54953         * modules/unictype/property-math: New file.
54954         * modules/unictype/property-other-math: New file.
54955         * modules/unictype/property-paired-punctuation: New file.
54956         * modules/unictype/property-left-of-pair: New file.
54957         * modules/unictype/property-combining: New file.
54958         * modules/unictype/property-composite: New file.
54959         * modules/unictype/property-decimal-digit: New file.
54960         * modules/unictype/property-numeric: New file.
54961         * modules/unictype/property-diacritic: New file.
54962         * modules/unictype/property-extender: New file.
54963         * modules/unictype/property-ignorable-control: New file.
54964         * modules/unictype/property-test: New file.
54965         * modules/unictype/property-byname: New file.
54966         * modules/unictype/property-all: New file.
54967         * modules/unictype/scripts: New file.
54968         * modules/unictype/scripts-all: New file.
54969         * modules/unictype/block-of: New file.
54970         * modules/unictype/block-test: New file.
54971         * modules/unictype/block-list: New file.
54972         * modules/unictype/block-all: New file.
54973         * modules/unictype/syntax-c-whitespace: New file.
54974         * modules/unictype/syntax-java-whitespace: New file.
54975         * modules/unictype/syntax-c-ident: New file.
54976         * modules/unictype/syntax-java-ident: New file.
54977         * modules/unictype/ctype-alnum: New file.
54978         * modules/unictype/ctype-alpha: New file.
54979         * modules/unictype/ctype-cntrl: New file.
54980         * modules/unictype/ctype-digit: New file.
54981         * modules/unictype/ctype-graph: New file.
54982         * modules/unictype/ctype-lower: New file.
54983         * modules/unictype/ctype-print: New file.
54984         * modules/unictype/ctype-punct: New file.
54985         * modules/unictype/ctype-space: New file.
54986         * modules/unictype/ctype-upper: New file.
54987         * modules/unictype/ctype-xdigit: New file.
54988         * modules/unictype/ctype-blank: New file.
54989         * lib/unictype/bidi_byname.c: New file.
54990         * lib/unictype/bidi_name.c: New file.
54991         * lib/unictype/bidi_of.c: New file.
54992         * lib/unictype/bidi_test.c: New file.
54993         * lib/unictype/bitmap.h: New file.
54994         * lib/unictype/block_test.c: New file.
54995         * lib/unictype/blocks.c: New file.
54996         * lib/unictype/categ_C.c: New file.
54997         * lib/unictype/categ_Cc.c: New file.
54998         * lib/unictype/categ_Cf.c: New file.
54999         * lib/unictype/categ_Cn.c: New file.
55000         * lib/unictype/categ_Co.c: New file.
55001         * lib/unictype/categ_Cs.c: New file.
55002         * lib/unictype/categ_L.c: New file.
55003         * lib/unictype/categ_Ll.c: New file.
55004         * lib/unictype/categ_Lm.c: New file.
55005         * lib/unictype/categ_Lo.c: New file.
55006         * lib/unictype/categ_Lt.c: New file.
55007         * lib/unictype/categ_Lu.c: New file.
55008         * lib/unictype/categ_M.c: New file.
55009         * lib/unictype/categ_Mc.c: New file.
55010         * lib/unictype/categ_Me.c: New file.
55011         * lib/unictype/categ_Mn.c: New file.
55012         * lib/unictype/categ_N.c: New file.
55013         * lib/unictype/categ_Nd.c: New file.
55014         * lib/unictype/categ_Nl.c: New file.
55015         * lib/unictype/categ_No.c: New file.
55016         * lib/unictype/categ_P.c: New file.
55017         * lib/unictype/categ_Pc.c: New file.
55018         * lib/unictype/categ_Pd.c: New file.
55019         * lib/unictype/categ_Pe.c: New file.
55020         * lib/unictype/categ_Pf.c: New file.
55021         * lib/unictype/categ_Pi.c: New file.
55022         * lib/unictype/categ_Po.c: New file.
55023         * lib/unictype/categ_Ps.c: New file.
55024         * lib/unictype/categ_S.c: New file.
55025         * lib/unictype/categ_Sc.c: New file.
55026         * lib/unictype/categ_Sk.c: New file.
55027         * lib/unictype/categ_Sm.c: New file.
55028         * lib/unictype/categ_So.c: New file.
55029         * lib/unictype/categ_Z.c: New file.
55030         * lib/unictype/categ_Zl.c: New file.
55031         * lib/unictype/categ_Zp.c: New file.
55032         * lib/unictype/categ_Zs.c: New file.
55033         * lib/unictype/categ_and.c: New file.
55034         * lib/unictype/categ_and_not.c: New file.
55035         * lib/unictype/categ_byname.c: New file.
55036         * lib/unictype/categ_name.c: New file.
55037         * lib/unictype/categ_none.c: New file.
55038         * lib/unictype/categ_of.c: New file.
55039         * lib/unictype/categ_or.c: New file.
55040         * lib/unictype/categ_test.c: New file.
55041         * lib/unictype/combining.c: New file.
55042         * lib/unictype/ctype_alnum.c: New file.
55043         * lib/unictype/ctype_alpha.c: New file.
55044         * lib/unictype/ctype_blank.c: New file.
55045         * lib/unictype/ctype_cntrl.c: New file.
55046         * lib/unictype/ctype_digit.c: New file.
55047         * lib/unictype/ctype_graph.c: New file.
55048         * lib/unictype/ctype_lower.c: New file.
55049         * lib/unictype/ctype_print.c: New file.
55050         * lib/unictype/ctype_punct.c: New file.
55051         * lib/unictype/ctype_space.c: New file.
55052         * lib/unictype/ctype_upper.c: New file.
55053         * lib/unictype/ctype_xdigit.c: New file.
55054         * lib/unictype/decdigit.c: New file.
55055         * lib/unictype/digit.c: New file.
55056         * lib/unictype/identsyntaxmap.h: New file.
55057         * lib/unictype/mirror.c: New file.
55058         * lib/unictype/numeric.c: New file.
55059         * lib/unictype/pr_alphabetic.c: New file.
55060         * lib/unictype/pr_ascii_hex_digit.c: New file.
55061         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55062         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55063         * lib/unictype/pr_bidi_block_separator.c: New file.
55064         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55065         * lib/unictype/pr_bidi_common_separator.c: New file.
55066         * lib/unictype/pr_bidi_control.c: New file.
55067         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55068         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55069         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55070         * lib/unictype/pr_bidi_european_digit.c: New file.
55071         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55072         * lib/unictype/pr_bidi_left_to_right.c: New file.
55073         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55074         * lib/unictype/pr_bidi_other_neutral.c: New file.
55075         * lib/unictype/pr_bidi_pdf.c: New file.
55076         * lib/unictype/pr_bidi_segment_separator.c: New file.
55077         * lib/unictype/pr_bidi_whitespace.c: New file.
55078         * lib/unictype/pr_byname.c: New file.
55079         * lib/unictype/pr_byname.gperf: New file.
55080         * lib/unictype/pr_combining.c: New file.
55081         * lib/unictype/pr_composite.c: New file.
55082         * lib/unictype/pr_currency_symbol.c: New file.
55083         * lib/unictype/pr_dash.c: New file.
55084         * lib/unictype/pr_decimal_digit.c: New file.
55085         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55086         * lib/unictype/pr_deprecated.c: New file.
55087         * lib/unictype/pr_diacritic.c: New file.
55088         * lib/unictype/pr_extender.c: New file.
55089         * lib/unictype/pr_format_control.c: New file.
55090         * lib/unictype/pr_grapheme_base.c: New file.
55091         * lib/unictype/pr_grapheme_extend.c: New file.
55092         * lib/unictype/pr_grapheme_link.c: New file.
55093         * lib/unictype/pr_hex_digit.c: New file.
55094         * lib/unictype/pr_hyphen.c: New file.
55095         * lib/unictype/pr_id_continue.c: New file.
55096         * lib/unictype/pr_id_start.c: New file.
55097         * lib/unictype/pr_ideographic.c: New file.
55098         * lib/unictype/pr_ids_binary_operator.c: New file.
55099         * lib/unictype/pr_ids_trinary_operator.c: New file.
55100         * lib/unictype/pr_ignorable_control.c: New file.
55101         * lib/unictype/pr_iso_control.c: New file.
55102         * lib/unictype/pr_join_control.c: New file.
55103         * lib/unictype/pr_left_of_pair.c: New file.
55104         * lib/unictype/pr_line_separator.c: New file.
55105         * lib/unictype/pr_logical_order_exception.c: New file.
55106         * lib/unictype/pr_lowercase.c: New file.
55107         * lib/unictype/pr_math.c: New file.
55108         * lib/unictype/pr_non_break.c: New file.
55109         * lib/unictype/pr_not_a_character.c: New file.
55110         * lib/unictype/pr_numeric.c: New file.
55111         * lib/unictype/pr_other_alphabetic.c: New file.
55112         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55113         * lib/unictype/pr_other_grapheme_extend.c: New file.
55114         * lib/unictype/pr_other_id_continue.c: New file.
55115         * lib/unictype/pr_other_id_start.c: New file.
55116         * lib/unictype/pr_other_lowercase.c: New file.
55117         * lib/unictype/pr_other_math.c: New file.
55118         * lib/unictype/pr_other_uppercase.c: New file.
55119         * lib/unictype/pr_paired_punctuation.c: New file.
55120         * lib/unictype/pr_paragraph_separator.c: New file.
55121         * lib/unictype/pr_pattern_syntax.c: New file.
55122         * lib/unictype/pr_pattern_white_space.c: New file.
55123         * lib/unictype/pr_private_use.c: New file.
55124         * lib/unictype/pr_punctuation.c: New file.
55125         * lib/unictype/pr_quotation_mark.c: New file.
55126         * lib/unictype/pr_radical.c: New file.
55127         * lib/unictype/pr_sentence_terminal.c: New file.
55128         * lib/unictype/pr_soft_dotted.c: New file.
55129         * lib/unictype/pr_space.c: New file.
55130         * lib/unictype/pr_terminal_punctuation.c: New file.
55131         * lib/unictype/pr_test.c: New file.
55132         * lib/unictype/pr_titlecase.c: New file.
55133         * lib/unictype/pr_unassigned_code_value.c: New file.
55134         * lib/unictype/pr_unified_ideograph.c: New file.
55135         * lib/unictype/pr_uppercase.c: New file.
55136         * lib/unictype/pr_variation_selector.c: New file.
55137         * lib/unictype/pr_white_space.c: New file.
55138         * lib/unictype/pr_xid_continue.c: New file.
55139         * lib/unictype/pr_xid_start.c: New file.
55140         * lib/unictype/pr_zero_width.c: New file.
55141         * lib/unictype/scripts.c: New file.
55142         * lib/unictype/sy_c_ident.c: New file.
55143         * lib/unictype/sy_c_whitespace.c: New file.
55144         * lib/unictype/sy_java_ident.c: New file.
55145         * lib/unictype/sy_java_whitespace.c: New file.
55146
55147         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55148         Unicode 5.0.0.
55149         * lib/unictype/blocks.h: Likewise.
55150         * lib/unictype/categ_C.h: Likewise.
55151         * lib/unictype/categ_Cc.h: Likewise.
55152         * lib/unictype/categ_Cf.h: Likewise.
55153         * lib/unictype/categ_Cn.h: Likewise.
55154         * lib/unictype/categ_Co.h: Likewise.
55155         * lib/unictype/categ_Cs.h: Likewise.
55156         * lib/unictype/categ_L.h: Likewise.
55157         * lib/unictype/categ_Ll.h: Likewise.
55158         * lib/unictype/categ_Lm.h: Likewise.
55159         * lib/unictype/categ_Lo.h: Likewise.
55160         * lib/unictype/categ_Lt.h: Likewise.
55161         * lib/unictype/categ_Lu.h: Likewise.
55162         * lib/unictype/categ_M.h: Likewise.
55163         * lib/unictype/categ_Mc.h: Likewise.
55164         * lib/unictype/categ_Me.h: Likewise.
55165         * lib/unictype/categ_Mn.h: Likewise.
55166         * lib/unictype/categ_N.h: Likewise.
55167         * lib/unictype/categ_Nd.h: Likewise.
55168         * lib/unictype/categ_Nl.h: Likewise.
55169         * lib/unictype/categ_No.h: Likewise.
55170         * lib/unictype/categ_P.h: Likewise.
55171         * lib/unictype/categ_Pc.h: Likewise.
55172         * lib/unictype/categ_Pd.h: Likewise.
55173         * lib/unictype/categ_Pe.h: Likewise.
55174         * lib/unictype/categ_Pf.h: Likewise.
55175         * lib/unictype/categ_Pi.h: Likewise.
55176         * lib/unictype/categ_Po.h: Likewise.
55177         * lib/unictype/categ_Ps.h: Likewise.
55178         * lib/unictype/categ_S.h: Likewise.
55179         * lib/unictype/categ_Sc.h: Likewise.
55180         * lib/unictype/categ_Sk.h: Likewise.
55181         * lib/unictype/categ_Sm.h: Likewise.
55182         * lib/unictype/categ_So.h: Likewise.
55183         * lib/unictype/categ_Z.h: Likewise.
55184         * lib/unictype/categ_Zl.h: Likewise.
55185         * lib/unictype/categ_Zp.h: Likewise.
55186         * lib/unictype/categ_Zs.h: Likewise.
55187         * lib/unictype/categ_of.h: Likewise.
55188         * lib/unictype/combining.h: Likewise.
55189         * lib/unictype/ctype_alnum.h: Likewise.
55190         * lib/unictype/ctype_alpha.h: Likewise.
55191         * lib/unictype/ctype_blank.h: Likewise.
55192         * lib/unictype/ctype_cntrl.h: Likewise.
55193         * lib/unictype/ctype_digit.h: Likewise.
55194         * lib/unictype/ctype_graph.h: Likewise.
55195         * lib/unictype/ctype_lower.h: Likewise.
55196         * lib/unictype/ctype_print.h: Likewise.
55197         * lib/unictype/ctype_punct.h: Likewise.
55198         * lib/unictype/ctype_space.h: Likewise.
55199         * lib/unictype/ctype_upper.h: Likewise.
55200         * lib/unictype/ctype_xdigit.h: Likewise.
55201         * lib/unictype/decdigit.h: Likewise.
55202         * lib/unictype/digit.h: Likewise.
55203         * lib/unictype/mirror.h: Likewise.
55204         * lib/unictype/numeric.h: Likewise.
55205         * lib/unictype/pr_alphabetic.h: Likewise.
55206         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55207         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55208         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55209         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55210         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55211         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55212         * lib/unictype/pr_bidi_control.h: Likewise.
55213         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55214         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55215         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55216         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55217         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55218         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55219         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55220         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55221         * lib/unictype/pr_bidi_pdf.h: Likewise.
55222         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55223         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55224         * lib/unictype/pr_combining.h: Likewise.
55225         * lib/unictype/pr_composite.h: Likewise.
55226         * lib/unictype/pr_currency_symbol.h: Likewise.
55227         * lib/unictype/pr_dash.h: Likewise.
55228         * lib/unictype/pr_decimal_digit.h: Likewise.
55229         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55230         * lib/unictype/pr_deprecated.h: Likewise.
55231         * lib/unictype/pr_diacritic.h: Likewise.
55232         * lib/unictype/pr_extender.h: Likewise.
55233         * lib/unictype/pr_format_control.h: Likewise.
55234         * lib/unictype/pr_grapheme_base.h: Likewise.
55235         * lib/unictype/pr_grapheme_extend.h: Likewise.
55236         * lib/unictype/pr_grapheme_link.h: Likewise.
55237         * lib/unictype/pr_hex_digit.h: Likewise.
55238         * lib/unictype/pr_hyphen.h: Likewise.
55239         * lib/unictype/pr_id_continue.h: Likewise.
55240         * lib/unictype/pr_id_start.h: Likewise.
55241         * lib/unictype/pr_ideographic.h: Likewise.
55242         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55243         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55244         * lib/unictype/pr_ignorable_control.h: Likewise.
55245         * lib/unictype/pr_iso_control.h: Likewise.
55246         * lib/unictype/pr_join_control.h: Likewise.
55247         * lib/unictype/pr_left_of_pair.h: Likewise.
55248         * lib/unictype/pr_line_separator.h: Likewise.
55249         * lib/unictype/pr_logical_order_exception.h: Likewise.
55250         * lib/unictype/pr_lowercase.h: Likewise.
55251         * lib/unictype/pr_math.h: Likewise.
55252         * lib/unictype/pr_non_break.h: Likewise.
55253         * lib/unictype/pr_not_a_character.h: Likewise.
55254         * lib/unictype/pr_numeric.h: Likewise.
55255         * lib/unictype/pr_other_alphabetic.h: Likewise.
55256         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55257         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55258         * lib/unictype/pr_other_id_continue.h: Likewise.
55259         * lib/unictype/pr_other_id_start.h: Likewise.
55260         * lib/unictype/pr_other_lowercase.h: Likewise.
55261         * lib/unictype/pr_other_math.h: Likewise.
55262         * lib/unictype/pr_other_uppercase.h: Likewise.
55263         * lib/unictype/pr_paired_punctuation.h: Likewise.
55264         * lib/unictype/pr_paragraph_separator.h: Likewise.
55265         * lib/unictype/pr_pattern_syntax.h: Likewise.
55266         * lib/unictype/pr_pattern_white_space.h: Likewise.
55267         * lib/unictype/pr_private_use.h: Likewise.
55268         * lib/unictype/pr_punctuation.h: Likewise.
55269         * lib/unictype/pr_quotation_mark.h: Likewise.
55270         * lib/unictype/pr_radical.h: Likewise.
55271         * lib/unictype/pr_sentence_terminal.h: Likewise.
55272         * lib/unictype/pr_soft_dotted.h: Likewise.
55273         * lib/unictype/pr_space.h: Likewise.
55274         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55275         * lib/unictype/pr_titlecase.h: Likewise.
55276         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55277         * lib/unictype/pr_unified_ideograph.h: Likewise.
55278         * lib/unictype/pr_uppercase.h: Likewise.
55279         * lib/unictype/pr_variation_selector.h: Likewise.
55280         * lib/unictype/pr_white_space.h: Likewise.
55281         * lib/unictype/pr_xid_continue.h: Likewise.
55282         * lib/unictype/pr_xid_start.h: Likewise.
55283         * lib/unictype/pr_zero_width.h: Likewise.
55284         * lib/unictype/scripts.h: Likewise.
55285         * lib/unictype/scripts_byname.gperf: Likewise.
55286         * lib/unictype/sy_c_ident.h: Likewise.
55287         * lib/unictype/sy_c_whitespace.h: Likewise.
55288         * lib/unictype/sy_java_ident.h: Likewise.
55289         * lib/unictype/sy_java_whitespace.h: Likewise.
55290
55291         * lib/unictype/Makefile: New file.
55292         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55293         glibc.
55294         * lib/unictype/3level.h: New file, copied from glibc.
55295         * lib/unictype/3levelbit.h: New file.
55296
55297 2007-11-11  Bruno Haible  <bruno@clisp.org>
55298
55299         * modules/gperf: New file.
55300         * modules/iconv_open (Depends-on): Add it.
55301         (Makefile.am): Remove the GPERF definition.
55302
55303 2007-11-11  Bruno Haible  <bruno@clisp.org>
55304
55305         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55306         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55307
55308 2007-11-11  Bruno Haible  <bruno@clisp.org>
55309
55310         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55311         (usage): Remove function.
55312
55313 2007-11-11  Bruno Haible  <bruno@clisp.org>
55314
55315         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55316         gl_FUNC_CEILF_LIBS.
55317         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55318         gl_FUNC_CEIL_LIBS.
55319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55320         gl_FUNC_CEILL_LIBS.
55321         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55322         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55323         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55324
55325 2007-11-11  Bruno Haible  <bruno@clisp.org>
55326
55327         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55328         roundf were declared but do not exist on functions.
55329         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55330         roundl were declared but do not exist on functions.
55331         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55332         HAVE_FLOORL_AND_CEILL, respectively.
55333         Needed for Sun C on Solaris 10.
55334
55335 2007-11-11  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55338         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55339         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55340         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55341         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55342         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55343         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55344         HAVE_DECL_ROUNDF.
55345         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55346         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55348         of HAVE_DECL_ROUND*.
55349         * modules/math (Makefile.am): Update.
55350
55351 2007-11-10  Bruno Haible  <bruno@clisp.org>
55352
55353         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55354         ptrdiff_t as m4/intl.m4.
55355
55356 2007-11-10  Jim Meyering  <meyering@redhat.com>
55357
55358         Avoid link failure for the argmatch test.
55359         * tests/test-argmatch.c (usage): Define function to avoid a link
55360         failure: argmatch_die requires a usage function.
55361
55362 2007-11-09  Bruno Haible  <bruno@clisp.org>
55363
55364         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55365         * doc/functions/vsnprintf.texi: Likewise.
55366         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55367         with a size argument < 2.
55368
55369 2007-11-09  Bruno Haible  <bruno@clisp.org>
55370
55371         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55372         buffer. Fixes an inefficiency introduced on 2007-11-03.
55373
55374 2007-11-09  Bruno Haible  <bruno@clisp.org>
55375
55376         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55377         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55378
55379 2007-11-08  Jim Meyering  <meyering@redhat.com>
55380
55381         Change cache variable name prefix "jm_" to "gl_" everywhere.
55382         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55383         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55384         * m4/uptime.m4: s/gl_/jm_/
55385
55386 2007-11-07  Bruno Haible  <bruno@clisp.org>
55387
55388         Update to GNU gettext 0.17.
55389         * m4/intl.m4: Update to GNU gettext 0.17.
55390         * m4/po.m4: Likewise.
55391         * modules/gettext (Files): Remove m4/ulonglong.m4.
55392         (configure.ac): Require gettext infrastructure from version 0.17.
55393
55394 2007-11-06  Bruno Haible  <bruno@clisp.org>
55395
55396         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55397         symbolic values are not defined in a public header.
55398         * lib/freadable.c (freadable) [QNX]: Likewise.
55399         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55400         * lib/freading.c (freading) [QNX]: Likewise.
55401         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55402         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55403         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55404         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55405         Reported by Alain Magloire.
55406
55407         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55408
55409 2007-11-05  Bruno Haible  <bruno@clisp.org>
55410
55411         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55412         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55413         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55414         Reported by Eric Blake.
55415
55416 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55417             Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55420         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55421         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55422         (malloc): Undefine also before including <stdlib.h>.
55423         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55424         Needed on OSF/1 4.0.
55425
55426 2007-11-05  Jim Meyering  <meyering@redhat.com>
55427
55428         git-version-gen: sync from coreutils.
55429         * build-aux/git-version-gen: Add comments.
55430         Change the first '-' to '.' in the snapshot version string,
55431         e.g., 6.9-377-08144 -> 6.9.377-08144
55432         Remove first parameter.
55433         Don't declare a version "-dirty" merely because a time
55434         stamp has changed.
55435
55436 2007-11-04  Bruno Haible  <bruno@clisp.org>
55437
55438         * lib/lock.h: Protect all macro definitions containing an 'if'
55439         statement through a "do { ... } while (0)".
55440         * lib/tls.h: Likewise.
55441
55442 2007-11-04  Bruno Haible  <bruno@clisp.org>
55443
55444         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55445
55446 2007-11-04  Bruno Haible  <bruno@clisp.org>
55447
55448         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55449         * modules/fprintf-posix (Depends-on): Add nocrash.
55450         * modules/snprintf-posix (Depends-on): Likewise.
55451         * modules/sprintf-posix (Depends-on): Likewise.
55452         * modules/vasnprintf-posix (Depends-on): Likewise.
55453         * modules/vasprintf-posix (Depends-on): Likewise.
55454         * modules/vfprintf-posix (Depends-on): Likewise.
55455         * modules/vsnprintf-posix (Depends-on): Likewise.
55456         * modules/vsprintf-posix (Depends-on): Likewise.
55457         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55458         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55459         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55460         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55461         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55462         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55463         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55464
55465 2007-11-04  Bruno Haible  <bruno@clisp.org>
55466
55467         * modules/nocrash: New file.
55468         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55469         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55470
55471 2007-11-04  Bruno Haible  <bruno@clisp.org>
55472
55473         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55474         precision handling.
55475         * tests/test-vasprintf-posix.c (test_function): Likewise.
55476         * tests/test-snprintf-posix.h (test_function): Likewise.
55477         * tests/test-sprintf-posix.h (test_function): Likewise.
55478
55479         Fix *printf behaviour for large precisions on mingw and BeOS.
55480         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55481         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55483         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55485         gl_PRINTF_PRECISION and test its result. Invoke
55486         gl_PREREQ_VASNPRINTF_PRECISION.
55487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55494         * doc/functions/fprintf.texi: Update.
55495         * doc/functions/printf.texi: Update.
55496         * doc/functions/snprintf.texi: Update.
55497         * doc/functions/sprintf.texi: Update.
55498         * doc/functions/vfprintf.texi: Update.
55499         * doc/functions/vprintf.texi: Update.
55500         * doc/functions/vsnprintf.texi: Update.
55501         * doc/functions/vsprintf.texi: Update.
55502
55503 2007-11-04  Bruno Haible  <bruno@clisp.org>
55504
55505         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55506
55507 2007-11-04  Bruno Haible  <bruno@clisp.org>
55508
55509         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55510         Reported by Sylvain Beucler <beuc@gnu.org>.
55511
55512 2007-11-03  Bruno Haible  <bruno@clisp.org>
55513
55514         * tests/test-fprintf-posix2.sh: New file.
55515         * tests/test-fprintf-posix2.c: New file.
55516         * modules/fprintf-posix-tests (Files): Add them.
55517         (TESTS): Add test-fprintf-posix2.sh.
55518         (configure.ac): Check for getrlimit and setrlimit.
55519         (check_PROGRAMS): Add test-fprintf-posix2.
55520
55521         * tests/test-printf-posix2.sh: New file.
55522         * tests/test-printf-posix2.c: New file.
55523         * modules/printf-posix-tests (Files): Add them.
55524         (TESTS): Add test-printf-posix2.sh.
55525         (configure.ac): Check for getrlimit and setrlimit.
55526         (check_PROGRAMS): Add test-printf-posix2.
55527
55528         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55529         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55530         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55531         (decode_double): New function, copied from decode_long_double.
55532         (scale10_round_decimal_decoded): New function, extracted from
55533         scale10_round_decimal_long_double.
55534         (scale10_round_decimal_long_double): Use it.
55535         (scale10_round_decimal_double): New function.
55536         (floorlog10): New function.
55537         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55539         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55541         gl_PRINTF_ENOMEM and test its result. Invoke
55542         gl_PREREQ_VASNPRINTF_ENOMEM.
55543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55550         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55551         * modules/snprintf-posix (Depends-on): Likewise.
55552         * modules/sprintf-posix (Depends-on): Likewise.
55553         * modules/vasnprintf-posix (Depends-on): Likewise.
55554         * modules/vasprintf-posix (Depends-on): Likewise.
55555         * modules/vfprintf-posix (Depends-on): Likewise.
55556         * modules/vsnprintf-posix (Depends-on): Likewise.
55557         * modules/vsprintf-posix (Depends-on): Likewise.
55558         * doc/functions/fprintf.texi: Update.
55559         * doc/functions/printf.texi: Update.
55560         * doc/functions/snprintf.texi: Update.
55561         * doc/functions/sprintf.texi: Update.
55562         * doc/functions/vfprintf.texi: Update.
55563         * doc/functions/vprintf.texi: Update.
55564         * doc/functions/vsnprintf.texi: Update.
55565         * doc/functions/vsprintf.texi: Update.
55566
55567 2007-11-03  Bruno Haible  <bruno@clisp.org>
55568
55569         * modules/frexp-nolibm-tests: New file.
55570
55571         * modules/frexp-nolibm: New file.
55572         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55573
55574 2007-11-03  Bruno Haible  <bruno@clisp.org>
55575
55576         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55577         value is C99 compliant.
55578         Needed for OSF/1 5.1.
55579
55580 2007-11-03  Bruno Haible  <bruno@clisp.org>
55581
55582         Fix out-of-memory handling of vasnprintf.
55583         * lib/printf-parse.c: Include <errno.h>.
55584         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55585         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55586         is already set.
55587
55588 2007-11-02  Eric Blake  <ebb9@byu.net>
55589
55590         Fix tests on cygwin.
55591         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55592
55593 2007-11-01  Bruno Haible  <bruno@clisp.org>
55594
55595         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55596         warning.
55597         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55598         needed for POSIX compatibility.
55599
55600 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55601
55602         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55603         for compatibility with GNU.
55604
55605 2007-11-01  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55608         (putenv): Renamed from rpl_putenv. Change argument type from
55609         'const char *' to 'char *'.
55610         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55611         of defining putenv in config.h, just set REPLACE_PUTENV.
55612         * modules/putenv (Depends-on): Add stdlib.
55613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55614         (Include): Use <stdlib.h>.
55615         * lib/stdlib.in.h (putenv): New declaration.
55616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55617         REPLACE_PUTENV.
55618         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55619         REPLACE_PUTENV.
55620         Needed for MacOS X 10.5.0.
55621         Reported by Peter O'Gorman <peter@pogma.com>.
55622
55623 2007-11-01  Jim Meyering  <meyering@redhat.com>
55624
55625         Treat an empty date string exactly like "0".
55626         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55627         if the remaining date string (to be parsed) is empty, use "0".
55628         Reported by Mischa Molhoek and discussed in this thread:
55629         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55630
55631 2007-10-31  Bruno Haible  <bruno@clisp.org>
55632
55633         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55634         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55635         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55636         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55637         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55638         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55639
55640 2007-10-31  Bruno Haible  <bruno@clisp.org>
55641
55642         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55643         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55644         (AC_TYPE_LONG_LONG_INT): Use it.
55645         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55646         it as well.
55647         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55648         to m4/longlong.m4.
55649         * modules/stdint (Files): Remove m4/ulonglong.m4.
55650         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55651         m4/ulonglong.m4.
55652         * modules/strtoumax (Files): Likewise.
55653
55654 2007-10-30  Bruno Haible  <bruno@clisp.org>
55655
55656         * modules/xvasprintf-posix: New file.
55657         Suggested by Eric Blake.
55658
55659 2007-10-30  Bruno Haible  <bruno@clisp.org>
55660
55661         * modules/xprintf-posix-tests: New file.
55662         * tests/test-xprintf-posix.sh: New file.
55663         * tests/test-xprintf-posix.c: New file.
55664         * tests/test-xfprintf-posix.c: New file.
55665
55666         * modules/xprintf-posix: New file.
55667
55668 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55669
55670         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55671         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55672         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55673
55674 2007-10-29  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55677         contain the special marker '_cv_'.
55678         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55679         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55680         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55681         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55682         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55683         Reported by Ralf Wildenhues.
55684
55685 2007-10-29  Bruno Haible  <bruno@clisp.org>
55686
55687         * gnulib-tool (func_import): When --lgpl is not specified, set
55688         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55689         GPLv3.
55690         Reported by Simon Josefsson.
55691
55692 2007-10-28  Bruno Haible  <bruno@clisp.org>
55693
55694         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55695         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55696         HAVE_DECL_ISFINITE.
55697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55698         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55699         HAVE_DECL_ISFINITE.
55700
55701 2007-10-28  Bruno Haible  <bruno@clisp.org>
55702
55703         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55704         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55705
55706 2007-10-28  Bruno Haible  <bruno@clisp.org>
55707
55708         Fix link errors with Sun C 5.0 on Solaris 10.
55709         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55710         function is declared but not present in the compiler's libm.
55711         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55712         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55713         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55714         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55715         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55716         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55717         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55719         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55720         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55721         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55722         HAVE_DECL_FLOORL.
55723
55724 2007-10-28  Bruno Haible  <bruno@clisp.org>
55725
55726         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55727         gl_FUNC_FLOORL. Cache the result.
55728         (gl_FUNC_FLOORL): Use it.
55729         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55730         gl_FUNC_CEILL. Cache the result.
55731         (gl_FUNC_CEILL): Use it.
55732
55733         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55734         gl_FUNC_FLOOR. Cache the result.
55735         (gl_FUNC_FLOOR): Use it.
55736         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55737         gl_FUNC_CEIL. Cache the result.
55738         (gl_FUNC_CEIL): Use it.
55739
55740         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55741         gl_FUNC_FLOORF. Cache the result.
55742         (gl_FUNC_FLOORF): Use it.
55743         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55744         gl_FUNC_CEILF. Cache the result.
55745         (gl_FUNC_CEILF): Use it.
55746
55747 2007-10-28  Bruno Haible  <bruno@clisp.org>
55748
55749         * gnulib-tool: Allow specifying the LGPL version number through
55750         --lgpl=2 or --lgpl=3.
55751         (func_usage): Document --lgpl with argument.
55752         Handle --lgpl=... arguments.
55753         (func_import): Recognize also gl_LGPL calls with an argument. When
55754         --lgpl=2 is used and the module's license is just LGPL, report an
55755         error. Set sed_transform_lib_file according to the lgpl variable. In
55756         the generated files, use --lgpl or gl_LGPL invocations with argument,
55757         if necessary.
55758         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55759         an LGPv2+ license.
55760         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55761         gl_LGPL macro.
55762
55763 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55764             Bruno Haible  <bruno@clisp.org>
55765
55766         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55767         (u16_uctomb_aux): Likewise.
55768         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55769         !HAVE_INLINE.
55770         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55771
55772 2007-10-28  Bruno Haible  <bruno@clisp.org>
55773
55774         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55775         Invoke AM_GETTEXT_OPTION if it exists.
55776         * modules/vasprintf: Likewise.
55777         * modules/verror: Likewise.
55778         * modules/xprintf: Likewise.
55779         * modules/xvasprintf: Likewise.
55780
55781 2007-10-27  Ben Pfaff  <blp@gnu.org>
55782
55783         * lib/math.in.h: Define isfinite macro and prototypes for
55784         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55785         implementations.
55786         * m4/math_h.m4: New substitutions for isfinite module.
55787         * lib/isfinite.c: New file.
55788         * m4/isfinite.m4: New file.
55789         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55790         * modules/isfinite: New file.
55791         * modules/isfinite-tests: New file.
55792         * tests/tests-isfinite.c: New file.
55793         * doc/functions/isfinite.texi: Mention isfinite module.
55794         * MODULES.html.sh: Mention new module.
55795
55796 2007-10-27  Ben Pfaff  <blp@gnu.org>
55797
55798         Ralf Wildenhues reported that Tru64 4.0D declares the round
55799         functions but does not have definitions.
55800         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55801         cannot be found in any library, set the output variable to
55802         "missing" instead of "".
55803         * m4/round.m4: Also use our substitute if we cannot find round in
55804         any library, even if it is declared.
55805         * m4/roundf.m4: Likewise for roundf.
55806         * m4/roundl.m4: Likewise for roundl.
55807         * lib/math.in.h: Undefine roundf, round, roundl before defining
55808         their replacements, to allow for hypothetical systems where these
55809         may be defined as macros but not available in libraries.
55810
55811 2007-10-27  Bruno Haible  <bruno@clisp.org>
55812
55813         * doc/gnulib.texi: Invoke @firstparagraphindent.
55814         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55815         changes in gnulib.
55816         (Source changes): New section.
55817
55818 2007-10-26  Bruno Haible  <bruno@clisp.org>
55819
55820         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55821         borrowed from autoconf.
55822
55823 2007-10-26  Bruno Haible  <bruno@clisp.org>
55824
55825         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55826         strerror returned the empty string. Needed on HP-UX 11.00.
55827
55828 2007-10-24  Micah Cowan  <micah@cowan.name>
55829
55830         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55831         * build-aux/bootstrap: Remove support for now-unnecessary option,
55832         --cvs-user, and envvars CVS_USER, CVS_RSH.
55833
55834 2007-10-24  Jim Meyering  <meyering@redhat.com>
55835
55836         Avoid diagnostics from sha1sum when there is no cached checksum.
55837         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55838         if the po.s1 file hasn't been created yet.
55839
55840         * build-aux/bootstrap: Sync from coreutils:
55841         2007-10-24  Jim Meyering  <meyering@redhat.com>
55842         Get gnulib from the git repository, not from an obsolete cvs one.
55843         * build-aux/bootstrap: Suggestion from Micah Cowan.
55844         2007-10-04  Jim Meyering  <jim@meyering.net>
55845         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55846         (update_po_files): Work also when there are no .po files in po/.
55847
55848 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         * README: Append ".git" to git and cg examples.
55851         Problem reported by Benoit Sigoure.
55852
55853 2007-10-23  Micah Cowan  <micah@cowan.name>
55854
55855         * users.txt: Add wget.
55856
55857 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55858
55859         Fix linking of some unistdio tests on FreeBSD.
55860         * modules/unistdio/u16-vsnprintf-tests
55861         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55862         * modules/unistdio/u16-vsprintf-tests
55863         (test_u16_vsnprintf1_LDADD): Likewise.
55864         * modules/unistdio/u32-vsnprintf-tests
55865         (test_u32_vsnprintf1_LDADD): Likewise.
55866         * modules/unistdio/u32-vsprintf-tests
55867         (test_u32_vsprintf1_LDADD): Likewise.
55868         * modules/unistdio/u8-vsnprintf-tests
55869         (test_u8_vsnprintf1_LDADD): Likewise.
55870         * modules/unistdio/u8-vsprintf-tests
55871         (test_u8_vsprintf1_LDADD): Likewise.
55872         * modules/unistdio/ulc-vsnprintf-tests
55873         (test_ulc_vsnprintf1_LDADD): Likewise.
55874         * modules/unistdio/ulc-vsprintf-tests
55875         (test_ulc_vsprintf1_LDADD): Likewise.
55876
55877         Fix linking of some uniconv tests on FreeBSD.
55878         * modules/uniconv/u16-conv-from-enc-tests
55879         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55880         * modules/uniconv/u16-conv-to-enc-tests
55881         (test_u16_conv_to_enc_LDADD): Likewise.
55882         * modules/uniconv/u16-strconv-from-enc-tests
55883         (test_u16_strconv_from_enc_LDADD): Likewise.
55884         * modules/uniconv/u16-strconv-to-enc-tests
55885         (test_u16_strconv_to_enc_LDADD): Likewise.
55886         * modules/uniconv/u32-conv-from-enc-tests
55887         (test_u32_conv_from_enc_LDADD): Likewise.
55888         * modules/uniconv/u32-conv-to-enc-tests
55889         (test_u32_conv_to_enc_LDADD): Likewise.
55890         * modules/uniconv/u32-strconv-from-enc-tests
55891         (test_u32_strconv_from_enc_LDADD): Likewise.
55892         * modules/uniconv/u32-strconv-to-enc-tests
55893         (test_u32_strconv_to_enc_LDADD): Likewise.
55894         * modules/uniconv/u8-conv-from-enc-tests
55895         (test_u8_conv_from_enc_LDADD): Likewise.
55896         * modules/uniconv/u8-conv-to-enc-tests
55897         (test_u8_conv_to_enc_LDADD): Likewise.
55898         * modules/uniconv/u8-strconv-from-enc-tests
55899         (test_u8_strconv_from_enc_LDADD): Likewise.
55900         * modules/uniconv/u8-strconv-to-enc-tests
55901         (test_u8_strconv_to_enc_LDADD): Likewise.
55902
55903 2007-10-22  Bruno Haible  <bruno@clisp.org>
55904
55905         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55906         size.
55907
55908 2007-10-22  Eric Blake  <ebb9@byu.net>
55909
55910         Tweak x*printf documentation.
55911         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55912         variable name and comments.
55913         Suggested by Bruno Haible.
55914
55915 2007-10-22  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/acl.c (copy_acl): Fix file name in comment.
55918
55919 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55920
55921         Fix Tru64 problem with stdbool.h.
55922         * lib/stdbool.in.h (false, true):
55923         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55924         Don't declare as an enum in this situation; it runs afoul of Tru64.
55925         Problem reported by Steven M. Schweda in
55926         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55927
55928 2007-10-22  Eric Blake  <ebb9@byu.net>
55929
55930         Also wrap vf?printf.
55931         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55932         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55933         (xvprintf, xvfprintf): New functions.
55934
55935 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55936
55937         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55938         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55939
55940         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55941         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55942
55943 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55944
55945         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55946         by Bruno Haible.
55947
55948 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55949
55950         * lib/getloadavg.c
55951         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55952         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55953
55954         * tests/test-i-ring.c: Work for C89.
55955
55956 2007-10-22  Bruno Haible  <bruno@clisp.org>
55957
55958         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55959         -1u, in preprocessor expression, so that we don't test for the bug
55960         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55961         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55962
55963 2007-10-22  Eric Blake  <ebb9@byu.net>
55964
55965         * tests/test-yesno.sh: Silence stderr during test.
55966
55967 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55968
55969         * modules/crypto/gc-camellia: New file.
55970
55971         * m4/gc-camellia.m4: New file.
55972
55973         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55974
55975         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55976
55977 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55978
55979         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55980         --help to stdout.  Reported by sms@antinode.org (Steven
55981         M. Schweda).
55982
55983 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55984
55985         * users.txt: Fix link to libksba.
55986
55987 2007-10-21  Ben Pfaff  <blp@gnu.org>
55988
55989         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55990         round.c roundf implementation that depends on floorf and ceilf to
55991         be tested unconditionally.
55992
55993 2007-10-21  Ben Pfaff  <blp@gnu.org>
55994
55995         * m4/check-libm-func.m4: Removed.
55996         * m4/check-math-lib.m4: New file.
55997         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55998         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55999         definition and lack of AC_LIBOBJ([roundf]).
56000         * m4/roundl.m4: Ditto, and similarly for roundl.
56001         * modules/round: Reference new m4 file.
56002         * modules/roundf: Ditto.
56003         * modules/roundl: Ditto.
56004         * tests/test-round2.c (main): Use ROUND instead of round.
56005         Bug report from Bruno Haible.
56006
56007 2007-10-21  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56010         context.
56011
56012 2007-10-21  Bruno Haible  <bruno@clisp.org>
56013
56014         * tests/test-wcwidth.c (main): Allow negative result for some control
56015         characters.
56016
56017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56018         Needed on OSF/1 5.1.
56019
56020 2007-10-21  Bruno Haible  <bruno@clisp.org>
56021
56022         * tests/test-floorf1.c: Include isnanf.h.
56023         (main): Use isnanf() instead of isnan().
56024         * tests/test-ceilf1.c: Include isnanf.h.
56025         (main): Use isnanf() instead of isnan().
56026         * tests/test-truncf1.c: Include isnanf.h.
56027         (main): Use isnanf() instead of isnan().
56028         * tests/test-roundf1.c: Include isnanf.h.
56029         (main): Use isnanf() instead of isnan().
56030
56031 2007-10-21  Eric Blake  <ebb9@byu.net>
56032
56033         * users.txt: Update URL for m4.
56034
56035 2007-10-21  Bruno Haible  <bruno@clisp.org>
56036
56037         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56038
56039 2007-10-21  Bruno Haible  <bruno@clisp.org>
56040
56041         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56042         Git's management files if the CVS files are not present.
56043
56044 2007-10-20  Bruno Haible  <bruno@clisp.org>
56045
56046         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56047         gcc-3.4.x.
56048
56049 2007-10-20  Ben Pfaff  <blp@gnu.org>
56050
56051         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56052         implementations.
56053         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56054         * lib/round.c: New file.
56055         * lib/roundf.c: New file.
56056         * lib/roundl.c: New file.
56057         * m4/round.m4: New file.
56058         * m4/roundf.m4: New file.
56059         * m4/roundl.m4: New file.
56060         * m4/check-libm-func-m4: New file.
56061         * modules/math: Replace round, roundf, roundl related @VARS@ in
56062         math.in.h.
56063         * modules/round: New file.
56064         * modules/round-tests: New file.
56065         * modules/roundf: New file.
56066         * modules/roundf-tests: New file.
56067         * modules/roundl: New file.
56068         * modules/roundl-tests: New file.
56069         * tests/test-round1.c: New file.
56070         * tests/test-round2.c: New file.
56071         * tests/test-roundf1.c: New file.
56072         * tests/test-roundf2.c: New file.
56073         * tests/test-roundl.c: New file.
56074         * doc/functions/round.texi: Mention round module.
56075         * doc/functions/roundf.texi: Mention roundf module.
56076         * doc/functions/roundl.texi: Mention roundl module.
56077         * MODULES.html.sh: Mention new modules.
56078         Thanks to Bruno Haible for suggestions.
56079
56080 2007-10-20  Jim Meyering  <meyering@redhat.com>
56081
56082         * lib/xprintf.c: Include <config.h> unconditionally.
56083
56084         Change xprintf's license to GPL.
56085         * modules/xprintf (License): s/LGPL/GPL/, since this module
56086         depends on modules (exit and exitfail) which are GPL.
56087         Suggestion from Bruno Haible.
56088
56089         xprintf fixes.
56090         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56091         Use a clearer diagnostic.
56092         Patch from Bruno Haible.
56093
56094 2007-10-20  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56097         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56098         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56099
56100 2007-10-20  Bruno Haible  <bruno@clisp.org>
56101
56102         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56103         precision in the comparison result > x - 1 or similar.
56104         * tests/test-ceilf2.c (correct_result_p): Likewise.
56105         * tests/test-truncf2.c (correct_result_p): Likewise.
56106         * tests/test-trunc2.c (correct_result_p): Likewise.
56107         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56108
56109 2007-10-20  Bruno Haible  <bruno@clisp.org>
56110
56111         * modules/ceil: New file.
56112         * m4/ceil.m4: New file.
56113         * doc/functions/ceil.texi: Mention the 'ceil' module.
56114
56115 2007-10-20  Bruno Haible  <bruno@clisp.org>
56116
56117         * modules/floor: New file.
56118         * m4/floor.m4: New file.
56119         * doc/functions/floor.texi: Mention the 'floor' module.
56120
56121 2007-10-20  Bruno Haible  <bruno@clisp.org>
56122
56123         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56124         of %a.
56125         * modules/floorf-tests (Depends-on): Likewise.
56126         * modules/truncf-tests (Depends-on): Likewise.
56127         * modules/trunc-tests (Depends-on): Likewise.
56128         Reported by Ben Pfaff.
56129
56130 2007-10-19  Jim Meyering  <meyering@redhat.com>
56131
56132         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56133         Don't bother testing specific errno values.  Just test ferror.
56134
56135         New module: xprintf
56136         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56137
56138 2007-10-19  Bruno Haible  <bruno@clisp.org>
56139
56140         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56141         syntax.
56142         * modules/javaexec (Makefile.am): Likewise.
56143         * modules/relocatable-prog (Makefile.am): Likewise.
56144         Suggested by Jim Meyering.
56145
56146 2007-10-18  Bruno Haible  <bruno@clisp.org>
56147
56148         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56149         Reported by Jim Meyering.
56150
56151 2007-10-18  Eric Blake  <ebb9@byu.net>
56152
56153         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56154
56155 2007-10-18  Bruno Haible  <bruno@clisp.org>
56156
56157         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56158         the format string into writable memory. Needed in Fortify conditions.
56159
56160 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56161             Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56164         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56165         * modules/trim (Depends-on): Add mbchar.
56166         (configure.ac): Add gl_FUNC_MBRTOWC.
56167         (Makefile.am): Augment lib_SOURCES.
56168
56169 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56170
56171         Modify glob.c to use fstatat and dirfd, to simplify it.
56172         Suggested by Eric Blake.
56173         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56174         Don't include <stdbool.h>; not used.
56175         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56176         (link_exists_p): Simplify implementation, since we can now assume
56177         dirfd and fstatat.
56178         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56179
56180 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56181
56182         * gnulib-tool (func_get_dependencies): Fix sed script to
56183         match only tests.
56184
56185 2007-10-17  Bruno Haible  <bruno@clisp.org>
56186
56187         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56188         allow locale names without encoding suffix.
56189         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56190         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56191
56192 2007-10-16  Bruno Haible  <bruno@clisp.org>
56193
56194         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56195         * lib/getgroups.c (getgroups): Likewise.
56196         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56197
56198 2007-10-16  Bruno Haible  <bruno@clisp.org>
56199
56200         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56201         * modules/malloc-posix (License): Likewise.
56202         * modules/realloc-posix (License): Likewise.
56203         * modules/calloc-posix (License): Likewise.
56204         * modules/intprops (License): Change from GPL to LGPL, with
56205         Paul Eggert's approval.
56206
56207 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56208
56209         Merge glibc changes into lib/glob.c.
56210
56211         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56212         2007-10-15 04:59:03 UTC.  Here are the changes:
56213
56214         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56215
56216         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56217
56218         * lib/glob.c: Add some branch prediction throughout.
56219
56220         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56221
56222         [BZ #5103]
56223         * lib/glob.c (glob): Recognize patterns starting \/.
56224
56225         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56226
56227         [BZ #3996]
56228         * lib/glob.c (attribute_hidden): Define if not defined.
56229         (glob): Unescape dirname, filename or username when needed and not
56230         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56231         is NULL.  Handle unescaped [ in pattern without closing ].
56232         Don't pass GLOB_CHECK down to recursive glob for directories.
56233         (__glob_pattern_type): New function.
56234         (__glob_pattern_p): Implement using __glob_pattern_type.
56235         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56236         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56237         Remove unreachable code.
56238
56239         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56240
56241         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56242         explain why there are no leaks.
56243
56244         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56245
56246         [BZ #3253]
56247         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56248         time, rather allocate increasingly bigger arrays of pointers, if
56249         possible with alloca, if too large with malloc.
56250
56251 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56252
56253         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56254         Problem reported by H.Merijn Brand in
56255         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56256         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56257         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56258
56259 2007-10-15  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56262         with explicit rpl_ prefix.
56263         * lib/fopen.c (fopen): Likewise.
56264         * lib/freopen.c (freopen): Likewise.
56265         * lib/iconv.c (iconv): Likewise.
56266         * lib/iconv_close.c (iconv_close): Likewise.
56267
56268 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56269
56270         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56271
56272 2007-10-15  Bruno Haible  <bruno@clisp.org>
56273
56274         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56275         <stddef.h> instead of <stdlib.h> since we only need NULL.
56276         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56277
56278 2007-10-15  Bruno Haible  <bruno@clisp.org>
56279
56280         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56281         Replace paragraph talking about LIBOBJS.
56282         Reported by Colin Watson <cjwatson@debian.org>.
56283
56284 2007-10-15  Bruno Haible  <bruno@clisp.org>
56285
56286         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56287         <stdlib.h> before using NULL.
56288
56289 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56290
56291         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56292         Reported by Albert Chin <china@thewrittenword.com>.
56293
56294 2007-10-14  Bruno Haible  <bruno@clisp.org>
56295
56296         * modules/iconv_open-utf-tests: New file.
56297         * tests/test-iconv-utf.c: New file.
56298
56299         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56300         * modules/iconv_open-utf: New file.
56301         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56302         (iconv, iconv_close): New declarations.
56303         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56304         be defined.
56305         (iconv_open): Add special handling of conversion between UTF-8 and
56306         UTF-{16,32}{BE,LE}.
56307         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56308         * lib/iconv_close.c: New file.
56309         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56310         gl_FUNC_ICONV_OPEN.
56311         (gl_FUNC_ICONV_OPEN): Use it.
56312         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56313         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56314         and REPLACE_ICONV_UTF.
56315         * modules/iconv_open (Depends-on): Add c-strcase.
56316         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56317         ICONV_CONST.
56318         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56319
56320 2007-10-13  Albert Chin  <china@thewrittenword.com>
56321             Bruno Haible  <bruno@clisp.org>
56322
56323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56324         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56325
56326 2007-10-13  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56329         defined, use the ISO C99 inline semantics.
56330         * lib/argp.h (ARGP_EI): Likewise.
56331
56332 2007-10-13  Bruno Haible  <bruno@clisp.org>
56333
56334         Handle 'inline' change in gcc 4.3.0.
56335         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56336         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56337         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56338         argp_fmtstream_point): Disable 'extern' declaration if the function
56339         definition is going to be provided inline.
56340         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56341         semantics, not the ISO C99 inline semantics.
56342         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56343         'extern' declaration if the function definition is going to be provided
56344         inline.
56345         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56346         the GNU C inline semantics, not the ISO C99 inline semantics. With
56347         GCC 4.2, avoid a warning.
56348
56349 2007-10-13  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/freading.h (freading): Enable the use of __freading for
56352         glibc >= 2.7.
56353         * lib/freading.c (freading): Likewise.
56354
56355 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56356
56357         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56358         "warning: C99 inline functions are not supported; using GNU89".
56359
56360 2007-10-12  Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56363         of 2.
56364         * tests/test-ceilf2.c: New file.
56365         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56366
56367         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56368         * modules/ceilf-tests: Update.
56369
56370 2007-10-12  Bruno Haible  <bruno@clisp.org>
56371
56372         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56373         of 2.
56374         * tests/test-floorf2.c: New file.
56375         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56376
56377         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56378         * modules/floorf-tests: Update.
56379
56380 2007-10-12  Bruno Haible  <bruno@clisp.org>
56381
56382         * tests/test-trunc2.c: New file.
56383         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56384
56385         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56386         * modules/trunc-tests: Update.
56387
56388 2007-10-12  Bruno Haible  <bruno@clisp.org>
56389
56390         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56391         of 2.
56392         * tests/test-truncf2.c: New file.
56393         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56394
56395         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56396         * modules/truncf-tests: Update.
56397
56398 2007-10-11  Eric Blake  <ebb9@byu.net>
56399
56400         Don't claim strerror is broken on Interix.
56401         * doc/functions/strerror.texi (strerror): Known broken systems are
56402         now Solaris 8, and not Interix.
56403         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56404         Interix on cross-compile.
56405         Reported by Martin Koeppe in
56406         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56407
56408 2007-10-11  Bruno Haible  <bruno@clisp.org>
56409
56410         * modules/i-ring-tests: New file.
56411         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56412         instead of assert.
56413
56414 2007-10-11  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/filenamecat-tests: New file.
56417         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56418         * lib/filenamecat.c: Remove test code.
56419
56420 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56421
56422         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56423
56424         * lib/strerror.c: Include <string.h> always, to test interface,
56425         and to remove the need for the dummy.
56426         Include intprops.h to compute width instead of doing it ourselves
56427         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56428         (strerror): Define it to return NULL if there's no system strerror.
56429         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56430         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56431         ancient pre-strerror Unix systems well any more.  Saying "unknown
56432         system error" is enough.
56433         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56434         simpler strerror.c implementation.
56435         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56436         Simplify the tests to reflect the simpler strerror implementation.
56437         * modules/strerror (Depends-on): Add intprops.
56438
56439 2007-10-09  Eric Blake  <ebb9@byu.net>
56440
56441         Silence test-fpending.
56442         * modules/fpending-tests (Files): Add wrapper script.
56443         * tests/test-fpending.sh: New file.
56444
56445 2007-10-09  Bruno Haible  <bruno@clisp.org>
56446
56447         * MODULES.html.sh (func_module): Don't create a hyperlink for
56448         function names like 'printf_frexp'.
56449         (Misc): Add crc, memxor.
56450         (Characteristics of floating types): New section.
56451         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56452         isnanf-nolibm, signbit, trunc, truncf, truncl.
56453         (Enhancements for ISO C 99 functions): New subsection Input/output.
56454         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56455         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56456         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56457         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56458         (Enhancements for POSIX:2001 functions): Add chdir-long.
56459         (File system functions): Add areadlink, chdir-safer, read-file.
56460         Remove cycle-check.
56461         (File system as inode set): New section.
56462         (Date and time): Add gethrxtime.
56463         (Multithreading): Add openmp.
56464         (Internationalization functions): Add localename.
56465         (Unicode string functions): Add unistr/u*-mbsnlen.
56466         (Support for maintaining and releasing projects): Add git-version-gen.
56467         (Lone files): Remove directories.
56468
56469 2007-10-08  Ben Pfaff  <blp@gnu.org>
56470
56471         * lib/xmalloca.h: Fix typo in comment.
56472
56473 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56474
56475         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56476         when avoiding problems with integer overflow.  Use a portable test
56477         instead.
56478
56479 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56480
56481         * modules/dummy (License): Change to LGPLv2+.
56482         * modules/float (License): Likewise
56483         * modules/realloc (License): Likewise
56484         * modules/stdlib (License): Likewise
56485
56486 2007-10-07  Bruno Haible  <bruno@clisp.org>
56487
56488         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56489         * floor.c (TWO_MANT_DIG): Likewise.
56490         * ceil.c (TWO_MANT_DIG): Likewise.
56491         Reported by Ben Pfaff.
56492
56493 2007-10-07  Bruno Haible  <bruno@clisp.org>
56494
56495         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56496         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56497         * lib/frexp.c (FUNC): Likewise.
56498         * lib/printf-frexp.h (printf_frexp): Likewise.
56499         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56500         * lib/printf-frexp.c (FUNC): Likewise.
56501         Suggested by Jim Meyering.
56502
56503 2007-10-07  Jim Meyering  <meyering@redhat.com>
56504
56505         Make xnanosleep's integer overflow test more robust.
56506         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56507         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56508
56509 2007-10-07  Bruno Haible  <bruno@clisp.org>
56510
56511         * NEWS: Mention the license change.
56512
56513         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56514         abbreviations in the modules files.
56515
56516         Change copyright notice from GPLv2+ to GPLv3+.
56517         * README: Change copyright notice.
56518         * MODULES.html.sh: Likewise.
56519         * build-aux/bootstrap.conf: Likewise.
56520         * build-aux/config.libpath: Likewise.
56521         * build-aux/csharpcomp.sh.in: Likewise.
56522         * build-aux/csharpexec.sh.in: Likewise.
56523         * build-aux/install-reloc: Likewise.
56524         * build-aux/javacomp.sh.in: Likewise.
56525         * build-aux/javaexec.sh.in: Likewise.
56526         * build-aux/ldd.sh.in: Likewise.
56527         * build-aux/reloc-ldflags: Likewise.
56528         * build-aux/relocatable.sh.in: Likewise.
56529         * build-aux/x-to-1.in: Likewise.
56530         * check-module: Likewise.
56531         * config/srclistvars.sh: Likewise.
56532         * gnulib-tool: Likewise.
56533         * lib/acl-internal.h: Likewise.
56534         * lib/acl.c: Likewise.
56535         * lib/acl.h: Likewise.
56536         * lib/acl_entries.c: Likewise.
56537         * lib/areadlink-with-size.c: Likewise.
56538         * lib/areadlink.c: Likewise.
56539         * lib/areadlink.h: Likewise.
56540         * lib/argmatch.c: Likewise.
56541         * lib/argmatch.h: Likewise.
56542         * lib/argp-ba.c: Likewise.
56543         * lib/argp-eexst.c: Likewise.
56544         * lib/argp-fmtstream.c: Likewise.
56545         * lib/argp-fmtstream.h: Likewise.
56546         * lib/argp-fs-xinl.c: Likewise.
56547         * lib/argp-help.c: Likewise.
56548         * lib/argp-namefrob.h: Likewise.
56549         * lib/argp-parse.c: Likewise.
56550         * lib/argp-pin.c: Likewise.
56551         * lib/argp-pv.c: Likewise.
56552         * lib/argp-pvh.c: Likewise.
56553         * lib/argp-xinl.c: Likewise.
56554         * lib/argp.h: Likewise.
56555         * lib/at-func.c: Likewise.
56556         * lib/atanl.c: Likewise.
56557         * lib/backupfile.c: Likewise.
56558         * lib/backupfile.h: Likewise.
56559         * lib/basename.c: Likewise.
56560         * lib/binary-io.h: Likewise.
56561         * lib/byteswap.in.h: Likewise.
56562         * lib/c-stack.c: Likewise.
56563         * lib/c-stack.h: Likewise.
56564         * lib/c-strcasestr.c: Likewise.
56565         * lib/c-strcasestr.h: Likewise.
56566         * lib/c-strstr.c: Likewise.
56567         * lib/c-strstr.h: Likewise.
56568         * lib/c-strtod.c: Likewise.
56569         * lib/calloc.c: Likewise.
56570         * lib/canon-host.c: Likewise.
56571         * lib/canon-host.h: Likewise.
56572         * lib/canonicalize-lgpl.c: Likewise.
56573         * lib/canonicalize.c: Likewise.
56574         * lib/canonicalize.h: Likewise.
56575         * lib/ceil.c: Likewise.
56576         * lib/ceilf.c: Likewise.
56577         * lib/ceill.c: Likewise.
56578         * lib/chdir-long.c: Likewise.
56579         * lib/chdir-long.h: Likewise.
56580         * lib/chdir-safer.c: Likewise.
56581         * lib/chdir-safer.h: Likewise.
56582         * lib/chown.c: Likewise.
56583         * lib/classpath.c: Likewise.
56584         * lib/classpath.h: Likewise.
56585         * lib/clean-temp.c: Likewise.
56586         * lib/clean-temp.h: Likewise.
56587         * lib/cloexec.c: Likewise.
56588         * lib/close-stream.c: Likewise.
56589         * lib/closein.c: Likewise.
56590         * lib/closein.h: Likewise.
56591         * lib/closeout.c: Likewise.
56592         * lib/closeout.h: Likewise.
56593         * lib/concat-filename.c: Likewise.
56594         * lib/copy-file.c: Likewise.
56595         * lib/copy-file.h: Likewise.
56596         * lib/count-one-bits.h: Likewise.
56597         * lib/crc.c: Likewise.
56598         * lib/crc.h: Likewise.
56599         * lib/creat-safer.c: Likewise.
56600         * lib/csharpcomp.c: Likewise.
56601         * lib/csharpcomp.h: Likewise.
56602         * lib/csharpexec.c: Likewise.
56603         * lib/csharpexec.h: Likewise.
56604         * lib/cycle-check.c: Likewise.
56605         * lib/cycle-check.h: Likewise.
56606         * lib/diacrit.c: Likewise.
56607         * lib/diacrit.h: Likewise.
56608         * lib/diffseq.h: Likewise.
56609         * lib/dirchownmod.c: Likewise.
56610         * lib/dirent.in.h: Likewise.
56611         * lib/dirfd.c: Likewise.
56612         * lib/dirfd.h: Likewise.
56613         * lib/dirname.c: Likewise.
56614         * lib/dirname.h: Likewise.
56615         * lib/dummy.c: Likewise.
56616         * lib/dup-safer.c: Likewise.
56617         * lib/dup2.c: Likewise.
56618         * lib/eealloc.h: Likewise.
56619         * lib/error.c: Likewise.
56620         * lib/error.h: Likewise.
56621         * lib/euidaccess.c: Likewise.
56622         * lib/exclude.c: Likewise.
56623         * lib/exclude.h: Likewise.
56624         * lib/execute.c: Likewise.
56625         * lib/execute.h: Likewise.
56626         * lib/exitfail.c: Likewise.
56627         * lib/exitfail.h: Likewise.
56628         * lib/expl.c: Likewise.
56629         * lib/fatal-signal.c: Likewise.
56630         * lib/fatal-signal.h: Likewise.
56631         * lib/fbufmode.c: Likewise.
56632         * lib/fbufmode.h: Likewise.
56633         * lib/fchdir.c: Likewise.
56634         * lib/fchmodat.c: Likewise.
56635         * lib/fchownat.c: Likewise.
56636         * lib/fcntl--.h: Likewise.
56637         * lib/fcntl-safer.h: Likewise.
56638         * lib/fcntl.in.h: Likewise.
56639         * lib/fd-safer.c: Likewise.
56640         * lib/fflush.c: Likewise.
56641         * lib/file-has-acl.c: Likewise.
56642         * lib/file-set.c: Likewise.
56643         * lib/file-type.c: Likewise.
56644         * lib/file-type.h: Likewise.
56645         * lib/fileblocks.c: Likewise.
56646         * lib/filemode.c: Likewise.
56647         * lib/filemode.h: Likewise.
56648         * lib/filename.h: Likewise.
56649         * lib/filenamecat.c: Likewise.
56650         * lib/filenamecat.h: Likewise.
56651         * lib/findprog.c: Likewise.
56652         * lib/findprog.h: Likewise.
56653         * lib/float.in.h: Likewise.
56654         * lib/floor.c: Likewise.
56655         * lib/floorf.c: Likewise.
56656         * lib/floorl.c: Likewise.
56657         * lib/fopen-safer.c: Likewise.
56658         * lib/fopen.c: Likewise.
56659         * lib/fpending.c: Likewise.
56660         * lib/fpending.h: Likewise.
56661         * lib/fprintf.c: Likewise.
56662         * lib/fprintftime.h: Likewise.
56663         * lib/fpucw.h: Likewise.
56664         * lib/fpurge.c: Likewise.
56665         * lib/fpurge.h: Likewise.
56666         * lib/freadable.c: Likewise.
56667         * lib/freadable.h: Likewise.
56668         * lib/freadahead.c: Likewise.
56669         * lib/freadahead.h: Likewise.
56670         * lib/freading.c: Likewise.
56671         * lib/freading.h: Likewise.
56672         * lib/free.c: Likewise.
56673         * lib/freopen.c: Likewise.
56674         * lib/frexp.c: Likewise.
56675         * lib/frexpl.c: Likewise.
56676         * lib/fseek.c: Likewise.
56677         * lib/fseterr.c: Likewise.
56678         * lib/fseterr.h: Likewise.
56679         * lib/fstatat.c: Likewise.
56680         * lib/fstrcmp.c: Likewise.
56681         * lib/fstrcmp.h: Likewise.
56682         * lib/fsusage.c: Likewise.
56683         * lib/fsusage.h: Likewise.
56684         * lib/ftell.c: Likewise.
56685         * lib/ftello.c: Likewise.
56686         * lib/fts-cycle.c: Likewise.
56687         * lib/fts.c: Likewise.
56688         * lib/fts_.h: Likewise.
56689         * lib/full-read.c: Likewise.
56690         * lib/full-read.h: Likewise.
56691         * lib/full-write.c: Likewise.
56692         * lib/full-write.h: Likewise.
56693         * lib/fwritable.c: Likewise.
56694         * lib/fwritable.h: Likewise.
56695         * lib/fwriteerror.c: Likewise.
56696         * lib/fwriteerror.h: Likewise.
56697         * lib/fwriting.c: Likewise.
56698         * lib/fwriting.h: Likewise.
56699         * lib/gcd.c: Likewise.
56700         * lib/gcd.h: Likewise.
56701         * lib/getcwd.c: Likewise.
56702         * lib/getdate.h: Likewise.
56703         * lib/getdate.y: Likewise.
56704         * lib/getdomainname.c: Likewise.
56705         * lib/getdomainname.h: Likewise.
56706         * lib/getgroups.c: Likewise.
56707         * lib/gethostname.c: Likewise.
56708         * lib/gethrxtime.c: Likewise.
56709         * lib/gethrxtime.h: Likewise.
56710         * lib/getloadavg.c: Likewise.
56711         * lib/getndelim2.c: Likewise.
56712         * lib/getndelim2.h: Likewise.
56713         * lib/getnline.c: Likewise.
56714         * lib/getnline.h: Likewise.
56715         * lib/getopt.c: Likewise.
56716         * lib/getopt.in.h: Likewise.
56717         * lib/getopt1.c: Likewise.
56718         * lib/getopt_int.h: Likewise.
56719         * lib/getpagesize.h: Likewise.
56720         * lib/getsubopt.c: Likewise.
56721         * lib/gettime.c: Likewise.
56722         * lib/getugroups.c: Likewise.
56723         * lib/getugroups.h: Likewise.
56724         * lib/getusershell.c: Likewise.
56725         * lib/gl_anyavltree_list1.h: Likewise.
56726         * lib/gl_anyavltree_list2.h: Likewise.
56727         * lib/gl_anyhash_list1.h: Likewise.
56728         * lib/gl_anyhash_list2.h: Likewise.
56729         * lib/gl_anylinked_list1.h: Likewise.
56730         * lib/gl_anylinked_list2.h: Likewise.
56731         * lib/gl_anyrbtree_list1.h: Likewise.
56732         * lib/gl_anyrbtree_list2.h: Likewise.
56733         * lib/gl_anytree_list1.h: Likewise.
56734         * lib/gl_anytree_list2.h: Likewise.
56735         * lib/gl_anytree_oset.h: Likewise.
56736         * lib/gl_anytreehash_list1.h: Likewise.
56737         * lib/gl_anytreehash_list2.h: Likewise.
56738         * lib/gl_array_list.c: Likewise.
56739         * lib/gl_array_list.h: Likewise.
56740         * lib/gl_array_oset.c: Likewise.
56741         * lib/gl_array_oset.h: Likewise.
56742         * lib/gl_avltree_list.c: Likewise.
56743         * lib/gl_avltree_list.h: Likewise.
56744         * lib/gl_avltree_oset.c: Likewise.
56745         * lib/gl_avltree_oset.h: Likewise.
56746         * lib/gl_avltreehash_list.c: Likewise.
56747         * lib/gl_avltreehash_list.h: Likewise.
56748         * lib/gl_carray_list.c: Likewise.
56749         * lib/gl_carray_list.h: Likewise.
56750         * lib/gl_linked_list.c: Likewise.
56751         * lib/gl_linked_list.h: Likewise.
56752         * lib/gl_linkedhash_list.c: Likewise.
56753         * lib/gl_linkedhash_list.h: Likewise.
56754         * lib/gl_list.c: Likewise.
56755         * lib/gl_list.h: Likewise.
56756         * lib/gl_oset.c: Likewise.
56757         * lib/gl_oset.h: Likewise.
56758         * lib/gl_rbtree_list.c: Likewise.
56759         * lib/gl_rbtree_list.h: Likewise.
56760         * lib/gl_rbtree_oset.c: Likewise.
56761         * lib/gl_rbtree_oset.h: Likewise.
56762         * lib/gl_rbtreehash_list.c: Likewise.
56763         * lib/gl_rbtreehash_list.h: Likewise.
56764         * lib/gl_sublist.c: Likewise.
56765         * lib/gl_sublist.h: Likewise.
56766         * lib/group-member.c: Likewise.
56767         * lib/group-member.h: Likewise.
56768         * lib/hard-locale.c: Likewise.
56769         * lib/hard-locale.h: Likewise.
56770         * lib/hash-pjw.c: Likewise.
56771         * lib/hash-pjw.h: Likewise.
56772         * lib/hash-triple.c: Likewise.
56773         * lib/hash.c: Likewise.
56774         * lib/hash.h: Likewise.
56775         * lib/human.c: Likewise.
56776         * lib/human.h: Likewise.
56777         * lib/i-ring.c: Likewise.
56778         * lib/i-ring.h: Likewise.
56779         * lib/idcache.c: Likewise.
56780         * lib/imaxabs.c: Likewise.
56781         * lib/imaxdiv.c: Likewise.
56782         * lib/inet_pton.c: Likewise.
56783         * lib/inet_pton.h: Likewise.
56784         * lib/intprops.h: Likewise.
56785         * lib/inttostr.c: Likewise.
56786         * lib/inttostr.h: Likewise.
56787         * lib/inttypes.in.h: Likewise.
56788         * lib/isapipe.c: Likewise.
56789         * lib/isdir.c: Likewise.
56790         * lib/isnan.c: Likewise.
56791         * lib/isnan.h: Likewise.
56792         * lib/isnanf.c: Likewise.
56793         * lib/isnanf.h: Likewise.
56794         * lib/isnanl-nolibm.h: Likewise.
56795         * lib/isnanl.c: Likewise.
56796         * lib/isnanl.h: Likewise.
56797         * lib/javacomp.c: Likewise.
56798         * lib/javacomp.h: Likewise.
56799         * lib/javaexec.c: Likewise.
56800         * lib/javaexec.h: Likewise.
56801         * lib/javaversion.c: Likewise.
56802         * lib/javaversion.h: Likewise.
56803         * lib/javaversion.java: Likewise.
56804         * lib/lbrkprop.h: Likewise.
56805         * lib/lchmod.h: Likewise.
56806         * lib/lchown.c: Likewise.
56807         * lib/ldexpl.c: Likewise.
56808         * lib/linebreak.c: Likewise.
56809         * lib/linebreak.h: Likewise.
56810         * lib/linebuffer.c: Likewise.
56811         * lib/linebuffer.h: Likewise.
56812         * lib/locale.in.h: Likewise.
56813         * lib/logl.c: Likewise.
56814         * lib/long-options.c: Likewise.
56815         * lib/long-options.h: Likewise.
56816         * lib/lstat.c: Likewise.
56817         * lib/lstat.h: Likewise.
56818         * lib/math.in.h: Likewise.
56819         * lib/mbchar.c: Likewise.
56820         * lib/mbchar.h: Likewise.
56821         * lib/mbfile.h: Likewise.
56822         * lib/mbiter.h: Likewise.
56823         * lib/mbscasecmp.c: Likewise.
56824         * lib/mbscasestr.c: Likewise.
56825         * lib/mbschr.c: Likewise.
56826         * lib/mbscspn.c: Likewise.
56827         * lib/mbslen.c: Likewise.
56828         * lib/mbsncasecmp.c: Likewise.
56829         * lib/mbsnlen.c: Likewise.
56830         * lib/mbspbrk.c: Likewise.
56831         * lib/mbspcasecmp.c: Likewise.
56832         * lib/mbsrchr.c: Likewise.
56833         * lib/mbssep.c: Likewise.
56834         * lib/mbsspn.c: Likewise.
56835         * lib/mbsstr.c: Likewise.
56836         * lib/mbstok_r.c: Likewise.
56837         * lib/mbswidth.c: Likewise.
56838         * lib/mbswidth.h: Likewise.
56839         * lib/mbuiter.h: Likewise.
56840         * lib/memcasecmp.c: Likewise.
56841         * lib/memcasecmp.h: Likewise.
56842         * lib/memchr.c: Likewise.
56843         * lib/memcmp.c: Likewise.
56844         * lib/memcoll.c: Likewise.
56845         * lib/memcoll.h: Likewise.
56846         * lib/memcpy.c: Likewise.
56847         * lib/memrchr.c: Likewise.
56848         * lib/mkancesdirs.c: Likewise.
56849         * lib/mkdir-p.c: Likewise.
56850         * lib/mkdir-p.h: Likewise.
56851         * lib/mkdir.c: Likewise.
56852         * lib/mkdirat.c: Likewise.
56853         * lib/mkdtemp.c: Likewise.
56854         * lib/mkstemp-safer.c: Likewise.
56855         * lib/mkstemp.c: Likewise.
56856         * lib/modechange.c: Likewise.
56857         * lib/modechange.h: Likewise.
56858         * lib/mountlist.c: Likewise.
56859         * lib/mountlist.h: Likewise.
56860         * lib/mpsort.c: Likewise.
56861         * lib/nanosleep.c: Likewise.
56862         * lib/obstack.c: Likewise.
56863         * lib/obstack.h: Likewise.
56864         * lib/open-safer.c: Likewise.
56865         * lib/open.c: Likewise.
56866         * lib/openat-die.c: Likewise.
56867         * lib/openat-priv.h: Likewise.
56868         * lib/openat-proc.c: Likewise.
56869         * lib/openat.c: Likewise.
56870         * lib/openat.h: Likewise.
56871         * lib/pagealign_alloc.c: Likewise.
56872         * lib/pagealign_alloc.h: Likewise.
56873         * lib/physmem.c: Likewise.
56874         * lib/physmem.h: Likewise.
56875         * lib/pipe-safer.c: Likewise.
56876         * lib/pipe.c: Likewise.
56877         * lib/pipe.h: Likewise.
56878         * lib/posixtm.c: Likewise.
56879         * lib/posixtm.h: Likewise.
56880         * lib/posixver.c: Likewise.
56881         * lib/printf-frexp.c: Likewise.
56882         * lib/printf-frexp.h: Likewise.
56883         * lib/printf-frexpl.c: Likewise.
56884         * lib/printf-frexpl.h: Likewise.
56885         * lib/printf.c: Likewise.
56886         * lib/progname.c: Likewise.
56887         * lib/progname.h: Likewise.
56888         * lib/progreloc.c: Likewise.
56889         * lib/putenv.c: Likewise.
56890         * lib/quote.c: Likewise.
56891         * lib/quote.h: Likewise.
56892         * lib/quotearg.c: Likewise.
56893         * lib/quotearg.h: Likewise.
56894         * lib/raise.c: Likewise.
56895         * lib/readline.c: Likewise.
56896         * lib/readline.h: Likewise.
56897         * lib/readlink.c: Likewise.
56898         * lib/readtokens.c: Likewise.
56899         * lib/readtokens.h: Likewise.
56900         * lib/readtokens0.c: Likewise.
56901         * lib/readtokens0.h: Likewise.
56902         * lib/readutmp.c: Likewise.
56903         * lib/readutmp.h: Likewise.
56904         * lib/realloc.c: Likewise.
56905         * lib/relocwrapper.c: Likewise.
56906         * lib/rename-dest-slash.c: Likewise.
56907         * lib/rename.c: Likewise.
56908         * lib/rmdir.c: Likewise.
56909         * lib/rpmatch.c: Likewise.
56910         * lib/safe-read.c: Likewise.
56911         * lib/safe-read.h: Likewise.
56912         * lib/safe-write.c: Likewise.
56913         * lib/safe-write.h: Likewise.
56914         * lib/same-inode.h: Likewise.
56915         * lib/same.c: Likewise.
56916         * lib/same.h: Likewise.
56917         * lib/save-cwd.c: Likewise.
56918         * lib/save-cwd.h: Likewise.
56919         * lib/savedir.c: Likewise.
56920         * lib/savedir.h: Likewise.
56921         * lib/savewd.c: Likewise.
56922         * lib/savewd.h: Likewise.
56923         * lib/search.in.h: Likewise.
56924         * lib/setenv.c: Likewise.
56925         * lib/setenv.h: Likewise.
56926         * lib/settime.c: Likewise.
56927         * lib/sh-quote.c: Likewise.
56928         * lib/sh-quote.h: Likewise.
56929         * lib/sig2str.c: Likewise.
56930         * lib/sig2str.h: Likewise.
56931         * lib/signal.in.h: Likewise.
56932         * lib/signbitd.c: Likewise.
56933         * lib/signbitf.c: Likewise.
56934         * lib/signbitl.c: Likewise.
56935         * lib/sigprocmask.c: Likewise.
56936         * lib/sincosl.c: Likewise.
56937         * lib/sleep.c: Likewise.
56938         * lib/sprintf.c: Likewise.
56939         * lib/sqrtl.c: Likewise.
56940         * lib/stat-time.h: Likewise.
56941         * lib/stdio--.h: Likewise.
56942         * lib/stdio-safer.h: Likewise.
56943         * lib/stdlib--.h: Likewise.
56944         * lib/stdlib-safer.h: Likewise.
56945         * lib/stdlib.in.h: Likewise.
56946         * lib/stpcpy.c: Likewise.
56947         * lib/stpncpy.c: Likewise.
56948         * lib/strchrnul.c: Likewise.
56949         * lib/strcspn.c: Likewise.
56950         * lib/strerror.c: Likewise.
56951         * lib/strftime.c: Likewise.
56952         * lib/strftime.h: Likewise.
56953         * lib/striconveh.c: Likewise.
56954         * lib/striconveh.h: Likewise.
56955         * lib/striconveha.c: Likewise.
56956         * lib/striconveha.h: Likewise.
56957         * lib/stripslash.c: Likewise.
56958         * lib/strnlen1.c: Likewise.
56959         * lib/strnlen1.h: Likewise.
56960         * lib/strtod.c: Likewise.
56961         * lib/strtoimax.c: Likewise.
56962         * lib/strtok_r.c: Likewise.
56963         * lib/strtol.c: Likewise.
56964         * lib/strtoll.c: Likewise.
56965         * lib/strtoul.c: Likewise.
56966         * lib/strtoull.c: Likewise.
56967         * lib/sysexits.in.h: Likewise.
56968         * lib/tempname.c: Likewise.
56969         * lib/tempname.h: Likewise.
56970         * lib/timespec.h: Likewise.
56971         * lib/tls.c: Likewise.
56972         * lib/tls.h: Likewise.
56973         * lib/tmpdir.c: Likewise.
56974         * lib/tmpdir.h: Likewise.
56975         * lib/tmpfile-safer.c: Likewise.
56976         * lib/tmpfile.c: Likewise.
56977         * lib/trigl.c: Likewise.
56978         * lib/trigl.h: Likewise.
56979         * lib/trim.c: Likewise.
56980         * lib/trim.h: Likewise.
56981         * lib/trunc.c: Likewise.
56982         * lib/truncf.c: Likewise.
56983         * lib/truncl.c: Likewise.
56984         * lib/tsearch.c: Likewise.
56985         * lib/unicodeio.c: Likewise.
56986         * lib/unicodeio.h: Likewise.
56987         * lib/unistd--.h: Likewise.
56988         * lib/unistd-safer.h: Likewise.
56989         * lib/unistdio/ulc-fprintf.c: Likewise.
56990         * lib/unistdio/ulc-vfprintf.c: Likewise.
56991         * lib/unlinkdir.c: Likewise.
56992         * lib/unlinkdir.h: Likewise.
56993         * lib/unlocked-io.h: Likewise.
56994         * lib/unsetenv.c: Likewise.
56995         * lib/userspec.c: Likewise.
56996         * lib/utime.c: Likewise.
56997         * lib/utimecmp.c: Likewise.
56998         * lib/utimecmp.h: Likewise.
56999         * lib/utimens.c: Likewise.
57000         * lib/verify.h: Likewise.
57001         * lib/verror.c: Likewise.
57002         * lib/verror.h: Likewise.
57003         * lib/version-etc-fsf.c: Likewise.
57004         * lib/version-etc.c: Likewise.
57005         * lib/version-etc.h: Likewise.
57006         * lib/vfprintf.c: Likewise.
57007         * lib/vprintf.c: Likewise.
57008         * lib/vsprintf.c: Likewise.
57009         * lib/w32spawn.h: Likewise.
57010         * lib/wait-process.c: Likewise.
57011         * lib/wait-process.h: Likewise.
57012         * lib/wcwidth.c: Likewise.
57013         * lib/write-any-file.c: Likewise.
57014         * lib/xalloc-die.c: Likewise.
57015         * lib/xalloc.h: Likewise.
57016         * lib/xasprintf.c: Likewise.
57017         * lib/xgetcwd.c: Likewise.
57018         * lib/xgetcwd.h: Likewise.
57019         * lib/xgetdomainname.c: Likewise.
57020         * lib/xgetdomainname.h: Likewise.
57021         * lib/xgethostname.c: Likewise.
57022         * lib/xmalloc.c: Likewise.
57023         * lib/xmalloca.c: Likewise.
57024         * lib/xmalloca.h: Likewise.
57025         * lib/xmemcoll.c: Likewise.
57026         * lib/xnanosleep.c: Likewise.
57027         * lib/xreadlink.c: Likewise.
57028         * lib/xreadlink.h: Likewise.
57029         * lib/xsetenv.c: Likewise.
57030         * lib/xsetenv.h: Likewise.
57031         * lib/xstriconv.c: Likewise.
57032         * lib/xstriconv.h: Likewise.
57033         * lib/xstrndup.c: Likewise.
57034         * lib/xstrndup.h: Likewise.
57035         * lib/xstrtod.c: Likewise.
57036         * lib/xstrtod.h: Likewise.
57037         * lib/xstrtol-error.c: Likewise.
57038         * lib/xstrtol.c: Likewise.
57039         * lib/xstrtol.h: Likewise.
57040         * lib/xtime.h: Likewise.
57041         * lib/xvasprintf.c: Likewise.
57042         * lib/xvasprintf.h: Likewise.
57043         * lib/yesno.c: Likewise.
57044         * lib/yesno.h: Likewise.
57045         * posix-modules: Likewise.
57046         * tests/test-alloca-opt.c: Likewise.
57047         * tests/test-arcfour.c: Likewise.
57048         * tests/test-arctwo.c: Likewise.
57049         * tests/test-argmatch.c: Likewise.
57050         * tests/test-argp-2.sh: Likewise.
57051         * tests/test-argp.c: Likewise.
57052         * tests/test-arpa_inet.c: Likewise.
57053         * tests/test-array_list.c: Likewise.
57054         * tests/test-array_oset.c: Likewise.
57055         * tests/test-atexit.c: Likewise.
57056         * tests/test-avltree_list.c: Likewise.
57057         * tests/test-avltree_oset.c: Likewise.
57058         * tests/test-avltreehash_list.c: Likewise.
57059         * tests/test-base64.c: Likewise.
57060         * tests/test-binary-io.c: Likewise.
57061         * tests/test-byteswap.c: Likewise.
57062         * tests/test-c-ctype.c: Likewise.
57063         * tests/test-c-strcasecmp.c: Likewise.
57064         * tests/test-c-strcasestr.c: Likewise.
57065         * tests/test-c-strncasecmp.c: Likewise.
57066         * tests/test-c-strstr.c: Likewise.
57067         * tests/test-canonicalize-lgpl.c: Likewise.
57068         * tests/test-canonicalize.c: Likewise.
57069         * tests/test-carray_list.c: Likewise.
57070         * tests/test-ceilf.c: Likewise.
57071         * tests/test-ceill.c: Likewise.
57072         * tests/test-count-one-bits.c: Likewise.
57073         * tests/test-crc.c: Likewise.
57074         * tests/test-dirname.c: Likewise.
57075         * tests/test-fbufmode.c: Likewise.
57076         * tests/test-fcntl.c: Likewise.
57077         * tests/test-fflush.c: Likewise.
57078         * tests/test-floorf.c: Likewise.
57079         * tests/test-floorl.c: Likewise.
57080         * tests/test-fopen.c: Likewise.
57081         * tests/test-fprintf-posix.c: Likewise.
57082         * tests/test-fprintf-posix.h: Likewise.
57083         * tests/test-fpurge.c: Likewise.
57084         * tests/test-freadable.c: Likewise.
57085         * tests/test-freadahead.c: Likewise.
57086         * tests/test-freading.c: Likewise.
57087         * tests/test-freopen.c: Likewise.
57088         * tests/test-frexp.c: Likewise.
57089         * tests/test-frexpl.c: Likewise.
57090         * tests/test-fseek.c: Likewise.
57091         * tests/test-fseeko.c: Likewise.
57092         * tests/test-fseterr.c: Likewise.
57093         * tests/test-fstrcmp.c: Likewise.
57094         * tests/test-ftell.c: Likewise.
57095         * tests/test-ftello.c: Likewise.
57096         * tests/test-fwritable.c: Likewise.
57097         * tests/test-fwriting.c: Likewise.
57098         * tests/test-getaddrinfo.c: Likewise.
57099         * tests/test-getpass.c: Likewise.
57100         * tests/test-gettimeofday.c: Likewise.
57101         * tests/test-hmac-md5.c: Likewise.
57102         * tests/test-hmac-sha1.c: Likewise.
57103         * tests/test-iconv.c: Likewise.
57104         * tests/test-iconvme.c: Likewise.
57105         * tests/test-inttypes.c: Likewise.
57106         * tests/test-isnan.c: Likewise.
57107         * tests/test-isnanf.c: Likewise.
57108         * tests/test-isnanl-nolibm.c: Likewise.
57109         * tests/test-isnanl.c: Likewise.
57110         * tests/test-isnanl.h: Likewise.
57111         * tests/test-ldexpl.c: Likewise.
57112         * tests/test-linked_list.c: Likewise.
57113         * tests/test-linkedhash_list.c: Likewise.
57114         * tests/test-locale.c: Likewise.
57115         * tests/test-localename.c: Likewise.
57116         * tests/test-lock.c: Likewise.
57117         * tests/test-lseek.c: Likewise.
57118         * tests/test-malloca.c: Likewise.
57119         * tests/test-math.c: Likewise.
57120         * tests/test-mbscasecmp.c: Likewise.
57121         * tests/test-mbscasestr1.c: Likewise.
57122         * tests/test-mbscasestr2.c: Likewise.
57123         * tests/test-mbscasestr3.c: Likewise.
57124         * tests/test-mbscasestr4.c: Likewise.
57125         * tests/test-mbschr.c: Likewise.
57126         * tests/test-mbscspn.c: Likewise.
57127         * tests/test-mbsncasecmp.c: Likewise.
57128         * tests/test-mbspbrk.c: Likewise.
57129         * tests/test-mbspcasecmp.c: Likewise.
57130         * tests/test-mbsrchr.c: Likewise.
57131         * tests/test-mbsspn.c: Likewise.
57132         * tests/test-mbsstr1.c: Likewise.
57133         * tests/test-mbsstr2.c: Likewise.
57134         * tests/test-mbsstr3.c: Likewise.
57135         * tests/test-md5.c: Likewise.
57136         * tests/test-memmem.c: Likewise.
57137         * tests/test-netinet_in.c: Likewise.
57138         * tests/test-open.c: Likewise.
57139         * tests/test-printf-frexp.c: Likewise.
57140         * tests/test-printf-frexpl.c: Likewise.
57141         * tests/test-printf-posix.c: Likewise.
57142         * tests/test-printf-posix.h: Likewise.
57143         * tests/test-rbtree_list.c: Likewise.
57144         * tests/test-rbtree_oset.c: Likewise.
57145         * tests/test-rbtreehash_list.c: Likewise.
57146         * tests/test-read-file.c: Likewise.
57147         * tests/test-rijndael.c: Likewise.
57148         * tests/test-search.c: Likewise.
57149         * tests/test-signbit.c: Likewise.
57150         * tests/test-sleep.c: Likewise.
57151         * tests/test-snprintf-posix.c: Likewise.
57152         * tests/test-snprintf-posix.h: Likewise.
57153         * tests/test-snprintf.c: Likewise.
57154         * tests/test-sprintf-posix.c: Likewise.
57155         * tests/test-sprintf-posix.h: Likewise.
57156         * tests/test-stat-time.c: Likewise.
57157         * tests/test-stdbool.c: Likewise.
57158         * tests/test-stdint.c: Likewise.
57159         * tests/test-stdio.c: Likewise.
57160         * tests/test-stdlib.c: Likewise.
57161         * tests/test-stpncpy.c: Likewise.
57162         * tests/test-strcasestr.c: Likewise.
57163         * tests/test-striconv.c: Likewise.
57164         * tests/test-striconveh.c: Likewise.
57165         * tests/test-striconveha.c: Likewise.
57166         * tests/test-string.c: Likewise.
57167         * tests/test-sys_select.c: Likewise.
57168         * tests/test-sys_socket.c: Likewise.
57169         * tests/test-sys_stat.c: Likewise.
57170         * tests/test-sys_time.c: Likewise.
57171         * tests/test-sysexits.c: Likewise.
57172         * tests/test-time.c: Likewise.
57173         * tests/test-tls.c: Likewise.
57174         * tests/test-trunc.c: Likewise.
57175         * tests/test-truncf.c: Likewise.
57176         * tests/test-truncl.c: Likewise.
57177         * tests/test-unistd.c: Likewise.
57178         * tests/test-vasnprintf-posix.c: Likewise.
57179         * tests/test-vasnprintf-posix2.c: Likewise.
57180         * tests/test-vasnprintf.c: Likewise.
57181         * tests/test-vasprintf-posix.c: Likewise.
57182         * tests/test-vasprintf.c: Likewise.
57183         * tests/test-verify.c: Likewise.
57184         * tests/test-vfprintf-posix.c: Likewise.
57185         * tests/test-vprintf-posix.c: Likewise.
57186         * tests/test-vsnprintf-posix.c: Likewise.
57187         * tests/test-vsnprintf.c: Likewise.
57188         * tests/test-vsprintf-posix.c: Likewise.
57189         * tests/test-wchar.c: Likewise.
57190         * tests/test-wctype.c: Likewise.
57191         * tests/test-wcwidth.c: Likewise.
57192         * tests/test-xstrtol.c: Likewise.
57193         * tests/test-xvasprintf.c: Likewise.
57194         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57195         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57196         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57197         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57198         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57199         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57200         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57201         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57202         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57203         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57204         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57205         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57206         * tests/uniname/test-uninames.c: Likewise.
57207         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57208         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57209         * tests/unistdio/test-u16-printf1.h: Likewise.
57210         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57211         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57212         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57213         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57214         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57215         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57216         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57217         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57218         * tests/unistdio/test-u32-printf1.h: Likewise.
57219         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57220         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57221         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57222         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57223         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57224         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57225         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57226         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57227         * tests/unistdio/test-u8-printf1.h: Likewise.
57228         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57229         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57230         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57231         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57232         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57233         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57234         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57235         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57236         * tests/unistdio/test-ulc-printf1.h: Likewise.
57237         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57238         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57239         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57240         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57241         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57242         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57243         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57244         * tests/uniwidth/test-u16-width.c: Likewise.
57245         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57246         * tests/uniwidth/test-u32-width.c: Likewise.
57247         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57248         * tests/uniwidth/test-u8-width.c: Likewise.
57249         * tests/uniwidth/test-uc_width.c: Likewise.
57250         * config/srclist-update: Likewise.
57251         (fixlicense): Update to GPLv3+.
57252
57253         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57254         * tests/test-tsearch.c: Change copyright notice.
57255
57256         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57257         * lib/c-strcaseeq.h: Change copyright notice.
57258         * lib/streq.h: Likewise.
57259         * lib/uniconv.h: Likewise.
57260         * lib/uniconv/u-conv-from-enc.h: Likewise.
57261         * lib/uniconv/u-conv-to-enc.h: Likewise.
57262         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57263         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57264         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57265         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57266         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57267         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57268         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57269         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57270         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57271         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57272         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57273         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57274         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57275         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57276         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57277         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57278         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57279         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57280         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57281         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57282         * lib/uniname.h: Likewise.
57283         * lib/uniname/uniname.c: Likewise.
57284         * lib/unistdio.h: Likewise.
57285         * lib/unistdio/u-asnprintf.h: Likewise.
57286         * lib/unistdio/u-asprintf.h: Likewise.
57287         * lib/unistdio/u-printf-args.c: Likewise.
57288         * lib/unistdio/u-printf-args.h: Likewise.
57289         * lib/unistdio/u-printf-parse.h: Likewise.
57290         * lib/unistdio/u-snprintf.h: Likewise.
57291         * lib/unistdio/u-sprintf.h: Likewise.
57292         * lib/unistdio/u-vasprintf.h: Likewise.
57293         * lib/unistdio/u-vsnprintf.h: Likewise.
57294         * lib/unistdio/u-vsprintf.h: Likewise.
57295         * lib/unistdio/u16-asnprintf.c: Likewise.
57296         * lib/unistdio/u16-asprintf.c: Likewise.
57297         * lib/unistdio/u16-printf-parse.c: Likewise.
57298         * lib/unistdio/u16-snprintf.c: Likewise.
57299         * lib/unistdio/u16-sprintf.c: Likewise.
57300         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57301         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57302         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57303         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57304         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57305         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57306         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57307         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57308         * lib/unistdio/u16-vasnprintf.c: Likewise.
57309         * lib/unistdio/u16-vasprintf.c: Likewise.
57310         * lib/unistdio/u16-vsnprintf.c: Likewise.
57311         * lib/unistdio/u16-vsprintf.c: Likewise.
57312         * lib/unistdio/u32-asnprintf.c: Likewise.
57313         * lib/unistdio/u32-asprintf.c: Likewise.
57314         * lib/unistdio/u32-printf-parse.c: Likewise.
57315         * lib/unistdio/u32-snprintf.c: Likewise.
57316         * lib/unistdio/u32-sprintf.c: Likewise.
57317         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57318         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57319         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57320         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57321         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57322         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57323         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57324         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57325         * lib/unistdio/u32-vasnprintf.c: Likewise.
57326         * lib/unistdio/u32-vasprintf.c: Likewise.
57327         * lib/unistdio/u32-vsnprintf.c: Likewise.
57328         * lib/unistdio/u32-vsprintf.c: Likewise.
57329         * lib/unistdio/u8-asnprintf.c: Likewise.
57330         * lib/unistdio/u8-asprintf.c: Likewise.
57331         * lib/unistdio/u8-printf-parse.c: Likewise.
57332         * lib/unistdio/u8-snprintf.c: Likewise.
57333         * lib/unistdio/u8-sprintf.c: Likewise.
57334         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57335         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57336         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57337         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57338         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57339         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57340         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57341         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57342         * lib/unistdio/u8-vasnprintf.c: Likewise.
57343         * lib/unistdio/u8-vasprintf.c: Likewise.
57344         * lib/unistdio/u8-vsnprintf.c: Likewise.
57345         * lib/unistdio/u8-vsprintf.c: Likewise.
57346         * lib/unistdio/ulc-asnprintf.c: Likewise.
57347         * lib/unistdio/ulc-asprintf.c: Likewise.
57348         * lib/unistdio/ulc-printf-parse.c: Likewise.
57349         * lib/unistdio/ulc-snprintf.c: Likewise.
57350         * lib/unistdio/ulc-sprintf.c: Likewise.
57351         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57352         * lib/unistdio/ulc-vasprintf.c: Likewise.
57353         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57354         * lib/unistdio/ulc-vsprintf.c: Likewise.
57355         * lib/unistr.h: Likewise.
57356         * lib/unistr/u-cpy-alloc.h: Likewise.
57357         * lib/unistr/u-cpy.h: Likewise.
57358         * lib/unistr/u-endswith.h: Likewise.
57359         * lib/unistr/u-move.h: Likewise.
57360         * lib/unistr/u-set.h: Likewise.
57361         * lib/unistr/u-startswith.h: Likewise.
57362         * lib/unistr/u-stpcpy.h: Likewise.
57363         * lib/unistr/u-stpncpy.h: Likewise.
57364         * lib/unistr/u-strcat.h: Likewise.
57365         * lib/unistr/u-strcpy.h: Likewise.
57366         * lib/unistr/u-strcspn.h: Likewise.
57367         * lib/unistr/u-strdup.h: Likewise.
57368         * lib/unistr/u-strlen.h: Likewise.
57369         * lib/unistr/u-strncat.h: Likewise.
57370         * lib/unistr/u-strncpy.h: Likewise.
57371         * lib/unistr/u-strnlen.h: Likewise.
57372         * lib/unistr/u-strpbrk.h: Likewise.
57373         * lib/unistr/u-strspn.h: Likewise.
57374         * lib/unistr/u-strstr.h: Likewise.
57375         * lib/unistr/u-strtok.h: Likewise.
57376         * lib/unistr/u16-check.c: Likewise.
57377         * lib/unistr/u16-chr.c: Likewise.
57378         * lib/unistr/u16-cmp.c: Likewise.
57379         * lib/unistr/u16-cpy-alloc.c: Likewise.
57380         * lib/unistr/u16-cpy.c: Likewise.
57381         * lib/unistr/u16-endswith.c: Likewise.
57382         * lib/unistr/u16-mblen.c: Likewise.
57383         * lib/unistr/u16-mbsnlen.c: Likewise.
57384         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57385         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57386         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57387         * lib/unistr/u16-mbtouc.c: Likewise.
57388         * lib/unistr/u16-mbtoucr.c: Likewise.
57389         * lib/unistr/u16-move.c: Likewise.
57390         * lib/unistr/u16-next.c: Likewise.
57391         * lib/unistr/u16-prev.c: Likewise.
57392         * lib/unistr/u16-set.c: Likewise.
57393         * lib/unistr/u16-startswith.c: Likewise.
57394         * lib/unistr/u16-stpcpy.c: Likewise.
57395         * lib/unistr/u16-stpncpy.c: Likewise.
57396         * lib/unistr/u16-strcat.c: Likewise.
57397         * lib/unistr/u16-strchr.c: Likewise.
57398         * lib/unistr/u16-strcmp.c: Likewise.
57399         * lib/unistr/u16-strcpy.c: Likewise.
57400         * lib/unistr/u16-strcspn.c: Likewise.
57401         * lib/unistr/u16-strdup.c: Likewise.
57402         * lib/unistr/u16-strlen.c: Likewise.
57403         * lib/unistr/u16-strmblen.c: Likewise.
57404         * lib/unistr/u16-strmbtouc.c: Likewise.
57405         * lib/unistr/u16-strncat.c: Likewise.
57406         * lib/unistr/u16-strncmp.c: Likewise.
57407         * lib/unistr/u16-strncpy.c: Likewise.
57408         * lib/unistr/u16-strnlen.c: Likewise.
57409         * lib/unistr/u16-strpbrk.c: Likewise.
57410         * lib/unistr/u16-strrchr.c: Likewise.
57411         * lib/unistr/u16-strspn.c: Likewise.
57412         * lib/unistr/u16-strstr.c: Likewise.
57413         * lib/unistr/u16-strtok.c: Likewise.
57414         * lib/unistr/u16-to-u32.c: Likewise.
57415         * lib/unistr/u16-to-u8.c: Likewise.
57416         * lib/unistr/u16-uctomb-aux.c: Likewise.
57417         * lib/unistr/u16-uctomb.c: Likewise.
57418         * lib/unistr/u32-check.c: Likewise.
57419         * lib/unistr/u32-chr.c: Likewise.
57420         * lib/unistr/u32-cmp.c: Likewise.
57421         * lib/unistr/u32-cpy-alloc.c: Likewise.
57422         * lib/unistr/u32-cpy.c: Likewise.
57423         * lib/unistr/u32-endswith.c: Likewise.
57424         * lib/unistr/u32-mblen.c: Likewise.
57425         * lib/unistr/u32-mbsnlen.c: Likewise.
57426         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57427         * lib/unistr/u32-mbtouc.c: Likewise.
57428         * lib/unistr/u32-mbtoucr.c: Likewise.
57429         * lib/unistr/u32-move.c: Likewise.
57430         * lib/unistr/u32-next.c: Likewise.
57431         * lib/unistr/u32-prev.c: Likewise.
57432         * lib/unistr/u32-set.c: Likewise.
57433         * lib/unistr/u32-startswith.c: Likewise.
57434         * lib/unistr/u32-stpcpy.c: Likewise.
57435         * lib/unistr/u32-stpncpy.c: Likewise.
57436         * lib/unistr/u32-strcat.c: Likewise.
57437         * lib/unistr/u32-strchr.c: Likewise.
57438         * lib/unistr/u32-strcmp.c: Likewise.
57439         * lib/unistr/u32-strcpy.c: Likewise.
57440         * lib/unistr/u32-strcspn.c: Likewise.
57441         * lib/unistr/u32-strdup.c: Likewise.
57442         * lib/unistr/u32-strlen.c: Likewise.
57443         * lib/unistr/u32-strmblen.c: Likewise.
57444         * lib/unistr/u32-strmbtouc.c: Likewise.
57445         * lib/unistr/u32-strncat.c: Likewise.
57446         * lib/unistr/u32-strncmp.c: Likewise.
57447         * lib/unistr/u32-strncpy.c: Likewise.
57448         * lib/unistr/u32-strnlen.c: Likewise.
57449         * lib/unistr/u32-strpbrk.c: Likewise.
57450         * lib/unistr/u32-strrchr.c: Likewise.
57451         * lib/unistr/u32-strspn.c: Likewise.
57452         * lib/unistr/u32-strstr.c: Likewise.
57453         * lib/unistr/u32-strtok.c: Likewise.
57454         * lib/unistr/u32-to-u16.c: Likewise.
57455         * lib/unistr/u32-to-u8.c: Likewise.
57456         * lib/unistr/u32-uctomb.c: Likewise.
57457         * lib/unistr/u8-check.c: Likewise.
57458         * lib/unistr/u8-chr.c: Likewise.
57459         * lib/unistr/u8-cmp.c: Likewise.
57460         * lib/unistr/u8-cpy-alloc.c: Likewise.
57461         * lib/unistr/u8-cpy.c: Likewise.
57462         * lib/unistr/u8-endswith.c: Likewise.
57463         * lib/unistr/u8-mblen.c: Likewise.
57464         * lib/unistr/u8-mbsnlen.c: Likewise.
57465         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57466         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57467         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57468         * lib/unistr/u8-mbtouc.c: Likewise.
57469         * lib/unistr/u8-mbtoucr.c: Likewise.
57470         * lib/unistr/u8-move.c: Likewise.
57471         * lib/unistr/u8-next.c: Likewise.
57472         * lib/unistr/u8-prev.c: Likewise.
57473         * lib/unistr/u8-set.c: Likewise.
57474         * lib/unistr/u8-startswith.c: Likewise.
57475         * lib/unistr/u8-stpcpy.c: Likewise.
57476         * lib/unistr/u8-stpncpy.c: Likewise.
57477         * lib/unistr/u8-strcat.c: Likewise.
57478         * lib/unistr/u8-strchr.c: Likewise.
57479         * lib/unistr/u8-strcmp.c: Likewise.
57480         * lib/unistr/u8-strcpy.c: Likewise.
57481         * lib/unistr/u8-strcspn.c: Likewise.
57482         * lib/unistr/u8-strdup.c: Likewise.
57483         * lib/unistr/u8-strlen.c: Likewise.
57484         * lib/unistr/u8-strmblen.c: Likewise.
57485         * lib/unistr/u8-strmbtouc.c: Likewise.
57486         * lib/unistr/u8-strncat.c: Likewise.
57487         * lib/unistr/u8-strncmp.c: Likewise.
57488         * lib/unistr/u8-strncpy.c: Likewise.
57489         * lib/unistr/u8-strnlen.c: Likewise.
57490         * lib/unistr/u8-strpbrk.c: Likewise.
57491         * lib/unistr/u8-strrchr.c: Likewise.
57492         * lib/unistr/u8-strspn.c: Likewise.
57493         * lib/unistr/u8-strstr.c: Likewise.
57494         * lib/unistr/u8-strtok.c: Likewise.
57495         * lib/unistr/u8-to-u16.c: Likewise.
57496         * lib/unistr/u8-to-u32.c: Likewise.
57497         * lib/unistr/u8-uctomb-aux.c: Likewise.
57498         * lib/unistr/u8-uctomb.c: Likewise.
57499         * lib/unitypes.h: Likewise.
57500         * lib/uniwidth.h: Likewise.
57501         * lib/uniwidth/cjk.h: Likewise.
57502         * lib/uniwidth/u16-strwidth.c: Likewise.
57503         * lib/uniwidth/u16-width.c: Likewise.
57504         * lib/uniwidth/u32-strwidth.c: Likewise.
57505         * lib/uniwidth/u32-width.c: Likewise.
57506         * lib/uniwidth/u8-strwidth.c: Likewise.
57507         * lib/uniwidth/u8-width.c: Likewise.
57508         * lib/uniwidth/width.c: Likewise.
57509
57510 2007-10-07  Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57513         The file is still under LGPL (see modules/inttypes).
57514
57515 2007-10-06  Bruno Haible  <bruno@clisp.org>
57516
57517         * modules/trunc (Dependencies): Add 'extensions'.
57518         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57519         Reported by Ben Pfaff <blp@gnu.org>.
57520
57521 2007-10-06  Bruno Haible  <bruno@clisp.org>
57522
57523         * modules/freopen-tests: New file.
57524         * tests/test-freopen.c: New file.
57525
57526         * modules/fopen-tests: New file.
57527         * tests/test-fopen.c: New file.
57528
57529         * modules/fopen: New file.
57530         * lib/fopen.c: New file.
57531         * m4/fopen.m4: New file.
57532         * modules/freopen: New file.
57533         * lib/freopen.c: New file.
57534         * m4/freopen.m4: New file.
57535         * lib/stdio.in.h (fopen, freopen): New declarations.
57536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57537         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57538         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57539         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57540         * doc/functions/fopen.texi: Mention the 'fopen' module.
57541         * doc/functions/freopen.texi: Mention the 'freopen' module.
57542
57543 2007-10-06  Bruno Haible  <bruno@clisp.org>
57544
57545         * modules/open-tests: New file.
57546         * tests/test-open.c: New file.
57547
57548         * modules/open: New file.
57549         * lib/open.c: New file.
57550         * m4/open.m4: New file.
57551         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57552         lib/open.c does.
57553         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57554         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57555         macros.
57556         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57557         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57558         REPLACE_OPEN.
57559         * doc/functions/open.texi: Mention the 'open' module.
57560
57561 2007-10-04  Bruno Haible  <bruno@clisp.org>
57562
57563         * modules/ceill-tests: New file.
57564         * tests/test-ceill.c: New file.
57565
57566         * modules/ceill: New file.
57567         * lib/ceill.c: Replace entire file.
57568         * m4/ceill.m4: New file.
57569         * lib/math.in.h (ceill): Replace declaration.
57570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57571         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57572         * doc/functions/ceill.texi: Mention the 'ceill' module.
57573         * modules/mathl (Files): Remove lib/ceill.c.
57574         (Depends-on): Add ceill.
57575
57576 2007-10-04  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/ceilf-tests: New file.
57579         * tests/test-ceilf.c: New file.
57580
57581         * modules/ceilf: New file.
57582         * lib/ceil.c: New file.
57583         * lib/ceilf.c: New file.
57584         * m4/ceilf.m4: New file.
57585         * lib/math.in.h (ceilf): New declaration.
57586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57587         HAVE_DECL_CEILF.
57588         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57589         HAVE_DECL_CEILF.
57590         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57591
57592 2007-10-04  Bruno Haible  <bruno@clisp.org>
57593
57594         * modules/floorl-tests: New file.
57595         * tests/test-floorl.c: New file.
57596
57597         * modules/floorl: New file.
57598         * lib/floorl.c: Replace entire file.
57599         * m4/floorl.m4: New file.
57600         * lib/math.in.h (floorl): Replace declaration.
57601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57602         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57603         * doc/functions/floorl.texi: Mention the 'floorl' module.
57604         * modules/mathl (Files): Remove lib/floorl.c.
57605         (Depends-on): Add floorl.
57606
57607 2007-10-04  Bruno Haible  <bruno@clisp.org>
57608
57609         * modules/floorf-tests: New file.
57610         * tests/test-floorf.c: New file.
57611
57612         * modules/floorf: New file.
57613         * lib/floor.c: New file.
57614         * lib/floorf.c: New file.
57615         * m4/floorf.m4: New file.
57616         * lib/math.in.h (floorf): New declaration.
57617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57618         HAVE_DECL_FLOORF.
57619         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57620         HAVE_DECL_FLOORF.
57621         * doc/functions/floorf.texi: Mention the 'floorf' module.
57622
57623 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57624             Bruno Haible  <bruno@clisp.org>
57625
57626         Advertise for the Git server instead of the CVS server.
57627         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57628         repository instead of the CVS one.
57629         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57630         about all VCS systems generically.
57631         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57632
57633 2007-10-04  Bruno Haible  <bruno@clisp.org>
57634
57635         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57636         means.
57637         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57638
57639 2007-10-04  Bruno Haible  <bruno@clisp.org>
57640
57641         * modules/truncl-tests: New file.
57642         * tests/test-truncl.c: New file.
57643
57644         * modules/truncl: New file.
57645         * lib/truncl.c: New file.
57646         * m4/truncl.m4: New file.
57647         * lib/math.in.h (truncl): New declaration.
57648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57649         HAVE_DECL_TRUNCL.
57650         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57651         HAVE_DECL_TRUNCL.
57652         * doc/functions/truncl.texi: Mention the 'truncl' module.
57653
57654 2007-10-04  Bruno Haible  <bruno@clisp.org>
57655
57656         * modules/truncf-tests: New file.
57657         * tests/test-truncf.c: New file.
57658
57659         * modules/truncf: New file.
57660         * lib/trunc.c: Make paramerizable through USE_* macros.
57661         * lib/truncf.c: New file.
57662         * m4/truncf.m4: New file.
57663         * lib/math.in.h (truncf): New declaration.
57664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57665         HAVE_DECL_TRUNCF.
57666         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57667         HAVE_DECL_TRUNCF.
57668         * doc/functions/truncf.texi: Mention the 'truncf' module.
57669
57670 2007-10-03  Bruno Haible  <bruno@clisp.org>
57671
57672         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57673         augmentation also for tests modules.
57674         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57675         * modules/atexit-tests (Makefile.am): Likewise.
57676         * modules/binary-io-tests (Makefile.am): Likewise.
57677         * modules/c-strcase-tests (Makefile.am): Likewise.
57678         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57679         * modules/canonicalize-tests (Makefile.am): Likewise.
57680         * modules/closein-tests (Makefile.am): Likewise.
57681         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57682         * modules/freadahead-tests (Makefile.am): Likewise.
57683         * modules/fseek-tests (Makefile.am): Likewise.
57684         * modules/fseeko-tests (Makefile.am): Likewise.
57685         * modules/ftell-tests (Makefile.am): Likewise.
57686         * modules/ftello-tests (Makefile.am): Likewise.
57687         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57688         * modules/isnanl-tests (Makefile.am): Likewise.
57689         * modules/lseek-tests (Makefile.am): Likewise.
57690         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57691         * modules/mbscasestr-tests (Makefile.am): Likewise.
57692         * modules/mbschr-tests (Makefile.am): Likewise.
57693         * modules/mbscspn-tests (Makefile.am): Likewise.
57694         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57695         * modules/mbspbrk-tests (Makefile.am): Likewise.
57696         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57697         * modules/mbsrchr-tests (Makefile.am): Likewise.
57698         * modules/mbsspn-tests (Makefile.am): Likewise.
57699         * modules/mbsstr-tests (Makefile.am): Likewise.
57700         * modules/printf-posix-tests (Makefile.am): Likewise.
57701         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57702         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57703         * modules/tsearch-tests (Makefile.am): Likewise.
57704         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57705         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57706         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57707         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57708         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57709         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57710         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57711         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57712         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57713         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57714         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57715         * modules/xstrtol-tests (Makefile.am): Likewise.
57716         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57717         * modules/yesno-tests (Makefile.am): Likewise.
57718
57719 2007-10-03  Bruno Haible  <bruno@clisp.org>
57720
57721         * modules/trunc-tests: New file.
57722         * tests/test-trunc.c: New file.
57723
57724         * modules/trunc: New file.
57725         * lib/trunc.c: New file.
57726         * m4/trunc.m4: New file.
57727         * lib/math.in.h (trunc): New declaration.
57728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57729         HAVE_DECL_TRUNC.
57730         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57731         HAVE_DECL_TRUNC.
57732         * doc/functions/trunc.texi: Mention the 'trunc' module.
57733
57734 2007-10-03  Bruno Haible  <bruno@clisp.org>
57735
57736         * tests/test-fpending.c: New file, mostly copied
57737         from coreutils/lib/t-fpending.c.
57738         * modules/fpending-tests: New file.
57739
57740 2007-10-03  Bruno Haible  <bruno@clisp.org>
57741
57742         Port the stdio extensions to QNX (untested).
57743         * lib/fseterr.c (fseterr): Add support for QNX.
57744         * lib/fbufmode.c (fbufmode): Likewise.
57745         * lib/freadable.c (freadable): Likewise.
57746         * lib/fwritable.c (fwritable): Likewise.
57747         * lib/freading.c (freading): Likewise.
57748         * lib/fwriting.c (fwriting): Likewise.
57749         * lib/freadahead.c (freadahed): Likewise.
57750         * lib/fpurge.c (fpurge): Likewise.
57751         * lib/fseeko.c (rpl_fseeko): Likewise.
57752
57753 2007-10-03  Bruno Haible  <bruno@clisp.org>
57754             Jim Meyering  <jim@meyering.net>
57755             Eric Blake  <ebb9@byu.net>
57756
57757         * doc/relocatable.texi: Use @command instead of @program.
57758
57759 2007-10-02  Jim Meyering  <jim@meyering.net>
57760
57761         Perform one more "_.h" -> ".in.h" substitution.
57762         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57763         instead of unistd_.h here, too.
57764
57765 2007-10-01  Bruno Haible  <bruno@clisp.org>
57766
57767         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57768         Needed for the alloca-opt module.
57769
57770 2007-09-30  Bruno Haible  <bruno@clisp.org>
57771
57772         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57773         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57774         alloca_.h.
57775         * lib/argz.in.h: Renamed from lib/argz_.h.
57776         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57777         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57778         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57779         byteswap_.h.
57780         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57781         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57782         dirent_.h.
57783         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57784         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57785         fcntl_.h.
57786         * lib/float.in.h: Renamed from lib/float_.h.
57787         * modules/float (Files, Makefile.am): Use float.in.h instead of
57788         float_.h.
57789         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57790         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57791         fnmatch_.h.
57792         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57793         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57794         getopt_.h.
57795         * lib/glob.in.h: Renamed from lib/glob_.h.
57796         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57797         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57798         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57799         iconv_.h.
57800         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57801         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57802         inttypes_.h.
57803         * lib/locale.in.h: Renamed from lib/locale_.h.
57804         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57805         locale_.h.
57806         * lib/math.in.h: Renamed from lib/math_.h.
57807         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57808         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57809         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57810         of netinet_in_.h. Add dependency.
57811         * lib/poll.in.h: Renamed from lib/poll_.h.
57812         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57813         * lib/search.in.h: Renamed from lib/search_.h.
57814         * modules/search (Files, Makefile.am): Use search.in.h instead of
57815         search_.h.
57816         * lib/signal.in.h: Renamed from lib/signal_.h.
57817         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57818         _signal.h.
57819         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57820         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57821         stdbool_.h.
57822         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57823         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57824         stdint_.h.
57825         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57826         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57827         stdio_.h.
57828         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57829         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57830         stdlib_.h.
57831         * lib/string.in.h: Renamed from lib/string_.h.
57832         * modules/string (Files, Makefile.am): Use string.in.h instead of
57833         string_.h.
57834         * doc/gnulib-tool.texi (Initial import): Update.
57835         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57836         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57837         of sys_select_.h. Add dependency.
57838         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57839         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57840         of sys_socket_.h.
57841         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57842         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57843         sys_stat_.h.
57844         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57845         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57846         sys_time_.h.
57847         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57848         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57849         sysexits_.h.
57850         * lib/time.in.h: Renamed from lib/time_.h.
57851         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57852         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57853         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57854         unistd_.h.
57855         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57856         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57857         wchar_.h.
57858         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57859         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57860         wctype_.h.
57861         * build-aux/bootstrap (slurp): Update.
57862         * lib/.cppi-disable: Update.
57863
57864 2007-09-30  Bruno Haible  <bruno@clisp.org>
57865
57866         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57867         Needed on BeOS.
57868
57869 2007-09-30  Bruno Haible  <bruno@clisp.org>
57870
57871         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57872
57873 2007-09-29  Bruno Haible  <bruno@clisp.org>
57874
57875         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57876
57877 2007-09-29  Bruno Haible  <bruno@clisp.org>
57878
57879         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57880         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57881         * build-aux/install-reloc: Compile also areadlink.c.
57882         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57883
57884 2007-09-29  Bruno Haible  <bruno@clisp.org>
57885
57886         * gnulib-tool (func_emit_initmacro_done): Indentation.
57887
57888 2007-09-29  Bruno Haible  <bruno@clisp.org>
57889
57890         * README: Add CVS checkout update instructions.
57891         Info from Bob Proulx <bob@proulx.com>.
57892
57893 2007-09-28  Eric Blake  <ebb9@byu.net>
57894
57895         Provide move-if-change.
57896         * build-aux/move-if-change: New file, based on best practice
57897         rather than any canonical upstream location.
57898
57899 2007-09-28  Jim Meyering  <jim@meyering.net>
57900
57901         Fix canonicalize loop-detection corner case.
57902         Do not attempt to stat the symlink values stored via seen_triple.
57903         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57904         on linux-2.6.18, (but not 2.6.22).
57905         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57906         triple_compare.  The former compares dev,ino,filename, while the latter
57907         would actually stat dirname(filename) when dev and ino were equal.
57908         * lib/hash-triple.c: Install <string.h>.
57909         (STREQ): Define.
57910         (triple_compare_ino_str): New function.
57911         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57912
57913 2007-09-28  Eric Blake  <ebb9@byu.net>
57914
57915         Enforce that AC_REPLACE_FUNCS files exist.
57916         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57917         override check for typos.
57918
57919         Fix test-closein on Solaris 10.
57920         * tests/test-closein.c (main): Don't assume stdin can be inherited
57921         closed on all systems.
57922         * tests/test-closein.sh: Likewise.
57923         Reported by Piotr Tarnowski.
57924
57925 2007-09-28  Jim Meyering  <jim@meyering.net>
57926
57927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57928
57929 2007-09-27  Jim Meyering  <jim@meyering.net>
57930
57931         canonicalize: Avoid a false-positive cycle failure.
57932         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57933         Sort.  Remove cycle-check.
57934         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57935         not cycle-check.h.
57936         (seen_triple): New function.
57937         (canonicalize_filename_mode): Use it instead of cycle-check.
57938         * tests/test-canonicalize.c: Add a test for this bug.
57939         * tests/test-canonicalize.sh: Set up and run the test.
57940
57941         New module, file-set, from coreutils.
57942         * modules/file-set: Define it.
57943         * lib/file-set.c, lib/file-set.h: Implement.
57944
57945         New module, hash-triple, from coreutils.
57946         * modules/hash-triple: Define it.
57947         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57948
57949 2007-09-25  Eric Blake  <ebb9@byu.net>
57950
57951         Fix strerror on Interix.
57952         * lib/string_.h (strerror): Declare replacement.
57953         * doc/functions/strerror.texi (strerror): Document the Interix
57954         shortcoming.
57955         * modules/string (Makefile.am): Support new hooks.
57956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57957         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57958         gl_FUNC_STRERROR_SEPARATE.
57959         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57960         * lib/strerror.c (rpl_strerror): Provide replacement.
57961         * modules/strerror (Depends-on): Add string.
57962         (configure.ac): Detect use of module.
57963         * tests/test-strerror.c: New file.
57964         * modules/strerror-tests: New test module.
57965         * modules/argp (Depends-on): Add strerror.
57966         * modules/error (Depends-on): Likewise.
57967         Reported by Martin Koeppe.
57968
57969 2007-09-24  Bruno Haible  <bruno@clisp.org>
57970
57971         * README: Update git instructions.
57972
57973 2007-09-24  Eric Blake  <ebb9@byu.net>
57974
57975         Revert fpending breakage from 2007-09-08.
57976         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57977         __fpending.c.
57978
57979 2007-09-24  Jim Meyering  <jim@meyering.net>
57980
57981         filenamecat.c: Add a test.
57982         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57983         showing how the function works when DIR is the empty string.
57984
57985 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57986
57987         * tests/test-canonicalize.sh: Turn on executable bit.
57988
57989 2007-09-19  Eric Blake  <ebb9@byu.net>
57990
57991         * README: Update CVS instructions.
57992
57993 2007-09-18  Bruno Haible  <bruno@clisp.org>
57994
57995         * modules/areadlink: New file.
57996         * lib/areadlink.h (areadlink): New declaration.
57997         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57998
57999 2007-09-17  Jim Meyering  <jim@meyering.net>
58000
58001         * lib/savewd.c (ESTALE) [!defined]: Define.
58002         Reported to be required on Interix by Martin Koeppe.
58003
58004 2007-09-17  Bruno Haible  <bruno@clisp.org>
58005
58006         * gnulib-tool (func_version): Use $version.
58007
58008 2007-09-16  Bruno Haible  <bruno@clisp.org>
58009
58010         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58011         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58012         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58013         Reported by Greg Schafer <gschafer@zip.com.au>.
58014
58015 2007-09-15  Bruno Haible  <bruno@clisp.org>
58016
58017         * gnulib-tool (sed): Try a little harder to make bash understand the
58018         alias.
58019         Reported by Bruce Korb <bruce.korb@gmail.com>.
58020
58021 2007-09-13  Eric Blake  <ebb9@byu.net>
58022
58023         * ChangeLog: Remove conflict markers.
58024
58025 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58026
58027         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58028         Reported by Bruno Haible <bruno@clisp.org>.
58029
58030 2007-09-12  Bruno Haible  <bruno@clisp.org>
58031
58032         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58033         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58034         is not defined.
58035
58036 2007-09-12  Eric Blake  <ebb9@byu.net>
58037
58038         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58039         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58040         Autoconf definition.
58041         * modules/euidaccess (Depends-on): Add extensions, for
58042         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58043         * modules/fnmatch (Depends-on): Likewise.
58044         * modules/getaddrinfo (Depends-on): Likewise.
58045         * modules/getdelim (Depends-on): Likewise.
58046         * modules/getline (Depends-on): Likewise.
58047         * modules/getsubopt (Depends-on): Likewise.
58048         * modules/gettext (Depends-on): Likewise.
58049         * modules/group-member (Depends-on): Likewise.
58050         * modules/mbchar (Depends-on): Likewise.
58051         * modules/memmem (Depends-on): Likewise.
58052         * modules/mempcpy (Depends-on): Likewise.
58053         * modules/memrchr (Depends-on): Likewise.
58054         * modules/pagealign_alloc (Depends-on): Likewise.
58055         * modules/readutmp (Depends-on): Likewise.
58056         * modules/stpcpy (Depends-on): Likewise.
58057         * modules/stpncpy (Depends-on): Likewise.
58058         * modules/strchrnul (Depends-on): Likewise.
58059         * modules/strndup (Depends-on): Likewise.
58060         * modules/strsep (Depends-on): Likewise.
58061         * modules/strverscmp (Depends-on): Likewise.
58062         * modules/vasprintf (Depends-on): Likewise.
58063         * modules/wcwidth (Depends-on): Likewise.
58064         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58065         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58066         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58067         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58068         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58069         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58070         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58071         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58072         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58073         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58074         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58075         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58076         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58077         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58078         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58079         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58080         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58081         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58083         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58084         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58085         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58086         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58087         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58088         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58089         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58090         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58091         so that lock.m4 can be used in gettext without extensions module.
58092
58093 2007-09-11  Bruno Haible  <bruno@clisp.org>
58094
58095         * m4/isc-posix.m4: Remove file.
58096         Suggested by Eric Blake.
58097
58098 2007-09-11  Eric Blake  <ebb9@byu.net>
58099
58100         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58101
58102 2007-09-10  Bruno Haible  <bruno@clisp.org>
58103
58104         * posix-modules: Fix typo in error message.
58105         Reported by Matt <mkraai@beckman.com>.
58106
58107 2007-09-09  Bruno Haible  <bruno@clisp.org>
58108
58109         * doc/functions/getdelim.texi: Update list of platforms lacking the
58110         function.
58111         * doc/functions/getline.texi: Likewise.
58112
58113 2007-09-09  Jim Meyering  <jim@meyering.net>
58114
58115         * lib/hash.c (hash_initialize): Detect calloc failure.
58116         Reported by Bruno Haible.
58117
58118 2007-09-09  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58121         malloc or realloc fails.
58122
58123 2007-09-09  Bruno Haible  <bruno@clisp.org>
58124
58125         * modules/getcwd (Depends-on): Add malloc-posix.
58126         * modules/glob (Depends-on): Likewise.
58127         * modules/putenv (Depends-on): Likewise.
58128         * modules/strdup (Depends-on): Likewise.
58129         * modules/getdelim (Depends-on): Add realloc-posix.
58130         * modules/read-file (Depends-on): Likewise.
58131
58132 2007-09-09  Bruno Haible  <bruno@clisp.org>
58133
58134         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58135         (gl_FUNC_MALLOC_POSIX): Require it.
58136         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58137         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58138         * modules/realloc (Files): Add m4/malloc.m4.
58139         * modules/calloc (Files): Likewise.
58140
58141 2007-09-09  Bruno Haible  <bruno@clisp.org>
58142
58143         * modules/malloc-posix: New file.
58144         * modules/malloc (Depends-on): Add malloc-posix.
58145         * lib/malloc.c: Include errno.h.
58146         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58147         and a POSIX-compatible malloc into a single function. Set ENOMEM
58148         when returning NULL.
58149         * m4/malloc.m4: New file.
58150         * doc/functions/malloc.texi: Mention the malloc-posix module.
58151         * lib/stdlib_.h (malloc): New declaration.
58152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58153         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58154         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58155         and HAVE_MALLOC_POSIX.
58156
58157 2007-09-09  Bruno Haible  <bruno@clisp.org>
58158
58159         * modules/realloc-posix: New file.
58160         * modules/realloc (Depends-on): Add realloc-posix.
58161         * lib/realloc.c: Include errno.h.
58162         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58163         and a POSIX-compatible realloc into a single function. Set ENOMEM
58164         when returning NULL.
58165         * m4/realloc.m4: New file.
58166         * doc/functions/realloc.texi: Mention the realloc-posix module.
58167         * lib/stdlib_.h (realloc): New declaration.
58168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58169         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58170         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58171         and HAVE_REALLOC_POSIX.
58172
58173 2007-09-09  Bruno Haible  <bruno@clisp.org>
58174
58175         * modules/calloc-posix: New file.
58176         * modules/calloc (Depends-on): Add calloc-posix.
58177         * lib/calloc.c: Include errno.h.
58178         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58179         and a POSIX-compatible calloc into a single function. Set ENOMEM
58180         when returning NULL.
58181         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58182         * doc/functions/calloc.texi: Mention the calloc-posix module.
58183         * lib/stdlib_.h (calloc): New declaration.
58184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58185         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58186         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58187         and HAVE_CALLOC_POSIX.
58188
58189 2007-09-09  Bruno Haible  <bruno@clisp.org>
58190
58191         Allow for modules to show an arbitrary notice.
58192         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58193         * gnulib-tool: New option --extract-notice.
58194         (func_usage): Document it.
58195         (sed_extract_prog): Update.
58196         (func_get_notice): New function.
58197         (func_modules_notice): New function.
58198         (func_import, func_create_testdir): Invoke it.
58199         Suggested by Jim Meyering.
58200
58201 2007-09-09  Bruno Haible  <bruno@clisp.org>
58202
58203         * gnulib-tool: New options --verbose, --quiet.
58204         (func_usage): Document them.
58205         (verbose): New variable.
58206         (func_execute_command): New function.
58207         (func_import): Don't show the module list and the file list if
58208         $verbose < 0.
58209         (func_create_testdir): Likewise. Use func_execute_command.
58210         (func_create_megatestdir): Use func_execute_command.
58211
58212 2007-09-08  Bruno Haible  <bruno@clisp.org>
58213
58214         * gnulib-tool (func_import): Prefer rsync over wget when available,
58215         for fetching the PO files.
58216
58217 2007-09-08  Bruno Haible  <bruno@clisp.org>
58218
58219         * posix-modules: New file. Portions copied from gnulib-tool.
58220         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58221
58222 2007-09-08  Jim Meyering  <jim@meyering.net>
58223
58224         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58225         * lib/fpending.h: Rename from __fpending.h.
58226         * lib/fpending.c: Rename from __fpending.c.
58227         Include "fpending.h", not "__fpending.h".
58228         * lib/__fpending.h, lib/__fpending.c: Remove files.
58229         * modules/fpending (Files): Reflect new file names.
58230         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58231
58232 2007-09-08  Bruno Haible  <bruno@clisp.org>
58233
58234         * m4/inttypes-h.m4: Remove stub file.
58235
58236 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58237
58238         * doc/headers/stdint.texi: Discuss #include_next issue.
58239
58240 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58243
58244 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58245
58246         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58247         in variable name.
58248
58249 2007-09-03  Jim Meyering  <jim@meyering.net>
58250
58251         New module: git-version-gen.
58252         * modules/git-version-gen: New file.
58253
58254         Import changes from coreutils for bootstrap script.
58255
58256         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58257
58258         bootstrap: uses rsync to download the .po files
58259         * build-aux/bootstrap (po_download_command_format): New global.
58260         (download_po_files): Use rsync.
58261         (update_po_files): Don't remove .po files after download,
58262         so future rsync runs can take advantage of the copies.
58263
58264         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58265
58266         Solve the unnecessary-.po-file-regeneration problem once and for all.
58267         * build-aux/bootstrap (download_po_files): New function, renamed from
58268         get_translations.  Now, downloads, but doesn't update LINGUAS.
58269         (update_po_files): New function.
58270
58271         bootstrap: Ignore more.
58272         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58273         uniwidth to e.g., lib/.gitignore.
58274         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58275
58276         * build-aux/bootstrap: New setting: vc_ignore.
58277         (insert_sorted_if_absent): Create $file if absent.
58278         Adapt to new, possibly empty, list: $vc_ignore.
58279
58280         bootstrap: generate more ignorable names
58281         * build-aux/bootstrap (slurp): When generating ignorable names,
58282         also map .sin to .sed, .gperf to .c, and .y to .c.
58283
58284 2007-09-03  Jim Meyering  <jim@meyering.net>
58285
58286         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58287         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58288
58289 2007-09-02  Bruno Haible  <bruno@clisp.org>
58290
58291         Fix mis-recognition of 'mcs' on QNX 6.
58292         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58293         output contains the string "Mono".
58294         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58295         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58296
58297 2007-09-01  Bruno Haible  <bruno@clisp.org>
58298
58299         Fix collision between uniwidth/* and linebreak modules.
58300         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58301         u32_width): Remove declarations.
58302         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58303         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58304         streq3, streq2, streq1, streq0): Remove functions.
58305         (STREQ): Remove macro.
58306         (is_cjk_encoding): Remove function.
58307         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58308         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58309         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58310         * NEWS: Document the change.
58311
58312 2007-09-01  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/streq.h: Add double-inclusion guard.
58315
58316 2007-09-01  Karl Berry  <karl@gnu.org>
58317
58318         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58319
58320 2007-08-28  Jim Meyering  <jim@meyering.net>
58321
58322         Rename mreadlink_with_size to areadlink_with_size.
58323         * NEWS: Document the change.
58324         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58325         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58326         * lib/mreadlink.h: Rename this to...
58327         * lib/areadlink.h: ...this.
58328         * modules/mreadlink-with-size: Rename this to...
58329         * modules/areadlink-with-size: ...this.
58330         * lib/canonicalize.c: Reflect the renaming.
58331         * modules/canonicalize: Likewise.
58332
58333 2007-08-26  Bruno Haible  <bruno@clisp.org>
58334
58335         * gnulib-tool (func_import): When deciding which files to remove,
58336         consider also dangling symbolic links.
58337         Reported by Eric Blake.
58338
58339 2007-08-26  Bruno Haible  <bruno@clisp.org>
58340
58341         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58342
58343 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58344
58345         * lib/readline.c: Don't include getline.h, the prototype is now
58346         found in stdio.h.
58347
58348 2007-08-23  Jim Meyering  <jim@meyering.net>
58349
58350         Getdelim touchup.
58351         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58352         around the funlockfile call, since funlockfile never sets errno.
58353         Don't set errno upon failed realloc.
58354
58355 2007-08-22  Eric Blake  <ebb9@byu.net>
58356
58357         Getline touchups.
58358         * lib/getdelim.c (getdelim): Revert regression that required *n to
58359         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58360         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58361         getdelim, rather than whether implementation is missing.
58362         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58363         * lib/stdio_.h (getline): Also declare if replacement is
58364         required.
58365         * doc/functions/getdelim.texi: New file.
58366         * doc/functions/getline.texi: Likewise.
58367         * doc/gnulib.texi (Function Substitutes): Add new files.
58368         Reported by Bruno Haible.
58369
58370 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58371
58372         * users.txt: Add Guile.
58373
58374 2007-08-22  Eric Blake  <ebb9@byu.net>
58375
58376         * tests/test-getdelim.c (main): Use remove, not unlink.
58377         * tests/test-getline.c (main): Likewise.
58378
58379         Move getline and getdelim into stdio.h, per POSIX 200x.
58380         * modules/getline (Files): Remove getline.h.
58381         (Depends-on): Add stdio.
58382         (configure.ac): Add module indicator.
58383         * modules/getdelim (Files): Remove getdelim.h.
58384         (Depends-on): Add stdio.
58385         (configure.ac): Add module indicator.
58386         * modules/stdio (Makefile.am): Work with new indicators.
58387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58388         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58389         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58390         * lib/getdelim.h: Delete.
58391         * lib/getline.h: Delete.
58392         * lib/stdio_.h (getdelim, getline): Declare.
58393         * modules/getdelim-tests: New module.
58394         * modules/getline-tests: Likewise.
58395         * tests/test-getdelim.c: New file.
58396         * tests/test-getline.c: Likewise.
58397         * NEWS: Document the change.
58398         * lib/getline.c: Update choice of header.
58399         * lib/csharpcomp.c: Likewise.
58400         * lib/getpass.c: Likewise.
58401         * lib/javacomp.c: Likewise.
58402         * lib/javaversion.c: Likewise.
58403         * lib/yesno.c: Likewise.
58404         * lib/getdelim.c: Likewise.
58405         (getdelim): Set errno on failure, and avoid memory leak.
58406
58407 2007-08-19  Bruno Haible  <bruno@clisp.org>
58408
58409         * modules/closein (Depends-on): Add freadahead.
58410         * lib/closein.c: Include freadahead.h.
58411         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58412         is zero.
58413
58414 2007-08-19  Bruno Haible  <bruno@clisp.org>
58415
58416         * modules/freadahead-tests: New file.
58417         * tests/test-freadahead.sh: New file.
58418         * tests/test-freadahead.c: New file.
58419
58420         * modules/freadahead: New file.
58421         * lib/freadahead.h: New file.
58422         * lib/freadahead.c: New file.
58423         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58424         fbufmode, fpurge, freadable, fwritable.
58425
58426 2007-08-19  Eric Blake  <ebb9@byu.net>
58427
58428         Test yesno in combination with closein.
58429         * lib/yesno.c (yesno): Document use of stdin.
58430         * modules/yesno-tests (Files): New module.
58431         * tests/test-yesno.c (main): New file.
58432         * tests/test-yesno.sh: Likewise.
58433
58434 2007-08-19  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58437         * lib/fseeko.c (rpl_fseeko): Likewise.
58438         * lib/fseterr.c (fseterr): Likewise.
58439
58440 2007-08-19  Bruno Haible  <bruno@clisp.org>
58441
58442         * tests/test-lseek.c (main): Disable a test for BeOS.
58443         * doc/functions/lseek.texi: Document the BeOS bug.
58444
58445 2007-08-19  Bruno Haible  <bruno@clisp.org>
58446             Eric Blake  <ebb9@byu.net>
58447
58448         * lib/lseek.c: Include <sys/stat.h>.
58449         (rpl_lseek): Add workaround code also for Unix platforms.
58450         Needed for BeOS.
58451         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58452         * doc/functions/lseek.texi: Document BeOS definiency.
58453
58454 2007-08-18  Bruno Haible  <bruno@clisp.org>
58455
58456         * modules/fstrcmp-tests: New file.
58457         * tests/test-fstrcmp.c: New file.
58458
58459 2007-08-18  Bruno Haible  <bruno@clisp.org>
58460
58461         * modules/fstrcmp: New file, from GNU gettext with modifications.
58462         * lib/fstrcmp.h: New file, from GNU gettext.
58463         * lib/fstrcmp.c: New file, from GNU gettext.
58464         * MODULES.html.sh (String handling): Add fstrcmp.
58465
58466 2007-08-18  Bruno Haible  <bruno@clisp.org>
58467
58468         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58469         'bool'.
58470         (diag, compareseq): Remove const from the ctxt argument.
58471         (USE_HEURISTIC): Undefine at the end.
58472
58473 2007-08-18  Jim Meyering  <jim@meyering.net>
58474
58475         New file: lib/idcache.h
58476         * NEWS: Mention the addition.
58477         * modules/idcache (Files): Add lib/idcache.h
58478         * lib/idcache.c: Include "idcache.h".
58479         Don't include <sys/types.h>.
58480         Add a FIXME comment.
58481         Move file-scoped "static" declarations to the top.
58482         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58483
58484 2007-08-17  Bruno Haible  <bruno@clisp.org>
58485         and Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         * MODULES.html.sh: Add diffseq.
58488         * modules/diffseq: New file.
58489         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58490         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58491
58492 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58493
58494         Import changes from coreutils for bootstrap script.
58495
58496         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58497
58498         * build-aux/bootstrap (slurp): Work even in environments where
58499         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58500         current code does not slurp files whose names start with ".", and
58501         this looks like it might be a troublesome area.
58502
58503         2007-07-11  Jim Meyering  <jim@meyering.net>
58504
58505         If there's a GPL vN copyright comment, require that N == 3.
58506
58507         2007-07-08  Jim Meyering  <jim@meyering.net>
58508
58509         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58510         * build-aux/bootstrap (mam_template): Move definition out of loop.
58511
58512         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58513
58514         * build-aux/bootstrap (symlink_to_dir): Rename function from
58515         symlink_to_gnulib.  Add a directory parameter.  Update all
58516         callers.
58517         (cp_mark_as_generated): Also check for -- and link to -- files in
58518         gl/.
58519
58520         2007-07-08  Jim Meyering  <jim@meyering.net>
58521
58522         Adapt to deeper hierarchy in gnulib.
58523         * build-aux/bootstrap (symlink_to_dir): If the destination
58524         directory doesn't exist, create it. This is required at least for
58525         "lib/uniwidth/cjk.h".
58526
58527         2007-05-15  Jim Meyering  <jim@meyering.net>
58528
58529         * build-aux/bootstrap: Now that generated Makefile.am files
58530         are no longer under version control, they must be created at
58531         bootstrap time.
58532
58533 2007-08-14  Ben Pfaff  <blp@gnu.org>
58534
58535         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58536
58537 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58538
58539         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58540         given the changes below.
58541         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58542         even on hosts that have padding bits beyond the supported 64.
58543
58544 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58545
58546         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58547         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58548         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58549         depends on it.
58550         (xstrtol_error): Remove.
58551         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58552         but with a different signature.
58553         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58554         * lib/xstrtol-error.c: Include exitfail.h.
58555         (xstrtol_fatal): New function, with a different signature from the
58556         old xstrtol_error, so that the caller need not worry about passing
58557         in an exit status, or about storage management of the option argument.
58558         (xstrtol_error): Now a static function.  Redo signature to
58559         implement xstrtol_fatal.  Output the correct number of hyphens in
58560         front of the option so that the caller need not worry about
58561         storage management.
58562         (N_): New macro.
58563         (_): Remove; not used now.
58564         * modules/xstrtol: Depend on getopt.
58565         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58566         of old STRTOL_FATAL_ERROR macro.
58567         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58568         of test program.
58569         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58570         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58571
58572 2007-08-08  Eric Blake  <ebb9@byu.net>
58573
58574         * lib/xstrtol-error.c: Add missing include.
58575
58576         Move xstrtol messages into gnulib domain, when --pobase is used.
58577         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58578         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58579         * modules/xstrtol (Files): Distribute new file.
58580         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58581         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58582         * tests/test-xstrtol.c: ...into new file.
58583         * tests/test-xstrtoul.c: Also test xstrtoul.
58584         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58585         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58586         * tests/test-xstrtol.sh: Drive the tests.
58587         * tests/test-xstrtoimax.sh: Likewise.
58588         * tests/test-xstrtoumax.sh: Likewise.
58589         * modules/xstrtol-tests: New module.
58590         * modules/xstrtoimax-tests: Likewise.
58591         * modules/xstrtoumax-tests: Likewise.
58592
58593 2007-08-08  Jim Meyering  <jim@meyering.net>
58594
58595         New function: mfile_name_concat.
58596         * lib/filenamecat.c (mfile_name_concat): New function, just like
58597         file_name_concat, but return NULL upon failure rather than exiting
58598         with a diagnostic.
58599         * lib/filenamecat.h: Declare it.
58600
58601 2007-08-07  Bruno Haible  <bruno@clisp.org>
58602
58603         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58604         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58605         warning from gcc.
58606         Reported by Eric Blake.
58607
58608 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58609
58610         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58611         * modules/crypto/arcfour (License): Likewise.
58612         * modules/crypto/des-tests (License): Likewise.
58613         * modules/crypto/gc-arctwo-tests (License): Likewise.
58614         * modules/crypto/gc-des-tests (License): Likewise.
58615         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58616         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58617         * modules/crypto/gc-md2-tests (License): Likewise.
58618         * modules/crypto/gc-md4-tests (License): Likewise.
58619         * modules/crypto/gc-md5-tests (License): Likewise.
58620         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58621         * modules/crypto/gc-rijndael-tests (License): Likewise.
58622         * modules/crypto/gc-sha1-tests (License): Likewise.
58623         * modules/crypto/gc-tests (License): Likewise.
58624         * modules/crypto/hmac-md5 (License): Likewise.
58625         * modules/crypto/hmac-sha1 (License): Likewise.
58626         * modules/crypto/md2-tests (License): Likewise.
58627         * modules/crypto/md4-tests (License): Likewise.
58628         * modules/crypto/md5 (License): Likewise.
58629         * modules/crypto/rijndael (License): Likewise.
58630         * modules/crypto/sha1 (License): Likewise.
58631         * modules/memxor (License): Likewise.
58632
58633 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58634         and Bruno Haible  <bruno@clisp.org>
58635
58636         * NEWS: Describe interface changes to human, xstrtol.
58637         * lib/human.h: Include <xstrtol.h>.
58638         (human_options): Return enum strtol_error, not int.  Remove
58639         bool arg; take int * instead.
58640         * lib/human.c: Don't include "gettext.h".
58641         (_): Remove; no longer used.
58642         Don't include <xstrtol.h>, since human.h does it.
58643         (human_options): Adjust to abovementioned interface changes.
58644         Do not report error to stderr; that's now the caller's
58645         responsibility.
58646         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58647         interface change.
58648         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58649         Str, Argument_type_string.  All uses changed.  Put " argument"
58650         in diagnostics to make them clearer.  Change wording of suffix
58651         message for clarity.
58652         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58653         Argument_type_string.
58654         (STRTOL_FATAL_WARN): Remove; no longer used.
58655         * modules/human (Depends-on): Remove gettext-h.
58656
58657 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58658
58659         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58660
58661 2007-07-31  Bruno Haible  <bruno@clisp.org>
58662
58663         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58664         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58665         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58666
58667 2007-07-31  Bruno Haible  <bruno@clisp.org>
58668
58669         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58670         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58671
58672 2007-07-30  Bruno Haible  <bruno@clisp.org>
58673
58674         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58675         * modules/c-ctype (License): Likewise.
58676         * modules/c-strcase (License): Likewise.
58677         * modules/check-version (License): Likewise.
58678         * modules/iconv (License): Likewise.
58679         * modules/iconv_open (License): Likewise.
58680         * modules/read-file (License): Likewise.
58681         * modules/striconv (License): Likewise.
58682         * modules/strverscmp (License): Likewise.
58683         * modules/vasprintf (License): Likewise.
58684         * modules/crypto/des (License): Likewise.
58685         * modules/crypto/gc (License): Likewise.
58686         * modules/crypto/gc-arcfour (License): Likewise.
58687         * modules/crypto/gc-arctwo (License): Likewise.
58688         * modules/crypto/gc-des (License): Likewise.
58689         * modules/crypto/gc-hmac-md5 (License): Likewise.
58690         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58691         * modules/crypto/gc-md2 (License): Likewise.
58692         * modules/crypto/gc-md4 (License): Likewise.
58693         * modules/crypto/gc-md5 (License): Likewise.
58694         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58695         * modules/crypto/gc-random (License): Likewise.
58696         * modules/crypto/gc-rijndael (License): Likewise.
58697         * modules/crypto/gc-sha1 (License): Likewise.
58698         * modules/crypto/md2 (License): Likewise.
58699         * modules/crypto/md4 (License): Likewise.
58700
58701 2007-07-30  Jim Meyering  <jim@meyering.net>
58702
58703         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58704         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58705         it has valid stat data.  This bug would cause du not to count the
58706         sizes of inaccessible directories.
58707         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58708         in <http://bugzilla.redhat.com/250077>.
58709
58710 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58711             Bruno Haible  <bruno@clisp.org>
58712
58713         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58714         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58715         #include_next, gives a diagnostic about it, but reports no error in
58716         the exit code.
58717         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58718
58719 2007-07-24  Ben Pfaff  <blp@gnu.org>
58720
58721         Improve name: "count-one-bits" is better than "popcount".
58722         * MODULES.html.sh: Update name.
58723         * lib/popcount.h: Renamed lib/count-one-bits.h.
58724         (popcount): Renamed count_one_bits.
58725         (popcountl): Renamed count_one_bits_l.
58726         (popcountll): Renamed count_one_bits_ll.
58727         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58728         * modules/popcount: Renamed module/count-one-bits.
58729         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58730         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58731
58732 2007-07-23  Ben Pfaff  <blp@gnu.org>
58733
58734         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58735         better code generation, and add U to large constants to avoid
58736         warnings, in non-GCC case.
58737         Suggested by Bruno Haible.
58738
58739 2007-07-23  Ben Pfaff  <blp@gnu.org>
58740
58741         * lib/popcount.h: Use verify_true instead of if...abort.
58742         * modules/popcount: Depend on verify module.
58743         Suggested by Jim Meyering.
58744
58745 2007-07-23  Bruno Haible  <bruno@clisp.org>
58746
58747         * gnulib-tool (func_import): Create a .cvsignore file also when the
58748         directory is not yet in CVS but the toplevel directory is. When
58749         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58750         Reported by Karl Berry.
58751
58752 2007-07-22  Ben Pfaff  <blp@gnu.org>
58753
58754         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58755         case.
58756         Suggested by Eric Blake.
58757
58758 2007-07-22  Ben Pfaff  <blp@gnu.org>
58759
58760         New module: popcount.
58761         * MODULES.html.sh: Add popcount.
58762         * modules/popcount: New file.
58763         * modules/popcount-tests: New file.
58764         * tests/test-popcount.c: New file.
58765         * lib/popcount.h: New file.
58766         * m4/popcount.m4: New file.
58767
58768 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         * build-aux/announce-gen: Update to GPLv3.
58771
58772         * build-aux/config.guess: Update from config.
58773
58774 2007-07-21  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58777         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58778
58779 2007-07-20  Jim Meyering  <jim@meyering.net>
58780
58781         * check-module: Diagnose a self-dependency.
58782
58783 2007-07-19  Bruno Haible  <bruno@clisp.org>
58784
58785         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58786         empty.
58787         Reported by Eric Blake.
58788
58789 2007-07-18  Bruno Haible  <bruno@clisp.org>
58790
58791         * gnulib-tool: New options --po-base, --po-domain.
58792         (func_usage): Document them.
58793         (pobase, po_domain): New variables.
58794         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58795         DEFAULT_TEXT_DOMAIN.
58796         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58797         (func_import): Consider pobase and po_domain. Create a po/ directory.
58798         (func_create_testdir): Set pobase and po_domain to empty.
58799         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58800         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58801
58802 2007-07-18  Bruno Haible  <bruno@clisp.org>
58803
58804         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58805         EXTRA_DIST augmentation for files in build-aux/.
58806
58807 2007-07-16  Bruno Haible  <bruno@clisp.org>
58808
58809         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58810         * modules/getdelim (License): Likewise.
58811
58812 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58813
58814         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58815         * modules/d-type (License): Likewise.
58816         * modules/extensions (License): Likewise.
58817         * modules/fnmatch (License): Likewise.
58818         * modules/fseeko (License): Likewise.
58819         * modules/getaddrinfo (License): Likewise.
58820         * modules/getline (License): Likewise.
58821         * modules/getlogin_r (License): Likewise.
58822         * modules/getpass (License): Likewise.
58823         * modules/gettimeofday (License): Likewise.
58824         * modules/glob (License): Likewise.
58825         * modules/inet_ntop (License): Likewise.
58826         * modules/malloc (License): Likewise.
58827         * modules/malloca (License): Likewise.
58828         * modules/memmem (License): Likewise.
58829         * modules/mempcpy (License): Likewise.
58830         * modules/memset (License): Likewise.
58831         * modules/minmax (License): Likewise.
58832         * modules/mktime (License): Likewise.
58833         * modules/netinet_in (License): Likewise.
58834         * modules/pathmax (License): Likewise.
58835         * modules/poll (License): Likewise.
58836         * modules/regex (License): Likewise.
58837         * modules/snprintf (License): Likewise.
58838         * modules/stdbool (License): Likewise.
58839         * modules/stdint (License): Likewise.
58840         * modules/stdio (License): Likewise.
58841         * modules/strcase (License): Likewise.
58842         * modules/strcasestr (License): Likewise.
58843         * modules/strdup (License): Likewise.
58844         * modules/string (License): Likewise.
58845         * modules/strndup (License): Likewise.
58846         * modules/strnlen (License): Likewise.
58847         * modules/strpbrk (License): Likewise.
58848         * modules/strptime (License): Likewise.
58849         * modules/strsep (License): Likewise.
58850         * modules/sys_select (License): Likewise.
58851         * modules/sys_socket (License): Likewise.
58852         * modules/sys_stat (License): Likewise.
58853         * modules/sys_time (License): Likewise.
58854         * modules/time (License): Likewise.
58855         * modules/time_r (License): Likewise.
58856         * modules/timegm (License): Likewise.
58857         * modules/unistd (License): Likewise.
58858         * modules/vsnprintf (License): Likewise.
58859         * modules/wctype (License): Likewise.
58860
58861 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58862
58863         * modules/argz (License): LGPLv2+.
58864
58865 2007-07-15  Karl Berry  <karl@gnu.org>
58866
58867         * doc/gnulib.texi: revise node structure per new fdl.texi.
58868
58869 2007-07-14  Bruno Haible  <bruno@clisp.org>
58870
58871         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58872         the output file.
58873         * lib/uniname/uninames.h: Regenerated.
58874
58875 2007-07-14  Karl Berry  <karl@gnu.org>
58876
58877         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58878         omitting sectioning and index commands.
58879
58880 2007-07-13  Bruno Haible  <bruno@clisp.org>
58881
58882         New gnulib-tool option --more-symlinks.
58883         * gnulib-tool (func_usage): Document --more-symlinks.
58884         (do_copyrights): New variable.
58885         Recognize option --more-symlinks.
58886         (func_import): Don't add a copyright notice transform to
58887         sed_transform_lib_file if do_copyrights is empty.
58888
58889 2007-07-13  Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/vasnprintf.c (decimal_point_char): Define also if
58892         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58893         && !NEED_PRINTF_DIRECTIVE_A.
58894         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58895         Gary V. Vaughan <gary@gnu.org>.
58896
58897 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58898
58899         * lib/inttypes_.h: Undo previous change, since it was fixed
58900         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58901
58902 2007-07-13  Bruno Haible  <bruno@clisp.org>
58903
58904         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58905         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58906
58907 2007-07-13  Jim Meyering  <jim@meyering.net>
58908
58909         df: Don't fail for Tru64's "file-on-file mount".
58910         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58911         so we fall through and use statfs instead.  Details here:
58912         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58913         Reported by Albert Chin.
58914
58915 2007-07-13  Bruno Haible  <bruno@clisp.org>
58916
58917         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58918         * modules/configmake (License): Likewise.
58919         * modules/gettext (License): Likewise.
58920         * modules/gettext-h (License): Likewise.
58921         * modules/include_next (License): Likewise.
58922         * modules/link-warning (License): Likewise.
58923         * modules/localcharset (License): Likewise.
58924         * modules/localename (License): Likewise.
58925         * modules/lock (License): Likewise.
58926         * modules/relocatable-lib-lgpl (License): Likewise.
58927         * modules/size_max (License): Likewise.
58928         * modules/vasnprintf (License): Likewise.
58929         * modules/wchar (License): Likewise.
58930         * modules/xsize (License): Likewise.
58931
58932 2007-07-13  Bruno Haible  <bruno@clisp.org>
58933
58934         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58935         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58936
58937 2007-07-12  Bruno Haible  <bruno@clisp.org>
58938
58939         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58940         in the modules files.
58941
58942 2007-07-11  Karl Berry  <karl@gnu.org>
58943
58944         * MODULES.html.sh (func_module): use
58945          sed -e '\|^'"${includefile}"'$|d'
58946          instead of /.../d, to avoid errors on $includefile's containing /.
58947
58948 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58949
58950         * gnulib-tool (func_import): Avoid duplication of --avoid
58951         statements
58952         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58953         names to `_' in variable names.
58954
58955 2007-07-10  Eric Blake  <ebb9@byu.net>
58956
58957         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58958         * NEWS: Document this change.
58959
58960 2007-07-08  Bruno Haible  <bruno@clisp.org>
58961
58962         Update to Unicode 5.0.
58963         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58964         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58965         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58966         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58967         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58968         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58969         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58970         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58971         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58972         U+10A3F, U+1D242..U+1D244.
58973         (nonspacing_table_ind): Update.
58974         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58975         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58976
58977 2007-07-08  Bruno Haible  <bruno@clisp.org>
58978
58979         Update to Unicode 5.0.
58980         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58981         code transform. Extend the name index field of unicode_name_to_code and
58982         unicode_code_to_name from 16 to 24 bits.
58983         * lib/uniname/uniname.c (unicode_character_name,
58984         unicode_name_character): Add the range 0x12xxx to the code transform.
58985         * lib/uniname/uninames.h: Regenerated.
58986         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58987
58988 2007-07-07  Bruno Haible  <bruno@clisp.org>
58989
58990         * modules/wcwidth-tests: New file.
58991         * tests/test-wcwidth.c: New file.
58992
58993         Work around MacOS X wcwidth() bug.
58994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58995         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58996         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58997         original wcwidth in non-UTF-8 locales.
58998         * modules/wcwidth (Depends-on): Add localcharset, streq,
58999         uniwidth/width.
59000         * doc/functions/wcwidth.texi: Update.
59001
59002 2007-07-07  Bruno Haible  <bruno@clisp.org>
59003
59004         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59005         (wcwidth): New declaration.
59006         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59007         macros.
59008         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59009         here. Prepare for creating <wchar.h> unconditionally.
59010         * modules/wchar (Depends-on): Add link-warning.
59011         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59012         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59013         * lib/wcwidth.h: Remove file.
59014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59015         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59016         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59017         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59018         (Include): Replace wcwidth.h with <wchar.h>.
59019         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59020         * lib/mbchar.h: Don't include wcwidth.h.
59021         * lib/mbswidth.c: Likewise.
59022         * NEWS: Mention the change.
59023
59024 2007-07-07  Bruno Haible  <bruno@clisp.org>
59025
59026         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59027         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59028         definition with an external declaration.
59029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59030         defined as a function. Remove AC_C_INLINE requirement.
59031         * modules/wcwidth (Files): Add lib/wcwidth.c.
59032         (Makefile.am): Remove redundant statement.
59033
59034 2007-07-07  Bruno Haible  <bruno@clisp.org>
59035
59036         * MODULES.html.sh (Unicode string functions): Add the new modules.
59037
59038         * tests/uniwidth/test-u32-strwidth.c: New file.
59039         * modules/uniwidth/u32-strwidth-tests: New file.
59040
59041         * lib/uniwidth/u32-strwidth.c: New file.
59042         * modules/uniwidth/u32-strwidth: New file.
59043
59044         * tests/uniwidth/test-u16-strwidth.c: New file.
59045         * modules/uniwidth/u16-strwidth-tests: New file.
59046
59047         * lib/uniwidth/u16-strwidth.c: New file.
59048         * modules/uniwidth/u16-strwidth: New file.
59049
59050         * tests/uniwidth/test-u8-strwidth.c: New file.
59051         * modules/uniwidth/u8-strwidth-tests: New file.
59052
59053         * lib/uniwidth/u8-strwidth.c: New file.
59054         * modules/uniwidth/u8-strwidth: New file.
59055
59056         * tests/uniwidth/test-u32-width.c: New file.
59057         * modules/uniwidth/u32-width-tests: New file.
59058
59059         * lib/uniwidth/u32-width.c: New file.
59060         * modules/uniwidth/u32-width: New file.
59061
59062         * tests/uniwidth/test-u16-width.c: New file.
59063         * modules/uniwidth/u16-width-tests: New file.
59064
59065         * lib/uniwidth/u16-width.c: New file.
59066         * modules/uniwidth/u16-width: New file.
59067
59068         * tests/uniwidth/test-u8-width.c: New file.
59069         * modules/uniwidth/u8-width-tests: New file.
59070
59071         * lib/uniwidth/u8-width.c: New file.
59072         * modules/uniwidth/u8-width: New file.
59073
59074         * tests/uniwidth/test-uc_width.c: New file.
59075         * modules/uniwidth/width-tests: New file.
59076
59077         * lib/uniwidth/width.c: New file, from GNU libiconv.
59078         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59079         * modules/uniwidth/width: New file.
59080
59081         * lib/uniwidth.h: New file, from GNU libiconv.
59082         * modules/uniwidth/base: New file.
59083
59084 2007-07-07  Bruno Haible  <bruno@clisp.org>
59085
59086         * lib/uniname.h: New file, from GNU gettext.
59087         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59088         * lib/uniname/uninames.h: New file, from GNU gettext.
59089         * lib/uniname/uniname.c: New file, from GNU gettext.
59090         * tests/uniname/test-uninames.sh: New file.
59091         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59092         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59093         * modules/uniname/base: New file.
59094         * modules/uniname/uniname: New file.
59095         * modules/uniname/uniname-tests: New file.
59096         * MODULES.html.sh (Unicode string functions): Add the new modules.
59097
59098 2007-07-06  Bruno Haible  <bruno@clisp.org>
59099
59100         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59101
59102 2007-07-06  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59105         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59106         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59107         include <sys/time.h>.
59108         Reported by Eric Blake.
59109
59110 2007-07-06  Eric Blake  <ebb9@byu.net>
59111
59112         Fix testing canonicalize on cygwin.
59113         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59114         Revert patch from 2007-06-19.
59115         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59116         canonicalize module is also in use.
59117         * tests/test-canonicalize.c: New file.
59118         * tests/test-canonicalize.sh: Likewise.
59119         * modules/canonicalize-tests: Likewise.
59120
59121 2007-07-06  Jim Meyering  <jim@meyering.net>
59122
59123         * lib/getugroups.c (getugroups): Detect getgrent failure.
59124         Adjust comment to reflect reality: this function may return -1.
59125
59126 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59127
59128         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59129         the new TP address.
59130         (usage): Fix typo
59131         (gnulib_mk): New variable.
59132
59133 2007-07-05  Jim Meyering  <jim@meyering.net>
59134
59135         Don't let endgrent clobber errno, no matter how improbable.
59136         * lib/getugroups.c (getugroups): Save and restore errno around
59137         endgrent call.
59138
59139         Close the group DB even when failing with 2^31 or more members.
59140         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59141
59142 2007-07-04  Jim Meyering  <jim@meyering.net>
59143
59144         * lib/getugroups.h: New file.
59145         * lib/getugroups.c: Include "getugroups.h".
59146         Remove uses of "register" keyword.
59147         Move local variable, "cp", down into scope where used.
59148         Give "username" parameter the "const" attribute.
59149         * modules/getugroups (Files): Add lib/getugroups.h
59150
59151 2007-07-04  Karl Berry  <karl@gnu.org>
59152
59153         * MODULES.html.sh (func_all_modules): Complete rename of
59154         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59155
59156 2007-07-02  Bruno Haible  <bruno@clisp.org>
59157
59158         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59159         mode, when inttypes.h comes from gnulib.
59160         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59161
59162 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59163
59164         * NEWS: Mention lgpl module name change.
59165
59166         * modules/lgpl-2.1: Renamed from lgpl.
59167
59168         * NEWS: Mention gpl module name change.
59169
59170         * modules/gpl-3.0: New file, based on gpl-2.0.
59171
59172         * modules/gpl-2.0: Renamed from gpl.
59173
59174         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59175         doc/gpl-2.0.texi.
59176
59177 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59178
59179         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59180         #define __STDC_LIMIT_MACROS temporarily while including
59181         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59182         Problem reported by Joel E. Denny in
59183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59184
59185 2007-07-01  Bruno Haible  <bruno@clisp.org>
59186
59187         * lib/unistdio.h: New file.
59188         * lib/unistdio/u-asnprintf.h: New file.
59189         * lib/unistdio/u-asprintf.h: New file.
59190         * lib/unistdio/u-printf-args.c: New file.
59191         * lib/unistdio/u-printf-args.h: New file.
59192         * lib/unistdio/u-printf-parse.h: New file.
59193         * lib/unistdio/u-snprintf.h: New file.
59194         * lib/unistdio/u-sprintf.h: New file.
59195         * lib/unistdio/u-vasprintf.h: New file.
59196         * lib/unistdio/u-vsnprintf.h: New file.
59197         * lib/unistdio/u-vsprintf.h: New file.
59198         * lib/unistdio/ulc-asnprintf.c: New file.
59199         * lib/unistdio/ulc-asprintf.c: New file.
59200         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59201         * lib/unistdio/ulc-printf-parse.c: New file.
59202         * lib/unistdio/ulc-snprintf.c: New file.
59203         * lib/unistdio/ulc-sprintf.c: New file.
59204         * lib/unistdio/ulc-vasnprintf.c: New file.
59205         * lib/unistdio/ulc-vasprintf.c: New file.
59206         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59207         * lib/unistdio/ulc-vsnprintf.c: New file.
59208         * lib/unistdio/ulc-vsprintf.c: New file.
59209         * lib/unistdio/u8-asnprintf.c: New file.
59210         * lib/unistdio/u8-asprintf.c: New file.
59211         * lib/unistdio/u8-printf-parse.c: New file.
59212         * lib/unistdio/u8-snprintf.c: New file.
59213         * lib/unistdio/u8-sprintf.c: New file.
59214         * lib/unistdio/u8-vasnprintf.c: New file.
59215         * lib/unistdio/u8-vasprintf.c: New file.
59216         * lib/unistdio/u8-vsnprintf.c: New file.
59217         * lib/unistdio/u8-vsprintf.c: New file.
59218         * lib/unistdio/u8-u8-asnprintf.c: New file.
59219         * lib/unistdio/u8-u8-asprintf.c: New file.
59220         * lib/unistdio/u8-u8-snprintf.c: New file.
59221         * lib/unistdio/u8-u8-sprintf.c: New file.
59222         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59223         * lib/unistdio/u8-u8-vasprintf.c: New file.
59224         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59225         * lib/unistdio/u8-u8-vsprintf.c: New file.
59226         * lib/unistdio/u16-asnprintf.c: New file.
59227         * lib/unistdio/u16-asprintf.c: New file.
59228         * lib/unistdio/u16-printf-parse.c: New file.
59229         * lib/unistdio/u16-snprintf.c: New file.
59230         * lib/unistdio/u16-sprintf.c: New file.
59231         * lib/unistdio/u16-vasnprintf.c: New file.
59232         * lib/unistdio/u16-vasprintf.c: New file.
59233         * lib/unistdio/u16-vsnprintf.c: New file.
59234         * lib/unistdio/u16-vsprintf.c: New file.
59235         * lib/unistdio/u16-u16-asnprintf.c: New file.
59236         * lib/unistdio/u16-u16-asprintf.c: New file.
59237         * lib/unistdio/u16-u16-snprintf.c: New file.
59238         * lib/unistdio/u16-u16-sprintf.c: New file.
59239         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59240         * lib/unistdio/u16-u16-vasprintf.c: New file.
59241         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59242         * lib/unistdio/u16-u16-vsprintf.c: New file.
59243         * lib/unistdio/u32-asnprintf.c: New file.
59244         * lib/unistdio/u32-asprintf.c: New file.
59245         * lib/unistdio/u32-printf-parse.c: New file.
59246         * lib/unistdio/u32-snprintf.c: New file.
59247         * lib/unistdio/u32-sprintf.c: New file.
59248         * lib/unistdio/u32-vasnprintf.c: New file.
59249         * lib/unistdio/u32-vasprintf.c: New file.
59250         * lib/unistdio/u32-vsnprintf.c: New file.
59251         * lib/unistdio/u32-vsprintf.c: New file.
59252         * lib/unistdio/u32-u32-asnprintf.c: New file.
59253         * lib/unistdio/u32-u32-asprintf.c: New file.
59254         * lib/unistdio/u32-u32-snprintf.c: New file.
59255         * lib/unistdio/u32-u32-sprintf.c: New file.
59256         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59257         * lib/unistdio/u32-u32-vasprintf.c: New file.
59258         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59259         * lib/unistdio/u32-u32-vsprintf.c: New file.
59260         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59261         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59262         * tests/unistdio/test-ulc-printf1.h: New file.
59263         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59264         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59265         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59266         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59267         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59268         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59269         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59270         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59271         * tests/unistdio/test-u8-asnprintf1.c: New file.
59272         * tests/unistdio/test-u8-asnprintf1.h: New file.
59273         * tests/unistdio/test-u8-printf1.h: New file.
59274         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59275         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59276         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59277         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59278         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59279         * tests/unistdio/test-u8-vasprintf1.c: New file.
59280         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59281         * tests/unistdio/test-u8-vsprintf1.c: New file.
59282         * tests/unistdio/test-u16-asnprintf1.c: New file.
59283         * tests/unistdio/test-u16-asnprintf1.h: New file.
59284         * tests/unistdio/test-u16-printf1.h: New file.
59285         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59286         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59287         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59288         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59289         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59290         * tests/unistdio/test-u16-vasprintf1.c: New file.
59291         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59292         * tests/unistdio/test-u16-vsprintf1.c: New file.
59293         * tests/unistdio/test-u32-asnprintf1.c: New file.
59294         * tests/unistdio/test-u32-asnprintf1.h: New file.
59295         * tests/unistdio/test-u32-printf1.h: New file.
59296         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59297         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59298         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59299         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59300         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59301         * tests/unistdio/test-u32-vasprintf1.c: New file.
59302         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59303         * tests/unistdio/test-u32-vsprintf1.c: New file.
59304         * modules/unistdio/base: New file.
59305         * modules/unistdio/u-printf-args: New file.
59306         * modules/unistdio/ulc-asnprintf: New file.
59307         * modules/unistdio/ulc-asprintf: New file.
59308         * modules/unistdio/ulc-fprintf: New file.
59309         * modules/unistdio/ulc-printf-parse: New file.
59310         * modules/unistdio/ulc-snprintf: New file.
59311         * modules/unistdio/ulc-sprintf: New file.
59312         * modules/unistdio/ulc-vasnprintf: New file.
59313         * modules/unistdio/ulc-vasprintf: New file.
59314         * modules/unistdio/ulc-vfprintf: New file.
59315         * modules/unistdio/ulc-vsnprintf: New file.
59316         * modules/unistdio/ulc-vsprintf: New file.
59317         * modules/unistdio/u8-asnprintf: New file.
59318         * modules/unistdio/u8-asprintf: New file.
59319         * modules/unistdio/u8-printf-parse: New file.
59320         * modules/unistdio/u8-snprintf: New file.
59321         * modules/unistdio/u8-sprintf: New file.
59322         * modules/unistdio/u8-vasnprintf: New file.
59323         * modules/unistdio/u8-vasprintf: New file.
59324         * modules/unistdio/u8-vsnprintf: New file.
59325         * modules/unistdio/u8-vsprintf: New file.
59326         * modules/unistdio/u8-u8-asnprintf: New file.
59327         * modules/unistdio/u8-u8-asprintf: New file.
59328         * modules/unistdio/u8-u8-snprintf: New file.
59329         * modules/unistdio/u8-u8-sprintf: New file.
59330         * modules/unistdio/u8-u8-vasnprintf: New file.
59331         * modules/unistdio/u8-u8-vasprintf: New file.
59332         * modules/unistdio/u8-u8-vsnprintf: New file.
59333         * modules/unistdio/u8-u8-vsprintf: New file.
59334         * modules/unistdio/u16-asnprintf: New file.
59335         * modules/unistdio/u16-asprintf: New file.
59336         * modules/unistdio/u16-printf-parse: New file.
59337         * modules/unistdio/u16-snprintf: New file.
59338         * modules/unistdio/u16-sprintf: New file.
59339         * modules/unistdio/u16-vasnprintf: New file.
59340         * modules/unistdio/u16-vasprintf: New file.
59341         * modules/unistdio/u16-vsnprintf: New file.
59342         * modules/unistdio/u16-vsprintf: New file.
59343         * modules/unistdio/u16-u16-asnprintf: New file.
59344         * modules/unistdio/u16-u16-asprintf: New file.
59345         * modules/unistdio/u16-u16-snprintf: New file.
59346         * modules/unistdio/u16-u16-sprintf: New file.
59347         * modules/unistdio/u16-u16-vasnprintf: New file.
59348         * modules/unistdio/u16-u16-vasprintf: New file.
59349         * modules/unistdio/u16-u16-vsnprintf: New file.
59350         * modules/unistdio/u16-u16-vsprintf: New file.
59351         * modules/unistdio/u32-asnprintf: New file.
59352         * modules/unistdio/u32-asprintf: New file.
59353         * modules/unistdio/u32-printf-parse: New file.
59354         * modules/unistdio/u32-snprintf: New file.
59355         * modules/unistdio/u32-sprintf: New file.
59356         * modules/unistdio/u32-vasnprintf: New file.
59357         * modules/unistdio/u32-vasprintf: New file.
59358         * modules/unistdio/u32-vsnprintf: New file.
59359         * modules/unistdio/u32-vsprintf: New file.
59360         * modules/unistdio/u32-u32-asnprintf: New file.
59361         * modules/unistdio/u32-u32-asprintf: New file.
59362         * modules/unistdio/u32-u32-snprintf: New file.
59363         * modules/unistdio/u32-u32-sprintf: New file.
59364         * modules/unistdio/u32-u32-vasnprintf: New file.
59365         * modules/unistdio/u32-u32-vasprintf: New file.
59366         * modules/unistdio/u32-u32-vsnprintf: New file.
59367         * modules/unistdio/u32-u32-vsprintf: New file.
59368         * modules/unistdio/ulc-asnprintf-tests: New file.
59369         * modules/unistdio/ulc-vasnprintf-tests: New file.
59370         * modules/unistdio/ulc-vasprintf-tests: New file.
59371         * modules/unistdio/ulc-vsnprintf-tests: New file.
59372         * modules/unistdio/ulc-vsprintf-tests: New file.
59373         * modules/unistdio/u8-asnprintf-tests: New file.
59374         * modules/unistdio/u8-vasnprintf-tests: New file.
59375         * modules/unistdio/u8-vasprintf-tests: New file.
59376         * modules/unistdio/u8-vsnprintf-tests: New file.
59377         * modules/unistdio/u8-vsprintf-tests: New file.
59378         * modules/unistdio/u16-asnprintf-tests: New file.
59379         * modules/unistdio/u16-vasnprintf-tests: New file.
59380         * modules/unistdio/u16-vasprintf-tests: New file.
59381         * modules/unistdio/u16-vsnprintf-tests: New file.
59382         * modules/unistdio/u16-vsprintf-tests: New file.
59383         * modules/unistdio/u32-asnprintf-tests: New file.
59384         * modules/unistdio/u32-vasnprintf-tests: New file.
59385         * modules/unistdio/u32-vasprintf-tests: New file.
59386         * modules/unistdio/u32-vsnprintf-tests: New file.
59387         * modules/unistdio/u32-vsprintf-tests: New file.
59388         * MODULES.html.sh (Unicode string functions): Add the new modules.
59389
59390 2007-07-01  Bruno Haible  <bruno@clisp.org>
59391
59392         * lib/sprintf.c (sprintf): Limit the available length estimation,
59393         to avoid address wraparound.
59394         * lib/vsprintf.c (vsprintf): Likewise.
59395         * modules/sprintf-posix (Dependencies): Add stdint.
59396         * modules/vsprintf-posix (Dependencies): Likewise.
59397
59398 2007-07-01  Bruno Haible  <bruno@clisp.org>
59399
59400         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59401         Windows PATH as well. Conservative double-quoting. Comments.
59402
59403 2007-07-01  Bruno Haible  <bruno@clisp.org>
59404             Eric Blake  <ebb9@byu.net>
59405             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59406
59407         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59408         empty components in $PATH, denoting '.'.
59409
59410 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59411
59412         * gnulib-tool: Fix indentation.
59413         (func_create_megatestdir): Likewise.
59414         Report by Bruno Haible.
59415
59416 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59417
59418         Sync from Automake.
59419         * build-aux/gnupload: Fix shell portability issues with for loops.
59420         Report by Karl Berry.
59421
59422 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59423
59424         * build-aux/maint.mk (POURL): Use translationproject.org.
59425
59426 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59427             Bruno Haible  <bruno@clisp.org>
59428
59429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59430         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59431         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59432         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59433         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59434
59435 2007-06-27  Bruno Haible  <bruno@clisp.org>
59436
59437         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59438         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59439
59440 2007-06-26  Karl Berry  <karl@gnu.org>
59441
59442         * MODULES.html.sh: remove xreadlink-with-size.
59443
59444 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59445
59446         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59447         method that I hope also handles the double-include problem noted
59448         by Bruno Haible in
59449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59450
59451 2007-06-23  Bruno Haible  <bruno@clisp.org>
59452
59453         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59454         Don't let the 'mostlyclean' target fail if the last subdirectory could
59455         not be removed.
59456         Reported by Karl Berry.
59457
59458 2007-06-23  Bruno Haible  <bruno@clisp.org>
59459
59460         * gnulib-tool (echo): Add a speedier workaround for ksh.
59461         * tests/test-echo.sh: Likewise.
59462
59463 2007-06-23  Bruno Haible  <bruno@clisp.org>
59464
59465         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59466         * tests/test-echo.sh: Likewise.
59467
59468 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59469
59470         * gnulib-tool (IFS): Initialize early, so we don't set it to
59471         empty later.
59472         (self_abspathname): Rewrite algorithm to set it, reindent.
59473         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59474         (func_create_megatestdir): Merge some sed scripts.
59475
59476 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59477
59478         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59479         exposed by Sun Studio 11 cc on Solaris 8.
59480
59481 2007-06-22  Bruno Haible  <bruno@clisp.org>
59482
59483         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59484         backslashes.
59485         * tests/test-echo.sh: New file.
59486
59487 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59488
59489         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59490         simplify `sed_replace_build_aux' scripts, they are portable but
59491         echoing them with `echo' is not.
59492         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59493
59494 2007-06-21  Karl Berry  <karl@gnu.org>
59495
59496         * config/srclist.txt: guess we can't handle the licenses via
59497         srclist at the moment.
59498
59499 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * MODULES.html.sh: Add include_next.
59502         * modules/include_next: New file.
59503
59504 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59505
59506         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59507         INCLUDE_NEXT.
59508         (gl_CHECK_NEXT_HEADERS): New macro.
59509         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59510         the obsolescent gl_ABSOLUTE_HEADER.
59511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59512         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59513         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59514         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59515         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59516         * m4/math_h.m4 (gl_MATH_H): Likewise.
59517         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59518         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59519         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59520         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59521         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59522         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59523         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59525         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59526         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59527         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59528         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59529         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59530         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59531         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59532         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59533         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59534         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59535         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59536         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59537         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59538         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59539         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59540         * lib/float_.h: Likewise.
59541         * lib/inttypes_.h: Likewise.
59542         * lib/math_.h: Likewise.
59543         * lib/search_.h: Likewise.
59544         * lib/signal_.h: Likewise.
59545         * lib/stdint_.h: Likewise.
59546         * lib/stdio_.h: Likewise.
59547         * lib/stdlib_.h: Likewise.
59548         * lib/string_.h: Likewise.
59549         * lib/sys_stat_.h: Likewise.
59550         * lib/sys_time_.h: Likewise.
59551         * lib/time_.h: Likewise.
59552         * lib/unistd_.h: Likewise.
59553         * lib/wchar_.h: Likewise.
59554         * lib/wctype_.h: Likewise.
59555         * lib/dirent_.h: Likewise.
59556         * lib/iconv_.h: Likewise.
59557         * lib/locale_.h: Likewise.
59558         * lib/netinet_in_.h: Likewise.
59559         * lib/sys_select_.h: Likewise.
59560         * lib/sys_socket_.h: Likewise.
59561         * lib/sysexits_.h: Likewise.
59562         * modules/fcntl (Depends-on): Depend on include_next, not
59563         absolute_header.
59564         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59565         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59566         * modules/fchdir: Likewise.
59567         * modules/float: Likewise.
59568         * modules/iconv_open: Likewise.
59569         * modules/inttypes: Likewise.
59570         * modules/locale: Likewise.
59571         * modules/math: Likewise.
59572         * modules/netinet_in: Likewise.
59573         * modules/search: Likewise.
59574         * modules/signal: Likewise.
59575         * modules/stdint: Likewise.
59576         * modules/stdio: Likewise.
59577         * modules/stdlib: Likewise.
59578         * modules/string: Likewise.
59579         * modules/sys_select: Likewise.
59580         * modules/sys_socket: Likewise.
59581         * modules/sys_stat: Likewise.
59582         * modules/sys_time: Likewise.
59583         * modules/sysexits: Likewise.
59584         * modules/time: Likewise.
59585         * modules/unistd: Likewise.
59586         * modules/wchar: Likewise.
59587         * modules/wctype: Likewise.
59588         * modules/sys_stat: Change maintainer to "all".
59589         * modules/unistd: Likewise.
59590
59591 2007-06-20  Karl Berry  <karl@gnu.org>
59592
59593         * config/srclist.txt: track www changes in license files.
59594
59595 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59596
59597         * build-aux/bootstrap: Remove stray dot.
59598         Make sure build_aux settings are honored when linking
59599         gnulib_extra_files.
59600
59601 2007-06-19  Eric Blake  <ebb9@byu.net>
59602
59603         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59604         Allow compilation on cygwin.
59605
59606 2007-06-19  Jim Meyering  <jim@meyering.net>
59607
59608         xreadlink-with-size: Remove module.  No longer used.
59609         Ex-callers now use xreadlink or mreadlink-with-size.
59610         * modules/xreadlink-with-size: Remove module.
59611         * lib/xreadlink-with-size.c: Remove file.
59612         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59613         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59614         just before the function definition *is* accurate.
59615
59616         Eliminate one way canonicalize_filename_mode could exit.
59617         * lib/canonicalize.c (canonicalize_filename_mode):
59618         Use mreadlink_with_size, not xreadlink_with_size.
59619
59620 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         Detect porting problems to FreeBSD/arm, which has time_t wider than
59623         long int.  Original problem reported for GNU diff by Xin Li in
59624         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59625         * modules/getdate (Depends-on): Add intprops, verify.
59626         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59627         is an integer type no wider than long int.
59628
59629 2007-06-18  Jim Meyering  <jim@meyering.net>
59630
59631         New module: mreadlink-with-size.
59632         * MODULES.html.sh: Add mreadlink-with-size.
59633         * modules/mreadlink-with-size: New module
59634         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59635         not xreadlink-with-size.
59636         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59637
59638 2007-06-16  Bruno Haible  <bruno@clisp.org>
59639
59640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59641         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59642         Reported by Gary V. Vaughan <gary@gnu.org>.
59643
59644 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         Revamp lchown so that it lives in unistd.h where it belongs.
59647         * lib/lchown.h: Remove.
59648         * lib/dirchownmod.c: Don't include lib/lchown.h.
59649         * lib/fchownat.c: Likewise.
59650         * lib/openat.c: Likewise.
59651         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59652         does not follow symlinks.
59653         (EOPNOTSUPP): Define if not defined.
59654         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59655         is defined to 0.
59656         (lchown): New decl.
59657         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59658         Do not check for lchown decl.
59659         Set REPLACE_LCHOWN.
59660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59661         REPLACE_LCHOWN.
59662         * modules/chown: Make it clear it follows symlinks.
59663         * modules/lchown: Make it clear it doesn't follow symlinks.
59664         (Files): Remove lib/lchown.h
59665         (Depends-on): Add unistd.
59666         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59667         (Include): Include <unistd.h>, not "lchown.h".
59668         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59669         REPLACE_LCHOWN.
59670
59671 2007-06-15  Jim Meyering  <jim@meyering.net>
59672
59673         Change license (GPL to LGPL) of fsusage and dependents.
59674         * modules/fsusage (License): Change to LGPL.
59675         * modules/full-read (License): Likewise.
59676         * modules/full-write (License): Likewise.
59677         * modules/safe-read (License): Likewise.
59678         * modules/safe-write (License): Likewise.
59679
59680 2007-06-14  Ben Pfaff  <blp@gnu.org>
59681
59682         Missing part of allocsa -> malloca transition.
59683         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59684         gl_MALLOCA.
59685
59686 2007-06-12  Bruno Haible  <bruno@clisp.org>
59687
59688         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59689         to ia64, x86_64, i386.
59690         Reported by Eric Blake.
59691
59692 2007-06-12  Bruno Haible  <bruno@clisp.org>
59693
59694         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59695         cross-compiling to x86_64.
59696
59697 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59698
59699         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59700         glitch reported by Ralf Wildenhues in
59701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59702
59703         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59704         Vin Shelton.
59705
59706 2007-06-11  Bruno Haible  <bruno@clisp.org>
59707
59708         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59709         replacement string.
59710         Reported by Eric Blake.
59711
59712 2007-06-10  Bruno Haible  <bruno@clisp.org>
59713
59714         Prepare vasnprintf code for use with Unicode strings.
59715         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59716         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59717         TYPE_U32_STRING.
59718         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59719         a_u32_string variants.
59720         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59721         * lib/printf-args.c: Don't include config.h and the specification
59722         header if PRINTF_FETCHARGS is already defined.
59723         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59724         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59725         TYPE_U16_STRING, TYPE_U32_STRING.
59726         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59727         u16_directive, u16_directives, u32_directive, u32_directives): New
59728         types.
59729         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59730         New declarations.
59731         * lib/printf-parse.c: Don't include config.h and the specification
59732         header if PRINTF_PARSE is already defined. Eliminate the set of
59733         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59734         them now. Include c-ctype.h.
59735         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59736         directive and CHAR_T_ONLY_ASCII.
59737         * lib/vasnprintf.c: Don't include config.h and the specification header
59738         if VASNPRINTF is already defined.
59739         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59740         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59741         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59742         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59743         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59744         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59745         code accordingly.
59746         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59747         pad_ourselves also in this case, with the 'c' and 's' directives, and
59748         with a different notion of "width".
59749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59750
59751 2007-06-10  Bruno Haible  <bruno@clisp.org>
59752
59753         * modules/unistr/u32-mbsnlen: New file.
59754         * lib/unistr/u32-mbsnlen.c: New file.
59755
59756         * modules/unistr/u16-mbsnlen: New file.
59757         * lib/unistr/u16-mbsnlen.c: New file.
59758
59759         * modules/unistr/u8-mbsnlen: New file.
59760         * lib/unistr/u8-mbsnlen.c: New file.
59761
59762         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59763         declarations.
59764
59765 2007-06-10  Bruno Haible  <bruno@clisp.org>
59766
59767         * lib/string_.h (mbsnlen): New declaration.
59768         * lib/mbsnlen.c: New file.
59769         * m4/mbsnlen.m4: New file.
59770         * modules/mbsnlen: New file.
59771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59772         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59773         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59774
59775 2007-06-10  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59778
59779 2007-06-10  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59782         * lib/mbuiter.h: Likewise.
59783
59784 2007-06-10  Bruno Haible  <bruno@clisp.org>
59785
59786         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59787         declaration.
59788
59789 2007-06-10  Karl Berry  <karl@gnu.org>
59790
59791         * config/srclist.txt: remove gettext entries, Bruno prefers
59792         to update individually.
59793
59794 2007-06-10  Bruno Haible  <bruno@clisp.org>
59795
59796         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59797         'maxlen'. Ensure only length + width bytes are allocated, not
59798         length + 1 + width.
59799
59800 2007-06-09  Bruno Haible  <bruno@clisp.org>
59801
59802         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59803         (CHAR_T): Remove macro.
59804         (VASNPRINTF): Update.
59805
59806 2007-06-09  Bruno Haible  <bruno@clisp.org>
59807
59808         * MODULES.html.sh (Unicode string functions): Add the new modules.
59809
59810         * modules/uniconv/u32-conv-to-enc: New file.
59811         * lib/uniconv/u32-conv-to-enc.c: New file.
59812         * modules/uniconv/u32-conv-to-enc-tests: New file.
59813         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59814
59815         * modules/uniconv/u16-conv-to-enc: New file.
59816         * lib/uniconv/u16-conv-to-enc.c: New file.
59817         * lib/uniconv/u-conv-to-enc.h: New file.
59818         * modules/uniconv/u16-conv-to-enc-tests: New file.
59819         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59820
59821         * modules/uniconv/u8-conv-to-enc: New file.
59822         * lib/uniconv/u8-conv-to-enc.c: New file.
59823         * modules/uniconv/u8-conv-to-enc-tests: New file.
59824         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59825
59826         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59827         u32_conv_to_encoding): New declarations.
59828
59829 2007-06-09  Bruno Haible  <bruno@clisp.org>
59830
59831         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59832
59833 2007-06-09  Bruno Haible  <bruno@clisp.org>
59834
59835         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59836         * modules/malloca: Renamed from modules/allocsa, updated.
59837         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59838         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59839         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59840         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59841         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59842         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59843         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59844         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59845         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59846         * modules/c-strcasestr (Depends-on): Update.
59847         * lib/c-strcasestr.c: Update.
59848         * modules/c-strstr (Depends-on): Update.
59849         * lib/c-strstr.c: Update.
59850         * modules/canonicalize-lgpl (Depends-on): Update.
59851         * lib/canonicalize-lgpl.c: Update.
59852         * modules/clean-temp (Depends-on): Update.
59853         * lib/clean-temp.c: Update.
59854         * modules/csharpcomp (Depends-on): Update.
59855         * lib/csharpcomp.c: Update.
59856         * modules/csharpexec (Depends-on): Update.
59857         * lib/csharpexec.c: Update.
59858         * modules/javacomp (Depends-on): Update.
59859         * lib/javacomp.c: Update.
59860         * modules/javaexec (Depends-on): Update.
59861         * lib/javaexec.c: Update.
59862         * modules/mbscasestr (Depends-on): Update.
59863         * lib/mbscasestr.c: Update.
59864         * modules/mbsstr (Depends-on): Update.
59865         * lib/mbsstr.c: Update.
59866         * modules/setenv (Depends-on): Update.
59867         * lib/setenv.c: Update.
59868         * modules/strcasestr (Depends-on): Update.
59869         * lib/strcasestr.c: Update.
59870         * modules/striconveha (Depends-on): Update.
59871         * lib/striconveha.c: Update.
59872         * modules/relocatable-prog-wrapper (Files): Update.
59873         * lib/relocwrapper.c: Update.
59874         * build-aux/install-reloc: Update.
59875         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59876
59877 2007-06-08  Bruno Haible  <bruno@clisp.org>
59878
59879         Port to uClibc.
59880         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59881         * lib/fpurge.c (fpurge): Likewise.
59882         * lib/freading.c (freading): Likewise.
59883         * lib/fseeko.c (rpl_fseeko): Likewise.
59884         * lib/fseterr.c (fseterr): Likewise.
59885         * lib/fwriting.c (fwriting): Likewise.
59886         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59887
59888 2007-06-08  Bruno Haible  <bruno@clisp.org>
59889
59890         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59891         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59892         * modules/gettext (Files): Add m4/intlmacosx.m4.
59893
59894 2007-06-07  Bruno Haible  <bruno@clisp.org>
59895
59896         * modules/localename-tests: New file.
59897         * tests/test-localename.c: New file.
59898
59899         New module 'localename'.
59900         * lib/localename.h: New file.
59901         * lib/localename.c: New file, from GNU gettext.
59902         * m4/localename.m4: New file.
59903         * modules/localename: New file.
59904
59905 2007-06-07  Bruno Haible  <bruno@clisp.org>
59906
59907         Work around the lack of <wchar.h> on some builds of uClibc.
59908         * doc/headers/wchar.texi: Update.
59909         * lib/wchar_.h: Include <wchar.h> only if it exists.
59910         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59911         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59912         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59913         doesn't exist.
59914         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59915         * modules/mbfile (Depends-on): Add wchar.
59916         * modules/mbiter (Depends-on): Likewise.
59917         * modules/mbuiter (Depends-on): Likewise.
59918         Reported by Simon Josefsson.
59919
59920 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59921
59922         Work around problem reported by Steven M. Schweda in
59923         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59924         Tru64 5.1B with the Compaq compiler environment installed declares
59925         an 'isblank' function but does not define it in the C library.
59926         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59927         * lib/regex_internal.h (isblank): Likewise.
59928         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59929         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59930
59931 2007-06-05  Bruno Haible  <bruno@clisp.org>
59932
59933         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59934         ia64.
59935         * modules/printf-safe: New file.
59936         * modules/fprintf-posix (Depends-on): Add printf-safe.
59937         * modules/printf-posix (Depends-on): Likewise.
59938         * modules/snprintf-posix (Depends-on): Likewise.
59939         * modules/sprintf-posix (Depends-on): Likewise.
59940         * modules/vasnprintf-posix (Depends-on): Likewise.
59941         * modules/vasprintf-posix (Depends-on): Likewise.
59942         * modules/vfprintf-posix (Depends-on): Likewise.
59943         * modules/vprintf-posix (Depends-on): Likewise.
59944         * modules/vsnprintf-posix (Depends-on): Likewise.
59945         * modules/vsprintf-posix (Depends-on): Likewise.
59946         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59947         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59948         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59949         "no" on i386, x86_64, ia64.
59950         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59951         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59952         on i386, x86_64, ia64.
59953         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59954         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59955         on i386, x86_64, ia64.
59956         * tests/test-vasnprintf-posix.c: Include float.h.
59957         (LDBL80_WORDS): New macro.
59958         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59959         on i386, x86_64, ia64.
59960         * tests/test-vasprintf-posix.c: Include float.h.
59961         (LDBL80_WORDS): New macro.
59962         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59963         on i386, x86_64, ia64.
59964         * tests/test-snprintf-posix.c: Include float.h.
59965         * tests/test-sprintf-posix.c: Likewise.
59966         * tests/test-vsnprintf-posix.c: Likewise.
59967         * tests/test-vsprintf-posix.c: Likewise.
59968
59969 2007-06-05  Bruno Haible  <bruno@clisp.org>
59970
59971         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59972         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59973         non-IEEE numbers on i386, x86_64, ia64.
59974         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59975         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59976         * tests/test-isnanl.h: Include float.h.
59977         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59978
59979 2007-06-05  Bruno Haible  <bruno@clisp.org>
59980
59981         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59982         also the %a / %A. Handle the %a / %A code before this extra handling.
59983
59984 2007-06-05  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59987         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59988
59989 2007-06-05  Bruno Haible  <bruno@clisp.org>
59990
59991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59992         typo in variable name.
59993
59994 2007-06-05  Eric Blake  <ebb9@byu.net>
59995
59996         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59997         Reported by Simon Josefsson.
59998
59999 2007-06-04  Bruno Haible  <bruno@clisp.org>
60000
60001         Avoid test failures on some PowerPC platforms.
60002         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60003         Define differently for PowerPC.
60004         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60005         Reported by Gary V. Vaughan <gary@gnu.org>.
60006
60007 2007-06-02  Bruno Haible  <bruno@clisp.org>
60008
60009         Fix test-stdint failure on FreeBSD/ia64.
60010         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60011         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60012         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60013         * doc/headers/stdint.texi: Update.
60014
60015 2007-06-01  Bruno Haible  <bruno@clisp.org>
60016
60017         * tests/test-binary-io.c (main): Pass a third argument to open().
60018         Reported by Gary V. Vaughan <gary@gnu.org>.
60019
60020 2007-06-01  Bruno Haible  <bruno@clisp.org>
60021
60022         * doc/functions/frexpl.texi: Update for mingw.
60023
60024 2007-06-01  Bruno Haible  <bruno@clisp.org>
60025
60026         * tests/test-lseek.c (main): Disable test of errno for invalid third
60027         argument.
60028         * doc/functions/lseek.texi: Update.
60029         Reported by Gary V. Vaughan <gary@gnu.org>.
60030
60031 2007-05-28  Bruno Haible  <bruno@clisp.org>
60032
60033         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60034
60035 2007-05-31  Eric Blake  <ebb9@byu.net>
60036
60037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60038         cross compiling.
60039
60040 2007-05-30  Eric Blake  <ebb9@byu.net>
60041         and Bruno Haible  <bruno@clisp.org>
60042
60043         Work around mingw test failures exposed by m4-1.4.9b.
60044         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60045         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60046         moment.
60047
60048 2007-05-30  Bruno Haible  <bruno@clisp.org>
60049
60050         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60051         assuming that they are closed. Needed on HP-UX 11.
60052
60053 2007-05-29  Bruno Haible  <bruno@clisp.org>
60054
60055         Fix a problem with #include_next.
60056         * lib/dirent_.h: Split the double-inclusion guard.
60057         * lib/fcntl_.h: Likewise.
60058         * lib/float_.h: Likewise.
60059         * lib/iconv_.h: Likewise.
60060         * lib/inttypes_.h: Likewise.
60061         * lib/locale_.h: Likewise.
60062         * lib/math_.h: Likewise.
60063         * lib/netinet_in_.h: Likewise.
60064         * lib/search_.h: Likewise.
60065         * lib/signal_.h: Likewise.
60066         * lib/stdint_.h: Likewise.
60067         * lib/stdio_.h: Likewise.
60068         * lib/stdlib_.h: Likewise.
60069         * lib/string_.h: Likewise.
60070         * lib/sys_select_.h: Likewise.
60071         * lib/sys_socket_.h: Likewise.
60072         * lib/sys_stat_.h: Likewise.
60073         * lib/sys_time_.h: Likewise.
60074         * lib/sysexits_.h: Likewise.
60075         * lib/time_.h: Likewise.
60076         * lib/unistd_.h: Likewise.
60077         * lib/wchar_.h: Likewise.
60078         * lib/wctype_.h: Likewise.
60079
60080 2007-05-29  Bruno Haible  <bruno@clisp.org>
60081
60082         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60083         for the moment.
60084
60085 2007-05-29  Bruno Haible  <bruno@clisp.org>
60086
60087         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60088         invocation.
60089         Reported by Eric Blake.
60090
60091 2007-05-29  Bruno Haible  <bruno@clisp.org>
60092
60093         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60094         compiling case.
60095
60096 2007-05-29  Eric Blake  <ebb9@byu.net>
60097             Bruno Haible  <bruno@clisp.org>
60098
60099         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60100         cross compiles.
60101
60102 2007-05-28  Eric Blake  <ebb9@byu.net>
60103
60104         * modules/closein-tests (test_closein_LDADD): Support test on
60105         cygwin with libtool.
60106
60107 2007-05-28  Bruno Haible  <bruno@clisp.org>
60108
60109         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60110         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60111         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60112         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60113         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60114         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60115         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60116         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60117         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60118
60119 2007-05-28  Eric Blake  <ebb9@byu.net>
60120
60121         Unconditionally include <config.h> in unit tests.
60122         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60123         * tests/test-allocsa.c, tests/test-arcfour.c,
60124         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60125         tests/test-array_list.c, tests/test-array_oset.c,
60126         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60127         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60128         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60129         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60130         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60131         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60132         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60133         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60134         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60135         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60136         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60137         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60138         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60139         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60140         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60141         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60142         test-md5.c, test-memmem.c, test-printf-posix.c,
60143         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60144         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60145         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60146         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60147         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60148         test-vasnprintf-posix2.c, test-vasnprintf.c,
60149         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60150         test-vfprintf-posix.c, test-vprintf-posix.c,
60151         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60152         test-xvasprintf.c: Likewise.
60153
60154 2007-05-28  Bruno Haible  <bruno@clisp.org>
60155
60156         * gnulib-tool (func_import): Remember the --with-tests command-line
60157         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60158         Reported by Eric Blake.
60159
60160 2007-05-28  Bruno Haible  <bruno@clisp.org>
60161
60162         * modules/ftell-tests: New file.
60163         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60164         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60165
60166         * lib/ftell.c: New file.
60167         * modules/ftell: New file.
60168         * m4/ftell.m4: New file.
60169         * doc/functions/ftell.texi: Update.
60170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60171         REPLACE_FTELL.
60172         * lib/stdio_.h (rpl_ftell): New declaration.
60173         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60174         REPLACE_FTELL.
60175
60176 2007-05-28  Eric Blake  <ebb9@byu.net>
60177
60178         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60179
60180 2007-05-28  Bruno Haible  <bruno@clisp.org>
60181
60182         * modules/fseek-tests: New file.
60183         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60184         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60185
60186         * lib/fseek.c: New file.
60187         * modules/fseek: New file.
60188         * m4/fseek.m4: New file.
60189         * doc/functions/fseek.texi: Update.
60190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60191         REPLACE_FSEEK.
60192         * lib/stdio_.h (rpl_fseek): New declaration.
60193         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60194         REPLACE_FSEEK.
60195
60196 2007-05-28  Bruno Haible  <bruno@clisp.org>
60197
60198         * lib/stdio_.h (fflush): More comments.
60199
60200 2007-05-28  Bruno Haible  <bruno@clisp.org>
60201
60202         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60203         runtime test.
60204
60205 2007-05-28  Eric Blake  <ebb9@byu.net>
60206
60207         Improve lseek module.
60208         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60209         * lib/unistd_.h (lseek): Scale back link warning message.
60210         * tests/test-lseek.c: Beef up test.
60211         * tests/test-lseek.sh: Exercise more facets of lseek.
60212         Reported by Bruno Haible.
60213
60214 2007-05-28  Bruno Haible  <bruno@clisp.org>
60215
60216         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60217         to define.
60218
60219 2007-05-27  Bruno Haible  <bruno@clisp.org>
60220
60221         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60222
60223 2007-05-27  Bruno Haible  <bruno@clisp.org>
60224
60225         * modules/openmp: New file.
60226         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60227         Noah Misch.
60228
60229 2007-05-26  Bruno Haible  <bruno@clisp.org>
60230
60231         * modules/chdir-long (Depends-on): Add fchdir.
60232         * modules/chdir-safer (Depends-on): Likewise.
60233         * modules/fts (Depends-on): Likewise.
60234         * modules/fts-lgpl (Depends-on): Likewise.
60235         * modules/openat (Depends-on): Likewise.
60236         * modules/savewd (Depends-on): Likewise.
60237
60238 2007-05-24  Eric Blake  <ebb9@byu.net>
60239
60240         Fix lseek on mingw.
60241         * modules/lseek: New module.
60242         * m4/lseek.m4: New file.
60243         * lib/lseek.c: New file.
60244         * modules/lseek-tests: New file.
60245         * tests/test-lseek.c: New file.
60246         * tests/test-lseek.sh: New file.
60247         * MODULES.html.sh: Document lseek module.
60248         * modules/fflush (Depends-on): Add lseek, fseeko.
60249         * modules/fseeko (Depends-on): Likewise.
60250         * modules/ftello (Depends-on): Likewise.
60251         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60252         broken.
60253         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60254         broken.
60255         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60256         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60257         * lib/ftello.c (rpl_ftello): Likewise.
60258         * tests/test-fseeko.c (main): Test this.
60259         * tests/test-fseeko.sh: Likewise.
60260         * tests/test-ftello.c (main): Likewise.
60261         * tests/test-ftello.sh: Likewise.
60262         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60263         implies replacing fseek.
60264         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60265         HAVE_FTELLO.
60266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60267         * modules/unistd (Makefile.am): Likewise.
60268         * lib/unistd_.h (lseek): Declare a replacement.
60269         * doc/functions/lseek.texi (lseek): Document this fix.
60270         * doc/functions/fseek.texi (fseek): Likewise.
60271         * doc/functions/ftell.texi (ftell): Likewise.
60272
60273 2007-05-24  Bruno Haible  <bruno@clisp.org>
60274
60275         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60276         in the printed representation of a NaN.
60277         * tests/test-vasprintf-posix.c (test_function): Likewise.
60278         * tests/test-snprintf-posix.h (test_function): Likewise.
60279         * tests/test-sprintf-posix.h (test_function): Likewise.
60280         Reported by Eric Blake.
60281
60282 2007-05-23  Eric Blake  <ebb9@byu.net>
60283
60284         Fix fseeko/ftello on cygwin 1.5.24.
60285         * doc/functions/fseeko.texi (fseeko): Document the fix.
60286         * doc/functions/ftello.texi (ftello): Document the fix.
60287         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60288         * doc/functions/stdout.text (stdout): New file.
60289         * doc/functions/stderr.text (stderr): New file.
60290         * doc/gnulib.texi (Function Substitutes): Use new files.
60291         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60292         prior to 1.7.0.
60293         * tests/test-ftello.c (main): Likewise for ftello.
60294         * tests/test-fseeko.sh: New file.
60295         * tests/test-ftello.sh: New file.
60296         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60297         with seekable stdin.
60298         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60299         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60300         (gl_REPLACE_FSEEKO): New macro.
60301         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60302         * modules/fseeko (Files): Distribute fseeko.c.
60303         * modules/ftello (Files): Distribute ftello.c.
60304         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60305         mode.
60306         * lib/ftello.c (rpl_ftello): New file.
60307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60308         fseeko, ftello.
60309         (gl_STDIN_LARGE_OFFSET): New macro.
60310         * modules/stdio (Makefile.am): Perform the replacement.
60311         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60312
60313 2007-05-23  Bruno Haible  <bruno@clisp.org>
60314
60315         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60316         GNULIB_POSIXCHECK is defined.
60317
60318 2007-05-21  Bruno Haible  <bruno@clisp.org>
60319
60320         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60321         Check also the output for NaN arguments. When cross-compiling, guess
60322         no on IRIX.
60323         * lib/vasnprintf.c: Update comments.
60324         * tests/test-vasnprintf-posix.c (strisnan): New function.
60325         (test_function): Use it.
60326         * tests/test-vasprintf-posix.c (strisnan): New function.
60327         (test_function): Use it.
60328         * tests/test-snprintf-posix.h (strisnan): New function.
60329         (test_function): Use it.
60330         * tests/test-sprintf-posix.h (strisnan): New function.
60331         (test_function): Use it.
60332         Reported by Eric Blake.
60333
60334 2007-05-20  Bruno Haible  <bruno@clisp.org>
60335
60336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60337         numbers that fails on BeOS.
60338         * doc/functions/frexpl.texi: Update.
60339
60340 2007-05-20  Jim Meyering  <jim@meyering.net>
60341
60342         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60343         forced upon us by glibc-2.6.
60344
60345 2007-05-20  Bruno Haible  <bruno@clisp.org>
60346
60347         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60348         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60349         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60350         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60351         NEED_PRINTF_INFINITE.
60352         (is_infinitel): New function.
60353         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60355         gl_PREREQ_VASNPRINTF_INFINITE.
60356         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60357         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60358         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60359         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60360         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60361         gl_PREREQ_VASNPRINTF_INFINITE.
60362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60369         * doc/functions/fprintf.texi: Update.
60370         * doc/functions/printf.texi: Update.
60371         * doc/functions/snprintf.texi: Update.
60372         * doc/functions/sprintf.texi: Update.
60373         * doc/functions/vfprintf.texi: Update.
60374         * doc/functions/vprintf.texi: Update.
60375         * doc/functions/vsnprintf.texi: Update.
60376         * doc/functions/vsprintf.texi: Update.
60377
60378 2007-05-20  Bruno Haible  <bruno@clisp.org>
60379
60380         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60381         was not found in libc.
60382         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60383
60384 2007-05-20  Bruno Haible  <bruno@clisp.org>
60385
60386         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60387         printed as "-nan" instead of "nan".
60388         * tests/test-vasprintf-posix.c (test_function): Likewise.
60389         * tests/test-snprintf-posix.h (test_function): Likewise.
60390         * tests/test-sprintf-posix.h (test_function): Likewise.
60391         Needed for HP-UX 11.
60392
60393 2007-05-20  Jim Meyering  <jim@meyering.net>
60394
60395         Fix buggy test for the fchownat-deref bug.
60396         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60397         symlink required for the run-test.  Without it, this test would
60398         always declare that fchownat doesn't work, and client code would
60399         unnecessarily use the replacement function with fixed libc.
60400         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60401         Reported by Greg Schafer.
60402
60403 2007-05-19  Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60406         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60407         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60408         Needed for IRIX 6.5 and Solaris 2.5.1.
60409
60410 2007-05-19  Bruno Haible  <bruno@clisp.org>
60411
60412         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60413         (test_function): Skip tests involving -0.0 on platforms where
60414         -0.0 = 0.0.
60415         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60416         (test_function): Skip tests involving -0.0 on platforms where
60417         -0.0 = 0.0.
60418         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60419         (test_function): Skip tests involving -0.0 on platforms where
60420         -0.0 = 0.0.
60421         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60422         (test_function): Skip tests involving -0.0 on platforms where
60423         -0.0 = 0.0.
60424         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60425         tests.
60426         * tests/test-printf-posix.h (test_function): Likewise.
60427         * tests/test-printf-posix.output: Remove all -0.0 related results.
60428         Needed for IRIX 6.5.
60429
60430 2007-05-19  Bruno Haible  <bruno@clisp.org>
60431
60432         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60433         printed as "nan0x7fffffff" instead of "nan".
60434         * tests/test-vasprintf-posix.c (test_function): Likewise.
60435         * tests/test-snprintf-posix.h (test_function): Likewise.
60436         * tests/test-sprintf-posix.h (test_function): Likewise.
60437         * tests/test-fprintf-posix.h (NaN): Remove macro.
60438         (test_function): Remove all NaN related tests.
60439         * tests/test-printf-posix.h (NaN): Remove macro.
60440         (test_function): Remove all NaN related tests.
60441         * tests/test-printf-posix.output: Remove all NaN related results.
60442         Needed for IRIX 6.5.
60443
60444 2007-05-19  Bruno Haible  <bruno@clisp.org>
60445
60446         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60447         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60448
60449 2007-05-19  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/float_.h: New file.
60452         * m4/float_h.m4: New file.
60453         * modules/float: New file.
60454         * modules/isnanl (Dependencies): Add float.
60455         * modules/isnanl-nolibm (Dependencies): Likewise.
60456         * modules/mathl (Dependencies): Likewise.
60457         * modules/printf-frexpl (Dependencies): Likewise.
60458         * modules/signbit (Dependencies): Likewise.
60459         * modules/vasnprintf (Dependencies): Likewise.
60460         * doc/headers/float.texi: Update.
60461
60462 2007-05-19  Jim Meyering  <jim@meyering.net>
60463
60464         * lib/utimens.c (gl_futimens): Rename from futimens,
60465         now that glibc-2.6 declares futimens.
60466         * lib/utimens.h: Likewise.
60467
60468 2007-05-19  Bruno Haible  <bruno@clisp.org>
60469
60470         Avoid test failures on mingw.
60471         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60472         * tests/test-printf-posix.sh: Likewise.
60473         * tests/test-vfprintf-posix.sh: Likewise.
60474         * tests/test-vprintf-posix.sh: Likewise.
60475
60476 2007-05-19  Bruno Haible  <bruno@clisp.org>
60477
60478         Fix *printf result for NaN, Inf, -0.0 on mingw.
60479         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60480         * lib/vasnprintf.c: Include math.h and isnan.h.
60481         (is_infinite_or_zero): New function.
60482         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60483         values in the %f, %F, %e, %E, %g, %G directives.
60484         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60486         gl_PRINTF_INFINITE and test its result. Invoke
60487         gl_PREREQ_VASNPRINTF_INFINITE.
60488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60495         * doc/functions/fprintf.texi: Update.
60496         * doc/functions/printf.texi: Update.
60497         * doc/functions/snprintf.texi: Update.
60498         * doc/functions/sprintf.texi: Update.
60499         * doc/functions/vfprintf.texi: Update.
60500         * doc/functions/vprintf.texi: Update.
60501         * doc/functions/vsnprintf.texi: Update.
60502         * doc/functions/vsprintf.texi: Update.
60503
60504 2007-05-19  Bruno Haible  <bruno@clisp.org>
60505
60506         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60507         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60508         Instead of multiplying with 10^k, set extra_zeroes to k.
60509         (scale10_round_long_double): Remove function.
60510
60511 2007-05-18  Bruno Haible  <bruno@clisp.org>
60512
60513         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60514         introduced on 2007-05-06.
60515
60516 2007-05-18  Bruno Haible  <bruno@clisp.org>
60517
60518         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60519         %g directives.
60520         * tests/test-vasprintf-posix.c (test_function): Likewise.
60521         * tests/test-snprintf-posix.h (test_function): Likewise.
60522         * tests/test-sprintf-posix.h (test_function): Likewise.
60523
60524 2007-05-18  Bruno Haible  <bruno@clisp.org>
60525
60526         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60527         (strmatch): New function.
60528         (test_function): Test the %f directive on numbers of various exponents.
60529         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60530         (strmatch): New function.
60531         (test_function): Test the %f directive on numbers of various exponents.
60532         * tests/test-snprintf-posix.h (strmatch): New function.
60533         (test_function): Test the %f directive on numbers of various exponents.
60534         * tests/test-sprintf-posix.h (strmatch): New function.
60535         (test_function): Test the %f directive on numbers of various exponents.
60536         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60537         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60538         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60539         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60540
60541 2007-05-18  Bruno Haible  <bruno@clisp.org>
60542
60543         Add support for 'long double' number output.
60544         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60545         * lib/vasnprintf.c: Include math.h and float+.h.
60546         (mp_limb_t): New type.
60547         (GMP_LIMB_BITS): New macro.
60548         (mp_twolimb_t): New type.
60549         (GMP_TWOLIMB_BITS): New macro.
60550         (mpn_t): New type.
60551         (multiply, divide, convert_to_decimal, decode_long_double,
60552         scale10_round_long_double, scale10_round_decimal_long_double,
60553         floorlog10l): New functions.
60554         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60555         for the %f, %F, %e, %E, %g, %G directives.
60556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60557         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60558         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60559         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60561         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60562         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60563         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60564         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60566         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60567         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60568         * modules/snprintf-posix (Depends-on): Likewise.
60569         * modules/sprintf-posix (Depends-on): Likewise.
60570         * modules/vasnprintf-posix (Depends-on): Likewise.
60571         * modules/vasprintf-posix (Depends-on): Likewise.
60572         * modules/vfprintf-posix (Depends-on): Likewise.
60573         * modules/vsnprintf-posix (Depends-on): Likewise.
60574         * modules/vsprintf-posix (Depends-on): Likewise.
60575         * modules/vasnprintf (Files): Add lib/float+.h.
60576         * doc/functions/fprintf.texi: Update.
60577         * doc/functions/printf.texi: Update.
60578         * doc/functions/snprintf.texi: Update.
60579         * doc/functions/sprintf.texi: Update.
60580         * doc/functions/vfprintf.texi: Update.
60581         * doc/functions/vprintf.texi: Update.
60582         * doc/functions/vsnprintf.texi: Update.
60583         * doc/functions/vsprintf.texi: Update.
60584
60585 2007-05-18  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60588
60589 2007-05-18  Bruno Haible  <bruno@clisp.org>
60590
60591         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60592         for printing 64-bit integers. Needed for mingw.
60593
60594 2007-05-18  Bruno Haible  <bruno@clisp.org>
60595
60596         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60597         gl_FUNC_FREXPL_WORKS.
60598         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60599
60600 2007-05-18  Bruno Haible  <bruno@clisp.org>
60601
60602         * modules/frexpl-nolibm-tests: New file.
60603
60604         * modules/frexpl-nolibm: New file.
60605         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60606
60607 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60608
60609         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60610         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60611         GCC 4.2, which otherwise issues a lot of warnings.
60612         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60613         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60614         Likewise.
60615         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60616         * modules/iconv_open (iconv.h): Likewise.
60617         * modules/locale (locale.h): Likewise.
60618         * modules/netinet_in (netinet/in.h): Likewise.
60619         * modules/sys_select (sys_select.h): Likewise.
60620         * modules/sys_socket (sys/socket.h): Likewise.
60621         * modules/sys_stat (sys/stat.h): Likewise.
60622         * modules/sysexits (sysexits.h): Likewise.
60623         * modules/unistd (unistd.h): Likewise.
60624
60625 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60626
60627         * modules/closein-tests (Makefile.am): Distribute
60628         `test-closein.sh'.
60629
60630 2007-05-17  Bruno Haible  <bruno@clisp.org>
60631
60632         * tests/test-printf-posix.output: Renamed from
60633         tests/test-fprintf-posix.out.
60634         * modules/fprintf-posix-tests: Update.
60635         * modules/printf-posix-tests: Update.
60636         * modules/vfprintf-posix-tests: Update.
60637         * modules/vprintf-posix-tests: Update.
60638         * tests/test-fprintf-posix.sh: Update.
60639         * tests/test-printf-posix.sh: Update.
60640         * tests/test-vfprintf-posix.sh: Update.
60641         * tests/test-vprintf-posix.sh: Update.
60642         Reported by Ralf Wildenhues.
60643
60644 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60645
60646         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60647         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60648         GCC 4.2, which otherwise issues a lot of warnings.
60649         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60650         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60651         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60652         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60653         it should no longer be needed.
60654         * lib/string_.h: Likewise.
60655         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60656         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60657         * modules/inttypes (inttypes.h): Likewise.
60658         * modules/math (math.h): Likewise.
60659         * modules/search (search.h): Likewise.
60660         * modules/signal (signal.h): Likewise.
60661         * modules/stdint (stdint.h): Likewise.
60662         * modules/stdio (stdio.h): Likewise.
60663         * modules/stdlib (stdlib.h): Likewise.
60664         * modules/string (string.h): Likewise.
60665         * modules/sys_time (sys/time.h): Likewise.
60666         * modules/time (time.h): Likewise.
60667         * modules/wchar (wchar.h): Likewise.
60668         * modules/wctype (wtype.h): Likewise.
60669
60670 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60671
60672         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60673
60674 2007-05-13  Bruno Haible  <bruno@clisp.org>
60675
60676         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60677         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60678         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60679         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60680         (gl_PREREQ_STRTOK_R): Don't require it here.
60681
60682 2007-05-13  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60685         when used in C++ mode.
60686
60687 2007-05-12  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/linebuffer.h: Tweak doc.
60690         * lib/linebuffer.c: Likewise.
60691
60692 2007-05-12  James Youngman  <jay@gnu.org>
60693
60694         * lib/linebuffer.c (readlinebuffer_delim): New function,
60695         like readlinebuffer, but use a caller-specified delimiter.
60696         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60697         as the delimiter.
60698         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60699
60700 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60701
60702         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60703         * modules/openat (Files): Remove openat-die.c.
60704         (Depends-on): Add openat-die.
60705         * modules/openat-die: New module.
60706
60707 2007-05-06  Bruno Haible  <bruno@clisp.org>
60708
60709         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60710         Update with info about Cygwin.
60711         * doc/functions/fprintf.texi: Update.
60712         * doc/functions/printf.texi: Update.
60713         * doc/functions/snprintf.texi: Update.
60714         * doc/functions/sprintf.texi: Update.
60715         * doc/functions/vfprintf.texi: Update.
60716         * doc/functions/vprintf.texi: Update.
60717         * doc/functions/vsnprintf.texi: Update.
60718         * doc/functions/vsprintf.texi: Update.
60719         Reported by Eric Blake.
60720
60721 2007-05-06  Bruno Haible  <bruno@clisp.org>
60722
60723         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60724         padding ourselves for the floating-point directives.
60725         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60728         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60729         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60737         * tests/test-snprintf-posix.h (test_function): Also check the width
60738         and some flags in the %f directive.
60739         * tests/test-sprintf-posix.h (test_function): Likewise.
60740         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60741         * tests/test-vasprintf-posix.c (test_function): Likewise.
60742         * doc/functions/fprintf.texi: Update.
60743         * doc/functions/printf.texi: Update.
60744         * doc/functions/snprintf.texi: Update.
60745         * doc/functions/sprintf.texi: Update.
60746         * doc/functions/vfprintf.texi: Update.
60747         * doc/functions/vprintf.texi: Update.
60748         * doc/functions/vsnprintf.texi: Update.
60749         * doc/functions/vsprintf.texi: Update.
60750
60751 2007-05-06  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60754         pass the ' flag character to sprintf or snprintf.
60755         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60758         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60759         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60760         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60761         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60767         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60768         flag.
60769         * tests/test-sprintf-posix.h (test_function): Likewise.
60770         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60771         * tests/test-vasprintf-posix.c (test_function): Likewise.
60772         * doc/functions/fprintf.texi: Update.
60773         * doc/functions/printf.texi: Update.
60774         * doc/functions/snprintf.texi: Update.
60775         * doc/functions/sprintf.texi: Update.
60776         * doc/functions/vfprintf.texi: Update.
60777         * doc/functions/vprintf.texi: Update.
60778         * doc/functions/vsnprintf.texi: Update.
60779         * doc/functions/vsprintf.texi: Update.
60780
60781 2007-05-01  Bruno Haible  <bruno@clisp.org>
60782
60783         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60784
60785 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60788         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60789
60790 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60791
60792         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60793         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60795
60796 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60797
60798         * lib/argp-help.c (struct hol_entry): New member `ord'.
60799         (HOL_ENTRY_PTRCMP): Use ord for comparison
60800         (hol_sort): Initialize ord.
60801
60802 2007-05-01  Bruno Haible  <bruno@clisp.org>
60803
60804         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60805         Reported by Eric Blake.
60806         * doc/gnulib.texi (Function Substitutes): Update.
60807
60808 2007-05-01  Bruno Haible  <bruno@clisp.org>
60809
60810         * doc/functions.texi: Remove file, now redundant through
60811         doc/functions/*.texi.
60812
60813 2007-05-01  Bruno Haible  <bruno@clisp.org>
60814
60815         * modules/argp (Depends-on): Add sleep.
60816
60817 2007-05-01  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/sleep-tests: New file.
60820         * tests/test-sleep.c: New file.
60821
60822         * modules/sleep: New file.
60823         * lib/sleep.c: New file.
60824         * m4/sleep.m4: New file.
60825         * lib/unistd_.h (sleep): New declaration.
60826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60827         HAVE_SLEEP.
60828         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60829         * doc/functions/sleep.texi: Document the sleep module.
60830
60831 2007-05-01  Bruno Haible  <bruno@clisp.org>
60832
60833         * lib/sigprocmask.h: Remove file.
60834         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60835         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60836         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60837         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60838         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60839         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60840         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60841         HAVE_SIGSET_T as a shell variable.
60842         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60843         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60844         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60845         (Depends-on): Add signal. Remove verify.
60846         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60847         (Include): Mention <signal.h> instead of sigprocmask.h.
60848         * NEWS: Mention the change.
60849         * lib/fatal-signal.c: Don't include sigprocmask.h.
60850
60851 2007-05-01  Bruno Haible  <bruno@clisp.org>
60852
60853         * modules/signal: New file.
60854         * lib/signal_.h: New file.
60855         * m4/signal_h.m4: New file.
60856
60857 2007-05-01  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60860         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60861         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60862         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60863
60864 2007-05-01  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60867         configure time.
60868         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60869         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60870         * modules/sys_stat (Makefile.am): Substitute their values into
60871         sys/stat.h.
60872
60873 2007-05-01  Bruno Haible  <bruno@clisp.org>
60874
60875         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60876         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60877         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60878
60879 2007-05-01  Bruno Haible  <bruno@clisp.org>
60880
60881         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60882         'assert' module here.
60883
60884 2007-05-01  Bruno Haible  <bruno@clisp.org>
60885
60886         * doc/functions/*.texi: New files.
60887         * doc/functions/google-ranking.txt: New file.
60888         * doc/gnulib.texi (Function Substitutes): New chapter.
60889         (ctime, inet_ntoa): Remove sections.
60890         * doc/ctime.texi: Remove file.
60891         * doc/inet_ntoa.texi: Remove file.
60892         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60893         dependencies.
60894         (%.info): New rule, specifying a --reference-limit.
60895
60896 2007-05-01  Bruno Haible  <bruno@clisp.org>
60897
60898         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60899
60900 2007-05-01  Bruno Haible  <bruno@clisp.org>
60901
60902         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60903         the portability of 'mkdir' to mingw systems.
60904
60905 2007-05-01  Bruno Haible  <bruno@clisp.org>
60906
60907         * doc/headers/google-ranking.txt: New file.
60908
60909 2007-04-30  Eric Blake  <ebb9@byu.net>
60910
60911         Prefer fseeko to fseek.
60912         * modules/getpass (Depends-on): Add fseeko.
60913         * lib/getpass.c (getpass): Use fseeko, not fseek.
60914
60915 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60916
60917         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60918         assumes the sorting is stable, while most qsort implementations
60919         are not.  Use argument addresses to ensure they never compare as
60920         equal.
60921
60922         * tests/test-argp-2.sh (usage-indent test): Fix output
60923         (func_compare): Restore diff options
60924         * tests/test-argp.c: Restore #include "progname.h"
60925
60926 2007-04-29  Bruno Haible  <bruno@clisp.org>
60927
60928         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60930         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60932         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60933         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60934         (TESTS, check_PROGRAMS): Add test-snprintf.
60935         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60936         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60937         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60938         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60939         assertions that fail on HP-UX, OSF/1, or IRIX.
60940         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60941
60942 2007-04-29  Bruno Haible  <bruno@clisp.org>
60943
60944         * MODULES.html.sh (posix_functions): Remove 'contents'.
60945
60946 2007-04-29  Karl Berry  <karl@gnu.org>
60947
60948         * config/srclist.txt (gendocs_template_min): new entry.
60949
60950 2007-04-29  Bruno Haible  <bruno@clisp.org>
60951
60952         Work around fpurge bug on BSD systems.
60953         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60954         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60955         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60956         fpurge to rpl_fpurge if the system already has this function.
60957         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60958         the case where the system already has this function. Correct invariants
60959         on BSD systems.
60960         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60961         BSD systems.
60962
60963 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60964
60965         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60966         proposed by Sven Verdoolaege.
60967
60968         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60969         options.
60970         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60971         (usage and help tests): Update
60972
60973 2007-04-29  Bruno Haible  <bruno@clisp.org>
60974
60975         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60976         Print more information in case of failure. Disable a test on BeOS.
60977
60978 2007-04-29  Bruno Haible  <bruno@clisp.org>
60979
60980         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60981         This helps debugging on systems on which no gdb is available.
60982
60983 2007-04-29  Bruno Haible  <bruno@clisp.org>
60984
60985         * lib/freading.h: Improve comments.
60986         * lib/fwriting.h: Likewise.
60987         * tests/test-freading.c (main): Don't check freading immediately after
60988         repositioning. Needed for glibc.
60989
60990 2007-04-29  Bruno Haible  <bruno@clisp.org>
60991
60992         * lib/freading.c (freading): Trivial simplification.
60993
60994 2007-04-28  Bruno Haible  <bruno@clisp.org>
60995
60996         * tests/test-fwriting.c (main): Also test the interaction between
60997         fflush and fwriting.
60998         * modules/fwriting-tests (Depends-on): Add fflush.
60999
61000         * tests/test-freading.c (main): Also test the interaction between
61001         fflush and freading.
61002         * modules/freading-tests (Depends-on): Add fflush.
61003
61004 2007-04-28  Bruno Haible  <bruno@clisp.org>
61005
61006         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61007         fseeko and ftello.
61008         Suggested by Eric Blake.
61009
61010 2007-04-28  Jim Meyering  <jim@meyering.net>
61011
61012         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61013         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61014         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61015
61016 2007-04-27  Eric Blake  <ebb9@byu.net>
61017
61018         * doc/headers/assert.texi (assert.h): Document assert module use.
61019
61020 2007-04-27  Bruno Haible  <bruno@clisp.org>
61021
61022         * doc/headers/*.texi: New files.
61023         * doc/gnulib.texi (Header File Substitutes): New chapter.
61024         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61025         dependencies.
61026         (standards.info ,standards.html, standards.dvi): Update dependencies.
61027         (mostlyclean, clean): New targets.
61028
61029 2007-04-27  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61032         * modules/sysexits (Files, Makefile.am): Update.
61033
61034         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61035         * modules/sys_socket (Files, Makefile.am): Update.
61036
61037         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61038         * modules/sys_stat (Files, Makefile.am): Update.
61039
61040 2007-04-27  Eric Blake  <ebb9@byu.net>
61041
61042         * lib/freading.h: Improve comments.
61043         * lib/fwriting.h: Likewise.
61044         * lib/fflush.c: Likewise.
61045
61046         Fix closein for mingw.
61047         * modules/closein-tests: Add tests for closein.
61048         * tests/test-closein.c: New file.
61049         * tests/test-closein.sh: Likewise.
61050         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61051         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61052
61053 2007-04-27  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61056         version is < 6.
61057         * lib/math_.h [__DECC]: Likewise.
61058         * lib/stdio_.h [__DECC]: Likewise.
61059         * lib/stdlib_.h [__DECC]: Likewise.
61060         * lib/string_.h [__DECC]: Likewise.
61061         * lib/time_.h [__DECC]: Likewise.
61062         * lib/wchar_.h [__DECC]: Likewise.
61063         * lib/wctype_.h [__DECC]: Likewise.
61064
61065 2007-04-27  Bruno Haible  <bruno@clisp.org>
61066
61067         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61068
61069 2007-04-27  Bruno Haible  <bruno@clisp.org>
61070
61071         * lib/fflush.c: Add comments.
61072         * modules/fpurge-tests (Depends-on): Add fflush.
61073         * modules/freadable-tests (Depends-on): Likewise.
61074         * modules/fwritable-tests (Depends-on): Likewise.
61075
61076 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61077
61078         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61079         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61080         Report by Bruno Haible <bruno@clisp.org>.
61081
61082 2007-04-26  Eric Blake  <ebb9@byu.net>
61083
61084         Fix fflush on mingw.
61085         * modules/fflush (Depends-on): Add freading.
61086         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61087         but unread data.
61088
61089 2007-04-26  Eric Blake  <ebb9@byu.net>
61090         and Bruno Haible  <bruno@clisp.org>
61091
61092         Implement freading and fwriting.
61093         * lib/freading.c: New file.
61094         * lib/freading.h: Likewise.
61095         * m4/freading.m4: Likewise.
61096         * modules/freading: Likewise.
61097         * modules/freading-tests: Likewise.
61098         * tests/test-freading.c: Likewise.
61099         * lib/fwriting.c: New file.
61100         * lib/fwriting.h: Likewise.
61101         * m4/fwriting.m4: Likewise.
61102         * modules/fwriting: Likewise.
61103         * modules/fwriting-tests: Likewise.
61104         * tests/test-fwriting.c: Likewise.
61105         * MODULES.html.sh (File stream based Input/Output): Mention them.
61106
61107 2007-04-26  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61110         'long' when we assume it.
61111         Suggested by Eric Blake.
61112
61113 2007-04-26  Bruno Haible  <bruno@clisp.org>
61114
61115         Ensure fseeko, ftello are declared on glibc systems.
61116         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61117         * modules/fseeko (configure.ac-early): Likewise.
61118         * modules/ftello (configure.ac-early): Likewise.
61119         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61120         AC_FUNC_FSEEKO for this.
61121         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61122         (gl_CHECK_FSEEKO): Remove macro.
61123
61124 2007-04-26  Bruno Haible  <bruno@clisp.org>
61125
61126         * tests/test-fflush.c (main): Also check the ftell result after
61127         fflush and fseek/fseeko.
61128         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61129         file descriptor position cache in the stream.
61130         * lib/fseeko.c (rpl_fseeko): Likewise.
61131
61132 2007-04-26  Bruno Haible  <bruno@clisp.org>
61133
61134         * modules/fflush-tests (Depends-on): Add fseeko.
61135
61136 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61137             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61138
61139         * lib/argz_.h: ensure error_t definition is obtained in same
61140         mechanism system argz.h would have.
61141         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61142         argz facilities are known bad.  Err on the side of caution if
61143         cross-compiling.
61144
61145 2007-04-25  Eric Blake  <ebb9@byu.net>
61146
61147         * lib/fpurge.c (includes): Use stdlib.h for free.
61148         * tests/test-fflush.c (main): Also test fflush-fseeko.
61149
61150 2007-04-25  Bruno Haible  <bruno@clisp.org>
61151
61152         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61153         * lib/fseeko.c: New file.
61154         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61155         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61156         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61157         gl_FUNC_FSEEKO.
61158         (gl_FUNC_FSEEKO): Invoke it.
61159         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61160         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61161         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61162
61163 2007-04-25  Bruno Haible  <bruno@clisp.org>
61164
61165         * modules/fflush (Depends-on): Add ftello.
61166
61167 2007-04-25  Bruno Haible  <bruno@clisp.org>
61168
61169         * modules/ftello-tests: New file.
61170         * tests/test-ftello.c: New file.
61171
61172         * modules/ftello: New file.
61173         * m4/ftello.m4: New file.
61174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61175         HAVE_FTELLO.
61176         * lib/stdio_.h (ftello): New declaration.
61177         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61178         HAVE_FTELLO.
61179
61180 2007-04-25  Bruno Haible  <bruno@clisp.org>
61181
61182         * modules/fseeko-tests: New file.
61183         * tests/test-fseeko.c: New file.
61184
61185         * modules/fseeko: New file.
61186         * m4/fseeko.m4: New file.
61187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61188         HAVE_FSEEKO.
61189         * lib/stdio_.h (fseeko): New declaration.
61190         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61191         HAVE_FSEEKO.
61192
61193 2007-04-25  Bruno Haible  <bruno@clisp.org>
61194
61195         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61196
61197 2007-04-25  Bruno Haible  <bruno@clisp.org>
61198
61199         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61200         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61201         * tests/test-unistd.c: Likewise.
61202         * tests/test-fcntl.c: Likewise.
61203
61204 2007-04-23  Eric Blake  <ebb9@byu.net>
61205
61206         * lib/fflush.c: Fix missing include.
61207         Reported by Bruno Haible.
61208
61209 2007-04-23  Bruno Haible  <bruno@clisp.org>
61210
61211         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61212         Reported by Eric Blake.
61213
61214 2007-04-23  Bruno Haible  <bruno@clisp.org>
61215
61216         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61217
61218 2007-04-23  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61221
61222 2007-04-23  Bruno Haible  <bruno@clisp.org>
61223
61224         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61225         Needed on HP-UX 11.
61226
61227 2007-04-16  Eric Blake  <ebb9@byu.net>
61228
61229         Make fflush rely on fpurge.
61230         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61231         open coding all variants.
61232         * modules/fflush (Depends-on): Add fpurge and unistd.
61233         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61234         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61235
61236         Fix --with-tests compilation on cygwin.
61237         * modules/argmatch-tests (Makefile.am): List gnulib library first
61238         in LDADD.
61239         * modules/argp-tests (Makefile.am): Likewise.
61240         * modules/array-list-tests (Makefile.am): Likewise.
61241         * modules/array-oset-tests (Makefile.am): Likewise.
61242         * modules/avltree-list-tests (Makefile.am): Likewise.
61243         * modules/avltree-oset-tests (Makefile.am): Likewise.
61244         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61245         * modules/carray-list-tests (Makefile.am): Likewise.
61246         * modules/dirname-tests (Makefile.am): Likewise.
61247         * modules/frexp-tests (Makefile.am): Likewise.
61248         * modules/isnanl-tests (Makefile.am): Likewise.
61249         * modules/linked-list-tests (Makefile.am): Likewise.
61250         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61251         * modules/lock-tests (Makefile.am): Likewise.
61252         * modules/rbtree-list-tests (Makefile.am): Likewise.
61253         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61254         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61255         * modules/tls-tests (Makefile.am): Likewise.
61256         * modules/tsearch-tests (Makefile.am): Likewise.
61257         * modules/xvasprintf-tests (Makefile.am): Likewise.
61258
61259         Fix fpurge for cygwin.
61260         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61261         value.
61262         * modules/fpurge-tests (Depends-on): Clean up trash.
61263
61264 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61265
61266         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61267
61268         * m4/autobuild.m4: Re-indent.
61269
61270 2007-04-13  Bruno Haible  <bruno@clisp.org>
61271
61272         * modules/fpurge-tests: New file.
61273         * tests/test-fpurge.c: New file.
61274
61275         * modules/fpurge: New file.
61276         * lib/fpurge.h: New file.
61277         * lib/fpurge.c: New file.
61278         * m4/fpurge.m4: New file.
61279
61280 2007-04-13  Bruno Haible  <bruno@clisp.org>
61281
61282         * modules/fbufmode-tests: New file.
61283         * tests/test-fbufmode.c: New file.
61284
61285         * modules/fbufmode: New file.
61286         * lib/fbufmode.h: New file.
61287         * lib/fbufmode.c: New file.
61288         * m4/fbufmode.m4: New file.
61289
61290 2007-04-13  Bruno Haible  <bruno@clisp.org>
61291
61292         * modules/fwritable-tests: New file.
61293         * tests/test-fwritable.c: New file.
61294
61295         * modules/fwritable: New file.
61296         * lib/fwritable.h: New file.
61297         * lib/fwritable.c: New file.
61298         * m4/fwritable.m4: New file.
61299
61300 2007-04-13  Bruno Haible  <bruno@clisp.org>
61301
61302         * modules/freadable-tests: New file.
61303         * tests/test-freadable.c: New file.
61304
61305         * modules/freadable: New file.
61306         * lib/freadable.h: New file.
61307         * lib/freadable.c: New file.
61308         * m4/freadable.m4: New file.
61309
61310 2007-04-13  Bruno Haible  <bruno@clisp.org>
61311
61312         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61313         MOSTLYCLEANFILES.
61314
61315 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61316
61317         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61318         gzip bootstrap.conf to avoid dragging in i18n machinery.
61319         (gnulib_tool_option): Use it.
61320
61321 2007-04-13  Bruno Haible  <bruno@clisp.org>
61322
61323         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61324         %F directives.
61325         * tests/test-vasprintf-posix.c (test_function): Likewise.
61326         * tests/test-snprintf-posix.h (test_function): Likewise.
61327         * tests/test-sprintf-posix.h (test_function): Likewise.
61328         * tests/test-fprintf-posix.h (test_function): Likewise.
61329         * tests/test-printf-posix.h (test_function): Likewise.
61330         * tests/test-fprintf-posix.out: Likewise.
61331
61332 2007-04-13  Bruno Haible  <bruno@clisp.org>
61333
61334         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61335         * modules/tls-tests (configure.ac): Likewise.
61336         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61337
61338 2007-04-13  Bruno Haible  <bruno@clisp.org>
61339
61340         * lib/tls.c (glthread_tls_get): Fix return type.
61341         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61342
61343 2007-04-12  Eric Blake  <ebb9@byu.net>
61344
61345         * modules/gettime (Depends-on): Remove gettime.
61346         Reported by Dmitry V. Levin.
61347
61348 2007-04-12  Bruno Haible  <bruno@clisp.org>
61349
61350         * modules/fflush (Include): Mention <stdio.h>.
61351         * modules/strtoimax (Include): Mention <inttypes.h>.
61352         * modules/strtoumax (Include): Likewise.
61353
61354 2007-04-12  Eric Blake  <ebb9@byu.net>
61355
61356         * .cvsignore: New file.
61357         * .gitignore: Likewise.
61358
61359 2007-04-12  Bruno Haible  <bruno@clisp.org>
61360
61361         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61362         not before, since $(LDADD) often contains libgnu.a.
61363         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61364         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61365         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61366         Needed on Cygwin.
61367
61368 2007-04-12  Eric Blake  <ebb9@byu.net>
61369
61370         Work around glibc's failure to flush stdin on fclose.
61371         * lib/closein.c (close_stdin): Flush stdin before closing.
61372
61373         Work around glibc's failure to reset seekable stdin on exit.
61374         * modules/closein: New module.
61375         * lib/closein.c: New file.
61376         * lib/closein.h: Likewise.
61377         * m4/closein.m4: Likewise.
61378         * MODULES.html.sh (File stream based Input/Output): Document it.
61379
61380 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61381
61382         * gnulib-tool: Rename generated 'autobuild' script to
61383         'do-autobuild' in --create-megatestdir output.
61384
61385         * doc/gnulib.texi (Build robot for gnulib): Fix.
61386
61387 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61388
61389         * modules/sysexits (Depends-on): Add absolute-header.
61390
61391 2007-04-12  Eric Blake  <ebb9@byu.net>
61392
61393         No need to preserve errno on success.
61394         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61395         Reported by Bruno Haible.
61396
61397 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61398
61399         * MODULES.html.sh (Support for maintaining and releasing
61400         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61401
61402 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61403
61404         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61405
61406 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61407
61408         * modules/autobuild: New module.
61409
61410         * m4/autobuild.m4: New file.
61411
61412 2007-04-11  Bruno Haible  <bruno@clisp.org>
61413
61414         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61415         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61418         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61419         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61420         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61422         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61423         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61425         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61426         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61428         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61429         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61431         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61432         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61433         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61434         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61435         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61436         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61437         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61438         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61440         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61441         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61442         Reported by Eric Blake.
61443
61444 2007-04-11  Bruno Haible  <bruno@clisp.org>
61445
61446         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61447
61448 2007-04-10  Bruno Haible  <bruno@clisp.org>
61449
61450         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61451         for NaN and Infinity. Needed on FreeBSD 6.1.
61452         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61453         regarding results for "%010a" of Infinity and NaN.
61454         * tests/test-vasprintf-posix.c (test_function): Likewise.
61455         * tests/test-snprintf-posix.h (test_function): Likewise.
61456         * tests/test-sprintf-posix.h (test_function): Likewise.
61457         * tests/test-fprintf-posix.h (test_function): Likewise.
61458         * tests/test-printf-posix.h (test_function): Likewise.
61459         * tests/test-fprintf-posix.out: Likewise.
61460
61461 2007-04-10  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/locale-tests: New file.
61464         * tests/test-locale.c: New file.
61465
61466         * modules/locale: New file.
61467         * lib/locale_.h: New file.
61468         * m4/locale_h.m4: New file.
61469
61470 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61471             Bruno Haible  <bruno@clisp.org>
61472
61473         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61474         be determined, test for availability of the copysignf, copysign,
61475         copysignl functions.
61476         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61477         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61478         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61479
61480 2007-04-09  Eric Blake  <ebb9@byu.net>
61481
61482         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61483         * modules/stdio (Makefile.am): Support fflush.
61484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61485         * modules/fflush: New file.
61486         * lib/fflush.c: Likewise.
61487         * m4/fflush.m4: Likewise.
61488         * modules/fflush-tests: New test.
61489         * tests/test-fflush.c: Likewise.
61490         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61491
61492 2007-04-06  Bruno Haible  <bruno@clisp.org>
61493
61494         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61495         (VASNPRINTF): Use signbit for faster determination whether to print a
61496         minus sign.
61497         * modules/vasnprintf (Files): Remove lib/float+.h.
61498         * modules/fprintf-posix (Depends-on): Add signbit.
61499         * modules/snprintf-posix (Depends-on): Likewise.
61500         * modules/sprintf-posix (Depends-on): Likewise.
61501         * modules/vasnprintf-posix (Depends-on): Likewise.
61502         * modules/vasprintf-posix (Depends-on): Likewise.
61503         * modules/vfprintf-posix (Depends-on): Likewise.
61504         * modules/vsnprintf-posix (Depends-on): Likewise.
61505         * modules/vsprintf-posix (Depends-on): Likewise.
61506
61507 2007-04-06  Bruno Haible  <bruno@clisp.org>
61508
61509         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61510         * tests/test-frexpl.c (main): Likewise.
61511         * tests/test-ldexpl.c (main): Likewise.
61512         * modules/frexp-tests (Depends-on): Add signbit.
61513         * modules/frexpl-tests (Depdends-on): Likewise.
61514         * modules/ldexpl-tests (Depdends-on): Likewise.
61515
61516 2007-04-06  Bruno Haible  <bruno@clisp.org>
61517
61518         * modules/signbit-tests: New file.
61519         * tests/test-signbit.c: New file.
61520
61521         * modules/signbit: New file.
61522         * lib/signbitf.c: New file.
61523         * lib/signbitd.c: New file.
61524         * lib/signbitl.c: New file.
61525         * m4/signbit.m4: New file.
61526         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61527         (signbit): New macro.
61528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61529         REPLACE_SIGNBIT.
61530         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61531         REPLACE_FREXPL into math.h.
61532
61533 2007-04-06  Bruno Haible  <bruno@clisp.org>
61534
61535         * modules/isnanf-nolibm-tests: New file.
61536         * tests/test-isnanf.c: New file.
61537
61538         * modules/isnanf-nolibm: New file.
61539         * lib/isnanf.h: New file.
61540         * lib/isnanf.c: New file.
61541         * lib/isnan.c: Consider the USE_FLOAT macro.
61542         * m4/isnanf.m4: New file.
61543
61544 2007-04-06  Bruno Haible  <bruno@clisp.org>
61545
61546         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61547         (Link): New section.
61548
61549         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61550
61551 2007-04-06  Bruno Haible  <bruno@clisp.org>
61552
61553         Assume the 'long double' type.
61554         * m4/longdouble.m4: Remove file.
61555         * config/srclist.txt: Don't mention longdouble.m4.
61556         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61557         * lib/float+.h: Likewise.
61558         * lib/frexp.c: Likewise.
61559         * lib/printf-args.h: Likewise.
61560         * lib/printf-args.c: Likewise.
61561         * lib/printf-frexp.c: Likewise.
61562         * lib/printf-parse.c: Likewise.
61563         * lib/vasnprintf.c: Likewise.
61564         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61565         * m4/intl.m4: Likewise.
61566         * m4/isnanl.m4: Likewise.
61567         * m4/printf.m4: Likewise.
61568         * m4/printf-frexpl.m4: Likewise.
61569         * m4/vasnprintf.m4: Likewise.
61570         * modules/allocsa (Files): Remove m4/longdouble.m4.
61571         * modules/gettext (Files): Likewise.
61572         * modules/relocatable-prog-wrapper (Files): Likewise.
61573         * modules/vasnprintf (Files): Likewise.
61574         * modules/isnanl (Files): Likewise.
61575         (Include): Simplify.
61576         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61577         (Include): Simplify.
61578         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61579         (Include): Simplify.
61580         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61581         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61582         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61583         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61584         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61585         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61586         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61587         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61588         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61589         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61590         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61591         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61592         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61593         * tests/test-isnanl.c: Likewise.
61594         * tests/test-snprintf-posix.h: Likewise.
61595         * tests/test-sprintf-posix.h: Likewise.
61596         * tests/test-vasnprintf-posix.c: Likewise.
61597         * tests/test-vasnprintf-posix2.c: Likewise.
61598         * tests/test-vasprintf-posix.c: Likewise.
61599
61600 2007-04-06  Bruno Haible  <bruno@clisp.org>
61601
61602         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61603         * lib/math_.h [__DECC]: Include the overridden include file through
61604         #include_next, outside the double-inclusion guard.
61605         * lib/stdio_.h [__DECC]: Likewise.
61606         * lib/stdlib_.h [__DECC]: Likewise.
61607         * lib/string_.h [__DECC]: Likewise.
61608         * lib/time_.h [__DECC]: Likewise.
61609         * lib/wchar_.h [__DECC]: Likewise.
61610         * lib/wctype_.h [__DECC]: Likewise.
61611         * lib/inttypes_.h [__DECC]: Likewise.
61612         Reported by Albert Chin <china@thewrittenword.com> in
61613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61614
61615 2007-04-04  Eric Blake  <ebb9@byu.net>
61616
61617         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61618         1.5.x.
61619
61620 2007-04-04  Bruno Haible  <bruno@clisp.org>
61621
61622         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61623         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61624
61625 2007-04-04  Bruno Haible  <bruno@clisp.org>
61626
61627         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61628         results for "%010a" of Infinity and NaN.
61629         * tests/test-vasprintf-posix.c (test_function): Likewise.
61630         * tests/test-snprintf-posix.h (test_function): Likewise.
61631         * tests/test-sprintf-posix.h (test_function): Likewise.
61632         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61633         * tests/test-printf-posix.h (test_function): Likewise.
61634         * tests/test-fprintf-posix.out: Update.
61635         Needed for FreeBSD 6.1.
61636
61637 2007-04-04  Bruno Haible  <bruno@clisp.org>
61638
61639         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61640         directly used by the gnulib modules nor by gnulib-tool.
61641
61642 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61643
61644         * DEPENDENCIES: Give overall description of version dependency
61645         desirability.  Use more-typical names for apps.
61646         Add shell, coreutils, diffutils, grep, tar, gzip.
61647
61648 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61649
61650         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61651
61652 2007-04-04  Karl Berry  <karl@gnu.org>
61653
61654         * MODULES.html.sh (func_module): missing '.
61655
61656 2007-04-03  Bruno Haible  <bruno@clisp.org>
61657
61658         * modules/argmatch-tests (Makefile.am): New variable
61659         test_argmatch_LDADD.
61660         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61661         * modules/array-list-tests (Makefile.am): New variable
61662         test_array_list_LDADD.
61663         * modules/array-oset-tests (Makefile.am): New variable
61664         test_array_oset_LDADD.
61665         * modules/avltree-list-tests (Makefile.am): New variable
61666         test_avltree_list_LDADD.
61667         * modules/avltree-oset-tests (Makefile.am): New variable
61668         test_avltree_oset_LDADD.
61669         * modules/avltreehash-list-tests (Makefile.am): New variable
61670         test_avltreehash_list_LDADD.
61671         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61672         test_canonicalize_lgpl_LDADD.
61673         * modules/carray-list-tests (Makefile.am): New variable
61674         test_carray_list_LDADD.
61675         * modules/dirname-tests (Makefile.am): New variable
61676         test_dirname_LDADD.
61677         * modules/linked-list-tests (Makefile.am): New variable
61678         test_linked_list_LDADD.
61679         * modules/linkedhash-list-tests (Makefile.am): New variable
61680         test_linkedhash_list_LDADD.
61681         * modules/rbtree-list-tests (Makefile.am): New variable
61682         test_rbtree_list_LDADD.
61683         * modules/rbtree-oset-tests (Makefile.am): New variable
61684         test_rbtree_oset_LDADD.
61685         * modules/rbtreehash-list-tests (Makefile.am): New variable
61686         test_rbtreehash_list_LDADD.
61687         * modules/xvasprintf-tests (Makefile.am): New variable
61688         test_xvasprintf_LDADD.
61689         Reported by Eric Blake.
61690
61691 2007-04-03  Eric Blake  <ebb9@byu.net>
61692
61693         * DEPENDENCIES: Weaken m4 requirements.
61694
61695 2007-04-03  Bruno Haible  <bruno@clisp.org>
61696
61697         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61698         * modules/isnanl-tests (configure.ac): Likewise.
61699
61700 2007-04-03  Ben Pfaff  <blp@gnu.org>
61701
61702         * modules/iconv_open: Add $(srcdir)/ to source directory
61703         references in Makefile fragments that call gperf, to fix VPATH
61704         builds.
61705
61706 2007-04-03  Bruno Haible  <bruno@clisp.org>
61707
61708         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61709         * lib/ldexpl.c: Undo last change.
61710
61711 2007-04-03  Bruno Haible  <bruno@clisp.org>
61712
61713         * modules/printf-frexpl (Depends-on): Undo last change.
61714         (Files): Add m4/ldexpl.m4.
61715
61716 2007-04-03  Bruno Haible  <bruno@clisp.org>
61717
61718         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61719         * modules/isnanl (Link): New section.
61720
61721         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61722         * modules/frexp (Link): New section.
61723
61724         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61725         * modules/frexpl (Link): New section.
61726
61727         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61728         * modules/ldexpl (Link): New section.
61729
61730 2007-04-03  Bruno Haible  <bruno@clisp.org>
61731
61732         * modules/TEMPLATE-EXTENDED: New file.
61733         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61734
61735 2007-04-03  Bruno Haible  <bruno@clisp.org>
61736
61737         * DEPENDENCIES: New file.
61738         Suggested by Simon Josefsson.
61739
61740 2007-04-03  Bruno Haible  <bruno@clisp.org>
61741
61742         * doc/gnulib.texi: Escape @.
61743
61744 2007-04-03  James Youngman  <jay@gnu.org>
61745         and Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61748         birthtime on all systems that have birthtime, not just those which
61749         use st_birthtimensec rather than st_birthtim.  Putting zero in
61750         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61751         that the birth time is not available for files on an NFS mount.
61752
61753 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61754
61755         * modules/memxor: Move back from crypto/, suggested by Bruno.
61756         * modules/crypto/hmac-sha1: Fix memxor dependency.
61757
61758         * modules/crypto/gc: Moved from ../.
61759
61760 2007-04-02  Eric Blake  <ebb9@byu.net>
61761
61762         * lib/ldexpl.c (includes): Avoid libm.
61763
61764         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61765
61766 2007-04-02  Bruno Haible  <bruno@clisp.org>
61767
61768         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61769         on IRIX.
61770
61771 2007-04-02  Bruno Haible  <bruno@clisp.org>
61772
61773         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61774         x86 or x86_64 platforms running MacOS X.
61775         Reported by Ryan Schmidt <@ryandesign.com>.
61776
61777 2007-04-02  Bruno Haible  <bruno@clisp.org>
61778
61779         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61780         i386.
61781
61782 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61783
61784         * modules/crypto/arcfour: Moved from ../.
61785         * modules/crypto/arcfour-tests: Moved from ../.
61786         * modules/crypto/arctwo: Moved from ../.
61787         * modules/crypto/arctwo-tests: Moved from ../.
61788         * modules/crypto/des: Moved from ../.
61789         * modules/crypto/des-tests: Moved from ../.
61790         * modules/crypto/gc-arcfour: Moved from ../.
61791         * modules/crypto/gc-arcfour-tests: Moved from ../.
61792         * modules/crypto/gc-arctwo: Moved from ../.
61793         * modules/crypto/gc-arctwo-tests: Moved from ../.
61794         * modules/crypto/gc-des: Moved from ../.
61795         * modules/crypto/gc-des-tests: Moved from ../.
61796         * modules/crypto/gc-hmac-md5: Moved from ../.
61797         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61798         * modules/crypto/gc-hmac-sha1: Moved from ../.
61799         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61800         * modules/crypto/gc-md2: Moved from ../.
61801         * modules/crypto/gc-md2-tests: Moved from ../.
61802         * modules/crypto/gc-md4: Moved from ../.
61803         * modules/crypto/gc-md4-tests: Moved from ../.
61804         * modules/crypto/gc-md5: Moved from ../.
61805         * modules/crypto/gc-md5-tests: Moved from ../.
61806         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61807         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61808         * modules/crypto/gc-random: Moved from ../.
61809         * modules/crypto/gc-rijndael: Moved from ../.
61810         * modules/crypto/gc-rijndael-tests: Moved from ../.
61811         * modules/crypto/gc-sha1: Moved from ../.
61812         * modules/crypto/gc-sha1-tests: Moved from ../.
61813         * modules/crypto/gc-tests: Moved from ../.
61814         * modules/crypto/hmac-md5: Moved from ../.
61815         * modules/crypto/hmac-md5-tests: Moved from ../.
61816         * modules/crypto/hmac-sha1: Moved from ../.
61817         * modules/crypto/hmac-sha1-tests: Moved from ../.
61818         * modules/crypto/md2: Moved from ../.
61819         * modules/crypto/md2-tests: Moved from ../.
61820         * modules/crypto/md4: Moved from ../.
61821         * modules/crypto/md4-tests: Moved from ../.
61822         * modules/crypto/md5: Moved from ../.
61823         * modules/crypto/md5-tests: Moved from ../.
61824         * modules/crypto/memxor: Moved from ../.
61825         * modules/crypto/rijndael: Moved from ../.
61826         * modules/crypto/rijndael-tests: Moved from ../.
61827         * modules/crypto/sha1: Moved from ../.
61828
61829 2007-03-30  James Youngman  <jay@gnu.org>
61830
61831         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61832         rename() to change the ctime of a file (because ctime is unaffected
61833         by rename on jfs2 on AIX 5.1).
61834         (main): Start by doing cleanup, in case a previous run failed leaving
61835         test files behind.
61836
61837 2007-03-31  Bruno Haible  <bruno@clisp.org>
61838
61839         Support old proprietary implementations of iconv.
61840         * modules/iconv_open: New file.
61841         * lib/iconv_.h: New file.
61842         * m4/iconv_h.m4: New file.
61843         * lib/iconv_open.c: New file.
61844         * lib/iconv_open-aix.gperf: New file.
61845         * lib/iconv_open-hpux.gperf: New file.
61846         * lib/iconv_open-irix.gperf: New file.
61847         * lib/iconv_open-osf.gperf: New file.
61848         * m4/iconv_open.m4: New file.
61849         * modules/linebreak (Depends-on): Add iconv_open.
61850         * modules/striconv (Depends-on): Likewise.
61851         * modules/striconveh (Depends-on): Likewise.
61852         * modules/unicodeio (Depends-on): Likewise.
61853         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61854         (iconv_t)(-1).
61855         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61856         conversion if cd is (iconv_t)(-1).
61857         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61858         is not possible.
61859
61860 2007-03-31  Bruno Haible  <bruno@clisp.org>
61861
61862         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61863         work on Solaris either. Protect also second use of "autodetect_jp".
61864
61865 2007-03-31  Bruno Haible  <bruno@clisp.org>
61866
61867         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61868         the function is not present.
61869
61870 2007-03-31  Bruno Haible  <bruno@clisp.org>
61871
61872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61873         the function is not present.
61874
61875 2007-03-31  Bruno Haible  <bruno@clisp.org>
61876
61877         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61878         a bug in HP-UX iconv_open().
61879
61880 2007-03-31  Bruno Haible  <bruno@clisp.org>
61881
61882         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61883         (Mathematics <math.h>): New section, add fpieee.
61884         (Input/output <stdio.h>): Add fseterr.
61885         (Mathematics <math.h>): New section, add printf-frexp.
61886         (Container data structures): Add sublist.
61887         (Core language properties): Add fpucw, inline.
61888         (Functions for greatest-width integer types <inttypes.h>): Add
61889         imaxabs, imaxdiv, inttypes.
61890         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61891         isnanl-nolibm, ldexp.
61892         (Mathematics <math.h>): New section, add printf-frexpl.
61893         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61894         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61895         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61896         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61897         (Unicode string functions): Add unistr/u*-mbtoucr.
61898         (Java): Add javacomp-script, javaexec-script.
61899         (C#): Add csharpcomp-script, csharpexec-script.
61900         (Support for building libraries and executables): Add havelib,
61901         relocatable-*.
61902         (Support for maintaining and releasing projects): Renamed from
61903         'Support for maintaining and release projects'. Add announce-gen.
61904
61905 2007-03-31  Bruno Haible  <bruno@clisp.org>
61906
61907         * README: Talk primarily about git.
61908         (git and CVS): Renamed from CVS.
61909         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61910         gnulib is available through git.
61911         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61912
61913 2007-03-30  Bruno Haible  <bruno@clisp.org>
61914
61915         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61916         * lib/poll_.h: Likewise.
61917         * lib/stat_.h: Likewise.
61918         * lib/sys_time_.h: Likewise.
61919         * lib/sysexit_.h: Likewise.
61920         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61921         * lib/stdbool_.h: Likewise.
61922         * lib/byteswap_.h: Add double-inclusion guard.
61923
61924 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61925
61926         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61927
61928 2007-03-30  Karl Berry  <karl@gnu.org>
61929
61930         * config/srclist-update: double space after USA in the license
61931         substitution, since that's how it's usually (?) written.
61932
61933 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61934
61935         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61936         reported by Bruno Haible.
61937
61938 2007-03-29  Bruno Haible  <bruno@clisp.org>
61939
61940         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61941         a bug in AIX iconv().
61942
61943 2007-03-29  Bruno Haible  <bruno@clisp.org>
61944
61945         * modules/ldexpl-tests: New file.
61946         * tests/test-ldexpl.c: New file.
61947
61948 2007-03-29  Bruno Haible  <bruno@clisp.org>
61949
61950         * lib/ldexpl.c: Include fpucw.h.
61951         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61952         multiplication.
61953         * modules/ldexpl (Depends-on): Add fpucw.
61954
61955 2007-03-29  Bruno Haible  <bruno@clisp.org>
61956
61957         * modules/ldexpl: New file.
61958         * m4/ldexpl.m4: New file.
61959         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61960         set.
61961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61962         REPLACE_LDEXPL.
61963         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61964         REPLACE_LDEXPL.
61965         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61966         gl_FUNC_LDEXPL_WORKS.
61967         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61968         * modules/mathl (Files): Remove lib/ldexpl.c.
61969         (Depends-on): Add ldexpl.
61970
61971 2007-03-29  Bruno Haible  <bruno@clisp.org>
61972
61973         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61974
61975 2007-03-29  Bruno Haible  <bruno@clisp.org>
61976
61977         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61978         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61979         and possibly also HP-UX.
61980         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61981         work on AIX, IRIX, HP-UX, OSF/1.
61982         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61983         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61984         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61985         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61986         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61987         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61988
61989 2007-03-29  Bruno Haible  <bruno@clisp.org>
61990
61991         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61992
61993 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61994
61995         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61996         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61997
61998 2007-03-29  Eric Blake  <ebb9@byu.net>
61999
62000         * lib/acl-internal.h: Remove redundant include.
62001         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62002         Cygwin when a file is locked.
62003
62004 2007-03-29  Bruno Haible  <bruno@clisp.org>
62005
62006         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62007         file.
62008         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62009
62010 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62011
62012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62013         try to remove a parent directory if the child couldn't be removed
62014         (except for the first rmdir, which could fail because the child
62015         doesn't exist).  Problem reported by Jeff Blaine in
62016         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62017
62018 2007-03-28  Bruno Haible  <bruno@clisp.org>
62019
62020         * lib/striconveh.c (utf8conv_carefully): New function.
62021         (mem_cd_iconveh_internal): Invoke it.
62022
62023 2007-03-28  Bruno Haible  <bruno@clisp.org>
62024
62025         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62026         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62027         input.
62028         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62029         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62030         unistr/u8-uctomb.
62031
62032 2007-03-28  Bruno Haible  <bruno@clisp.org>
62033
62034         * modules/unistr/u8-mbtoucr: New file.
62035         * lib/unistr/u8-mbtoucr.c: New file.
62036         * modules/unistr/u16-mbtoucr: New file.
62037         * lib/unistr/u16-mbtoucr.c: New file.
62038         * modules/unistr/u16-mbtoucr: New file.
62039         * lib/unistr/u16-mbtoucr.c: New file.
62040         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62041
62042 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62043             Bruno Haible  <bruno@clisp.org>
62044
62045         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62046         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62047         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62048
62049         * m4/stdio_h.m4: Add stubs for vasprintf too.
62050
62051         * modules/stdio: Support vasprintf in sed command.
62052
62053         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62054         vasprintf.h.  Add stdio module indicator.
62055
62056         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62057         vasprintf.h.
62058
62059         * lib/vasprintf.h: File removed.
62060
62061         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62062         * lib/vasprintf.c: Ditto.
62063         * lib/xvasprintf.c: Ditto.
62064         * tests/test-vasprintf-posix.c: Ditto.
62065         * tests/test-vasprintf.c: Ditto.
62066
62067 2007-03-27  Bruno Haible  <bruno@clisp.org>
62068
62069         Make vasnprintf multithread-safe.
62070         * lib/vasnprintf.c (decimal_point_char): New function.
62071         (VASNPRINTF): Use it.
62072         Suggested by Simon Josefsson.
62073
62074 2007-03-27  Eric Blake  <ebb9@byu.net>
62075
62076         Support sub-second birthtime on cygwin.
62077         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62078         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62079         (get_stat_birthtime): Also work with st_birthtim.
62080
62081 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62084         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62085         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62086         (get_stat_birthtime_ns): Simplify compile-time tests.
62087         (get_stat_birthtime): Change the API to look like
62088         get_stat_mtime etc., except return a negative tv_nsec on error.
62089         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62090         Don't check for "spare" fields.
62091         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62092         or for struct stat.st_birthtime, as these tests aren't used.
62093         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62094
62095 2007-03-27  Bruno Haible  <bruno@clisp.org>
62096
62097         * lib/stat-time.h: Include <sys/stat.h>.
62098
62099 2007-03-27  James Youngman  <jay@gnu.org>
62100
62101         * lib/stat-time.h (get_stat_birthtime): New function for
62102           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62103         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62104           and its variants.
62105         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62106         * modules/stat-time-test: New file.
62107         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62108
62109 2007-03-26  Bruno Haible  <bruno@clisp.org>
62110
62111         Better support of signalling NaNs.
62112         * lib/atanl.c: Include isnanl.h.
62113         (atanl): Perform test for NaN at the beginning of the function and
62114         through a call to isnanl.
62115         * lib/cosl.c: Include isnanl.h.
62116         (cosl): Perform test for NaN at the beginning of the function and
62117         through a call to isnanl.
62118         * lib/ldexpl.c: Include isnanl.h.
62119         (ldexpl): Perform test for NaN through a call to isnanl.
62120         * lib/logl.c: Include isnanl.h.
62121         (logl): Perform test for NaN at the beginning of the function and
62122         through a call to isnanl.
62123         * lib/sinl.c: Include isnanl.h.
62124         (sinl): Perform test for NaN at the beginning of the function and
62125         through a call to isnanl.
62126         * lib/sqrtl.c: Include isnanl.h.
62127         (sqrtl): Perform test for NaN at the beginning of the function and
62128         through a call to isnanl.
62129         * lib/tanl.c: Include isnanl.h.
62130         (tanl): Perform test for NaN at the beginning of the function and
62131         through a call to isnanl.
62132         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62133         * modules/mathl (Depends-on): Add isnanl.
62134
62135 2007-03-26  Eric Blake  <ebb9@byu.net>
62136
62137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62138         regression in logic sense of previous patch.
62139
62140 2007-03-26  Bruno Haible  <bruno@clisp.org>
62141
62142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62143         unportable shell command "if ! ...".
62144         Reported by Ralf Wildenhues.
62145
62146 2007-03-25  Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62149         <sysexits.h> file, and only add EX_CONFIG.
62150         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62151         absolute file name and whether it is sufficient. Substitute also
62152         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62153         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62154         ABSOLUTE_SYSEXITS_H into sysexits.h.
62155
62156 2007-03-25  Bruno Haible  <bruno@clisp.org>
62157
62158         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62159         hints is NULL.
62160
62161 2007-03-25  Bruno Haible  <bruno@clisp.org>
62162
62163         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62164         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62165
62166 2007-03-25  Bruno Haible  <bruno@clisp.org>
62167
62168         * lib/vasnprintf.c: Include langinfo.h.
62169         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62170         multithread-safe.
62171         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62174         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62175         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62177         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62180         Reported by Simon Josefsson.
62181
62182 2007-03-25  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62185         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62186         * modules/vasnprintf (Depends-on): Add stdint.
62187
62188 2007-03-25  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/fpieee: New file.
62191         * m4/fpieee.m4: New file.
62192         * modules/isnan-nolibm (Depends-on): Add fpieee.
62193         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62194         * modules/isnanl (Depends-on): Add fpieee.
62195
62196 2007-03-25  Bruno Haible  <bruno@clisp.org>
62197
62198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62199
62200 2007-03-25  Bruno Haible  <bruno@clisp.org>
62201
62202         Avoid test failures on IRIX 6.5.
62203         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62204         (main): Use it.
62205         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62206         macros.
62207         (main): Use them.
62208
62209 2007-03-25  Bruno Haible  <bruno@clisp.org>
62210
62211         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62212         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62213         exists but doesn't work.
62214         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62215         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62217         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62218         math.h.
62219
62220 2007-03-25  Bruno Haible  <bruno@clisp.org>
62221
62222         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62223         returns inf. Needed on IRIX 6.5.
62224
62225 2007-03-25  Bruno Haible  <bruno@clisp.org>
62226
62227         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62228         (main): Use isnanl instead of x != x idiom.
62229         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62230
62231         * tests/test-frexp.c: Include isnan.h.
62232         (main): Use isnan instead of x != x idiom.
62233         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62234
62235 2007-03-25  Bruno Haible  <bruno@clisp.org>
62236
62237         * tests/test-frexp.c (NaN): New function/macro.
62238         (main): Use it instead of 0.0 / 0.0.
62239         * tests/test-isnan.c (NaN): New function/macro.
62240         (main): Use it instead of 0.0 / 0.0.
62241         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62242         (test_function): Use it instead of 0.0 / 0.0.
62243         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62244         (test_function): Use it instead of 0.0 / 0.0.
62245         * tests/test-snprintf-posix.h (NaN): New function/macro.
62246         (test_function): Use it instead of 0.0 / 0.0.
62247         * tests/test-sprintf-posix.h (NaN): New function/macro.
62248         (test_function): Use it instead of 0.0 / 0.0.
62249         * tests/test-fprintf-posix.h (NaN): New function/macro.
62250         (test_function): Use it instead of 0.0 / 0.0.
62251         * tests/test-printf-posix.h (NaN): New function/macro.
62252         (test_function): Use it instead of 0.0 / 0.0.
62253
62254         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62255
62256 2007-03-25  Bruno Haible  <bruno@clisp.org>
62257
62258         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62259
62260 2007-03-25  Bruno Haible  <bruno@clisp.org>
62261
62262         * lib/regexec.c (merge_state_with_log): Make static.
62263
62264 2007-03-25  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/trigl.c (kernel_rem_pio2): Make static.
62267
62268 2007-03-25  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/sincosl.c (sincosl_table): Make static.
62271
62272 2007-03-25  Bruno Haible  <bruno@clisp.org>
62273
62274         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62275         if the compiler does not support C99.
62276
62277 2007-03-25  Bruno Haible  <bruno@clisp.org>
62278
62279         * modules/time (Makefile.am): Ensure all rule action lines start with a
62280         tab.
62281
62282 2007-03-24  Bruno Haible  <bruno@clisp.org>
62283
62284         * modules/tsearch-tests: New file.
62285         * tests/test-tsearch.sh: New file.
62286         * tests/test-tsearch.c: New file, mostly copied from glibc.
62287
62288         * modules/search-tests: New file.
62289         * tests/test-search.c: New file.
62290
62291         * modules/search: New file.
62292         * lib/search_.h: New file, incorporating lib/tsearch.h.
62293         * m4/search_h.m4: New file.
62294         * lib/tsearch.h: Remove file.
62295         * lib/tsearch.c: Include search.h instead of tsearch.h.
62296         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62297         HAVE_TSEARCH.
62298         * modules/tsearch (Files): Remove lib/tsearch.h.
62299         (Depends-on): Add search.
62300         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62301         (Include): Change tsearch.h into search.h.
62302
62303 2007-03-24  Bruno Haible  <bruno@clisp.org>
62304
62305         * modules/fpucw: New file.
62306         * lib/fpucw.h: New file.
62307         * lib/frexp.c: Include fpucw.h.
62308         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62309         (FUNC): Use them.
62310         * lib/printf-frexp.c: Include fpucw.h.
62311         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62312         (FUNC): Use them.
62313         * lib/vasnprintf.c: Include fpucw.h.
62314         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62315         'long double' calculations.
62316         * tests/test-frexpl.c: Include fpucw.h.
62317         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62318         * tests/test-printf-frexpl.c: Include fpucw.h.
62319         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62320         * modules/frexpl (Depends-on): Add fpucw.
62321         * modules/printf-frexpl (Depends-on): Likewise.
62322         * modules/fprintf-posix (Depends-on): Likewise.
62323         * modules/snprintf-posix (Depends-on): Likewise.
62324         * modules/sprintf-posix (Depends-on): Likewise.
62325         * modules/vasnprintf-posix (Depends-on): Likewise.
62326         * modules/vasprintf-posix (Depends-on): Likewise.
62327         * modules/vfprintf-posix (Depends-on): Likewise.
62328         * modules/vsnprintf-posix (Depends-on): Likewise.
62329         * modules/vsprintf-posix (Depends-on): Likewise.
62330         * modules/frexpl-tests (Depends-on): Likewise.
62331         * modules/printf-frexpl-tests (Depends-on): Likewise.
62332
62333 2007-03-24  Bruno Haible  <bruno@clisp.org>
62334
62335         * lib/float+.h: New file.
62336         * lib/isnan.c: Include float+.h.
62337         (SIZE): New macro.
62338         (FUNC): Compare only SIZE bytes of the value.
62339         * lib/vasnprintf.c: Include float+.h.
62340         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62341         SIZEOF_LDBL or SIZEOF_DBL bytes.
62342         * modules/isnan-nolibm (Files): Add lib/float+.h.
62343         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62344         * modules/isnanl (Files): Add lib/float+.h.
62345         * modules/vasnprintf (Files): Add lib/float+.h.
62346
62347 2007-03-24  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62350         include isnanl-nolibm.h.
62351
62352 2007-03-24  Bruno Haible  <bruno@clisp.org>
62353
62354         * tests/test-read-file.c (main): Don't produce spurious output for
62355         expected situations. Make the test fail if it encountered unexpected
62356         results.
62357
62358 2007-03-24  Bruno Haible  <bruno@clisp.org>
62359
62360         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62361         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62362
62363 2007-03-24  Bruno Haible  <bruno@clisp.org>
62364
62365         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62366
62367 2007-03-24  Bruno Haible  <bruno@clisp.org>
62368
62369         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62370         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62371
62372         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62373         * modules/utf8-ucs4: Turn into a symbolic link to module
62374         unistr/u8-mbtouc.
62375
62376         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62377         utf8-ucs4-unsafe.
62378         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62379         unistr/u8-mbtouc-unsafe.
62380
62381         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62382         * modules/utf16-ucs4: Turn into a symbolic link to module
62383         unistr/u16-mbtouc.
62384
62385         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62386         utf16-ucs4-unsafe.
62387         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62388         unistr/u16-mbtouc-unsafe.
62389
62390         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62391         * modules/ucs4-utf8: Turn into a symbolic link to module
62392         unistr/u8-ubtomb.
62393
62394         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62395         * modules/ucs4-utf16: Turn into a symbolic link to module
62396         unistr/u16-ubtomb.
62397
62398 2007-03-24  Bruno Haible  <bruno@clisp.org>
62399
62400         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62401         Enable the function only if HAVE_INLINE.
62402         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62403         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62404         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62405         Enable the function only if HAVE_INLINE.
62406         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62407         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62408         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62409         Enable the function only if HAVE_INLINE.
62410         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62411         Enable the function only if HAVE_INLINE.
62412         * modules/utf8-ucs4: Update.
62413         * modules/utf8-ucs4-unsafe: Update.
62414         * modules/utf16-ucs4: Update.
62415         * modules/utf16-ucs4-unsafe: Update.
62416         * modules/ucs4-utf8: Update.
62417         * modules/ucs4-utf16: Update.
62418
62419 2007-03-24  Bruno Haible  <bruno@clisp.org>
62420
62421         * lib/utf8-ucs4.h: Remove file.
62422         * lib/utf8-ucs4-unsafe.h: Remove file.
62423         * lib/utf16-ucs4.h: Remove file.
62424         * lib/utf16-ucs4-unsafe.h: Remove file.
62425         * lib/ucs4-utf8.h: Remove file.
62426         * lib/ucs4-utf16.h: Remove file.
62427         * lib/unistr.h: Include their previous contents.
62428         * m4/utf-ucs4.m4: Remove file.
62429         * m4/ucs4-utf.m4: Remove file.
62430         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62431         (Depends-on): Add unistr/base.
62432         (configure.ac): Remove gl_UTF_UCS4.
62433         (Makefile.am): Update.
62434         (Include): Change to unistr.h.
62435         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62436         (Depends-on): Add unistr/base.
62437         (configure.ac): Remove gl_UTF_UCS4.
62438         (Makefile.am): Update.
62439         (Include): Change to unistr.h.
62440         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62441         (Depends-on): Add unistr/base.
62442         (configure.ac): Remove gl_UTF_UCS4.
62443         (Makefile.am): Update.
62444         (Include): Change to unistr.h.
62445         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62446         (Depends-on): Add unistr/base.
62447         (configure.ac): Remove gl_UTF_UCS4.
62448         (Makefile.am): Update.
62449         (Include): Change to unistr.h.
62450         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62451         (Depends-on): Add unistr/base.
62452         (configure.ac): Remove gl_UCS4_UTF.
62453         (Makefile.am): Update.
62454         (Include): Change to unistr.h.
62455         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62456         (Depends-on): Add unistr/base.
62457         (configure.ac): Remove gl_UCS4_UTF.
62458         (Makefile.am): Update.
62459         (Include): Change to unistr.h.
62460         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62461         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62462         utf8-ucs4-unsafe.h.
62463         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62464         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62465         utf16-ucs4-unsafe.h.
62466         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62467         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62468         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62469         * lib/unistr/u8-strchr.c: Likewise.
62470         * lib/unistr/u8-strrchr.c: Likewise.
62471         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62472         * lib/unistr/u16-strchr.c: Likewise.
62473         * lib/unistr/u16-strrchr.c: Likewise.
62474         * lib/striconveh.c: Update.
62475         * lib/linebreak.c: Update.
62476
62477 2007-03-24  Bruno Haible  <bruno@clisp.org>
62478
62479         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62480         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62481
62482 2007-03-22  Bruno Haible  <bruno@clisp.org>
62483
62484         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62485
62486 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * MODULES.html.sh (File system functions): New module write-any-file.
62489         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62490         * m4/write-any-file.m4: New files.
62491
62492 2007-03-23  Eric Blake  <ebb9@byu.net>
62493
62494         * gnulib-tool: Rearrange space-tab sequences, since some editors
62495         like to eat them.
62496
62497 2007-03-23  Eric Blake  <ebb9@byu.net>
62498
62499         * lib/version-etc.c (version_etc_va): Update license wording to
62500         be more concise.  Recommended by Richard Stallman.
62501
62502 2007-03-22  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/poll.c (MSG_PEEK): New fallback definition.
62505
62506 2007-03-22  Bruno Haible  <bruno@clisp.org>
62507
62508         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62509         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62510         (main): Update.
62511         Fixes a compilation error on BeOS.
62512
62513 2007-03-22  Bruno Haible  <bruno@clisp.org>
62514
62515         * modules/frexpl-tests: New file.
62516         * tests/test-frexpl.c: New file.
62517
62518         * modules/frexpl: New file.
62519         * m4/frexpl.m4: New file.
62520         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62521         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62523         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62524         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62525         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62526
62527 2007-03-22  Bruno Haible  <bruno@clisp.org>
62528
62529         * lib/frexpl.c: Share code with lib/frexp.c.
62530         * modules/mathl (Files): Add lib/frexp.c.
62531         (Depends-on): Add isnanl-nolibm.
62532
62533 2007-03-22  Bruno Haible  <bruno@clisp.org>
62534
62535         * modules/printf-frexp (Files): Add m4/frexp.m4.
62536         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62537         only if the found frexp function actually works.
62538
62539 2007-03-22  Bruno Haible  <bruno@clisp.org>
62540
62541         * lib/frexp.c: Remove older implementation that uses divisions.
62542
62543 2007-03-21  Bruno Haible  <bruno@clisp.org>
62544
62545         * modules/frexp-tests: New file.
62546         * tests/test-frexp.c: New file.
62547
62548         * modules/frexp: New file.
62549         * lib/frexp.c: New file.
62550         * m4/frexp.m4: New file.
62551         * lib/math_.h (frexp): New declaration.
62552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62553         REPLACE_FREXP.
62554         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62555
62556 2007-03-21  Bruno Haible  <bruno@clisp.org>
62557
62558         * modules/isnanl-tests: New file.
62559         * tests/test-isnanl.c: New file.
62560
62561         * modules/isnanl: New file.
62562         * lib/isnanl.h: New file.
62563         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62564         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62565         gl_FUNC_ISNANL_WORKS.
62566         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62567         New macros.
62568
62569 2007-03-21  Bruno Haible  <bruno@clisp.org>
62570
62571         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62572         lib/isnanl.h.
62573         (Include): Update.
62574         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62575         * lib/vasnprintf.c: Update.
62576         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62577         tests/test-isnanl.h, remove tests/test-isnanl.c.
62578         (Makefile.am): Update.
62579         * tests/test-isnanl-nolibm.c: New file.
62580         * tests/test-isnanl.h: New file.
62581         * tests/test-isnanl.c: Remove file.
62582
62583 2007-03-21  Jim Meyering  <jim@meyering.net>
62584
62585         When trying to open ".", treat ESTALE like EACCES.
62586         * lib/savewd.c (savewd_save): Resort to forking not just upon
62587         failure with EACCES, but also when errno is ESTALE.
62588
62589 2007-03-20  Bruno Haible  <bruno@clisp.org>
62590
62591         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62592         Needed on AIX 5.1. Reported by Matthew Woehlke.
62593
62594 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62595
62596         Suggestions by Bruno Haible:
62597         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62598         our own.
62599         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62600         * modules/acl (Depends-on): Add gettext.
62601
62602 2007-03-19  Bruno Haible  <bruno@clisp.org>
62603
62604         * modules/iconvme: Remove file.
62605         * lib/iconvme.h: Remove file.
62606         * lib/iconvme.c: Remove file.
62607         * m4/iconvme.m4: Remove file.
62608
62609 2007-03-19  Bruno Haible  <bruno@clisp.org>
62610
62611         * doc/relocatable-maint.texi: Break long shell script line.
62612         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62613
62614 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62617         handle file_has_acl.
62618         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62619         * lib/acl.c: Move header inclusions and related macro defns into
62620         lib/acl-internal.h.
62621         (S_ISLNK): Remove defn, since that's now done for us.
62622         (file_has_acl): Move to lib/file-has-acl.c.
62623         Call acl_trivial if available.  This is the crucial part of the fix.
62624         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62625         shared within the library.  Rewrite a bit, partly to make it compatible
62626         with the GNU coding style.
62627         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62628         Remove unnecessary double-quotes.
62629         Don't test for acl_to_text; the build will catch that.
62630         Replace acl_entries if it doesn't exist and it is needed.
62631         Check for -lsec and acl_trivial (as used on Solaris 10).
62632         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62633         lib/file-has-acl.c.
62634         (Depends-on): Add sys_stat, for S_ISLNK.
62635
62636 2007-03-19  Ben Pfaff  <blp@gnu.org>
62637
62638         * doc/gnulib.texi: Fix typos.
62639         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62640
62641 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62642
62643         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62644         If size is zero here, buf must be zero.
62645
62646 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62647
62648         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62649         <bruno@clisp.org>.
62650
62651 2007-03-18  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62654         Suggested by Eric Blake.
62655
62656 2007-03-18  Ben Pfaff  <blp@gnu.org>
62657
62658         * doc/relocatable.texi: Recommend using as prefix a directory
62659         that does not exist and will never be created.  Based on
62660         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62661         and others.
62662
62663 2007-03-17  Bruno Haible  <bruno@clisp.org>
62664
62665         * lib/fchownat.c: Include lchown.h.
62666
62667 2007-03-17  Bruno Haible  <bruno@clisp.org>
62668
62669         Fix endless loop when the given allocated size was > INT_MAX.
62670         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62671         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62672         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62673         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62674         * lib/sprintf.c (sprintf): Likewise.
62675
62676 2007-03-17  Bruno Haible  <bruno@clisp.org>
62677
62678         * tests/test-argp-2.sh (func_compare): Output a context diff.
62679
62680 2007-03-17  Bruno Haible  <bruno@clisp.org>
62681
62682         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62683         locale's decimal-point character.
62684
62685 2007-03-17  Bruno Haible  <bruno@clisp.org>
62686
62687         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62688         before comparing it. Needed because on some platforms (e.g. x86) a
62689         'long double' occupies less bytes than sizeof (long double).
62690
62691 2007-03-17  Bruno Haible  <bruno@clisp.org>
62692
62693         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62694         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62695         * tests/test-getaddrinfo.c (simple): Likewise.
62696         * tests/test-read-file.c (main): Likewise.
62697
62698 2007-03-17  Bruno Haible  <bruno@clisp.org>
62699
62700         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62701
62702 2007-03-17  Bruno Haible  <bruno@clisp.org>
62703
62704         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62705         unused variable.
62706
62707 2007-03-17  Bruno Haible  <bruno@clisp.org>
62708
62709         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62710         * tests/test-c-strncasecmp.c: Likewise.
62711
62712 2007-03-17  Bruno Haible  <bruno@clisp.org>
62713
62714         * modules/stdlib (Depends-on): Add unistd.
62715         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62716         Needed for MacOS X 10.3.
62717
62718 2007-03-17  Bruno Haible  <bruno@clisp.org>
62719
62720         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62721
62722 2007-03-17  Bruno Haible  <bruno@clisp.org>
62723
62724         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62725
62726 2007-03-17  Bruno Haible  <bruno@clisp.org>
62727
62728         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62729         to reflect files copied from gnulib (with or without modifications).
62730         Suggested by Jim Meyering.
62731
62732 2007-03-17  Eric Blake  <ebb9@byu.net>
62733
62734         * NEWS: Document stdlib change from 2007-02-18.
62735
62736 2007-03-17  Jim Meyering  <jim@meyering.net>
62737
62738         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62739         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62740         someone uses a name containing shell meta-characters.
62741         Reported by Alfred M. Szmidt.
62742
62743         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62744
62745 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62746
62747         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62748         and copy gettext configuration files only if configure.ac contains
62749         a use of AM_GNU_GETTEXT_VERSION.
62750
62751 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62752
62753         * build-aux/bootstrap (gnulib_name): New variable.
62754         (gnulib_tool_options): Use it.
62755
62756 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62757
62758         * tests/test-des.c: Use new namespace.
62759
62760 2007-03-15  Bruno Haible  <bruno@clisp.org>
62761
62762         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62763         Reported by James Youngman <jay@gnu.org>.
62764
62765 2007-03-15  Bruno Haible  <bruno@clisp.org>
62766
62767         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62768         declared prototype. Needed with cc on OSF/1 5.1.
62769
62770 2007-03-15  Bruno Haible  <bruno@clisp.org>
62771
62772         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62773         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62774         (struct gl_list_implementation): Add dispose_fn argument to the
62775         'create_empty', 'create' methods.
62776         (struct gl_list_impl_base): Add field 'dispose_fn'.
62777         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62778         argument.
62779         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62780         dispose_fn argument.
62781         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62782         dispose_fn on the dropped values.
62783         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62784         dispose_fn argument.
62785         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62786         dropped values.
62787         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62788         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62789         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62790         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62791         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62792         argument.
62793         (gl_tree_list_free): Call dispose_fn on the dropped values.
62794         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62795         the dropped values.
62796         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62797         Add dispose_fn argument.
62798         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62799         Call dispose_fn on the dropped values.
62800         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62801         Add dispose_fn argument.
62802         (gl_sublist_create): Initialize the 'dispose_fn' field.
62803         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62804         * tests/test-array_list.c (main): Update.
62805         * tests/test-carray_list.c (main): Update.
62806         * tests/test-avltree_list.c (main): Update.
62807         * tests/test-rbtree_list.c (main): Update.
62808         * tests/test-avltreehash_list.c (main): Update.
62809         * tests/test-rbtreehash_list.c (main): Update.
62810         * tests/test-linked_list.c (main): Update.
62811         * tests/test-linkedhash_list.c (main): Update.
62812         * tests/test-array_oset.c (main): Update.
62813
62814 2007-03-15  Bruno Haible  <bruno@clisp.org>
62815
62816         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62817         (gl_oset_create_empty): Add dispose_fn argument.
62818         (struct gl_oset_implementation): Add dispose_fn argument to
62819         'create_empty' method.
62820         (struct gl_oset_impl_base): Add dispose_fn field.
62821         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62822         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62823         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62824         values.
62825         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62826         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62827         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62828         dropped value.
62829         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62830         dropped value.
62831         * tests/test-array_oset.c (main): Update.
62832         * tests/test-avltree_oset.c (main): Update.
62833         * tests/test-rbtree_oset.c (main): Update.
62834         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62835
62836 2007-03-13  Bruno Haible  <bruno@clisp.org>
62837
62838         * tests/test-stdbool.c (i): Update after last patch.
62839
62840 2007-03-12  Bruno Haible  <bruno@clisp.org>
62841
62842         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62843         the iswprint macro. Needed on Solaris 2.5.1.
62844
62845 2007-03-12  Bruno Haible  <bruno@clisp.org>
62846
62847         * tests/test-printf-frexp.c (main): Declare x as volatile.
62848
62849 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62850
62851         * doc/gnulib.texi (Build robot for gnulib): New section.
62852
62853 2007-03-12  Jim Meyering  <jim@meyering.net>
62854
62855         * build-aux/bootstrap: New file.
62856         * build-aux/bootstrap.conf: New file, from coreutils.
62857
62858 2007-03-11  Bruno Haible  <bruno@clisp.org>
62859
62860         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62861
62862 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62863
62864         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62865         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62866         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62867
62868 2007-03-11  Bruno Haible  <bruno@clisp.org>
62869
62870         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62871         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62872
62873 2007-03-11  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62876         formula. Needed for SunPRO C 5.0.
62877
62878 2007-03-11  Bruno Haible  <bruno@clisp.org>
62879
62880         * modules/long-options (Depends-on): Add getopt.
62881
62882 2007-03-11  Bruno Haible  <bruno@clisp.org>
62883
62884         * modules/modechange (Depends-on): Add stdbool.
62885
62886 2007-03-11  Bruno Haible  <bruno@clisp.org>
62887
62888         * modules/i-ring (Depends-on): Add stdbool.
62889
62890 2007-03-11  Bruno Haible  <bruno@clisp.org>
62891
62892         * modules/gc-des (Depends-on): Add stdbool.
62893
62894 2007-03-11  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62897
62898 2007-03-11  Bruno Haible  <bruno@clisp.org>
62899
62900         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62901
62902 2007-03-11  Bruno Haible  <bruno@clisp.org>
62903
62904         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62905
62906 2007-03-11  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/vasnprintf.c (sprintf): Undefine.
62909
62910 2007-03-11  Bruno Haible  <bruno@clisp.org>
62911
62912         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62913         initializers in SunPRO C and Compaq C compilers.
62914
62915 2007-03-11  Bruno Haible  <bruno@clisp.org>
62916
62917         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62918         decrementing code ANSI C compliant.
62919
62920 2007-03-11  Bruno Haible  <bruno@clisp.org>
62921
62922         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62923         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62924
62925 2007-03-11  Bruno Haible  <bruno@clisp.org>
62926
62927         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62928         <stdbool.h> substitute doesn't pass.
62929
62930 2007-03-11  Bruno Haible  <bruno@clisp.org>
62931
62932         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62933
62934 2007-03-11  Bruno Haible  <bruno@clisp.org>
62935
62936         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62937         script, for submission to autobuild.josefsson.org.
62938
62939 2007-03-10  Bruno Haible  <bruno@clisp.org>
62940
62941         * modules/canonicalize-lgpl-tests: New file.
62942         * tests/test-canonicalize-lgpl.sh: New file.
62943         * tests/test-canonicalize-lgpl.c: New file.
62944
62945         * modules/c-strcase-tests: New file.
62946         * tests/test-c-strcase.sh: New file.
62947         * tests/test-c-strcasecmp.c: New file.
62948         * tests/test-c-strncasecmp.c: New file.
62949
62950         * modules/atexit-tests: New file.
62951         * tests/test-atexit.sh: New file.
62952         * tests/test-atexit.c: New file.
62953
62954 2007-03-10  Bruno Haible  <bruno@clisp.org>
62955
62956         * tests/test-binary-io.sh: Use temporary filenames that are not so
62957         likely to clash with those of other tests (in a parallel make).
62958         * tests/test-binary-io.c: Likewise.
62959
62960 2007-03-10  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62963         fallback; use #error instead.
62964         Suggested by Simon Josefsson.
62965
62966 2007-03-10  Bruno Haible  <bruno@clisp.org>
62967
62968         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62969         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62970         first and the last.
62971
62972 2007-03-10  Bruno Haible  <bruno@clisp.org>
62973
62974         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62975
62976 2007-03-10  Bruno Haible  <bruno@clisp.org>
62977
62978         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62979         "make distcheck".
62980         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62981         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62982         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62983
62984 2007-03-10  Bruno Haible  <bruno@clisp.org>
62985
62986         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62987         variable.
62988         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62989         variable.
62990
62991 2007-03-09  Eric Blake  <ebb9@byu.net>
62992         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62993
62994         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62995         types are not being provided by gnulib.
62996         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62997         types are supported.
62998
62999 2007-03-10  Bruno Haible  <bruno@clisp.org>
63000
63001         * lib/stdio_.h (__attribute__): New macro.
63002         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63003         vsprintf): Specify __attribute__ __format__ for GCC.
63004         Suggested by Eric Blake.
63005
63006 2007-03-09  Bruno Haible  <bruno@clisp.org>
63007
63008         * modules/printf-posix-tests: New file.
63009         * tests/test-printf-posix.sh: New file.
63010         * tests/test-printf-posix.c: New file.
63011
63012         * modules/printf-posix: New file.
63013         * lib/printf.c: New file.
63014         * m4/printf-posix-rpl.m4: New file.
63015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63016         REPLACE_PRINTF.
63017         * lib/stdio_.h (printf): New declaration.
63018         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63019         ____strfmon____): New macros.
63020         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63021         REPLACE_PRINTF.
63022
63023 2007-03-09  Bruno Haible  <bruno@clisp.org>
63024
63025         * tests/test-vasnprintf-posix2.sh: New file.
63026         * tests/test-vasnprintf-posix2.c: New file.
63027         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63028         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63029         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63030
63031         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63032         a locale dependent decimal point, rather than always '.'.
63033
63034 2007-03-09  Eric Blake  <ebb9@byu.net>
63035
63036         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63037         spite of platforms like Tandem/NSK that define it to -1.
63038
63039 2007-03-08  Bruno Haible  <bruno@clisp.org>
63040
63041         * modules/vprintf-posix-tests: New file.
63042         * tests/test-vprintf-posix.sh: New file.
63043         * tests/test-vprintf-posix.c: New file.
63044         * tests/test-printf-posix.h: New file.
63045
63046         * modules/vprintf-posix: New file.
63047         * lib/vprintf.c: New file.
63048         * m4/vprintf-posix.m4: New file.
63049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63050         REPLACE_VPRINTF.
63051         * lib/stdio_.h (vprintf): New declaration.
63052         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63053         REPLACE_VPRINTF.
63054
63055 2007-03-08  Bruno Haible  <bruno@clisp.org>
63056
63057         * modules/fprintf-posix-tests: New file.
63058         * tests/test-fprintf-posix.sh: New file.
63059         * tests/test-fprintf-posix.c: New file.
63060
63061         * modules/fprintf-posix: New file.
63062         * lib/fprintf.c: New file.
63063         * m4/fprintf-posix.m4: New file.
63064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63065         REPLACE_FPRINTF.
63066         * lib/stdio_.h (fprintf): New declaration.
63067         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63068         REPLACE_FPRINTF.
63069
63070 2007-03-08  Bruno Haible  <bruno@clisp.org>
63071
63072         * modules/vfprintf-posix-tests: New file.
63073         * tests/test-vfprintf-posix.sh: New file.
63074         * tests/test-vfprintf-posix.c: New file.
63075         * tests/test-fprintf-posix.h: New file.
63076         * tests/test-fprintf-posix.out: New file.
63077
63078         * modules/vfprintf-posix: New file.
63079         * lib/vfprintf.c: New file.
63080         * m4/vfprintf-posix.m4: New file.
63081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63082         REPLACE_VFPRINTF.
63083         * lib/stdio_.h (vfprintf): New declaration.
63084         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63085         REPLACE_VFPRINTF.
63086
63087 2007-03-08  Bruno Haible  <bruno@clisp.org>
63088
63089         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63090
63091 2007-03-08  Bruno Haible  <bruno@clisp.org>
63092
63093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63094         instead of 'expr' invocations.
63095         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63096         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63097         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63098         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63099         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63100         Suggested by Paul Eggert.
63101
63102 2007-03-08  Bruno Haible  <bruno@clisp.org>
63103
63104         * modules/fseterr-tests: New file.
63105         * tests/test-fseterr.c: New file.
63106
63107         * modules/fseterr: New file.
63108         * lib/fseterr.h: New file.
63109         * lib/fseterr.c: New file.
63110
63111 2007-03-08  Bruno Haible  <bruno@clisp.org>
63112
63113         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63114         * lib/getopt_.h: Likewise.
63115         * lib/mbswidth.h: Likewise.
63116         * lib/setenv.h: Likewise.
63117         * lib/vasnprintf.h: Likewise.
63118         * lib/vasprintf.h: Likewise.
63119         * lib/verror.h: Likewise.
63120         * lib/xsetenv.h: Likewise.
63121         * lib/xvasprintf.h: Likewise.
63122
63123 2007-03-08  Jim Meyering  <jim@meyering.net>
63124
63125         * users.txt: Add parted.
63126
63127         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63128
63129 2007-03-07  Bruno Haible  <bruno@clisp.org>
63130
63131         * m4/printf.m4: Make the shell script snippets copy&pastable.
63132
63133 2007-03-02  Bruno Haible  <bruno@clisp.org>
63134
63135         * lib/netinet_in_.h: New file.
63136         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63137         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63138         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63139         (Depends-on): Add absolute-header.
63140         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63141         into netinet/in.h.
63142
63143 2007-03-03  Bruno Haible  <bruno@clisp.org>
63144
63145         * lib/sys_select_.h: New file.
63146         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63147         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63148         * modules/sys_select (Files): Add lib/sys_select_.h.
63149         (Depends-on): Add absolute-header.
63150         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63151         into sys/select.h.
63152
63153 2007-03-02  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63156         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63157         values.
63158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63159         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63160         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63161         * modules/sys_socket (Depends-on): Add absolute-header.
63162         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63163         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63164         (Include): Remove requirement of inclusion of <sys/types.h>.
63165
63166 2007-03-02  Bruno Haible  <bruno@clisp.org>
63167
63168         * lib/byteswap_.h (bswap_32): Fix formula.
63169
63170 2007-03-06  Bruno Haible  <bruno@clisp.org>
63171
63172         * modules/sprintf-posix-tests: New file.
63173         * tests/test-sprintf-posix.c: New file.
63174
63175         * modules/sprintf-posix: New file.
63176         * lib/sprintf.c: New file.
63177         * m4/sprintf-posix.m4: New file.
63178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63179         REPLACE_SPRINTF.
63180         * lib/stdio_.h (sprintf): New declaration.
63181         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63182         REPLACE_SPRINTF.
63183
63184 2007-03-06  Bruno Haible  <bruno@clisp.org>
63185
63186         * modules/vsprintf-posix-tests: New file.
63187         * tests/test-vsprintf-posix.c: New file.
63188         * tests/test-sprintf-posix.h: New file.
63189
63190         * modules/vsprintf-posix: New file.
63191         * lib/vsprintf.c: New file.
63192         * m4/vsprintf-posix.m4: New file.
63193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63194         REPLACE_VSPRINTF.
63195         * lib/stdio_.h (vsprintf): New declaration.
63196         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63197         REPLACE_VSPRINTF.
63198
63199 2007-03-06  Bruno Haible  <bruno@clisp.org>
63200
63201         * modules/vsnprintf (Depend-on): Remove minmax.
63202
63203 2007-03-06  Bruno Haible  <bruno@clisp.org>
63204
63205         * modules/snprintf-posix-tests: New file.
63206         * tests/test-snprintf-posix.c: New file.
63207
63208         * modules/snprintf-posix: New file.
63209         * m4/snprintf-posix.m4: New file.
63210         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63211         gl_FUNC_SNPRINTF.
63212         (gl_FUNC_SNPRINTF): Invoke it.
63213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63214         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63215         is set.
63216         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63217
63218 2007-03-06  Bruno Haible  <bruno@clisp.org>
63219
63220         * modules/vsnprintf-posix-tests: New file.
63221         * tests/test-vsnprintf-posix.c: New file.
63222         * tests/test-snprintf-posix.h: New file.
63223
63224         * modules/vsnprintf-posix: New file.
63225         * m4/vsnprintf-posix.m4: New file.
63226         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63227         gl_FUNC_VSNPRINTF.
63228         (gl_FUNC_VSNPRINTF): Invoke it.
63229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63230         * lib/stdio_.h (vsnprintf): Define as a replacement if
63231         REPLACE_VSNPRINTF is set.
63232         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63233
63234 2007-03-06  Bruno Haible  <bruno@clisp.org>
63235
63236         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63238
63239 2007-03-06  Bruno Haible  <bruno@clisp.org>
63240
63241         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63242         (asinl): Declare also if HAVE_DECL_ASINL is set.
63243         (atanl): Declare also if HAVE_DECL_ATANL is set.
63244         (ceill): Declare also if HAVE_DECL_CEILL is set.
63245         (cosl): Declare also if HAVE_DECL_COSL is set.
63246         (expl): Declare also if HAVE_DECL_EXPL is set.
63247         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63248         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63249         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63250         (logl): Declare also if HAVE_DECL_LOGL is set.
63251         (sinl): Declare also if HAVE_DECL_SINL is set.
63252         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63253         (tanl): Declare also if HAVE_DECL_TANL is set.
63254         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63256         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63257         declaration of frexpl, ldexpl.
63258         * modules/printf-frexpl (Depends-on): Add math.
63259         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63260
63261 2007-03-05  Bruno Haible  <bruno@clisp.org>
63262
63263         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63264         frexpl and ldexpl are declared.
63265         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63266
63267 2007-03-05  Bruno Haible  <bruno@clisp.org>
63268
63269         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63270         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63271
63272 2007-03-05  Bruno Haible  <bruno@clisp.org>
63273
63274         * lib/stdio_.h: Include <stddef.h>.
63275
63276 2007-03-05  Bruno Haible  <bruno@clisp.org>
63277
63278         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63279
63280 2007-03-05  Bruno Haible  <bruno@clisp.org>
63281
63282         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63283         NetBSD 4, from Ralf Wildenhues.
63284
63285 2007-03-04  Bruno Haible  <bruno@clisp.org>
63286
63287         * lib/vasprintf.h: Update #if logic for the case when the functions
63288         exist but are overridden.
63289
63290 2007-03-04  Bruno Haible  <bruno@clisp.org>
63291
63292         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63293         implementations: glibc-2.4 and MacOS X 10.3.
63294         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63295         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63296         * tests/test-vasprintf-posix.c (test_function): Likewise.
63297
63298 2007-03-04  Bruno Haible  <bruno@clisp.org>
63299
63300         * modules/vasprintf-posix-tests: New file.
63301         * tests/test-vasprintf-posix.c: New file.
63302
63303         * modules/vasprintf-posix: New file.
63304         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63305         defined.
63306         * m4/vasprintf-posix.m4: New file.
63307         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63308         gl_FUNC_VASPRINTF.
63309         (gl_FUNC_VASPRINTF): Invoke it.
63310         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63311         here.
63312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63313
63314 2007-03-04  Bruno Haible  <bruno@clisp.org>
63315
63316         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63317         REPLACE_GETTIMEOFDAY.
63318         * modules/sys_time (Makefile.am): Likewise.
63319         * m4/sys_time_h.m4: Likewise.
63320         * m4/gettimeofday.m4: Likewise.
63321
63322 2007-03-04  Bruno Haible  <bruno@clisp.org>
63323
63324         * modules/vasnprintf-posix-tests: New file.
63325         * tests/test-vasnprintf-posix.c: New file.
63326
63327         * modules/vasnprintf-posix: New file.
63328         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63329         printf-frexpl.h.
63330         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63331         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63332         REPLACE_VASNPRINTF is defined.
63333         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63334         gl_FUNC_VASNPRINTF.
63335         (gl_FUNC_VASNPRINTF): Invoke it.
63336         * m4/vasnprintf-posix.m4: New file.
63337         * m4/printf.m4: New file.
63338
63339 2007-03-04  Bruno Haible  <bruno@clisp.org>
63340
63341         Compile progreloc.c only if --enable-relocatable is specified.
63342         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63343         if --enable-relocatable was specified.
63344         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63345         lib_SOURCES.
63346
63347 2007-03-04  Jim Meyering  <jim@meyering.net>
63348
63349         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63350         Use it consistently, rather than enumerating errno constants.
63351
63352 2007-03-04  Bruno Haible  <bruno@clisp.org>
63353
63354         * modules/xvasprintf-tests: New file.
63355         * tests/test-xvasprintf.c: New file.
63356
63357         * modules/vasprintf-tests: New file.
63358         * tests/test-vasprintf.c: New file.
63359
63360         * modules/vasnprintf-tests: New file.
63361         * tests/test-vasnprintf.c: New file.
63362
63363         * modules/vsnprintf-tests: New file.
63364         * tests/test-vsnprintf.c: New file.
63365
63366         * modules/snprintf-tests: New file.
63367         * tests/test-snprintf.c: New file.
63368
63369 2007-03-04  Bruno Haible  <bruno@clisp.org>
63370
63371         Compile relocatable.c only if --enable-relocatable is specified.
63372         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63373         gl_RELOCATABLE_LIBRARY.
63374         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63375         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63376         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63377         gl_RELOCATABLE_LIBRARY.
63378         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63379         (Makefile.am): Remove lib_SOURCES.
63380         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63381         gl_RELOCATABLE_LIBRARY.
63382         (Makefile.am): Remove lib_SOURCES.
63383         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63384         always.
63385         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63386         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63387
63388 2007-03-04  Bruno Haible  <bruno@clisp.org>
63389
63390         * modules/argmatch-tests: New file.
63391         * tests/test-argmatch.c: New file.
63392
63393         * tests/test-allocsa.c (main): Halve the number of loop runs.
63394
63395         * modules/alloca-opt-tests: New file.
63396         * tests/test-alloca-opt.c: New file.
63397
63398 2007-03-04  Jim Meyering  <jim@meyering.net>
63399
63400         Work around difference between Linux ACLs and Solaris 10 ZFS.
63401         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63402         for EINVAL.
63403
63404 2007-03-03  Bruno Haible  <bruno@clisp.org>
63405
63406         * modules/relocatable-prog (Depends-on): Add back progreloc's
63407         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63408
63409 2007-03-03  Bruno Haible  <bruno@clisp.org>
63410
63411         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63412         * modules/relocatable-lib: New file.
63413
63414 2007-03-03  Bruno Haible  <bruno@clisp.org>
63415
63416         * modules/relocatable-prog: Renamed from modules/relocatable.
63417         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63418
63419 2007-03-03  Bruno Haible  <bruno@clisp.org>
63420
63421         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63422         m4/relocatable-lib.m4.
63423         (Depends-on): Remove 'relocatable'.
63424         (configure.ac): Add gl_RELOCATABLE_NOP.
63425
63426 2007-03-03  Bruno Haible  <bruno@clisp.org>
63427
63428         * modules/relocatable-prog-wrapper: New file.
63429         * modules/relocatable (Depends-on): Add it. Remove all other
63430         dependencies except progname.
63431         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63432
63433         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63434         (gl_FUNC_STRERROR): Nop.
63435         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63436
63437         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63438         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63439
63440         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63441         (gl_FUNC_READLINK): Update.
63442
63443         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63444
63445 2007-03-03  Bruno Haible  <bruno@clisp.org>
63446
63447         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63448         * modules/xreadlink (Depends-on): Add unistd.
63449         * modules/xreadlink-with-size (Depends-on): Likewise.
63450
63451 2007-03-03  Bruno Haible  <bruno@clisp.org>
63452
63453         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63454         extracted from gt_FUNC_SETENV.
63455         (gt_FUNC_SETENV): Remove macro.
63456         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63457         remove gt_FUNC_SETENV.
63458
63459 2007-03-03  Bruno Haible  <bruno@clisp.org>
63460
63461         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63462         ENABLE_RELOCATABLE here.
63463         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63464
63465 2007-03-03  Bruno Haible  <bruno@clisp.org>
63466
63467         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63468         * tests/test-rbtreehash_list.c: Include progname.h.
63469         (main): Call set_program_name.
63470
63471         * modules/rbtree-oset-tests (Depends-on): Add progname.
63472         * tests/test-rbtree_oset.c: Include progname.h.
63473         (main): Call set_program_name.
63474
63475         * modules/rbtree-list-tests (Depends-on): Add progname.
63476         * tests/test-rbtree_list.c: Include progname.h.
63477         (main): Call set_program_name.
63478
63479         * modules/linked-list-tests (Depends-on): Add progname.
63480         * tests/test-linked_list.c: Include progname.h.
63481         (main): Call set_program_name.
63482
63483 2007-03-03  Bruno Haible  <bruno@clisp.org>
63484
63485         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63486         All uses of __restrict changed to _Restrict_.
63487         * lib/glob_.h (__restrict): Remove macro.
63488
63489 2007-03-02  Bruno Haible  <bruno@clisp.org>
63490
63491         * modules/gettext (configure.ac): Require gettext infrastructure
63492         from version 0.16.1.
63493
63494 2007-03-02  Bruno Haible  <bruno@clisp.org>
63495
63496         * modules/linkedhash-list-tests (Depends-on): Add progname.
63497         * tests/test-linkedhash_list.c: Include progname.h.
63498         (main): Call set_program_name.
63499
63500         * modules/carray-list-tests (Depends-on): Add progname.
63501         * tests/test-carray_list.c: Include progname.h.
63502         (main): Call set_program_name.
63503
63504         * modules/avltreehash-list-tests (Depends-on): Add progname.
63505         * tests/test-avltreehash_list.c: Include progname.h.
63506         (main): Call set_program_name.
63507
63508         * modules/avltree-oset-tests (Depends-on): Add progname.
63509         * tests/test-avltree_oset.c: Include progname.h.
63510         (main): Call set_program_name.
63511
63512         * modules/avltree-list-tests (Depends-on): Add progname.
63513         * tests/test-avltree_list.c: Include progname.h.
63514         (main): Call set_program_name.
63515
63516         * modules/array-oset-tests (Depends-on): Add progname.
63517         * tests/test-array_oset.c: Include progname.h.
63518         (main): Call set_program_name.
63519
63520         * modules/array-list-tests (Depends-on): Add progname.
63521         * tests/test-array_list.c: Include progname.h.
63522         (main): Call set_program_name.
63523
63524         * modules/argp-tests (Depends-on): Add progname.
63525         * tests/test-argp.c: Include argp.h first. Include progname.h.
63526         (main): Call set_program_name.
63527
63528 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63529
63530         * doc/gnulib-tool.texi (Initial import): Reword description of
63531         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63532         limited effect even if defined after the first system include.
63533
63534 2007-03-01  Bruno Haible  <bruno@clisp.org>
63535
63536         * build-aux/config.libpath: Update to libtool-1.5.22.
63537         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63538
63539 2007-03-01  Bruno Haible  <bruno@clisp.org>
63540
63541         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63542         foo_CFLAGS.
63543         Reported by Ralf Wildenhues.
63544
63545 2007-03-01  Bruno Haible  <bruno@clisp.org>
63546
63547         * build-aux/install-reloc: Remove object files left over by some
63548         compilers.
63549         Reported by Ralf Wildenhues.
63550
63551 2007-03-01  Bruno Haible  <bruno@clisp.org>
63552
63553         * build-aux/install-reloc: Break long lines.
63554
63555 2007-03-01  Bruno Haible  <bruno@clisp.org>
63556
63557         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63558         Reported by Ralf Wildenhues.
63559
63560 2007-03-01  Bruno Haible  <bruno@clisp.org>
63561
63562         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63563         include ordering constraints.
63564
63565 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63566
63567         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63569         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63570         as another example.
63571         * lib/time_.h: Fix misspelling.
63572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63573         Require gl_HEADER_TIME_H_DEFAULTS.
63574         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63575         * m4/time_r.m4 (gl_TIME_R): Likewise.
63576         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63577
63578 2007-03-01  Bruno Haible  <bruno@clisp.org>
63579
63580         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63581         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63582
63583 2007-03-01  Jim Meyering  <jim@meyering.net>
63584
63585         * modules/xreadlink (Maintainer): Add my name.
63586         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63587
63588 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63589             Bruno Haible  <bruno@clisp.org>
63590
63591         * build-aux/install-reloc: Compile also c-ctype.c.
63592         * build-aux/relocatable.sh.in: New file.
63593         * doc/relocatable.texi: New file.
63594         * doc/relocatable-maint.texi: New file.
63595         * doc/gnulib.texi: Include relocatable-maint.texi.
63596         * lib/progreloc.c: Include unistd.h unconditionally.
63597         * lib/relocwrapper.c: Include unistd.h unconditionally.
63598         Include c-ctype.h.
63599         (add_dotbin): Use c_tolower.
63600         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63601         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63602         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63603         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63604         to m4/relocatable-lib.m4.
63605         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63606         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63607         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63608         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63609         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63610         * modules/relocatable: New file.
63611         * modules/relocatable-lib: New file.
63612         * modules/relocatable-script: New file.
63613
63614 2007-02-28  Bruno Haible  <bruno@clisp.org>
63615
63616         Import --enable-relocatable infrastructure.
63617         * build-aux/config.libpath: New file, from GNU gettext.
63618         * build-aux/install-reloc: New file, from GNU gettext.
63619         * build-aux/reloc-ldflags: New file, from GNU gettext.
63620         * lib/relocatable.h: New file, from GNU gettext.
63621         * lib/relocatable.c: New file, from GNU gettext.
63622         * lib/relocwrapper.c: New file, from GNU gettext.
63623         * m4/relocatable.m4: New file, from GNU gettext.
63624
63625 2007-02-28  Bruno Haible  <bruno@clisp.org>
63626
63627         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63628
63629         * modules/xreadlink: New file, from GNU gettext with modifications.
63630         * lib/xreadlink.c: New file, from GNU gettext.
63631         * lib/xreadlink.h: Add comments.
63632         (xreadlink): New declaration.
63633
63634         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63635         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63636         lib/xreadlink-with-size.c.
63637         (configure.ac): Remove gl_XREADLINK invocation.
63638         (Makefile.am): Augment lib_SOURCES.
63639         * m4/xreadlink.m4: Remove file.
63640         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63641         (xreadlink_with_size): Renamed from xreadink.
63642         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63643         * modules/canonicalize (Depends-on): Replace xreadlink with
63644         xreadlink-with-size.
63645         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63646
63647 2007-02-25  Jim Meyering  <jim@meyering.net>
63648
63649         * build-aux/announce-gen: When complaining about excess arguments,
63650         list them.
63651
63652 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         * README: Document signed integer overflow situation more
63655         accurately.
63656
63657 2007-02-25  Bruno Haible  <bruno@clisp.org>
63658
63659         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63660         'a' or 'A' conversion.
63661
63662 2007-02-25  Bruno Haible  <bruno@clisp.org>
63663
63664         * modules/filename: Renamed from modules/pathname.
63665         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63666         lib/concatpath.c with lib/concat-filename.c.
63667         (Makefile.am): Update.
63668         (Include): Replace pathname.h with filename.h.
63669         * lib/filename.h: Renamed from lib/pathname.h.
63670         (concatenated_filename): Renamed from concatenated_pathname.
63671         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63672         (concatenated_filename): Renamed from concatenated_pathname.
63673         * lib/findprog.c: Include filename.h instead of pathname.h.
63674         (find_in_path): Update.
63675         * lib/javacomp.c: Include filename.h instead of pathname.h.
63676         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63677         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63678         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63679         is_oldgcj_14_13_usable, is_javac_usable): Update.
63680         * lib/javaexec.c: Include filename.h instead of pathname.h.
63681         (execute_java_class): Update.
63682         * modules/findprog: Update.
63683         * modules/javacomp: Update.
63684         * modules/javaexec: Update.
63685         * MODULES.html.sh (File system functions): Add 'filename', remove
63686         'pathname'.
63687
63688 2007-02-25  Bruno Haible  <bruno@clisp.org>
63689
63690         * modules/printf-frexpl-tests: New file.
63691         * tests/test-printf-frexpl.c: New file.
63692
63693         * modules/printf-frexpl: New file.
63694         * lib/printf-frexpl.h: New file.
63695         * lib/printf-frexpl.c: New file.
63696         * m4/printf-frexpl.m4: New file.
63697
63698 2007-02-25  Bruno Haible  <bruno@clisp.org>
63699
63700         * modules/printf-frexp-tests: New file.
63701         * tests/test-printf-frexp.c: New file.
63702
63703         * modules/printf-frexp: New file.
63704         * lib/printf-frexp.h: New file.
63705         * lib/printf-frexp.c: New file.
63706         * m4/printf-frexp.m4: New file.
63707
63708 2007-02-25  Bruno Haible  <bruno@clisp.org>
63709
63710         Assume automake >= 1.10 for the tests.
63711         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63712         * modules/arctwo-tests: Likewise.
63713         * modules/argp-tests: Likewise.
63714         * modules/avltree-list-tests: Likewise.
63715         * modules/avltree-oset-tests: Likewise.
63716         * modules/avltreehash-list-tests: Likewise.
63717         * modules/carray-list-tests: Likewise.
63718         * modules/crc-tests: Likewise.
63719         * modules/des-tests: Likewise.
63720         * modules/gc-arcfour-tests: Likewise.
63721         * modules/gc-arctwo-tests: Likewise.
63722         * modules/gc-des-tests: Likewise.
63723         * modules/gc-hmac-md5-tests: Likewise.
63724         * modules/gc-hmac-sha1-tests: Likewise.
63725         * modules/gc-md2-tests: Likewise.
63726         * modules/gc-md4-tests: Likewise.
63727         * modules/gc-md5-tests: Likewise.
63728         * modules/gc-pbkdf2-sha1-tests: Likewise.
63729         * modules/gc-rijndael-tests: Likewise.
63730         * modules/gc-sha1-tests: Likewise.
63731         * modules/gc-tests: Likewise.
63732         * modules/getaddrinfo-tests: Likewise.
63733         * modules/hmac-md5-tests: Likewise.
63734         * modules/hmac-sha1-tests: Likewise.
63735         * modules/linked-list-tests: Likewise.
63736         * modules/linkedhash-list-tests: Likewise.
63737         * modules/lock-tests: Likewise.
63738         * modules/md2-tests: Likewise.
63739         * modules/md4-tests: Likewise.
63740         * modules/md5-tests: Likewise.
63741         * modules/rbtree-list-tests: Likewise.
63742         * modules/rbtree-oset-tests: Likewise.
63743         * modules/rbtreehash-list-tests: Likewise.
63744         * modules/read-file-tests: Likewise.
63745         * modules/rijndael-tests: Likewise.
63746         * modules/stdint-tests: Likewise.
63747         * modules/tls-tests: Likewise.
63748
63749 2007-02-24  Bruno Haible  <bruno@clisp.org>
63750
63751         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63752         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63753         function; instead check whether isnan with a double argument links.
63754         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63755         function; instead check whether isnan with a 'long double' argument
63756         links.
63757         Reported by Eric Blake <ebb9@byu.net>.
63758
63759 2007-02-24  Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63762         defined.
63763         * lib/isnanl.c: Remove all code. Just include isnan.c.
63764         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63765
63766 2007-02-25  Jim Meyering  <jim@meyering.net>
63767
63768         Avoid conflicting types for 'unsetenv' on FreeBSD.
63769         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63770         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63771         in stdlib.h.
63772
63773 2007-02-24  Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/isnanl-nolibm-tests: New file.
63776         * tests/test-isnanl.c: New file.
63777
63778         * modules/isnanl-nolibm: New file.
63779         * lib/isnanl.h: New file.
63780         * lib/isnanl.c: New file.
63781         * m4/isnanl.m4: New file.
63782
63783 2007-02-24  Bruno Haible  <bruno@clisp.org>
63784
63785         * modules/isnan-nolibm-tests: New file.
63786         * tests/test-isnan.c: New file.
63787
63788         * modules/isnan-nolibm: New file.
63789         * lib/isnan.h: New file.
63790         * lib/isnan.c: New file.
63791         * m4/isnan.m4: New file.
63792
63793 2007-02-24  Bruno Haible  <bruno@clisp.org>
63794
63795         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63796         assume that an exponent fits in 20 bits.
63797
63798 2007-02-24  Jim Meyering  <jim@meyering.net>
63799
63800         * m4/regex.m4: Update the description of the configure-time option,
63801         --without-included-regex, to state accurately what the defaults are,
63802         and perhaps to give people an idea why using this option is risky.
63803
63804 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63805
63806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63807         loops on small arguments.  This attempts to avoid the problem
63808         Bruno Haible reported for AIX 4.3.2 in
63809         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63810
63811 2007-02-23  Bruno Haible  <bruno@clisp.org>
63812
63813         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63814         Needed for help2man.
63815
63816 2007-02-23  Karl Berry  <karl@gnu.org>
63817
63818         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63819         exists, foo.h should be cvs-ignored, not committed.
63820
63821 2007-02-23  Eric Blake  <ebb9@byu.net>
63822
63823         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63824         * lib/stat-time.h (includes): Likewise.
63825         * lib/utimecmp.c (includes): Likewise.
63826         * lib/utimens.h (includes): Likewise.
63827         * lib/getdate.y (includes): Also include "timespec.h" for use
63828         internal to the module.
63829         * modules/utimens (Depends-on): Revert yesterday's patch.
63830         * modules/nanosleep (Depends-on): Add missing dependency.
63831
63832 2007-02-22  Bruno Haible  <bruno@clisp.org>
63833
63834         * lib/glob.c: Don't include getlogin_r.h.
63835
63836 2007-02-22  Jim Meyering  <jim@meyering.net>
63837
63838         * modules/utimens (Depends-on): Add timespec, required for
63839         utimens.h's inclusion of timespec.h.
63840
63841 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63842
63843         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63844         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63845         Schwab in
63846         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63847         I'll try to think of a better way to fix the Solaris problem.
63848
63849         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63850         like glibc; on Solaris 10, it fails with errno == EINVAL.
63851         POSIX says the behavior is unspecified if the first argument is NULL,
63852         so play it safe and never pass NULL to the system getcwd.
63853
63854 2007-02-21  Jim Meyering  <jim@meyering.net>
63855
63856         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63857         of gettimeofday.  It would conflict with the one now always
63858         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63859         an IRIX 6.5 build failure.
63860
63861 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         Minor fixups to port to Solaris 10 with Sun C 5.8.
63864         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63865         * modules/getcwd (Depends-on): Add dirfd.
63866         * lib/putenv.c (putenv): #undef it.
63867         (rpl_putenv): New decl.
63868         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63869
63870 2007-02-20  Bruno Haible  <bruno@clisp.org>
63871
63872         * modules/stdio-tests: New file.
63873         * tests/test-stdio.c: New file.
63874
63875         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63876         (Depends-on): Add stdio.
63877         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63878         (Include): Use <stdio.h> instead of vsnprintf.h.
63879         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63880         HAVE_DECL_VSNPRINTF.
63881         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63882
63883         * modules/snprintf (Files): Remove lib/snprintf.h.
63884         (Depends-on): Add stdio.
63885         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63886         (Include): Use <stdio.h> instead of snprintf.h.
63887         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63888         HAVE_DECL_SNPRINTF.
63889         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63890         * lib/getaddrinfo.c: Likewise.
63891
63892         * modules/stdio: New file.
63893         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63894         * lib/snprintf.h: Remove file.
63895         * lib/vsnprintf.h: Remove file.
63896         * lib/.cppi-disable: Remove snprintf.h.
63897         * m4/stdio_h.m4: New file.
63898         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63899
63900 2007-02-20  Jim Meyering  <jim@meyering.net>
63901
63902         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63903         used by e.g., mingw.  From Bruno Haible.
63904
63905 2007-02-19  Bruno Haible  <bruno@clisp.org>
63906
63907         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63908         warnings.
63909         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63910
63911 2007-02-19  Bruno Haible  <bruno@clisp.org>
63912
63913         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63914         from mingw users.
63915
63916 2007-02-19  Bruno Haible  <bruno@clisp.org>
63917
63918         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63919         warnings.
63920         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63921
63922 2007-02-19  Jim Meyering  <jim@meyering.net>
63923
63924         Don't use FD after a successful "fdopendir (fd)".
63925         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63926         Reset it by calling dirfd on the just-obtained DIR*.
63927
63928         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63929         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63930
63931 2007-02-18  Bruno Haible  <bruno@clisp.org>
63932
63933         * lib/readlink.c: Include <unistd.h>.
63934         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63935         HAVE_READLINK.
63936         * modules/readlink (Depends-on): Add unistd.
63937         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63938         (Include): Add <unistd.h>.
63939
63940         * lib/getlogin_r.h: Remove file.
63941         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63942         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63943         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63944         HAVE_DECL_GETLOGIN_R.
63945         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63946         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63947         (Include): Use <unistd.h> instead of getlogin_r.h.
63948
63949         * lib/getcwd.h: Remove file.
63950         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63951         * lib/xgetcwd.c: Likewise.
63952         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63953         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63954         * modules/getcwd (Files): Remove lib/getcwd.h.
63955         (Depends-on): Add unistd.
63956         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63957         (Include): Use <unistd.h> instad of getcwd.h.
63958
63959         * lib/ftruncate.c: Include <unistd.h> first.
63960         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63961         Set HAVE_FTRUNCATE.
63962         * modules/ftruncate (Depends-on): Add unistd.
63963         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63964
63965         * lib/fchdir.c: Include <unistd.h> first.
63966         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63968         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63969         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63970         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63971
63972         * lib/dup2.c: Include <unistd.h> first.
63973         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63974         HAVE_DUP2.
63975         * modules/dup2 (Depends-on): Add unistd.
63976         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63977
63978         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63979         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63980         REPLACE_CHOWN. Don't define chown as a macro here.
63981         * modules/chown (Depends-on): Add unistd.
63982         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63983
63984         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63985         Add definition for GL_LINK_WARNING.
63986         (chown, dup2): New declarations.
63987         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63988         link warning.
63989         (ftruncate): New declaration.
63990         (getcwd): New declaration, taken from old getcwd.h.
63991         (getlogin_r): New declaration, taken from old getlogin_r.h.
63992         (readlink): New declaration.
63993         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63994         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63995         (gl_PREREQ_UNISTD): Remove macro.
63996         (gl_UNISTD_MODULE_INDICATOR): New macro.
63997         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63998         many new variables. Don't set UNISTD_H.
63999         * modules/unistd (Description): Change.
64000         (Depends-on): Add link-warning.
64001         (configure.ac): Update.
64002         (Makefile.am): Create unistd.h always. Substitute many new variables
64003         into it.
64004
64005 2007-02-18  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64008         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64009         HAVE_GETSUBOPT.
64010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64011         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64012         * lib/getsubopt.h: Remove file.
64013         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64014         (Depends-on): Add stdlib.
64015         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64016         (Includes): Use <stdlib.h> instead of getsubopt.h.
64017         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64018         Set HAVE_GETSUBOPT.
64019         * lib/getsubopt.c: Don't include getsubopt.h.
64020
64021 2007-02-18  Bruno Haible  <bruno@clisp.org>
64022
64023         * modules/fchdir (Depends-on): Add dup2.
64024
64025 2007-02-18  Bruno Haible  <bruno@clisp.org>
64026
64027         * lib/stdlib_.h: Handle glibc's special invocation convention
64028         specially.
64029
64030 2007-02-18  Bruno Haible  <bruno@clisp.org>
64031
64032         * modules/stdlib-tests: New file.
64033         * tests/test-stdlib.c: New file.
64034
64035         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64036         (Depends-on): Add stdlib.
64037         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64038         (Includes): Use <stdlib.h> instead of mkstemp.h.
64039         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64040         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64041         * lib/mkstemp.c: Don't include mkstemp.h.
64042         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64043         * lib/stdlib--.h: Don't include mkstemp.h.
64044
64045         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64046         (Depends-on): Add stdlib.
64047         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64048         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64049         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64050         HAVE_MKDTEMP.
64051         * lib/mkdtemp.c: Don't include mkdtemp.h.
64052         * lib/clean-temp.c: Don't include mkdtemp.h.
64053
64054         * modules/exit (Files): Remove lib/exit.h.
64055         (Depends-on): Add stdlib.
64056         (Makefile.am): Remove lib_SOURCES.
64057         (Include): Use <stdlib.h> instead of exit.h.
64058         * lib/argmatch.c: Don't include exit.h.
64059         * lib/execute.c: Likewise.
64060         * lib/pagealign_alloc.c: Likewise.
64061         * lib/pipe.c: Likewise.
64062         * lib/wait-process.c: Likewise.
64063         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64064         * lib/exitfail.c: Likewise.
64065         * lib/savewd.c: Likewise.
64066         * lib/xsetenv.c: Likewise.
64067
64068         * modules/stdlib: New file.
64069         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64070         and extra comments about mkstemp().
64071         * lib/exit.h: Remove file.
64072         * lib/mkdtemp.h: Remove file.
64073         * lib/mkstemp.h: Remove file.
64074         * m4/stdlib_h.m4: New file.
64075         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64076
64077 2007-02-18  Bruno Haible  <bruno@clisp.org>
64078
64079         * modules/math-tests: New file.
64080         * tests/test-math.c: New file.
64081
64082         * modules/math: New file.
64083         * modules/mathl (Files): Remove lib/mathl.h.
64084         (Depends-on): Add math.
64085         (Makefile.am): Don't mention mathl.h.
64086         (Include): Use <math.h> instead of mathl.h.
64087         * lib/math_.h: New file.
64088         * lib/mathl.h: Remove file.
64089         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64090         mathl.h.
64091         * lib/asinl.c: Likewise.
64092         * lib/atanl.c: Likewise.
64093         * lib/ceill.c: Likewise.
64094         * lib/cosl.c: Likewise.
64095         * lib/expl.c: Likewise.
64096         * lib/floorl.c: Likewise.
64097         * lib/frexpl.c: Likewise.
64098         * lib/ldexpl.c: Likewise.
64099         * lib/logl.c: Likewise.
64100         * lib/sincosl.c: Likewise.
64101         * lib/sinl.c: Likewise.
64102         * lib/sqrtl.c: Likewise.
64103         * lib/tanl.c: Likewise.
64104         * lib/trigl.c: Likewise.
64105         * m4/math_h.m4: New file.
64106         * MODULES.html.sh (Mathematics): Add math.
64107
64108 2007-02-17  Bruno Haible  <bruno@clisp.org>
64109
64110         * modules/wctype-tests: New file.
64111         * tests/test-wctype.c: New file.
64112
64113         * modules/wchar-tests: New file.
64114         * tests/test-wchar.c: New file.
64115
64116         * modules/unistd-tests: New file.
64117         * tests/test-unistd.c: New file.
64118
64119         * modules/time-tests: New file.
64120         * tests/test-time.c: New file.
64121
64122         * modules/sysexits-tests: New file.
64123         * tests/test-sysexits.c: New file.
64124
64125         * modules/sys_time-tests: New file.
64126         * tests/test-sys_time.c: New file.
64127
64128         * modules/sys_stat-tests: New file.
64129         * tests/test-sys_stat.c: New file.
64130
64131         * modules/sys_socket-tests: New file.
64132         * tests/test-sys_socket.c: New file.
64133
64134         * modules/sys_select-tests: New file.
64135         * tests/test-sys_select.c: New file.
64136
64137         * modules/string-tests: New file.
64138         * tests/test-string.c: New file.
64139
64140         * modules/stdbool-tests: New file.
64141         * tests/test-stdbool.c: New file.
64142
64143         * modules/netinet_in-tests: New file.
64144         * tests/test-netinet_in.c: New file.
64145
64146         * modules/inttypes-tests: New file.
64147         * tests/test-inttypes.c: New file.
64148
64149         * modules/fcntl-tests: New file.
64150         * tests/test-fcntl.c: New file.
64151
64152         * modules/byteswap-tests: New file.
64153         * tests/test-byteswap.c: New file.
64154
64155         * modules/arpa_inet-tests: New file.
64156         * tests/test-arpa_inet.c: New file.
64157
64158 2007-02-17  Bruno Haible  <bruno@clisp.org>
64159
64160         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64161         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64162         if the corresponding module is not enabled. Emit link warnings if
64163         the function is used nevertheless.
64164         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64165         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64166         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64167         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64168         * modules/inttypes (Depends-on): Add link-warning.
64169         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64170         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64171         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64172         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64173         * modules/imaxdiv (configure.ac): Likewise.
64174         * modules/strtoimax (configure.ac): Likewise.
64175         * modules/strtoumax (configure.ac): Likewise.
64176
64177 2007-02-17  Bruno Haible  <bruno@clisp.org>
64178
64179         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64180         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64181         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64182         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64183
64184 2007-02-17  Bruno Haible  <bruno@clisp.org>
64185
64186         * modules/link-warning: New file.
64187         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64188         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64189         * modules/string (Depends-on): Add link-warning.
64190         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64191         string.h.
64192         * MODULES.html.sh (Support for building libraries and executables): Add
64193         link-warning.
64194
64195 2007-02-17  Bruno Haible  <bruno@clisp.org>
64196
64197         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64198         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64199         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64200         long lines.
64201
64202 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64203             Bruno Haible  <bruno@clisp.org>
64204
64205         * modules/tmpfile: New file.
64206         * lib/tmpfile.c: New file.
64207         * m4/tmpfile.m4: New file.
64208         * MODULES.html.sh (func_all_modules): New section "Input/output".
64209
64210 2007-02-15  Bruno Haible  <bruno@clisp.org>
64211
64212         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64213         (supports_delete_on_close): New function.
64214         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64215
64216 2007-02-14  Bruno Haible  <bruno@clisp.org>
64217
64218         * modules/mbspcasecmp-tests: New file.
64219         * tests/test-mbspcasecmp.sh: New file.
64220         * tests/test-mbspcasecmp.c: New file.
64221
64222         New module mbspcasecmp.
64223         * modules/mbspcasecmp: New file.
64224         * lib/mbspcasecmp.c: New file.
64225         * lib/string_.h (strncasecmp): Change warning message.
64226         (mbspcasecmp): New declaration.
64227         * m4/mbspcasecmp.m4: New file.
64228         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64229         GNULIB_MBSPCASECMP.
64230         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64231         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64232
64233 2007-02-14  Bruno Haible  <bruno@clisp.org>
64234
64235         * modules/mbsncasecmp-tests: New file.
64236         * tests/test-mbsncasecmp.sh: New file.
64237         * tests/test-mbsncasecmp.c: New file.
64238
64239         New module mbsncasecmp.
64240         * modules/mbsncasecmp: New file.
64241         * lib/mbsncasecmp.c: New file.
64242         * lib/string_.h (mbsncasecmp): New declaration.
64243         * m4/mbsncasecmp.m4: New file.
64244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64245         GNULIB_MBSNCASECMP.
64246         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64247         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64248
64249 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64250
64251         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64252         Verify that it doesn't overlap with our flags.
64253         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64254         do not have the desired effect in multibyte locales; instead, use
64255         mbscasecmp.
64256         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64257         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64258         we don't require GNU fnmatch ourselves (if our users require it, they
64259         should do so explicitly).
64260
64261         Fix regex code so it doesn't rely on strcasecmp.
64262         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64263         Otherwise, include gnulib's langinfo.h.
64264         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64265         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64266         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64267         * modules/regex (FILES): Remove m4/codeset.m4.
64268         (Depends-on): Add localcharset.  Remove strcase.
64269
64270 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64271
64272         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64273         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64274
64275 2007-02-13  Bruno Haible  <bruno@clisp.org>
64276
64277         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64279
64280 2007-02-12  Bruno Haible  <bruno@clisp.org>
64281
64282         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64283         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64284         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64285         time warning rather than a link error.
64286
64287 2007-02-12  Bruno Haible  <bruno@clisp.org>
64288
64289         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64290         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64291         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64292
64293 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64294
64295         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64296         args, not 2.
64297
64298 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64299
64300         New module 'time', so that apps can include <time.h> as per
64301         POSIX and GNU instead of separate include files like time_r.h
64302         and timegm.h.  This implementation tries out a simpler approach
64303         for replacing decls in standard include files (as compared to
64304         the string module), somewhat as an experiment.
64305
64306         * config/srclist.txt: Comment out mktime.c for now.
64307         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64308         since it doesn't apply any more.  Use generic wording instead.
64309         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64310         'time'.
64311         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64312         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64313         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64314         Don't include <sys/types.h>; no longer needed since we assume C89.
64315         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64316         * lib/strftime.c: Likewise.
64317         * lib/time_r.c: Likewise.
64318         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64319         * lib/nanosleep.c: Include <time.h> first, to check interface.
64320         * lib/strptime.c: Likewise.
64321         * lib/time_r.c: Likewise.
64322         * lib/timegm.c: Likewise.
64323         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64324         needed.
64325         * lib/timegm.c: Don't include timegm.h; no longer needed.
64326         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64327         time.h now handles any problems in that area.
64328         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64329         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64330         that time.h defines struct timespec.
64331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64332         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64333         handles that.
64334         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64335         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64336         needed.  Set REPLACE_LOCALTIME.
64337         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64338         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64339         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64340         nanosleep; time_h.m4 now does that.  Don't require
64341         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64342         module handles this now.
64343         * modules/getdate (Depends-on): Remove timespec.  Add time.
64344         * modules/nanosleep (Depends-on): Likewise.
64345         * modules/stat-time (Depends-on): Likewise.
64346         * modules/nanosleep (Include): Include time.h, not timespec.h.
64347         * modules/strptime (Files): Remove lib/strptime.h.
64348         (Depends-on): Add extensions, time.
64349         (Include): Include time.h, not strptime.h.
64350         * modules/time_r (Files): Remove lib/time_r.h.
64351         (Depends-on): Add time.
64352         (Include): Include time.h, not time_r.h.
64353         * modules/timegm: Likewise.
64354         * modules/timespec (Description): Now does timespec-related decls
64355         of our own, instead of struct timespec itself.
64356         (Depends-on): Add time; remove extensions.
64357         (Maintainer): Add self.
64358         * modules/utimecmp (Depends-on): Add time; remove timespec.
64359         * modules/utimens (Depends-on): Likewise.
64360         * modules/xnanosleep (Depends-on): Likewise.
64361
64362 2007-02-11  Bruno Haible  <bruno@clisp.org>
64363
64364         * lib/c-strstr.c: Include allocsa.h.
64365         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64366         * lib/c-strcasestr.c: Include allocsa.h.
64367         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64368         * lib/strcasestr.c: Include allocsa.h.
64369         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64370         * lib/mbsstr.c: Include allocsa.h.
64371         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64372         allocsa/freesa instead of malloc/free.
64373         * lib/mbscasestr.c: Include allocsa.h.
64374         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64375         allocsa/freesa instead of malloc/free.
64376         * modules/c-strstr (Depends-on): Add allocsa.
64377         * modules/c-strcasestr (Depends-on): Likewise.
64378         * modules/strcasestr (Depends-on): Likewise.
64379         * modules/mbsstr (Depends-on): Likewise.
64380         * modules/mbscasestr (Depends-on): Likewise.
64381
64382 2007-02-11  Bruno Haible  <bruno@clisp.org>
64383
64384         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64385
64386         * modules/mbsspn-tests: New file.
64387         * tests/test-mbsspn.sh: New file.
64388         * tests/test-mbsspn.c: New file.
64389
64390 2007-02-11  Bruno Haible  <bruno@clisp.org>
64391
64392         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64393
64394         * modules/mbspbrk-tests: New file.
64395         * tests/test-mbspbrk.sh: New file.
64396         * tests/test-mbspbrk.c: New file.
64397
64398 2007-02-11  Bruno Haible  <bruno@clisp.org>
64399
64400         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64401         unneeded cast.
64402
64403         * modules/mbscspn-tests: New file.
64404         * tests/test-mbscspn.sh: New file.
64405         * tests/test-mbscspn.c: New file.
64406
64407 2007-02-11  Bruno Haible  <bruno@clisp.org>
64408
64409         * modules/mbscasecmp-tests: New file.
64410         * tests/test-mbscasecmp.sh: New file.
64411         * tests/test-mbscasecmp.c: New file.
64412
64413 2007-02-11  Bruno Haible  <bruno@clisp.org>
64414
64415         Ensure O(n) worst-case complexity of mbscasestr.
64416         * lib/mbscasestr.c: Include stdbool.h.
64417         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64418         functions.
64419         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64420         the bookkeeping indicates that it's worth it.
64421         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64422
64423         * modules/mbscasestr-tests: New file.
64424         * tests/test-mbscasestr1.c: New file.
64425         * tests/test-mbscasestr2.sh: New file.
64426         * tests/test-mbscasestr2.c: New file.
64427         * tests/test-mbscasestr3.sh: New file.
64428         * tests/test-mbscasestr3.c: New file.
64429         * tests/test-mbscasestr4.sh: New file.
64430         * tests/test-mbscasestr4.c: New file.
64431         * m4/locale-tr.m4: New file.
64432
64433 2007-02-11  Bruno Haible  <bruno@clisp.org>
64434
64435         Ensure O(n) worst-case complexity of mbsstr.
64436         * lib/mbsstr.c: Include stdbool.h.
64437         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64438         functions.
64439         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64440         bookkeeping indicates that it's worth it.
64441         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64442
64443         * modules/mbsstr-tests: New file.
64444         * tests/test-mbsstr1.c: New file.
64445         * tests/test-mbsstr2.sh: New file.
64446         * tests/test-mbsstr2.c: New file.
64447         * tests/test-mbsstr3.sh: New file.
64448         * tests/test-mbsstr3.c: New file.
64449         * m4/locale-fr.m4: New file.
64450
64451 2007-02-11  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/mbsrchr.c (mbsrchr): Fix bug.
64454
64455         * modules/mbsrchr-tests: New file.
64456         * tests/test-mbsrchr.sh: New file.
64457         * tests/test-mbsrchr.c: New file.
64458
64459 2007-02-11  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/mbschr.c (mbschr): Fix bug.
64462
64463         * modules/mbschr-tests: New file.
64464         * tests/test-mbschr.sh: New file.
64465         * tests/test-mbschr.c: New file.
64466         * m4/locale-zh.m4: New file.
64467
64468 2007-02-11  Bruno Haible  <bruno@clisp.org>
64469
64470         Support for copying multibyte string iterators.
64471         * lib/mbiter.h: Include <string.h>.
64472         (mbiter_multi_copy): New function.
64473         (mbi_copy): New macro.
64474         * lib/mbuiter.h: Include <string.h>.
64475         (mbuiter_multi_copy): New function.
64476         (mbui_copy): New macro.
64477
64478 2007-02-11  Bruno Haible  <bruno@clisp.org>
64479
64480         New module mbslen.
64481         * modules/mbslen: New file.
64482         * lib/mbslen.c: New file.
64483         * lib/string_.h (mbslen): New declaration.
64484         * m4/mbslen.m4: New file.
64485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64486         GNULIB_MBSLEN.
64487         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64488         * MODULES.html.sh (Internationalization functions): Add mbslen.
64489
64490 2007-02-11  Bruno Haible  <bruno@clisp.org>
64491
64492         Ensure O(n) worst-case complexity of strcasestr substitute.
64493         * lib/strcasestr.c: Include stdbool.h.
64494         (knuth_morris_pratt): New function.
64495         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64496         bookkeeping indicates that it's worth it.
64497         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64498
64499         * modules/strcasestr-tests: New file.
64500         * tests/test-strcasestr.c: New file.
64501
64502 2007-02-11  Bruno Haible  <bruno@clisp.org>
64503
64504         Ensure O(n) worst-case complexity of c_strcasestr.
64505         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64506         (knuth_morris_pratt): New function.
64507         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64508         the bookkeeping indicates that it's worth it.
64509         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64510
64511         * modules/c-strcasestr-tests: New file.
64512         * tests/test-c-strcasestr.c: New file.
64513
64514 2007-02-11  Bruno Haible  <bruno@clisp.org>
64515
64516         Ensure O(n) worst-case complexity of c_strstr.
64517         * lib/c-strstr.c: Include stdbool.h, string.h.
64518         (knuth_morris_pratt): New function.
64519         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64520         bookkeeping indicates that it's worth it.
64521         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64522
64523         * lib/c-strstr.c: Complete rewrite for maintainability.
64524
64525         * modules/c-strstr-tests: New file.
64526         * tests/test-c-strstr.c: New file.
64527
64528 2007-02-11  Bruno Haible  <bruno@clisp.org>
64529
64530         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64531         5.2.1 and earlier, whereby \055 was treated just like the range
64532         delimiter '-'.
64533         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64534
64535 2007-02-08  Bruno Haible  <bruno@clisp.org>
64536
64537         * modules/regex (Depends-on): Add stdbool.
64538         Reported by Dalibor Topic <robilad@kaffe.org>.
64539
64540 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64541
64542         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64543         Prefer returning from main to exiting from it.
64544         Remove unnecessary parens after sizeof.
64545
64546 2007-02-05  Bruno Haible  <bruno@clisp.org>
64547
64548         New module mbssep.
64549         * modules/mbssep: New file.
64550         * lib/mbssep.c: New file.
64551         * lib/string_.h (strsep): Add a conditional link warning.
64552         (mbssep): New declaration.
64553         * m4/mbssep.m4: New file.
64554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64555         GNULIB_MBSSEP.
64556         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64557         * MODULES.html.sh (Internationalization functions): Add mbssep.
64558
64559 2007-02-05  Bruno Haible  <bruno@clisp.org>
64560
64561         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64562         Optimize search in case of 1 delimiter.
64563
64564 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64565
64566         * lib/acl.h: Include sys/types.h before sys/acl.h.
64567
64568 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64569
64570         Merge upstream fix for glibc bugzilla #3957:
64571
64572         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64573
64574         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64575         bit for RE_HAT_LISTS_NOT_NEWLINE.
64576         (build_charclass_op): Remove bogus comment.
64577
64578 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64579
64580         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64581
64582 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64583
64584         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64585         * lib/memmem.c [!defined _LIBC]: Include config.h.
64586
64587 2007-02-04  Bruno Haible  <bruno@clisp.org>
64588
64589         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64590         warning message.
64591
64592 2007-02-04  Bruno Haible  <bruno@clisp.org>
64593
64594         New module mbstok_r.
64595         * modules/mbstok_r: New file.
64596         * lib/mbstok_r.c: New file.
64597         * lib/string_.h (strtok_r): Change argument names to match the
64598         comments. Add a conditional link warning.
64599         (mbstok_r): New declaration.
64600         * m4/mbstok_r.m4: New file.
64601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64602         GNULIB_MBSTOK_R.
64603         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64604         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64605
64606 2007-02-04  Bruno Haible  <bruno@clisp.org>
64607
64608         New module mbsspn.
64609         * modules/mbsspn: New file.
64610         * lib/mbsspn.c: New file.
64611         * lib/string_.h (strspn): Add a conditional link warning.
64612         (mbsspn): New declaration.
64613         * m4/mbsspn.m4: New file.
64614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64615         GNULIB_MBSSPN.
64616         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64617         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64618
64619 2007-02-04  Bruno Haible  <bruno@clisp.org>
64620
64621         New module mbspbrk.
64622         * modules/mbspbrk: New file.
64623         * lib/mbspbrk.c: New file.
64624         * lib/string_.h (strpbrk): Add a conditional link warning.
64625         (mbspbrk): New declaration.
64626         * m4/mbspbrk.m4: New file.
64627         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64628         GNULIB_MBSPBRK.
64629         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64630         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64631
64632 2007-02-04  Bruno Haible  <bruno@clisp.org>
64633
64634         New module mbscspn.
64635         * modules/mbscspn: New file.
64636         * lib/mbscspn.c: New file.
64637         * lib/string_.h (strcspn): Add a conditional link warning.
64638         (mbscspn): New declaration.
64639         * m4/mbscspn.m4: New file.
64640         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64641         GNULIB_MBSCSPN.
64642         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64643         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64644
64645 2007-02-04  Bruno Haible  <bruno@clisp.org>
64646
64647         New module mbscasestr, reduced goal of strcasestr.
64648         * modules/mbscasestr: New file.
64649         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64650         (mbscasestr): Renamed from strcasestr.
64651         * lib/strcasestr.c: Don't include mbuiter.h.
64652         (strcasestr): Remove support for multibyte locales.
64653         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64654         Change the conditional link warning.
64655         (mbscasestr): New declaration.
64656         * m4/mbscasestr.m4: New file.
64657         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64658         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64659         REPLACE_STRCASESTR.
64660         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64662         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64663         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64664         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64665         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64666         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64667         (Depends-on): Remove mbuiter.
64668         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64669
64670 2007-02-04  Bruno Haible  <bruno@clisp.org>
64671
64672         Simplify handling of strncasecmp.
64673         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64674         the conditional link warning.
64675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64676         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64677         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64678         * modules/strcase (configure.ac): Don't invoke
64679         gl_STRING_MODULE_INDICATOR.
64680         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64681
64682 2007-02-04  Bruno Haible  <bruno@clisp.org>
64683
64684         New module mbscasecmp, reduced goal of strcasecmp.
64685         * modules/mbscasecmp: New file.
64686         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64687         (mbscasecmp): Renamed from strcasecmp.
64688         * lib/strcasecmp.c: Don't include mbuiter.h.
64689         (strcasecmp): Remove support for multibyte locales.
64690         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64691         Change the conditional link warning.
64692         (mbscasecmp): New declaration.
64693         * m4/mbscasecmp.m4: New file.
64694         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64695         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64696         REPLACE_STRCASECMP.
64697         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64699         GNULIB_MBSCASECMP.
64700         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64701         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64702         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64703         (Depends-on): Remove mbuiter.
64704         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64705
64706 2007-02-04  Bruno Haible  <bruno@clisp.org>
64707
64708         New module mbsstr. Remove module strstr.
64709         * modules/mbsstr: New file.
64710         * modules/strstr: Remove file.
64711         * lib/mbsstr.c: Renamed from lib/strstr.c.
64712         (mbsstr): Renamed from strstr.
64713         * lib/string_.h (strstr): Remove declaration. Change the conditional
64714         link warning.
64715         (mbsstr): New declaration.
64716         * m4/mbsstr.m4: New file.
64717         * m4/strstr.m4: Remove file.
64718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64719         REPLACE_STRSTR.
64720         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64721         Don't initialize GNULIB_STRSTR.
64722         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64723         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64724         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64725         (Support for systems lacking ANSI C 89): Remove strstr.
64726
64727 2007-02-04  Bruno Haible  <bruno@clisp.org>
64728
64729         New module mbsrchr.
64730         * modules/mbsrchr: New file.
64731         * lib/mbsrchr.c: New file.
64732         * lib/string_.h (strrchr): Add a conditional link warning.
64733         (mbsrchr): New declaration.
64734         * m4/mbsrchr.m4: New file.
64735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64736         GNULIB_MBSRCHR.
64737         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64738         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64739
64740 2007-02-04  Bruno Haible  <bruno@clisp.org>
64741
64742         New module mbschr.
64743         * modules/mbschr: New file.
64744         * lib/mbschr.c: New file.
64745         * lib/string_.h (strchr): Add a conditional link warning.
64746         (mbschr): New declaration.
64747         * m4/mbschr.m4: New file.
64748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64749         GNULIB_MBSCHR.
64750         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64751         * MODULES.html.sh (Internationalization functions): Add mbschr.
64752
64753 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64754
64755         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64756
64757         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64758
64759 2007-02-04  Bruno Haible  <bruno@clisp.org>
64760
64761         New module description section 'configure.ac-early'.
64762         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64763         (func_get_autoconf_early_snippet): New function.
64764         (func_import, func_create_testdir): Use it. Remove special cases for
64765         modules 'extensions' and 'lock'.
64766         * modules/extensions (configure.ac-early): Require
64767         gl_USE_SYSTEM_EXTENSIONS.
64768         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64769
64770 2007-02-04  Bruno Haible  <bruno@clisp.org>
64771
64772         Make use of gcj-4.3's -fsource and -ftarget option.
64773         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64774         and if so try the options -fsource and -ftarget.
64775         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64776         source_version, ftarget_option, target_version arguments.
64777         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64778         (is_envjavac_oldgcj_14_14_usable): Renamed from
64779         is_envjavac_gcj_14_14_usable.
64780         (is_envjavac_oldgcj_14_13_usable): Renamed from
64781         is_envjavac_gcj_14_13_usable.
64782         (is_gcj_present): Update.
64783         (is_gcj_43, is_gcj43_usable): New functions.
64784         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64785         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64786         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64787         try the options -fsource and -ftarget.
64788
64789 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64790
64791         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64792         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64793         larger value.
64794
64795 2007-02-03  Jim Meyering  <jim@meyering.net>
64796
64797         Give tools a better chance to allocate space for very large buffers.
64798         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64799
64800         Make pwd and readlink work also when run with an unreadable parent dir
64801         on systems with openat support.
64802         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64803         provided getcwd function, even when we have openat support.
64804         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64805
64806 2007-02-02  Bruno Haible  <bruno@clisp.org>
64807
64808         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64809         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64810         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64811         portability problems if one of these functions is only used on specific
64812         platforms.
64813         Reported by Paul Eggert.
64814
64815 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64818         is causing more trouble than it's curing.
64819         * lib/regex_internal.h (__mempcpy): Remove.
64820         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64821         (and make the code a tad smaller to boot).
64822         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64823
64824 2007-02-02  Jim Meyering  <jim@meyering.net>
64825
64826         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64827         section, not in the Makefile.am: one.
64828
64829 2007-02-02  Eric Blake  <ebb9@byu.net>
64830
64831         * lib/strchrnul.c: Always include config.h first.
64832
64833         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64834         gnulib strstr is not necessary here.
64835
64836 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64837
64838         * m4/socklen.m4: Fix typo.
64839
64840 2007-02-02  Eric Blake  <ebb9@byu.net>
64841
64842         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64843         * modules/netinet_in (Makefile.am): Likewise.
64844
64845 2007-02-01  Bruno Haible  <bruno@clisp.org>
64846
64847         * lib/string_.h (GL_LINK_WARNING): New macro.
64848         (strcasecmp, strstr, strcasestr): If provided by the system,
64849         conditionally define as a macro that leads to a warning instead of to
64850         an error.
64851         (strncasecmp): Conditionally define as a macro that leads to a warning.
64852
64853 2007-02-01  Karl Berry  <karl@gnu.org>
64854
64855         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64856
64857 2007-02-01  Bruno Haible  <bruno@clisp.org>
64858
64859         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64860         renamings.
64861
64862 2007-02-01  Eric Blake  <ebb9@byu.net>
64863
64864         * modules/regex (Depends-on): Revert dependence on mempcpy.
64865         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64866         module's definition of mempcpy.
64867         Reported by Paul Eggert.
64868
64869 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64872         the symbol XYZ before redefining it.  This fixes a problem with
64873         programs that don't use XYZ, when compiled on systems that define
64874         XYZ to something else.
64875
64876 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64879         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64880         writeable to group or other and (2) is intended to have a special
64881         mode bit that is set or cleared.  In such a case, the directory
64882         should be neither group- nor other-writeable until the special
64883         mode bits are right.
64884
64885 2007-01-31  Eric Blake  <ebb9@byu.net>
64886
64887         * modules/mountlist (Depends-on): Add strstr.
64888
64889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64890         bug.
64891         * modules/string (Makefile.am): Remove redundant replacement.
64892         * modules/regex (Depends-on): Add mempcpy.
64893
64894 2007-01-31  Bruno Haible  <bruno@clisp.org>
64895
64896         New module description field 'Link'.
64897         * gnulib-tool (func_usage): Document --extract-link-directive.
64898         (sed_extract_prog): Recognize 'Link' directive.
64899         (func_get_link_directive): New function.
64900         (func_import): Show summary of link directives.
64901         Handle --extract-link-directive option.
64902         * modules/acl (Link): New section.
64903         * modules/clock-time (Link): New section.
64904         * modules/euidaccess (Link): New section.
64905         * modules/gettext (Link): New section.
64906         * modules/iconv (Link): New section.
64907         * modules/lock (Link): New section.
64908         * modules/nanosleep (Link): New section.
64909         * modules/readline (Link): New section.
64910
64911 2007-01-27  Bruno Haible  <bruno@clisp.org>
64912
64913         Enforce the use of gnulib modules for unportable <string.h> functions.
64914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64915         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64916         (gl_HEADER_STRING_H_BODY): Require it.
64917         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64918         the symbol XYZ to one that gives a link error.
64919         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64920         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64921         * modules/mempcpy (configure.ac): Likewise.
64922         * modules/memrchr (configure.ac): Likewise.
64923         * modules/stpcpy (configure.ac): Likewise.
64924         * modules/stpncpy (configure.ac): Likewise.
64925         * modules/strcase (configure.ac): Likewise.
64926         * modules/strcasestr (configure.ac): Likewise.
64927         * modules/strchrnul (configure.ac): Likewise.
64928         * modules/strdup (configure.ac): Likewise.
64929         * modules/strndup (configure.ac): Likewise.
64930         * modules/strnlen (configure.ac): Likewise.
64931         * modules/strpbrk (configure.ac): Likewise.
64932         * modules/strsep (configure.ac): Likewise.
64933         * modules/strstr (configure.ac): Likewise.
64934         * modules/strtok_r (configure.ac): Likewise.
64935
64936 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64937
64938         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64939
64940 2007-01-30  Jim Meyering  <jim@meyering.net>
64941
64942         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64943
64944 2007-01-29  Bruno Haible  <bruno@clisp.org>
64945
64946         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64947         * lib/execute.c: Likewise.
64948         * lib/pipe.c: Likewise.
64949         * lib/printf-args.h: Likewise.
64950         * lib/printf-args.c: Likewise.
64951         * lib/printf-parse.c: Likewise.
64952         * lib/vasnprintf.c: Likewise.
64953
64954 2007-01-29  Eric Blake  <ebb9@byu.net>
64955
64956         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64957         declaration.
64958
64959 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64960
64961         * lib/strptime.h (strptime): Use 'restrict' for args where
64962         POSIX requires this.
64963         * lib/strptime.c (strptime): Likewise.
64964         Change license notice from LGPL to GPL, since gnulib-tool will
64965         change this as needed.
64966         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64967         defined.
64968         Include "strptime.h" first, to check interface.
64969         Do not #undef _LIBC and _NL_CURRENT.
64970         Do not include <stdlib.h>; no longer needed.
64971         Include "time_r.h" and declare ptime_locale_status
64972         only if _LIBC is not defined.
64973         (__P): Remove unused macro.
64974         (match_string): Bring back glibc version, but use it only if _LIBC
64975         is defined.
64976         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64977         Remove unnecessary assertion and abort() call.
64978         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64979         * m4/strptime.m4: Fix serial number comment.
64980         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64981         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64982         (Depends-on): Add time_r.
64983
64984 2007-01-29  Bruno Haible  <bruno@clisp.org>
64985
64986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64987         strptime.
64988         * modules/strptime (Depends-on): Add stdbool.
64989         * lib/strptime.h: Include <time.h> always. Add comments.
64990
64991 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64992
64993         * modules/strptime: New file.
64994         * lib/strptime.h: New file.
64995         * lib/strptime.c: New file.
64996         * m4/strptime.m4: New file.
64997
64998 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64999
65000         * MODULES.html.sh: New module mpsort.
65001         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65002
65003         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65004         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65005         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65006         All uses changed.
65007         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65008         All uses changed.
65009         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65010         to _Restrict_.
65011         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65012         the parameter matches the prototype.
65013
65014 2007-01-28  Jim Meyering  <jim@meyering.net>
65015
65016         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65017         sys/time.h here, reverting that part of the previous patch:
65018         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65019
65020 2007-01-28  Bruno Haible  <bruno@clisp.org>
65021
65022         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65023         value of $(SYS_TIME_H).
65024         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65025         remove it conditionally, too. [added by Jim Meyering]
65026         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65028         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65029         GETTIMEOFDAY_REPLACEMENT to 1.
65030
65031 2007-01-28  Bruno Haible  <bruno@clisp.org>
65032
65033         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65034         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65036         Set UNISTD_H instead of UNISTD_H2.
65037         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65038
65039 2007-01-28  Bruno Haible  <bruno@clisp.org>
65040
65041         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65042         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65043
65044 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65045
65046         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65047         (func_create_testdir): Ensure C locale for `grep' and `tr'
65048         character ranges.
65049         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65050         ACLOCAL_AMFLAGS parsing state machine.
65051
65052 2007-01-27  Bruno Haible  <bruno@clisp.org>
65053
65054         * modules/unistr/base: Update.
65055
65056 2007-01-27  Bruno Haible  <bruno@clisp.org>
65057
65058         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65059         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65060         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65061         modules/unistr/u32-mbtouc.
65062         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65063         * lib/unistr.h: Update.
65064         * lib/linebreak.c: Update.
65065         * modules/unistr/u32-mbtouc: Renamed from
65066         modules/unistr/u32-mbtouc-safe.
65067         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65068         * lib/unistr.h: Update.
65069         * lib/unistr/u32-to-u8.c: Update.
65070         * lib/unistr/u32-to-u16.c: Update.
65071
65072 2007-01-27  Bruno Haible  <bruno@clisp.org>
65073
65074         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65075         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65076         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65077         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65078         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65079         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65080         modules/unistr/u16-mbtouc.
65081         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65082         * lib/unistr.h: Update.
65083         * lib/linebreak.c: Update.
65084         * modules/linebreak: Update.
65085         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65086         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65087         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65088         * modules/unistr/u16-mbtouc: Renamed from
65089         modules/unistr/u16-mbtouc-safe.
65090         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65091         * lib/unistr.h: Update.
65092         * lib/unistr/u16-to-u8.c: Update.
65093         * modules/unistr/u16-to-u8: Update.
65094         * lib/unistr/u16-to-u32.c: Update.
65095         * modules/unistr/u16-to-u32: Update.
65096
65097 2007-01-27  Bruno Haible  <bruno@clisp.org>
65098
65099         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65100         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65101         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65102         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65103         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65104         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65105         modules/unistr/u8-mbtouc.
65106         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65107         * lib/unistr.h: Update.
65108         * lib/striconveh.c: Update.
65109         * modules/striconveh: Update.
65110         * lib/linebreak.c: Update.
65111         * modules/linebreak: Update.
65112         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65113         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65114         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65115         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65116         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65117         * lib/unistr.h: Update.
65118         * lib/striconveh.c: Update.
65119         * modules/striconveh: Update.
65120         * lib/unistr/u8-to-u16.c: Update.
65121         * modules/unistr/u8-to-u16: Update.
65122         * lib/unistr/u8-to-u32.c: Update.
65123         * modules/unistr/u8-to-u32: Update.
65124
65125 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65126
65127         Sync from Libtool.
65128         * lib/argz.c: Do not include strings.h nor memory.h, include
65129         string.h unconditionally.  Patch by Simon Josefsson.
65130
65131 2007-01-27  Bruno Haible  <bruno@clisp.org>
65132
65133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65134         from gl_HEADER_STRING_H_BODY.
65135         (gl_HEADER_STRING_H_BODY): Require it.
65136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65137         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65139         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65141         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65143         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65144         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65145         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65147         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65148         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65149         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65150         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65151
65152 2007-01-27  Bruno Haible  <bruno@clisp.org>
65153
65154         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65155         check_PROGRAMS into noinst_PROGRAMS.
65156         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65157         check_PROGRAMS in this case.
65158         (func_import): Set for_test to false.
65159         (func_create_testdir): Set for_test to true.
65160
65161 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65162             Bruno Haible  <bruno@clisp.org>
65163
65164         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65165         (Depends-on): Add string.
65166         (Includes): Use <string.h> instead of strcasestr.h.
65167         * modules/string (Makefile.am): Also substitute the value of
65168         REPLACE_STRCASESTR.
65169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65170         assume strcasestr is declared in <string.h> not <strings.h>. Also
65171         set REPLACE_STRCASESTR.
65172         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65173         REPLACE_STRCASESTR.
65174         * lib/strcasestr.h: Remove file.
65175         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65176         * lib/string_.h (strcasestr): New declaration.
65177
65178 2007-01-27  Bruno Haible  <bruno@clisp.org>
65179
65180         * lib/string_.h: Use 'extern'.
65181
65182 2007-01-27  Jim Meyering  <jim@meyering.net>
65183
65184         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65185         of set-but-not-used local, "q".
65186
65187         * lib/mempcpy.c: Include <config.h> before <string.h>.
65188         This fixes a compilation error on HP-UX, due to the system's
65189         "restrict"-using mempcpy prototype.
65190
65191 2007-01-26  Bruno Haible  <bruno@clisp.org>
65192
65193         Small optimization.
65194         * lib/javacomp.c: Include c-strstr.h.
65195          (is_envjavac_gcj): Use c_strstr instead of strstr.
65196         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65197
65198 2007-01-26  Bruno Haible  <bruno@clisp.org>
65199
65200         * MODULES.html.sh (Unicode string functions): Add the new modules.
65201
65202         * modules/uniconv/u32-strconv-to-locale: New file.
65203         * lib/uniconv/u32-strconv-to-locale.c: New file.
65204
65205         * modules/uniconv/u16-strconv-to-locale: New file.
65206         * lib/uniconv/u16-strconv-to-locale.c: New file.
65207
65208         * modules/uniconv/u8-strconv-to-locale: New file.
65209         * lib/uniconv/u8-strconv-to-locale.c: New file.
65210
65211         * modules/uniconv/u32-strconv-from-locale: New file.
65212         * lib/uniconv/u32-strconv-from-locale.c: New file.
65213
65214         * modules/uniconv/u16-strconv-from-locale: New file.
65215         * lib/uniconv/u16-strconv-from-locale.c: New file.
65216
65217         * modules/uniconv/u8-strconv-from-locale: New file.
65218         * lib/uniconv/u8-strconv-from-locale.c: New file.
65219
65220         * modules/uniconv/u32-strconv-to-enc: New file.
65221         * lib/uniconv/u32-strconv-to-enc.c: New file.
65222         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65223         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65224
65225         * modules/uniconv/u16-strconv-to-enc: New file.
65226         * lib/uniconv/u16-strconv-to-enc.c: New file.
65227         * lib/uniconv/u-strconv-to-enc.h: New file.
65228         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65229         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65230
65231         * modules/uniconv/u8-strconv-to-enc: New file.
65232         * lib/uniconv/u8-strconv-to-enc.c: New file.
65233         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65234         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65235
65236         * modules/uniconv/u32-strconv-from-enc: New file.
65237         * lib/uniconv/u32-strconv-from-enc.c: New file.
65238         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65239         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65240
65241         * modules/uniconv/u16-strconv-from-enc: New file.
65242         * lib/uniconv/u16-strconv-from-enc.c: New file.
65243         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65244         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65245
65246         * modules/uniconv/u8-strconv-from-enc: New file.
65247         * lib/uniconv/u8-strconv-from-enc.c: New file.
65248         * lib/uniconv/u-strconv-from-enc.h: New file.
65249         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65250         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65251
65252         * modules/uniconv/u32-conv-from-enc: New file.
65253         * lib/uniconv/u32-conv-from-enc.c: New file.
65254         * modules/uniconv/u32-conv-from-enc-tests: New file.
65255         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65256
65257         * modules/uniconv/u16-conv-from-enc: New file.
65258         * lib/uniconv/u16-conv-from-enc.c: New file.
65259         * lib/uniconv/u-conv-from-enc.h: New file.
65260         * modules/uniconv/u16-conv-from-enc-tests: New file.
65261         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65262
65263         * modules/uniconv/u8-conv-from-enc: New file.
65264         * lib/uniconv/u8-conv-from-enc.c: New file.
65265         * modules/uniconv/u8-conv-from-enc-tests: New file.
65266         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65267
65268         * modules/uniconv/base: New file.
65269         * lib/uniconv.h: New file.
65270
65271 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65272
65273         * doc/gnulib-tool.texi (Initial import): Update to match current
65274         behavior with strdup module.
65275         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65276         * lib/memmem.h: Remove; all uses removed.  This is now done
65277         by <string.h>.
65278         * lib/mempcpy.h: Likewise.
65279         * lib/memrchr.h: Likewise.
65280         * lib/stpcpy.h: Likewise.
65281         * lib/stpncpy.h: Likewise.
65282         * lib/strcase.h: Likewise.
65283         * lib/strchrnul.h: Likewise.
65284         * lib/strdup.h: Likewise.
65285         * lib/strndup.h: Likewise.
65286         * lib/strnlen.h: Likewise.
65287         * lib/strpbrk.h: Likewise.
65288         * lib/strsep.h: Likewise.
65289         * lib/strstr.h: Likewise.
65290         * lib/strtok_r.h: Likewise.
65291         * lib/string_.h: New file.
65292         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65293         Rely on <string.h> instead.
65294         * lib/canon-host.c: Likewise.
65295         * lib/chdir-long.c: Likewise.
65296         * lib/concatpath.c: Likewise.
65297         * lib/exclude.c: Likewise.
65298         * lib/fchdir.c: Likewise.
65299         * lib/getaddrinfo.c: Likewise.
65300         * lib/getcwd.c: Likewise.
65301         * lib/getsubopt.c: Likewise.
65302         * lib/glob.c: Likewise.
65303         * lib/hard-locale.c: Likewise.
65304         * lib/iconvme.c: Likewise.
65305         * lib/javacomp.c: Likewise.
65306         * lib/mempcpy.c: Likewise.
65307         * lib/memrchr.c: Likewise.
65308         * lib/regex_internal.h: Likewise.
65309         * lib/stpncpy.c: Likewise.
65310         * lib/strcasecmp.c: Likewise.
65311         * lib/strchrnul.c: Likewise.
65312         * lib/strdup.c: Likewise.
65313         * lib/striconv.c: Likewise.
65314         * lib/striconveh.c: Likewise.
65315         * lib/striconveha.c: Likewise.
65316         * lib/strncasecmp.c: Likewise.
65317         * lib/strndup.c: Likewise.
65318         * lib/strnlen.c: Likewise.
65319         * lib/strsep.c: Likewise.
65320         * lib/strstr.c: Likewise.
65321         * lib/strtok_r.c: Likewise.
65322         * lib/userspec.c: Likewise.
65323         * lib/w32spawn.h: Likewise.
65324         * lib/xstrndup.c: Likewise.
65325         * lib/mountlist.c (strstr): Remove decl.
65326         * m4/string_h.m4: New file.
65327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65328         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65329         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65330         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65331         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65332         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65333         Set REPLACE_STRCASECMP if necessary.
65334         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65335         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65336         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65337         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65338         HAVE_DECL_STRDUP if necessary.
65339         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65340         since gl_FUNC_STRNDUP does that now.
65341         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65342         Check for decl here...
65343         (gl_PREREQ_STRNLEN): ... not here.
65344         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65345         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65346         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65347         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65348         necessary.
65349         * modules/string: New file.
65350         * modules/memmem (Files): Remove special-purpose include file.
65351         (Depends-on): Add string.
65352         (Include): Include <string.h>, not the removed file.
65353         * modules/mempcpy: Likewise.
65354         * modules/memrchr: Likewise.
65355         * modules/stpcpy: Likewise.
65356         * modules/stpncpy: Likewise.
65357         * modules/strcase: Likewise.
65358         * modules/strchrnul: Likewise.
65359         * modules/strdup: Likewise.
65360         * modules/strndup: Likewise.
65361         * modules/strnlen: Likewise.
65362         * modules/strpbrk: Likewise.
65363         * modules/strsep: Likewise.
65364         * modules/strstr: Likewise.
65365         * modules/strtok_r: Likewise.
65366         * tests/test-dirname.c: Don't include "strdup.h", since
65367         <string.h> now suffices.
65368         * tests/test-memmem.c: Don't include "memmem.h", since
65369         <string.h> now suffices.
65370
65371 2007-01-25  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65374         *resultp is 0.
65375
65376         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65377         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65378         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65379         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65380
65381         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65382         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65383         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65384         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65385         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65386         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65387
65388 2007-01-24  Bruno Haible  <bruno@clisp.org>
65389
65390         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65391         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65392         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65393         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65394         gl_FUNC_FTS_CORE.
65395         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65396         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65397         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65398         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65399         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65400         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65401         gl_FUNC_FCHOWNAT.
65402         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65403         gl_FUNC_STRFTIME.
65404         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65405         Reported by Ralf Wildenhues.
65406
65407 2007-01-24  Bruno Haible  <bruno@clisp.org>
65408
65409         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65410         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65411         gl_GETADDRINFO.
65412         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65413         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65414         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65415
65416 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65417
65418         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65419         Don't use 'exit'; just return from 'main'.
65420         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65421
65422         * lib/fnmatch_.h: Readjust white space and comments to match
65423         glibc, to avoid spurious diffs.
65424
65425 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65428         2004-12-01 change by Jakub Jelinek, since this code won't compile
65429         if !LIBC.  Problem reported by Bob Proulx.
65430
65431 2007-01-23  Bruno Haible  <bruno@clisp.org>
65432
65433         * lib/striconveh.c: Include c-strcaseeq.h.
65434         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65435         * modules/striconveh (Depends-on): Add c-strcaseeq.
65436
65437 2007-01-23  Bruno Haible  <bruno@clisp.org>
65438
65439         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65440
65441         * modules/c-strcaseeq: New file.
65442         * lib/c-strcaseeq.h: New file.
65443
65444         * modules/streq: New file.
65445         * lib/streq.h: New file.
65446
65447 2007-01-23  Bruno Haible  <bruno@clisp.org>
65448
65449         * modules/striconveha-tests: New file.
65450         * tests/test-striconveha.c: New file.
65451
65452         * lib/striconveha.h: Include <stdbool.h>.
65453         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65454         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65455         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65456         (mem_iconveha): New function.
65457         (str_iconveha_notranslit): Renamed from str_iconveha.
65458         (str_iconveha): New function.
65459         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65460         c-strcase.
65461
65462 2007-01-23  Bruno Haible  <bruno@clisp.org>
65463
65464         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65465         encodings without forgiving before trying any encoding with handler.
65466         (str_iconveha): Try all encodings without forgiving before trying any
65467         encoding with handler.
65468
65469 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         Import the following changes from libc.
65472
65473         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65474
65475         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65476
65477         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65478
65479         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65480         normal_bracket label.
65481
65482         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65483
65484         [BZ #361]
65485         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65486         to normal_bracket after fetching the next character.
65487
65488 2007-01-22  Bruno Haible  <bruno@clisp.org>
65489
65490         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65491         argument.
65492         * lib/striconveh.c (iconv_carefully_1): New function.
65493         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65494         argument.
65495         (str_cd_iconveh): Update.
65496         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65497         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65498         * tests/test-striconveh.c (MAGIC): New macro.
65499         (new_offsets): New function.
65500         (main): Test call with and without offsets.
65501
65502 2007-01-22  Bruno Haible  <bruno@clisp.org>
65503
65504         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65505         * modules/sys_select (Makefile.am): Likewise.
65506         * modules/sys_socket (Makefile.am): Likewise.
65507         * modules/sys_time (Makefile.am): Likewise.
65508
65509 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * modules/gettimeofday (License): Change from GPL to LGPL, since
65512         gettimeofday is a library function.
65513
65514 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65515
65516         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65517
65518 2007-01-21  Bruno Haible  <bruno@clisp.org>
65519
65520         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65521
65522 2007-01-21  Bruno Haible  <bruno@clisp.org>
65523
65524         * modules/striconveha: New file.
65525         * lib/striconveha.h: New file.
65526         * lib/striconveha.c: New file.
65527         * MODULES.html.sh (Internationalization functions): Add striconveha.
65528         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65529         string.
65530         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65531
65532 2007-01-21  Bruno Haible  <bruno@clisp.org>
65533
65534         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65535         * lib/striconveh.c (str_iconveh): Likewise.
65536
65537 2007-01-21  Bruno Haible  <bruno@clisp.org>
65538
65539         * lib/striconveh.h (mem_iconveh): New declaration.
65540         * lib/striconveh.c (mem_iconveh): New function.
65541         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65542
65543 2007-01-21  Bruno Haible  <bruno@clisp.org>
65544
65545         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65546
65547         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65548         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65549         original result buffer.
65550         (str_cd_iconveh): Update.
65551         * tests/test-striconveh.c (main): Update.
65552
65553         * lib/striconv.h (mem_cd_iconv): Change specification.
65554         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65555         result buffer.
65556         (str_cd_iconv): Update.
65557         * tests/test-striconv.c (main): Update.
65558
65559 2007-01-21  Bruno Haible  <bruno@clisp.org>
65560
65561         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65562
65563 2007-01-20  Jim Meyering  <jim@meyering.net>
65564
65565         * lib/userspec.c (parse_with_separator): If a user or group string
65566         starts with "+", skip the corresponding name-to-ID look-up, since
65567         such a look-up must fail: user and group names may not include "+".
65568
65569 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65572         since we now assume the sys_time module.
65573         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65574         check for sys/time.h; no longer needed.
65575         * modules/poll (Depends-on): Depend on sys_time.
65576
65577 2007-01-18  Bruno Haible  <bruno@clisp.org>
65578
65579         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65580         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65581
65582         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65583         gettimeofday.
65584
65585         * tests/test-gettimeofday.c: Include <time.h>.
65586         (dummy): Remove variable.
65587
65588         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65589         gl_HEADER_SYS_TIME_H.
65590         (gl_HEADER_SYS_TIME_H): New macro.
65591
65592         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65593         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65595         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65596         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65598         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65599         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65600         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65601         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65602         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65603
65604         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65605         last change; it caused a compilation error when cross-compiling to
65606         Cygwin.
65607
65608 2007-01-18  Jim Meyering  <jim@meyering.net>
65609
65610         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65611         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65612         than the race-prone "test -d sys || mkdir sys".
65613         (configure.ac): Use AC_PROG_MKDIR_P.
65614         * modules/sys_select: Likewise.
65615         * modules/sys_socket: Likewise.
65616         * modules/sys_time: Likewise.
65617
65618 2007-01-18  Eric Blake  <ebb9@byu.net>
65619
65620         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65621         replace gettimeofday.
65622         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65623         name, to avoid infinite recursion.
65624
65625 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65626
65627         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65628         module sys_time.
65629         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65630         assume timespec.h defines struct timeval.
65631         * lib/settime.c: Likewise.
65632         * lib/utimens.c: Likewise.
65633         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65634         since we now assume the gettimeofday module.
65635         * lib/tempname.c (__gen_tempname): Likewise.
65636         * lib/gettimeofday.h: Remove.
65637         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65638         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65639         Include <time.h>, for 'time()'.
65640         (localtime_buffer_addr): Also use this workaround if
65641         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65642         to simplify the uses.  All uses changed.
65643         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65644         that #undef is inside {}, and 'const' follows type name consistently.
65645         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65646         (gettimeofday): Do not use the maximum possible value for
65647         tv->tv_usec, since that might break usages other than ls.c.
65648         Instead, we'll leave ls.c alone.  This undoes today's patch
65649         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65650         we've never observed the problem but might as well keep the
65651         canary.
65652         * lib/nanosleep.c: Include timespec.h first, for interface check.
65653         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65654         now assume the sys_time module.
65655         * lib/tempname.c: Likewise.
65656         * lib/timespec.h: Likewise.
65657         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65658         needed.
65659         * lib/strftime.c: Likewise.
65660         * lib/timespec.h: Likewise.
65661         * lib/posixtm.c: Include posixtm.h first, for interface check.
65662         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65663         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65664         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65665         * lib/sys_time_.h: New file.
65666         * lib/timespec.h (struct timespec): Use long int, not long.
65667         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65668         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65669         Remove obsolescent call to AC_HEADER_TIME.
65670         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65673         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65674         Likewise.
65675         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65676         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65678         into the sys_time module.  Check for gettimeofday just once.
65679         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65680         for gettimeofday signature to just check the signature.  Merely
65681         compile it, since linking doesn't test signature.  Improve test for
65682         whether gettimeofday.o is actually needed.
65683         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65684         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65685         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65686         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65687         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65688         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65689         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65690         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65691         than worrying about sys/time.h.
65692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65693         Don't bother worrying about TIME_WITH_SYS_TIME.
65694         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65695         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65696         * m4/sys_time_h.m4: New file.
65697         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65698         Don't include sys/time.h.  Return from main rather than exiting.
65699         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65700         all uses changed.
65701         * modules/gethrxtime (Depends-on): Add sys_time.
65702         * modules/gettime (Depends-on): Likewise.
65703         * modules/gettimeofday (Depends-on): Likewise.
65704         * modules/nanosleep (Depends-on): Likewise.
65705         * modules/settime (Depends-on): Likewise.
65706         * modules/tempname (Depends-on): Likewise.
65707         * modules/utimens (Depends-on): Likewise.
65708         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65709         (Include): Change back to <sys/time.h>.
65710         (Maintainer): Add self.
65711         * modules/sys_time: New file.
65712         * modules/tempname (Depends-on): Add gettimeofday.
65713         * tests/test-gettimeofday.c: Include <sys/time.h>
65714         rather than gettimeofday.h.
65715
65716 2007-01-17  Bruno Haible  <bruno@clisp.org>
65717
65718         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65719         the license default to GPL.
65720         (func_create_testdir): Don't complain if a module is LGPL and its
65721         tests module depends on GPLed modules.
65722
65723 2007-01-17  Bruno Haible  <bruno@clisp.org>
65724
65725         * lib/gettimeofday.c (gettimeofday): Add code for the case
65726         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65727         maximum possible value for tv->tv_usec, rather than the minimum one.
65728
65729 2005-10-08  Martin Lambers  <marlam@marlam.de>
65730 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65731 2007-01-16  Bruno Haible  <bruno@clisp.org>
65732
65733         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65734         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65735         gl_FUNC_GETTIMEOFDAY.
65736         (Include): Add gettimeofday.h.
65737         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65738         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65739         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65740         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65741         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65742         * lib/gettimeofday.h: New file.
65743         * lib/gettimeofday.c: Include <sys/timeb.h>.
65744         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65745         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65746         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65747         fall back on time().
65748
65749         * tests/test-gettimeofday.c: New file.
65750         * modules/gettimeofday-tests: New file.
65751
65752 2007-01-16  Eric Blake  <ebb9@byu.net>
65753
65754         * modules/fnmatch (Depends-on): Depend on wchar.
65755         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65756         * m4/fnmatch.m4: Likewise.
65757         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65758         * m4/mbchar.m4: Likewise.
65759         * modules/mbswidth (Depends-on): Depend on wchar.
65760         * lib/mbswidth.c: Assume <wchar.h>.
65761         * m4/mbswidth.m4: Likewise.
65762         * modules/quotearg (Depends-on): Depend on wchar.
65763         * lib/quotearg.c: Assume <wchar.h>.
65764         * m4/quotearg.m4: Likewise.
65765         * modules/regex (Depends-on): Depend on wchar.
65766         * lib/regex_internal.h: Assume <wchar.h>.
65767         * m4/regex.m4: Likewise.
65768         * modules/stdint (Depends-on): Depend on wchar.
65769         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65770         * m4/stdint.m4: Likewise.
65771         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65772         * modules/strftime (Depends-on): Depend on wchar.
65773         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65774         * modules/strtol (Depends-on): Depend on wchar.
65775         * lib/strtol.c: Assume <wchar.h>.
65776         * modules/wcwidth (Depends-on): Depend on wchar.
65777         * lib/wcwidth.h: Assume <wchar.h>.
65778         * m4/wcwidth.m4: Likewise.
65779
65780 2007-01-16  Bruno Haible  <bruno@clisp.org>
65781
65782         * modules/csharpexec-script: New, created from...
65783         * modules/csharpexec: ... this.
65784
65785 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65786
65787         * modules/javaexec-script: New, created from...
65788         * modules/javaexec: ... this.
65789
65790 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65791
65792         * modules/poll (Dependencies): Add sys_select.
65793
65794 2007-01-15  Jim Meyering  <jim@meyering.net>
65795
65796         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65797         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65798         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65799         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65800
65801 2007-01-15  Bruno Haible  <bruno@clisp.org>
65802
65803         * modules/striconveh: New file.
65804         * lib/striconveh.h: New file.
65805         * lib/striconveh.c: New file.
65806         * MODULES.html.sh (Internationalization functions): Add striconveh.
65807
65808         * modules/striconveh-tests: New file.
65809         * tests/test-striconveh.c: New file.
65810
65811 2007-01-15  Bruno Haible  <bruno@clisp.org>
65812
65813         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65814         not from GNU libiconv or GNU libc.
65815
65816 2007-01-15  Bruno Haible  <bruno@clisp.org>
65817
65818         * doc/gnulib-intro.texi (Copyright): Explain the different license
65819         terms for module descriptions, autoconf macros, tests, documentation.
65820
65821 2007-01-14  Bruno Haible  <bruno@clisp.org>
65822
65823         * modules/striconv-tests: New file.
65824         * tests/test-striconv.c: New file.
65825
65826 2007-01-14  Bruno Haible  <bruno@clisp.org>
65827
65828         * modules/iconv-tests: New file.
65829         * tests/test-iconv.c: New file.
65830
65831 2007-01-14  Bruno Haible  <bruno@clisp.org>
65832
65833         * gnulib-tool (func_get_license): For test modules, use the license of
65834         the main module.
65835
65836 2007-01-14  Bruno Haible  <bruno@clisp.org>
65837
65838         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65839         if iconv is found to exist.
65840
65841 2007-01-14  Bruno Haible  <bruno@clisp.org>
65842
65843         * modules/c-ctype-tests: New file.
65844         * tests/test-c-ctype.c: New file.
65845
65846 2007-01-14  Bruno Haible  <bruno@clisp.org>
65847
65848         * modules/binary-io-tests: New file.
65849         * tests/test-binary-io.sh: New file.
65850         * tests/test-binary-io.c: New file.
65851
65852 2007-01-14  Bruno Haible  <bruno@clisp.org>
65853
65854         * modules/array-oset-tests: New file.
65855         * tests/test-array_oset.c: New file.
65856
65857 2007-01-14  Bruno Haible  <bruno@clisp.org>
65858
65859         * modules/array-list-tests: New file.
65860         * tests/test-array_list.c: New file.
65861
65862 2007-01-14  Bruno Haible  <bruno@clisp.org>
65863
65864         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65865         and make.
65866         Reported by Simon Josefsson in
65867         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65868
65869 2007-01-14  Bruno Haible  <bruno@clisp.org>
65870
65871         * modules/allocsa-tests: New file.
65872         * tests/test-allocsa.c: New file.
65873
65874 2007-01-14  Bruno Haible  <bruno@clisp.org>
65875
65876         * modules/fchdir (Depends-on): Add absolute-header.
65877         * modules/unistd (Depends-on): Likewise.
65878
65879 2006-12-30  Bruno Haible  <bruno@clisp.org>
65880
65881         * modules/fchdir: New file.
65882         * modules/unistd (Files): Add lib/unistd_.h.
65883         (Makefile.am): Generate unistd.h from unistd_.h.
65884         * lib/fchdir.c: New file.
65885         * lib/dirent_.h: New file.
65886         * lib/unistd_.h: New file.
65887         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65888         * m4/fchdir.m4: New file.
65889         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65890         (gl_HEADER_UNISTD): Invoke it.
65891         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65892         function.
65893         * lib/backupfile.c (opendir, closedir): Undefine.
65894         * lib/chown.c (open, close): Undefine.
65895         * lib/clean-temp.c (open, close): Undefine.
65896         * lib/copy-file.c (open, close): Undefine.
65897         * lib/execute.c (open, close): Undefine.
65898         * lib/fsusage.c (open, close): Undefine.
65899         * lib/gc-gnulib.c (open, close): Undefine.
65900         * lib/getcwd.c (opendir, closedir): Undefine.
65901         * lib/glob.c (opendir, closedir): Undefine.
65902         * lib/javacomp.c (open, close): Undefine.
65903         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65904         * lib/openat-proc.c (open, close): Undefine.
65905         * lib/pagealign_alloc.c (open, close): Undefine.
65906         * lib/pipe.c (open, close): Undefine.
65907         * lib/progreloc.c (open, close): Undefine.
65908         * lib/savedir.c (opendir, closedir): Undefine.
65909         * lib/utime.c (open, close): Undefine.
65910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65911
65912 2007-01-10  Bruno Haible  <bruno@clisp.org>
65913
65914         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65915
65916 2007-01-12  Eric Blake  <ebb9@byu.net>
65917
65918         Provide a robust <wchar.h>.  Further simplifications are now
65919         possible in other modules, but not included here.
65920         * modules/wchar: New module.
65921         * m4/wchar.m4: New file.
65922         * lib/wchar_.h: Likewise.
65923         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65924         of the new module.
65925         * MODULES.html.sh (Extended multibyte and wide character utilities):
65926         New section.
65927
65928 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65931         to a reasonable default for memory allocation.
65932         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65933         file system that reports garbage st_size values for symlinks.
65934         Problem reported by Liyang Hu.
65935
65936 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65937
65938         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65939         Emacs .#* auto-save files).
65940
65941 2007-01-11  Bruno Haible  <bruno@clisp.org>
65942
65943         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65944         directory.
65945
65946 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         Use @...@ consistently in lib/wctype_.h.
65949         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65950         on it being set to 1 or 0.
65951         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65952         go back to AC_SUBSTing it.
65953         * modules/wctype (Makefile.am): Undo previous change.
65954
65955 2007-01-10  Eric Blake  <ebb9@byu.net>
65956
65957         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65958         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65959         * modules/wctype (Makefile.am): Likewise.
65960         Reported by Chris McGuire.
65961
65962 2007-01-10  Jim Meyering  <jim@meyering.net>
65963
65964         fts.c: a small readability/maintainability improvement
65965         * lib/fts.c (fts_read): Make this code slightly more readable and
65966         maintainable by hoisting the "sp->fts_cur = p" assignments to
65967         immediately follow the statements that set P.  Derived from
65968         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65969
65970 2007-01-10  Eric Blake  <ebb9@byu.net>
65971
65972         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65973         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65975         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65976         Reported by Chris McGuire.
65977
65978 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65979
65980         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65981         in sed script.
65982
65983 2007-01-09  Bruno Haible  <bruno@clisp.org>
65984
65985         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65986         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65987         variables.
65988         (func_module): Use them.
65989
65990 2007-01-09  Bruno Haible  <bruno@clisp.org>
65991
65992         * modules/unistr/base: New file.
65993         * lib/unistr.h: New file.
65994
65995         * modules/unistr/u8-to-u16: New file.
65996         * lib/unistr/u8-to-u16.c: New file.
65997
65998         * modules/unistr/u8-to-u32: New file.
65999         * lib/unistr/u8-to-u32.c: New file.
66000
66001         * modules/unistr/u16-to-u8: New file.
66002         * lib/unistr/u16-to-u8.c: New file.
66003
66004         * modules/unistr/u16-to-u32: New file.
66005         * lib/unistr/u16-to-u32.c: New file.
66006
66007         * modules/unistr/u32-to-u8: New file.
66008         * lib/unistr/u32-to-u8.c: New file.
66009
66010         * modules/unistr/u32-to-u16: New file.
66011         * lib/unistr/u32-to-u16.c: New file.
66012
66013         * modules/unistr/u8-check: New file.
66014         * modules/unistr/u16-check: New file.
66015         * modules/unistr/u32-check: New file.
66016         * lib/unistr/u8-check.c: New file.
66017         * lib/unistr/u16-check.c: New file.
66018         * lib/unistr/u32-check.c: New file.
66019
66020         * modules/unistr/u8-chr: New file.
66021         * modules/unistr/u16-chr: New file.
66022         * modules/unistr/u32-chr: New file.
66023         * lib/unistr/u8-chr.c: New file.
66024         * lib/unistr/u16-chr.c: New file.
66025         * lib/unistr/u32-chr.c: New file.
66026
66027         * modules/unistr/u8-cmp: New file.
66028         * modules/unistr/u16-cmp: New file.
66029         * modules/unistr/u32-cmp: New file.
66030         * lib/unistr/u8-cmp.c: New file.
66031         * lib/unistr/u16-cmp.c: New file.
66032         * lib/unistr/u32-cmp.c: New file.
66033
66034         * modules/unistr/u8-cpy: New file.
66035         * modules/unistr/u16-cpy: New file.
66036         * modules/unistr/u32-cpy: New file.
66037         * lib/unistr/u8-cpy.c: New file.
66038         * lib/unistr/u16-cpy.c: New file.
66039         * lib/unistr/u32-cpy.c: New file.
66040         * lib/unistr/u-cpy.h: New file.
66041
66042         * modules/unistr/u8-cpy-alloc: New file.
66043         * modules/unistr/u16-cpy-alloc: New file.
66044         * modules/unistr/u32-cpy-alloc: New file.
66045         * lib/unistr/u8-cpy-alloc.c: New file.
66046         * lib/unistr/u16-cpy-alloc.c: New file.
66047         * lib/unistr/u32-cpy-alloc.c: New file.
66048         * lib/unistr/u-cpy-alloc.h: New file.
66049
66050         * modules/unistr/u8-endswith: New file.
66051         * modules/unistr/u16-endswith: New file.
66052         * modules/unistr/u32-endswith: New file.
66053         * lib/unistr/u8-endswith.c: New file.
66054         * lib/unistr/u16-endswith.c: New file.
66055         * lib/unistr/u32-endswith.c: New file.
66056         * lib/unistr/u-endswith.h: New file.
66057
66058         * modules/unistr/u8-mblen: New file.
66059         * modules/unistr/u16-mblen: New file.
66060         * modules/unistr/u32-mblen: New file.
66061         * lib/unistr/u8-mblen.c: New file.
66062         * lib/unistr/u16-mblen.c: New file.
66063         * lib/unistr/u32-mblen.c: New file.
66064
66065         * modules/unistr/u8-mbtouc: New file.
66066         * modules/unistr/u16-mbtouc: New file.
66067         * modules/unistr/u32-mbtouc: New file.
66068         * lib/unistr/u8-mbtouc.c: New file.
66069         * lib/unistr/u16-mbtouc.c: New file.
66070         * lib/unistr/u32-mbtouc.c: New file.
66071
66072         * modules/unistr/u8-mbtouc-safe: New file.
66073         * modules/unistr/u16-mbtouc-safe: New file.
66074         * modules/unistr/u32-mbtouc-safe: New file.
66075         * lib/unistr/u8-mbtouc-safe.c: New file.
66076         * lib/unistr/u16-mbtouc-safe.c: New file.
66077         * lib/unistr/u32-mbtouc-safe.c: New file.
66078
66079         * modules/unistr/u8-move: New file.
66080         * modules/unistr/u16-move: New file.
66081         * modules/unistr/u32-move: New file.
66082         * lib/unistr/u8-move.c: New file.
66083         * lib/unistr/u16-move.c: New file.
66084         * lib/unistr/u32-move.c: New file.
66085         * lib/unistr/u-move.h: New file.
66086
66087         * modules/unistr/u8-next: New file.
66088         * modules/unistr/u16-next: New file.
66089         * modules/unistr/u32-next: New file.
66090         * lib/unistr/u8-next.c: New file.
66091         * lib/unistr/u16-next.c: New file.
66092         * lib/unistr/u32-next.c: New file.
66093
66094         * modules/unistr/u8-prev: New file.
66095         * modules/unistr/u16-prev: New file.
66096         * modules/unistr/u32-prev: New file.
66097         * lib/unistr/u8-prev.c: New file.
66098         * lib/unistr/u16-prev.c: New file.
66099         * lib/unistr/u32-prev.c: New file.
66100
66101         * modules/unistr/u8-set: New file.
66102         * modules/unistr/u16-set: New file.
66103         * modules/unistr/u32-set: New file.
66104         * lib/unistr/u8-set.c: New file.
66105         * lib/unistr/u16-set.c: New file.
66106         * lib/unistr/u32-set.c: New file.
66107         * lib/unistr/u-set.h: New file.
66108
66109         * modules/unistr/u8-startswith: New file.
66110         * modules/unistr/u16-startswith: New file.
66111         * modules/unistr/u32-startswith: New file.
66112         * lib/unistr/u8-startswith.c: New file.
66113         * lib/unistr/u16-startswith.c: New file.
66114         * lib/unistr/u32-startswith.c: New file.
66115         * lib/unistr/u-startswith.h: New file.
66116
66117         * modules/unistr/u8-stpcpy: New file.
66118         * modules/unistr/u16-stpcpy: New file.
66119         * modules/unistr/u32-stpcpy: New file.
66120         * lib/unistr/u8-stpcpy.c: New file.
66121         * lib/unistr/u16-stpcpy.c: New file.
66122         * lib/unistr/u32-stpcpy.c: New file.
66123         * lib/unistr/u-stpcpy.h: New file.
66124
66125         * modules/unistr/u8-stpncpy: New file.
66126         * modules/unistr/u16-stpncpy: New file.
66127         * modules/unistr/u32-stpncpy: New file.
66128         * lib/unistr/u8-stpncpy.c: New file.
66129         * lib/unistr/u16-stpncpy.c: New file.
66130         * lib/unistr/u32-stpncpy.c: New file.
66131         * lib/unistr/u-stpncpy.h: New file.
66132
66133         * modules/unistr/u8-strcat: New file.
66134         * modules/unistr/u16-strcat: New file.
66135         * modules/unistr/u32-strcat: New file.
66136         * lib/unistr/u8-strcat.c: New file.
66137         * lib/unistr/u16-strcat.c: New file.
66138         * lib/unistr/u32-strcat.c: New file.
66139         * lib/unistr/u-strcat.h: New file.
66140
66141         * modules/unistr/u8-strchr: New file.
66142         * modules/unistr/u16-strchr: New file.
66143         * modules/unistr/u32-strchr: New file.
66144         * lib/unistr/u8-strchr.c: New file.
66145         * lib/unistr/u16-strchr.c: New file.
66146         * lib/unistr/u32-strchr.c: New file.
66147
66148         * modules/unistr/u8-strcmp: New file.
66149         * modules/unistr/u16-strcmp: New file.
66150         * modules/unistr/u32-strcmp: New file.
66151         * lib/unistr/u8-strcmp.c: New file.
66152         * lib/unistr/u16-strcmp.c: New file.
66153         * lib/unistr/u32-strcmp.c: New file.
66154
66155         * modules/unistr/u8-strcpy: New file.
66156         * modules/unistr/u16-strcpy: New file.
66157         * modules/unistr/u32-strcpy: New file.
66158         * lib/unistr/u8-strcpy.c: New file.
66159         * lib/unistr/u16-strcpy.c: New file.
66160         * lib/unistr/u32-strcpy.c: New file.
66161         * lib/unistr/u-strcpy.h: New file.
66162
66163         * modules/unistr/u8-strcspn: New file.
66164         * modules/unistr/u16-strcspn: New file.
66165         * modules/unistr/u32-strcspn: New file.
66166         * lib/unistr/u8-strcspn.c: New file.
66167         * lib/unistr/u16-strcspn.c: New file.
66168         * lib/unistr/u32-strcspn.c: New file.
66169         * lib/unistr/u-strcspn.h: New file.
66170
66171         * modules/unistr/u8-strdup: New file.
66172         * modules/unistr/u16-strdup: New file.
66173         * modules/unistr/u32-strdup: New file.
66174         * lib/unistr/u8-strdup.c: New file.
66175         * lib/unistr/u16-strdup.c: New file.
66176         * lib/unistr/u32-strdup.c: New file.
66177         * lib/unistr/u-strdup.h: New file.
66178
66179         * modules/unistr/u8-strlen: New file.
66180         * modules/unistr/u16-strlen: New file.
66181         * modules/unistr/u32-strlen: New file.
66182         * lib/unistr/u8-strlen.c: New file.
66183         * lib/unistr/u16-strlen.c: New file.
66184         * lib/unistr/u32-strlen.c: New file.
66185         * lib/unistr/u-strlen.h: New file.
66186
66187         * modules/unistr/u8-strmblen: New file.
66188         * modules/unistr/u16-strmblen: New file.
66189         * modules/unistr/u32-strmblen: New file.
66190         * lib/unistr/u8-strmblen.c: New file.
66191         * lib/unistr/u16-strmblen.c: New file.
66192         * lib/unistr/u32-strmblen.c: New file.
66193
66194         * modules/unistr/u8-strmbtouc: New file.
66195         * modules/unistr/u16-strmbtouc: New file.
66196         * modules/unistr/u32-strmbtouc: New file.
66197         * lib/unistr/u8-strmbtouc.c: New file.
66198         * lib/unistr/u16-strmbtouc.c: New file.
66199         * lib/unistr/u32-strmbtouc.c: New file.
66200
66201         * modules/unistr/u8-strncat: New file.
66202         * modules/unistr/u16-strncat: New file.
66203         * modules/unistr/u32-strncat: New file.
66204         * lib/unistr/u8-strncat.c: New file.
66205         * lib/unistr/u16-strncat.c: New file.
66206         * lib/unistr/u32-strncat.c: New file.
66207         * lib/unistr/u-strncat.h: New file.
66208
66209         * modules/unistr/u8-strncmp: New file.
66210         * modules/unistr/u16-strncmp: New file.
66211         * modules/unistr/u32-strncmp: New file.
66212         * lib/unistr/u8-strncmp.c: New file.
66213         * lib/unistr/u16-strncmp.c: New file.
66214         * lib/unistr/u32-strncmp.c: New file.
66215
66216         * modules/unistr/u8-strncpy: New file.
66217         * modules/unistr/u16-strncpy: New file.
66218         * modules/unistr/u32-strncpy: New file.
66219         * lib/unistr/u8-strncpy.c: New file.
66220         * lib/unistr/u16-strncpy.c: New file.
66221         * lib/unistr/u32-strncpy.c: New file.
66222         * lib/unistr/u-strncpy.h: New file.
66223
66224         * modules/unistr/u8-strnlen: New file.
66225         * modules/unistr/u16-strnlen: New file.
66226         * modules/unistr/u32-strnlen: New file.
66227         * lib/unistr/u8-strnlen.c: New file.
66228         * lib/unistr/u16-strnlen.c: New file.
66229         * lib/unistr/u32-strnlen.c: New file.
66230         * lib/unistr/u-strnlen.h: New file.
66231
66232         * modules/unistr/u8-strpbrk: New file.
66233         * modules/unistr/u16-strpbrk: New file.
66234         * modules/unistr/u32-strpbrk: New file.
66235         * lib/unistr/u8-strpbrk.c: New file.
66236         * lib/unistr/u16-strpbrk.c: New file.
66237         * lib/unistr/u32-strpbrk.c: New file.
66238         * lib/unistr/u-strpbrk.h: New file.
66239
66240         * modules/unistr/u8-strrchr: New file.
66241         * modules/unistr/u16-strrchr: New file.
66242         * modules/unistr/u32-strrchr: New file.
66243         * lib/unistr/u8-strrchr.c: New file.
66244         * lib/unistr/u16-strrchr.c: New file.
66245         * lib/unistr/u32-strrchr.c: New file.
66246
66247         * modules/unistr/u8-strspn: New file.
66248         * modules/unistr/u16-strspn: New file.
66249         * modules/unistr/u32-strspn: New file.
66250         * lib/unistr/u8-strspn.c: New file.
66251         * lib/unistr/u16-strspn.c: New file.
66252         * lib/unistr/u32-strspn.c: New file.
66253         * lib/unistr/u-strspn.h: New file.
66254
66255         * modules/unistr/u8-strstr: New file.
66256         * modules/unistr/u16-strstr: New file.
66257         * modules/unistr/u32-strstr: New file.
66258         * lib/unistr/u8-strstr.c: New file.
66259         * lib/unistr/u16-strstr.c: New file.
66260         * lib/unistr/u32-strstr.c: New file.
66261         * lib/unistr/u-strstr.h: New file.
66262
66263         * modules/unistr/u8-strtok: New file.
66264         * modules/unistr/u16-strtok: New file.
66265         * modules/unistr/u32-strtok: New file.
66266         * lib/unistr/u8-strtok.c: New file.
66267         * lib/unistr/u16-strtok.c: New file.
66268         * lib/unistr/u32-strtok.c: New file.
66269         * lib/unistr/u-strtok.h: New file.
66270
66271         * modules/unistr/u8-uctomb: New file.
66272         * modules/unistr/u16-uctomb: New file.
66273         * modules/unistr/u32-uctomb: New file.
66274         * lib/unistr/u8-uctomb.c: New file.
66275         * lib/unistr/u16-uctomb.c: New file.
66276         * lib/unistr/u32-uctomb.c: New file.
66277
66278         * MODULES.html.sh (Unicode string functions): Add the new modules.
66279
66280 2007-01-08  Bruno Haible  <bruno@clisp.org>
66281
66282         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66283         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66284         subdirectories.
66285
66286 2007-01-08  Karl Berry  <karl@gnu.org>
66287
66288         * doc/error.texi: mention that main() fns must set program_name
66289         when progname is used.
66290
66291 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66294         WCTYPE_H is empty, for the benefit of builds from non-distclean
66295         directories.  Problem reported by Eric Blake in
66296         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66297
66298 2007-01-08  Bruno Haible  <bruno@clisp.org>
66299
66300         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66301         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66302         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66303         PROVIDE_CANONICALIZE_FILENAME_MODE.
66304         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66305
66306 2007-01-08  Bruno Haible  <bruno@clisp.org>
66307
66308         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66309         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66310         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66311         * lib/fts.c: Likewise.
66312         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66313
66314 2006-12-25  Bruno Haible  <bruno@clisp.org>
66315
66316         * modules/utf8-ucs4-safe: New file.
66317         * lib/utf8-ucs4-safe.h: New file.
66318         * lib/unistr/utf8-ucs4-safe.c: New file.
66319
66320         * modules/utf16-ucs4-safe: New file.
66321         * lib/utf16-ucs4-safe.h: New file.
66322         * lib/unistr/utf16-ucs4-safe.c: New file.
66323
66324         * MODULES.html.sh (Unicode string functions): Add the new modules.
66325
66326 2007-01-08  Bruno Haible  <bruno@clisp.org>
66327
66328         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66329         (Depends-on): Add unitypes.
66330         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66331         (u8_mbtouc_aux): Move out to separate file.
66332         (u8_mbtouc): Use ucs4_t, uint8_t types.
66333         * lib/unistr/utf8-ucs4.c: New file.
66334
66335         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66336         (Depends-on): Add unitypes.
66337         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66338         (u16_mbtouc_aux): Move out to separate file.
66339         (u16_mbtouc): Use ucs4_t, uint16_t types.
66340         * lib/unistr/utf16-ucs4.c: New file.
66341
66342         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66343         (Depends-on): Add unitypes.
66344         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66345         (u8_uctomb_aux): Move out to separate file.
66346         (u8_uctomb): Use ucs4_t, uint8_t types.
66347         * lib/unistr/ucs4-utf8.c: New file.
66348
66349         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66350         (Depends-on): Add unitypes.
66351         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66352         (u16_uctomb_aux): Move out to separate file.
66353         (u16_uctomb): Use ucs4_t, uint16_t types.
66354         * lib/unistr/ucs4-utf16.c: New file.
66355
66356 2006-12-25  Bruno Haible  <bruno@clisp.org>
66357
66358         * modules/unitypes: New file.
66359         * lib/unitypes.h: New file.
66360         * MODULES.html.sh (func_all_modules): New section "Unicode string
66361         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66362         this section. Add unitypes.
66363
66364 2007-01-08  Bruno Haible  <bruno@clisp.org>
66365
66366         Avoid variable names that conflict with those from libtool.
66367         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66368         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66369         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66370         library_names_spec to acl_library_names_spec, hardcode_* to
66371         acl_hardcode_*.
66372         Reported by Ralf Wildenhues.
66373
66374 2007-01-08  Bruno Haible  <bruno@clisp.org>
66375
66376         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66377         definition.
66378         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66379         definition.
66380         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66381         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66382         definition.
66383         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66384         definition.
66385         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66386         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66387         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66388         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66389         definition.
66390         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66391         definition.
66392         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66393         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66394         GC_USE_<algorithm>.
66395         * lib/gc-libgcrypt.c: Likewise.
66396         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66397         * modules/gc-arctwo (configure.ac): Likewise.
66398         * modules/gc-des (configure.ac): Likewise.
66399         * modules/gc-hmac-md5 (configure.ac): Likewise.
66400         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66401         * modules/gc-md2 (configure.ac): Likewise.
66402         * modules/gc-md4 (configure.ac): Likewise.
66403         * modules/gc-md5 (configure.ac): Likewise.
66404         * modules/gc-random (configure.ac): Likewise.
66405         * modules/gc-rijndael (configure.ac): Likewise.
66406         * modules/gc-sha1 (configure.ac): Likewise.
66407
66408 2007-01-08  Bruno Haible  <bruno@clisp.org>
66409
66410         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66411         macro definition.
66412         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66413         definition.
66414         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66415         definition.
66416         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66417         * modules/fcntl-safer (configure.ac): Likewise.
66418         * modules/fopen-safer (configure.ac): Likewise.
66419         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66420         GNULIB_FWRITEERROR macro definition.
66421
66422 2007-01-08  Bruno Haible  <bruno@clisp.org>
66423
66424         * m4/gnulib-common.m4: New file.
66425         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66426         (func_get_filelist): Add m4/gnulib-common.m4.
66427
66428 2007-01-08  Bruno Haible  <bruno@clisp.org>
66429
66430         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66431         command.
66432
66433 2007-01-08  Jim Meyering  <jim@meyering.net>
66434
66435         Use a more robust test for a "can't happen" condition.
66436         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66437         narrowed the st_size value.  Presuming the "can't happen" condition
66438         is true, that narrowing could conceivably convert an invalid st_size
66439         value into a valid one.  Instead, use a change based on Matthew
66440         Woehlke's original patch.
66441
66442         Slight readability improvement: use an assert-like macro
66443         in place of literal "abort ()" uses.
66444         * lib/fts.c (fts_assert): Define.
66445         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66446         Use this macro instead of a bare 'abort'.
66447
66448 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66451         simply work around them.
66452         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66453         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66454         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66455         declaring.
66456         Don't bother to define as macros, since the standard doesn't require it.
66457         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66458         longer worry about IRIX 5.3.
66459         (HAVE_WCTYPE_CTMP_BUG): Remove.
66460
66461 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66464         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66465         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66466         Problems reported by Georg Schwarz for IRIX 5.3.
66467
66468         * gnulib-tool (autoconf_minversion): Take the maximum version number
66469         found, not the minimum.  Problem reported by James Youngman.
66470
66471 2007-01-03  Karl Berry  <karl@gnu.org>
66472
66473         * doc/error.texi: new file, explaining interaction with progname.
66474         * doc/gnulib.texi: include it.  Update copyright.
66475
66476 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66477
66478         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66479         AC_CANONICAL_HOST, to improve autobuild outputs.
66480
66481 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66482             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66483
66484         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66485         sockets, server sockets, and other file descriptors.  Count errors
66486         to compute the return value.  Reorder the code a bit to be easier
66487         to follow.  Don't set event bits that were not requested (except
66488         POLLERR and POLLHUP).
66489
66490 2007-01-01  Bruno Haible  <bruno@clisp.org>
66491
66492         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66493
66494 2007-01-03  Jim Meyering  <jim@meyering.net>
66495
66496         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66497
66498 2007-01-02  Bruno Haible  <bruno@clisp.org>
66499
66500         * modules/settime (Include): Require timespec.h.
66501         * modules/nanosleep (Include): Likewise.
66502
66503 2007-01-01  Bruno Haible  <bruno@clisp.org>
66504
66505         * gnulib-tool (func_emit_copyright_notice): Bump year.
66506         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66507
66508 2007-01-01  Bruno Haible  <bruno@clisp.org>
66509
66510         Improve support for OpenBSD.
66511         * build-aux/config.rpath (libname_spec): Export.
66512         (library_names_spec): New variable. Export.
66513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66514         library_names_spec from the config.rpath output. Locate shared library
66515         through the name pattern in library_names_spec.
66516
66517 2007-01-01  Eric Blake  <ebb9@byu.net>
66518
66519         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66520
66521 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66522
66523         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66524         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66525         assume the C locale, and avoid an "eval" that could cause trouble.
66526         Problem with SORT reported by Bob Proulx.
66527
66528         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66529         Define.  Trivial patch from Henning Nielsen Lund, originally
66530         sent to bug-grep@gnu.org today.
66531
66532 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66533
66534         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66535         struct stat.  Problem reported by Henning Nielsen Lund.
66536         * lib/acl.c: Include acl.h first, to check interface.  Don't
66537         bother to include sys/types.h and sys/stat.h again.
66538
66539 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66540
66541         Import the following change from libc; problem reported by
66542         Sven Verdoolaege.
66543
66544         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66545
66546         [BZ #1373]
66547         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66548
66549 2006-12-28  Jim Meyering  <jim@meyering.net>
66550
66551         * build-aux/announce-gen: Do not assume that the package
66552         builds any of tar.gz, tar.bz2, and .xdelta files.
66553         Suggestion from Simon Josefsson.
66554
66555 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66556
66557         * modules/announce-gen: New file.
66558
66559 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66562         handles its gotchas now.
66563         * lib/mbswidth.c: Likewise.
66564         * lib/wcwidth.h: Likewise.
66565         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66566         and iswcntrl; the wctype module does this stuff now.
66567         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66569         * modules/mbchar (Depends-on): Add wctype.
66570         * modules/mbswidth (Depends-on): Likewise.
66571         * modules/wcwidth (Depends-on): Likewise.
66572
66573 2006-12-27  Eric Blake  <ebb9@byu.net>
66574
66575         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66576         module uses more than what <wctype.h> is required to provide.
66577
66578 2006-12-26  Eric Blake  <ebb9@byu.net>
66579
66580         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66581
66582 2006-12-26  Eric Blake  <ebb9@byu.net>
66583
66584         * modules/absolute-header: New module.
66585         * modules/fcntl (Depends-on): Depend on it.
66586         * modules/inttypes (Depends-on): Likewise.
66587         * modules/stdint (Depends-on): Likewise.
66588         * modules/sys_stat (Depends-on): Likewise.
66589         * modules/wctype (Depends-on): Likewise.
66590         * MODULES.html.sh (Support for building libraries and
66591         executables): Document it.
66592
66593 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * gnulib-tool (SED): Remove, undoing previous change.
66596         The problem was that it broke coreutils on Solaris, because
66597         "sed --posix" leaked into a makefile.
66598         (sed): New alias, if 'alias' and GNU sed.
66599
66600 2006-12-24  Jim Meyering  <jim@meyering.net>
66601
66602         Work around an fchownat bug in glibc-2.4:
66603         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66604         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66605         in spite of the -P option.
66606         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66607         New macros.
66608         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66609         * modules/openat (Files): Add lib/fchownat.c.
66610         * lib/openat.c (fchownat): Don't define here.  Move to...
66611         * lib/fchownat.c: ...this new file.
66612
66613 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66614
66615         Fix bug reported by Bruno Haible in
66616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66617         where quotearg.c didn't compile on Mac OS X 10.2 because it
66618         lacks <wchar.h> and wint_t.
66619         * lib/wctype_.h (__wctype_wint_t): New type.
66620         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66621         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66622         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66623         Arg is now of type __wctype_wint_t, not wint_t.
66624         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66625         substitute HAVE_WINT_T.
66626         * modules/wctype (Files): Add m4/wint_t.m4.
66627         (wctype.h): Substitute HAVE_WINT_T.
66628
66629 2006-12-23  Bruno Haible  <bruno@clisp.org>
66630
66631         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66632
66633 2006-12-23  Bruno Haible  <bruno@clisp.org>
66634
66635         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66636         S_ISLNK.
66637         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66638         mingw.
66639
66640 2006-12-22  Bruno Haible  <bruno@clisp.org>
66641
66642         * lib/copy-file.c: Include acl.h.
66643         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66644         Close the file descriptors only after being done with copy_acl.
66645         * modules/copy-file (Depends-on): Add acl.
66646
66647 2006-12-22  Bruno Haible  <bruno@clisp.org>
66648
66649         * gnulib-tool (SED): New variable.
66650         Use $SED instead of sed everywhere.
66651
66652 2006-12-22  Bruno Haible  <bruno@clisp.org>
66653
66654         * modules/no-c++: New file.
66655         * m4/no-c++.m4: New file.
66656         * MODULES.html.sh (Support for building libraries and executables):
66657         Add no-c++.
66658
66659 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66660
66661         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66662         Include <limits.h>, and use its INT_MAX to rewrite the
66663         j loop so that it does not overflow 'int'.  Problem reported by
66664         Ralf Wildenhues in
66665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66666         Play it safe by shifting left by 1 rather than multiplying by 2,
66667         as GCC is less likely to optimize this away when the value
66668         is signed (when it assumes overflow leads to undefined behavior).
66669         Also, don't assume time_t uses two's complement.
66670
66671 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66672
66673         * MODULES.html.sh: New module wctype.
66674         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66675         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66676         <wctype.h>, since the new wctype module should fix this.
66677         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66678         the wctype module should arrange for it.
66679         * lib/regex_internal.h: Likewise.
66680         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66681         since the wctype module should handle this now.
66682         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66683         * modules/fnmatch (Depends-on): Add wctype.
66684         * modules/quotearg (Depends-on): Likewise.
66685         * modules/regex (Depends-on): Likewise.
66686
66687 2006-12-19  Bruno Haible  <bruno@clisp.org>
66688
66689         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66690         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66691
66692 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66693
66694         * modules/savewd (Depends-on): Fix dependency on fcntl.
66695
66696 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66697
66698         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66699         conforms to C99, rather than relying on the user's environment
66700         setting of STDINT_H.
66701
66702 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66703         and Eric Blake  <ebb9@byu.net>
66704
66705         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66706         This is more consistent with the other defines here.
66707         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66708         Port to z/OS.  Problem reported by Paul Gilmartin.
66709         Change local vars to use gl_ prefix rather than ac_.
66710         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66711         with other defines.
66712         * modules/double-slash-root: New module.
66713         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66714         (Depends-on): Add double-slash-root.
66715         * MODULES.html.sh (File system functions): Mention new module.
66716
66717 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66718
66719         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66720         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66721         This is for the benefit of gzip, which doesn't do i18n.
66722
66723 2006-12-12  Jim Meyering  <jim@meyering.net>
66724
66725         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66726         Reported by Andreas Schwab <schwab@suse.de>.
66727
66728 2006-12-12  Bruno Haible  <bruno@clisp.org>
66729
66730         Merge these changes.
66731         2006-09-05  Bruno Haible  <bruno@clisp.org>
66732         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66733         iconv_alloc succeeded.
66734         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66735         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66736         test for " && dest " at the end - dest is always != NULL there. Call
66737         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66738         with 2xNULL arguments, also to flush the state storage. Handle the
66739         IRIX iconv behaviour. Realloc the final result, to throw away unused
66740         memory.
66741
66742 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66745         and fchmodat unconditionally, since glibc 2.4 has them.
66746         Problem reported by Arkadiusz Miskiewicz.
66747
66748 2006-12-10  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool (func_import): Show the include files only for those
66751         modules that are copied and specified.
66752         Reported by Karl Berry.
66753
66754 2006-12-08  Jim Meyering  <jim@meyering.net>
66755
66756         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66757         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66758
66759         * build-aux/announce-gen: Add two new options, both optional:
66760         --bootstrap-tools=TOOL_LIST
66761               a comma-separated list of tools, e.g.,
66762               autoconf,automake,bison,gnulib
66763         --gnulib-snapshot-date=DATE
66764               if gnulib is in the bootstrap tool list,
66765               then report this as the snapshot date.
66766               If not specified, use the current date/time.
66767               If you specify a date here, be sure it's UTC.
66768
66769 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66770
66771         * tests/test-argp-2.sh: Fix test to match actual output.
66772         (func_compare): Fix sed script to be portable.
66773
66774 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66775
66776         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66777         workaround for this case.  It is not autoconfigured now; offhand
66778         it's hard to see how to autoconfigure it.
66779
66780 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66783         a directory that is about to be chowned.  Such a directory's
66784         initial file permissions should permit the owner only and this
66785         should not be changed until after the chown, since the group and
66786         other bits would be incorrect if they granted permission before
66787         the chown.
66788
66789         Fix porting problem for iswctype reported by Georg Schwarz in:
66790         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66791         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66792         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66793         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66794         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66795
66796 2006-12-03  Jim Meyering  <jim@meyering.net>
66797
66798         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66799         p->fts_statp may not yet be defined.
66800         (fts_read): Instead, set it in the caller, once p->fts_statp is
66801         sure to be defined, and corresponds to a top-level directory.
66802         This bug made du -x fail.  Here's the coreutils test case:
66803         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66804         Reported by Mike Frysinger.
66805
66806 2006-12-01  Jim Meyering  <jim@meyering.net>
66807
66808         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66809         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66810         Reported by Simon Josefsson.
66811
66812 2006-11-30  Jim Meyering  <jim@meyering.net>
66813
66814         * m4/warning.m4: Use the all-permissive copyright notice
66815         recommended by RMS (rather than LGPL).
66816         * m4/vararrays.m4: Likewise.
66817         * m4/flexmember.m4: Likewise.
66818
66819 2006-11-29  Bruno Haible  <bruno@clisp.org>
66820
66821         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66822         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66823         using +=.
66824         Reported by Simon Josefsson <simon@josefsson.org>.
66825
66826 2006-11-28  James Youngman <jay@gnu.org>
66827
66828         * README: Advise users that they might find the bug-gnulib@gnu.org
66829         and autotools-announce@gnu.org mailing lists useful.
66830
66831 2006-11-28  Bruno Haible  <bruno@clisp.org>
66832
66833         * m4/ptrdiff_max.m4: Remove file.
66834
66835 2006-11-21  Bruno Haible  <bruno@clisp.org>
66836
66837         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66838         _AC_COMPUTE_INT.
66839         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66840         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66841         _AC_COMPUTE_INT.
66842         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66843         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66844         _AC_COMPUTE_INT.
66845         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66846
66847 2006-11-28  Jim Meyering  <jim@meyering.net>
66848
66849         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66850         warning from "gcc -Wshadow" about shadowing the builtin.
66851
66852 2006-11-27  Bruno Haible  <bruno@clisp.org>
66853
66854         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66855         _AC_COMPUTE_INT.
66856         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66857
66858 2006-11-27  Bruno Haible  <bruno@clisp.org>
66859             Paul Eggert  <eggert@cs.ucla.edu>
66860
66861         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66862
66863 2006-11-26  Bruno Haible  <bruno@clisp.org>
66864
66865         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66866         noinst_LTLIBRARIES.
66867
66868 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66869             Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66872         if compiling with "gcc -ansi".
66873
66874 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66875
66876         Fix some incompatibilities with gcc -ansi -pedantic.
66877         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66878         if compiling pedantically with GCC, unless it's C99 or later.
66879         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66880         it mishandles gcc -ansi -pedantic as well.
66881         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66882         if gcc -pedantic.
66883         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66884         initializers for struct if -pedantic, unless it's C99 or later.
66885
66886 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66887
66888         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66889         Don't close an fd more than once. Identical atimes indicate
66890         success, not failure.
66891
66892 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66893
66894         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66895
66896 2006-11-23  Jim Meyering  <jim@meyering.net>
66897
66898         * build-aux/announce-gen: New file.  From coreutils.
66899
66900 2006-11-22  Jim Meyering  <jim@meyering.net>
66901
66902         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66903         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66904         (fts_read): Use a temporary to narrow the overused st_size member
66905         before using it in a switch statement.  Reported by Matthew Woehlke.
66906
66907         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66908         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66909
66910 2006-11-20  Bruno Haible  <bruno@clisp.org>
66911
66912         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66913         changequote instead of pairs of brackets.
66914         Reported by Andreas Schwab <schwab@suse.de>.
66915
66916 2006-11-21  Jim Meyering  <jim@meyering.net>
66917
66918         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66919         so as to remain compatible with older compilers.
66920         Patch from Michael Deutschmann.
66921
66922 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66923
66924         * MODULES.html.sh (File system functions): Add openat.
66925
66926         * lib/openat.h (rpl_fstatat): New macro, if
66927         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66928         (fstatat): Define to rpl_fstatat under the same conditions,
66929         unless COMPILING_FSTATAT.
66930         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66931         seems to have the bug.
66932         * lib/fstatat.c: New file.
66933         * modules/openat (Files): Add it.
66934
66935 2006-11-20  Bruno Haible  <bruno@clisp.org>
66936
66937         * Makefile: New file.
66938
66939 2006-11-20  Jim Meyering  <jim@meyering.net>
66940
66941         The beginnings of syntax-related checks for gnulib.
66942         * lib/Makefile: New file.
66943         * lib/t-idcache: New script.  Ensure that the two halves of
66944         idcache.c stay in sync.
66945
66946         * lib/idcache.c: Adjust comments in user- and group- portions to
66947         be more accurate, and to be consistent with one another.
66948
66949 2006-11-20  Jim Meyering  <jim@meyering.net>
66950
66951         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66952         continue using the flexible array member (thus, this module performs
66953         half as many malloc calls), with the addition that...
66954         (getgroup, getuser): Consistently record a non-match via an empty
66955         "name" string, and map an empty string match to a NULL return value.
66956         * modules/idcache (Depends-on): Re-add flexmember.
66957
66958         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66959         (getuidbyname, getgroup, getgidbyname): Likewise.
66960
66961         Use cleaner syntax: NULL rather than 0.
66962         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66963
66964 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66965
66966         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66967         It mishandled the case where the group was missing.
66968         Problem reported by Greg Schafer.
66969         * modules/idcache: Likewise.
66970
66971 2006-11-18  Jim Meyering  <jim@meyering.net>
66972
66973         * check-module (%exempt_header): Add exception for some
66974         conditionally-included headers.
66975
66976         * modules/i-ring (Depends-on): Add verify.
66977         (License): Change to LGPL.
66978
66979 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66980
66981         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66982         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66983         and inttostr.h.  Use snprintf rather than uinttostr, so that
66984         LGPLed code doesn't depend on GPLed.
66985
66986 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         * modules/inline (License): Change from GPL to LGPL.
66989
66990 2006-11-17  Jim Meyering  <jim@meyering.net>
66991
66992         * modules/d-type (License): Switch to LGPL.
66993
66994 2006-11-15  Bruno Haible  <bruno@clisp.org>
66995
66996         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66997
66998 2006-11-15  Eric Blake  <ebb9@byu.net>
66999
67000         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67001         the module dependency.
67002
67003 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67004             Bruno Haible  <bruno@clisp.org>
67005
67006         * gnulib-tool (func_create_testdir): Add license consistency check.
67007
67008 2006-11-15  Eric Blake  <ebb9@byu.net>
67009
67010         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67011         random "(cached)" in configure output.
67012
67013 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67014
67015         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67016         test for conforming inttypes.h is both announced and cached.
67017
67018         * MODULES.html.sh (seen_modules, seen_files): New variables.
67019         (func_module): Rewrite to use a few less gnulib-tool and sed
67020         invocations.  Avoid a couple of quadratic algorithms for ...
67021         (missed_modules, missed_files): ... these, with ...
67022         (func_append, func_tmpdir): ... these new functions, from
67023         gnulib-tool.  Analogously, install traps for cleanup.
67024
67025         * tests/test-gc.c (main): Remove unused variables.
67026         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67027
67028 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67029
67030         * modules/inttostr (License): Change to LGPL.
67031
67032 2006-11-14  Eric Blake  <ebb9@byu.net>
67033
67034         * modules/tempname (License): Change to LGPL.
67035
67036 2006-11-14  Eric Blake  <ebb9@byu.net>
67037
67038         * doc/functions.texi (Function Portability): *printf functions on
67039         Cygwin now understand all POSIX size specifiers.
67040
67041 2006-11-14  Bruno Haible  <bruno@clisp.org>
67042
67043         * modules/c-ctype (License): Change to LGPL.
67044
67045 2006-11-12  Bruno Haible  <bruno@clisp.org>
67046
67047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67048         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67049         for GNOME libraries, for which the include files are installed in
67050         subdirectories of $prefix/include.
67051
67052 2006-11-12  Bruno Haible  <bruno@clisp.org>
67053
67054         * m4/lib-link.m4: Require at least autoconf-2.54.
67055         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67056         name to underscores for the --with option.
67057
67058 2006-11-13  Bruno Haible  <bruno@clisp.org>
67059
67060         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67061         the tests directory.
67062         Reported by Ralf Wildenhues.
67063
67064 2006-11-13  Bruno Haible  <bruno@clisp.org>
67065
67066         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67067         (func_emit_initmacro_end): Undo the override here.
67068         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67069         Works around the famous automake error in coreutils.
67070
67071 2006-11-13  Eric Blake  <ebb9@byu.net>
67072
67073         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67074         element, not its node.
67075
67076 2006-11-12  Bruno Haible  <bruno@clisp.org>
67077
67078         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67079         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67080
67081 2006-11-12  Bruno Haible  <bruno@clisp.org>
67082
67083         * gnulib-tool: New option --local-symlink.
67084         (func_usage): Document it.
67085         (lsymbolic): New variable.
67086         (func_import, func_create_testdir): If --symlink was not specified,
67087         test whether --local-symlink was specified and the file comes from
67088         the local_gnulib_dir.
67089
67090 2006-11-12  Bruno Haible  <bruno@clisp.org>
67091
67092         * gnulib-tool (func_ln): New function.
67093         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67094
67095 2006-11-12  Bruno Haible  <bruno@clisp.org>
67096
67097         Finish support for source files in subdirectories.
67098         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67099         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67100         AUTOMAKE_OPTIONS.
67101         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67102
67103 2006-11-12  Bruno Haible  <bruno@clisp.org>
67104
67105         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67106         EXTRA_lib_SOURCES augmentation.
67107         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67108
67109 2006-11-12  Jim Meyering  <jim@meyering.net>
67110
67111         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67112         file descriptors.  This also averts a failure on systems with
67113         native openat support when a traversed directory lacks "x" access.
67114         * lib/fts_.h: Include "i-ring.h"
67115         (struct FTS) [fts_fd_ring]: New member.
67116         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67117         (FCHDIR): Add parentheses.
67118         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67119         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67120         When descending, rather than simply closing the previous
67121         fts_cwd_fd value, push that file descriptor onto the ring.
67122         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67123         (fts_open): Initialize the new fd_ring member.
67124         (fts_close): Clear the ring.
67125         (fts_safe_changedir): When possible, use our new fd_ring to skip
67126         the diropen and fstat and dev/ino comparison that would normally
67127         accompany a virtual `chdir ("..")'.
67128
67129         * modules/fts (Depends-on): Add i-ring.
67130         * modules/i-ring: New module.
67131         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67132         * m4/i-ring.m4: New file.
67133
67134 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67135
67136         * gnulib-tool (func_create_testdir): Fix replacement of
67137         `build-aux' in configure.ac.  Run autotools in gltests
67138         subdirectory.
67139         (func_create_testdir, func_create_megatestdir, test): There is
67140         no need for '--force' in most autotool invocations in a new
67141         tree.  Actually fail the whole test if any of the tools, or the
67142         configure or make stages fail.
67143
67144         Sync from Automake.
67145         * build-aux/gnupload: Revert last change.  Add pointer to upload
67146         instructions of the GNU Maintenance Instructions.
67147         Suggestion by Karl Berry.
67148
67149 2006-11-10  Jim Meyering  <jim@meyering.net>
67150
67151         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67152
67153 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67154
67155         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67156         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67157         (bind_textdomain_codeset) [! ENABLE_NLS]:
67158         Evaluate all the arguments.  That way, callers get compatible behavior
67159         if the arguments have side effects.  Also, it avoids some GCC
67160         diagnostics in some cases; Joel E. Denny reported problems when Bison
67161         was configured with --enable-gcc-warnigs.
67162
67163 2006-11-10  Jim Meyering  <jim@meyering.net>
67164
67165         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67166         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67167         account.
67168
67169 2006-11-10  Jim Meyering  <jim@meyering.net>
67170
67171         * modules/inline: New file/module.
67172         * modules/xalloc (Files): Remove m4/inline.m4.
67173         (Depends-on): Add inline, instead.
67174         * modules/oset: Likewise.
67175         * modules/list: Likewise.
67176
67177 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67178
67179         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67180         Problem reported by Matthew Woehlke.
67181
67182 2006-11-09  Bruno Haible  <bruno@clisp.org>
67183
67184         * lib/tempname.c (gen_tempname): Remove variant that invokes
67185         __gen_tempname.
67186         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67187         __gen_tempname.
67188
67189 2006-11-08  Bruno Haible  <bruno@clisp.org>
67190
67191         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67192         to 'yes' instead of 'cross-compiling'.
67193
67194 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         * lib/quotearg.h (quotearg_free): New decl.
67197         * lib/quotearg.c (quotearg_free): New function.
67198         (slot0, nslots, slotvec0, slotvec):
67199         Now file-scope so that quotearg_free can get at them.
67200
67201 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67202
67203         Sync from Automake.
67204         * build-aux/gnupload: Add missing 'gnu' to example URL.
67205         Report by Karl Berry.
67206
67207 2006-11-08  Bruno Haible  <bruno@clisp.org>
67208
67209         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67210         Suggested by Paul Eggert.
67211
67212 2006-11-08  Jim Meyering  <jim@meyering.net>
67213
67214         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67215         It's already included if !_LIBC.
67216         (fts_safe_changedir): Add a comment.
67217
67218 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67219
67220         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67221         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67222         Matthew Woehlke.
67223
67224         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67225         definitions up, to avoid colliding with change below.
67226         (static_inline) [HAVE_INLINE]: New macro.
67227         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67228         Provide extern decls when !HAVE_INLINE.  Do not define unless
67229         static_inline is defined, either by us or by xmalloc.c.  Use
67230         static_inline rather than static inline.
67231         (XCALLOC): Optimize sizeof(T) = 1 case.
67232         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67233
67234 2006-11-07  Bruno Haible  <bruno@clisp.org>
67235
67236         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67237         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67238         AC_C_INLINE.
67239         * modules/xalloc (Files): Add m4/inline.m4.
67240
67241 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67242
67243         * README: Fix typo.
67244         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67245         (Miscellanous Notes): ...from this.
67246
67247 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67248
67249         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67250         Mention that offsetof should be used instead of sizeof.
67251         From Bruno Haible.
67252
67253 2006-11-07  Bruno Haible  <bruno@clisp.org>
67254
67255         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67256
67257 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67258
67259         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67260         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67261         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67262         (gl_tree_add_before, gl_tree_add_after):
67263         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67264         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67265         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67266         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67267         (gl_linked_add_after, gl_linked_add_at): Likewise.
67268         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67269         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67270         (gl_tree_add_before, gl_tree_add_after): Likewise.
67271         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67272         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67273         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67274
67275 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67276
67277         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67278
67279 2006-11-06  Bruno Haible  <bruno@clisp.org>
67280
67281         * m4/inline.m4: New file.
67282         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67283         * modules/list (Files): Add m4/inline.m4.
67284         * modules/oset (Files): Likewise.
67285
67286 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67287
67288         * lib/idcache.c: Include <stddef.h>, for offsetof.
67289         (struct userid.name): Change from char * to a flexible array member.
67290         All uses changed.
67291         * modules/idcache (Depends-on): Add flexmember.
67292
67293         * MODULES.html.sh (Core language properties): New module flexmember.
67294         * modules/flexmember, m4/flexmember.m4: New files.
67295
67296         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67297         inline functions that are identical with the old xnmalloc_inline,
67298         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67299         that we can avoid some unnecessary integer multiplications and
67300         divisions in the common case where the element size is known at
67301         compile time.
67302         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67303         needed.
67304         (xnboundedmalloc): Remove.
67305         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67306         arguments, for consistency with rest of this header.
67307         (xcharalloc): Rewrite using XNMALLOC.
67308         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67309         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67310         versions have been moved to lib/xalloc.h and renamed to be the
67311         non-*_inline versions.
67312         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67313         and xnrealloc functions, since those functions are now inline and
67314         now call us.
67315         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67316         renaming described above.
67317         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67318         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67319         captures the dependency in AC_C_INLINE.
67320
67321         New module canonicalize-lgpl, proposed by Charles Wilson in
67322         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67323         with a few small changes afterwards.
67324         * MODULES.html.sh (File system functions): New module
67325         canonicalize-lgpl.
67326         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67327         and canonicalize_file_name.
67328         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67329         * modules/canonicalize-lgpl: New files.
67330
67331 2006-11-05  Bruno Haible  <bruno@clisp.org>
67332
67333         * gnulib-tool (func_import, func_create_testdir): Create directories
67334         also for files in subdirectories of lib/.
67335
67336 2006-11-05  Bruno Haible  <bruno@clisp.org>
67337
67338         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67339         ANSI C compliant.
67340
67341 2006-11-03  Bruno Haible  <bruno@clisp.org>
67342
67343         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67344         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67345         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67346         (xnboundedmalloc): New inline function.
67347         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67348         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67349         xmalloc.
67350         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67351         xmalloc.
67352         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67353         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67354         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67355         xmalloc.
67356         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67357         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67358         xmalloc.
67359         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67360         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67361         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67362         xmalloc.
67363         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67364         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67365         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67366         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67367         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67368         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67369         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67370
67371 2006-11-03  Bruno Haible  <bruno@clisp.org>
67372
67373         * lib/c-ctype.h [C++]: Define functions without name mangling.
67374         * lib/fwriteerror.h [C++]: Likewise.
67375         * lib/gcd.h [C++]: Likewise.
67376         * lib/linebreak.h [C++]: Likewise.
67377
67378 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67379
67380         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67381         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67382         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67383         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67384         Check for functions and headers just once.
67385         Check for declaration of canonicalize_file_name.
67386         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67387
67388 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67389
67390         * gnulib-tool (func_import): Fix typo in actioncmd.
67391
67392 2006-11-02  Bruno Haible  <bruno@clisp.org>
67393
67394         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67395         newline sequence in the Makefile.am snippet as a space, like "make"
67396         does.
67397         Reported by Roger Persson <perrog@gmail.com>.
67398
67399 2006-11-01  Bruno Haible  <bruno@clisp.org>
67400
67401         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67402         already declared in <string.h>.
67403         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67404
67405 2006-11-01  Bruno Haible  <bruno@clisp.org>
67406
67407         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67408         * lib/strcase.h: Include <string.h>.
67409         (strcasecmp): Define to rpl_strcasecmp here.
67410
67411 2006-11-01  Bruno Haible  <bruno@clisp.org>
67412
67413         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67414
67415 2006-11-01  Eric Blake  <ebb9@byu.net>
67416
67417         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67418
67419         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67420
67421 2006-10-29  Bruno Haible  <bruno@clisp.org>
67422
67423         Make it compile in C++ mode.
67424         * lib/full-write.c (full_rw): Add a cast.
67425
67426 2006-11-01  Bruno Haible  <bruno@clisp.org>
67427
67428         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67429         be POSIX compliant.
67430         Reported by Roger Persson <perrog@gmail.com>.
67431
67432 2006-11-01  Eric Blake  <ebb9@byu.net>
67433
67434         * lib/getopt_.h: Fix comments.
67435
67436 2006-10-31  Eric Blake  <ebb9@byu.net>
67437
67438         * modules/tmpdir (Depends-on): Add sys_stat.
67439         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67440         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67441         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67442         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67443         tempname.
67444
67445 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         Avoid some C++ diagnostics reported by Bruno Haible.
67448         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67449         xmalloc.
67450         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67451         (struct slotvec): Move to top level.
67452         (quotearg_n_options): Rewrite to avoid xmalloc.
67453         * lib/xalloc.h (xcharalloc): New function.
67454         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67455         [defined __cplusplus]: Add function template that provides result
67456         type propagation.  This part of the change is from Bruno Haible.
67457
67458 2006-10-29  Bruno Haible  <bruno@clisp.org>
67459
67460         Make it compile in C++ mode.
67461         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67462         * lib/strnlen1.c (strnlen1): Cast memchr result.
67463         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67464         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67465         (create_temp_dir): Rename local variable 'template'.
67466         (compile_csharp_using_sscli): Add cast.
67467         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67468         * lib/findprog.c (find_in_path): Likewise.
67469         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67470         * lib/wait-process.c (register_slave_subprocess): Likewise.
67471
67472 2006-10-22  Bruno Haible  <bruno@clisp.org>
67473
67474         * modules/tsearch: New file.
67475         * lib/tsearch.h: New file.
67476         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67477         * m4/tsearch.m4: New file.
67478         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67479
67480 2006-10-29  Eric Blake  <ebb9@byu.net>
67481
67482         * lib/arcfour.c: Assume config.h.
67483         * lib/arctwo.c: Likewise.
67484         * lib/base64.c: Likewise.
67485         * lib/check-version.c: Likewise.
67486         * lib/crc.c: Likewise.
67487         * lib/des.c: Likewise.
67488         * lib/gc-gnulib.c: Likewise.
67489         * lib/gc-libgcrypt.c: Likewise.
67490         * lib/gc-pbkdf2-sha1.c: Likewise.
67491         * lib/getaddrinfo.c: Likewise.
67492         * lib/getdelim.c: Likewise.
67493         * lib/getline.c: Likewise.
67494         * lib/hmac-md5.c: Likewise.
67495         * lib/hmac-sha1.c: Likewise.
67496         * lib/iconvme.c: Likewise.
67497         * lib/md2.c: Likewise.
67498         * lib/md4.c: Likewise.
67499         * lib/memxor.c: Likewise.
67500         * lib/read-file.c: Likewise.
67501         * lib/readline.c: Likewise.
67502         * lib/rijndael-alg-fst.c: Likewise.
67503         * lib/rijndael-api-fst.c: Likewise.
67504         * lib/xgetdomainname.c: Likewise.
67505
67506 2006-10-28  Eric Blake  <ebb9@byu.net>
67507
67508         * lib/xstrndup.c: Assume config.h.
67509
67510 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67511
67512         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67513         stat-macros.h is now for our own macros, whereas stat_h is for
67514         macros in the <sys/stat.h> name space.
67515         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67516         (STAT_MACROS_H): Remove.
67517         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67518         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67519         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67520         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67521         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67522         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67523         Move these macros to ...
67524         * lib/stat_.h: here.  Don't include stat-macros.h.
67525         * lib/canonicalize.c: Don't include stat-macros.h.
67526         * lib/chown.c: Likewise.
67527         * lib/euidaccess.c: Likewise.
67528         * lib/file-type.c: Likewise.
67529         * lib/filemode.c: Likewise.
67530         * lib/glob.c: Likewise.
67531         * lib/isapipe.c: Likewise.
67532         * lib/lchown.c: Likewise.
67533         * lib/lstat.c: Likewise.
67534         * lib/mkdir-p.c: Likewise.
67535         * lib/rmdir.c: Likewise.
67536         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67537         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67538         unless mkdir isn't declared, to speed up 'configure'.
67539         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67540         would define all the S_* symbols.
67541         * modules/canonicalize (Depends-on):
67542         Depend on sys_stat, not stat-macros.
67543         * modules/chown: Likewise.
67544         * modules/euidaccess: Likewise.
67545         * modules/filemode: Likewise.
67546         * modules/file-type: Likewise.
67547         * modules/glob: Likewise.
67548         * modules/isapipe: Likewise.
67549         * modules/lchown: Likewise.
67550         * modules/lstat: Likewise.
67551         * modules/mkancesdirs: Likewise.
67552         * modules/rmdir: Likewise.
67553         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67554         * modules/modechange: Likewise.
67555         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67556         (configure.ac): Remove gl_STAT_MACROS.
67557         * modules/sys_stat (Depends-on): Remove stat-macros.
67558
67559 2006-10-27  Bruno Haible  <bruno@clisp.org>
67560
67561         * m4/signed.m4: Remove file.
67562         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67563         invocation.
67564         * modules/vasnprintf (Files): Remove m4/signed.m4.
67565
67566 2006-10-27  Bruno Haible  <bruno@clisp.org>
67567
67568         Update to GNU gettext 0.16.
67569         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67570         m4/inttypes-h.m4, m4/signed.m4.
67571         * m4/gettext.m4: Update to GNU gettext 0.16.
67572         * m4/intl.m4: New file, from GNU gettext.
67573         * m4/intldir.m4: New file, from GNU gettext.
67574         * config/srclist.txt: Update
67575
67576 2006-10-27  Eric Blake  <ebb9@byu.net>
67577
67578         * MODULES.html.sh: Document tempname.
67579         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67580         dependencies.
67581         (Files): Move lib/tempname.c...
67582         * modules/tempname: ...to this new module.
67583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67584         (gl_PREREQ_TEMPNAME): Move...
67585         * m4/tempname.m4: ...to this new file.
67586         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67587         * modules/sys_stat (Depends-on): Add stat-macros.
67588         * lib/stat_.h (includes): Pick up stat macros.
67589         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67590         if stat macros are broken.
67591         * lib/tempname.c (includes): No need to include "stat-macros.h".
67592         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67593         (direxists, __path_search) [!_LIBC]: Don't compile these in
67594         gnulib; the tmpdir module covers that.
67595         * lib/tempname.h: New file.
67596
67597 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67598
67599         * COPYING: Explain how gnulib-tool converts licence headers.
67600         Almost all wording by Eric Blake.
67601
67602 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67603
67604         * lib/mbchar.h (is_basic_table): Make read-only.
67605         * lib/mbchar.c (is_basic_table): Likewise.
67606         Reported by John Darrington.
67607
67608 2006-10-25  Bruno Haible  <bruno@clisp.org>
67609
67610         * lib/progname.h (set_program_name): Undefine before defining.
67611
67612 2006-10-25  Bruno Haible  <bruno@clisp.org>
67613
67614         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67615         false for non-gcc C++ compilers.
67616         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67617
67618 2006-10-24  Bruno Haible  <bruno@clisp.org>
67619
67620         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67621         iconv implementations like Irix iconv.
67622
67623 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         * modules/vararrays: New file.
67626         * m4/vararrays.m4: New file, taken from diffutils.
67627         * MODULES.html.sh: New module vararrays.
67628
67629 2006-10-24  Karl Berry  <karl@gnu.org>
67630
67631         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67632         Don't call GNU Unix.
67633
67634 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67635
67636         * users.txt: Add Libtool.
67637
67638         Sync from Libtool:
67639
67640         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67641
67642         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67643         to gnulib's policy of including config.h unconditionally.
67644
67645 2006-10-24  Bruno Haible  <bruno@clisp.org>
67646
67647         * modules/wcwidth (Files): Add m4/wint_t.m4.
67648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67649         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67650
67651 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67654         to pacify GCC with some -W flags enabled.  Problem reported by
67655         Bruno Haible.
67656
67657 2006-10-24  Jim Meyering  <jim@meyering.net>
67658
67659         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67660         Reported by Karl Berry.
67661
67662 2006-10-23  Bruno Haible  <bruno@clisp.org>
67663
67664         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67665
67666 2006-10-24  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/gl_list.h: Use C comment style, not C++ comment style.
67669
67670 2006-10-23  Eric Blake  <ebb9@byu.net>
67671
67672         * lib/getaddrinfo.c (includes): Add missing include.
67673
67674 2006-10-23  Bruno Haible  <bruno@clisp.org>
67675             Paul Eggert  <eggert@cs.ucla.edu>
67676
67677         Ability to rename obstack_free.
67678         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67679         obstack_free.
67680         (obstack_free): Invoke the __obstack_free macro.
67681         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67682
67683 2006-10-23  Bruno Haible  <bruno@clisp.org>
67684             Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67687         __argc, __argv from the declaration. (They are defined as macros on
67688         mingw.)
67689
67690 2006-10-22  Bruno Haible  <bruno@clisp.org>
67691
67692         * doc/gnulib-intro.texi: New file.
67693         * doc/gnulib.texi: Include it.
67694
67695 2006-10-21  Bruno Haible  <bruno@clisp.org>
67696
67697         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67698         "Introduction", "Miscellanous Notes", "Particular Modules".
67699
67700 2006-10-21  Bruno Haible  <bruno@clisp.org>
67701
67702         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67703         Change mostlyclean-local rule to avoid sh syntax error from bash
67704         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67705
67706 2006-10-23  Jim Meyering  <jim@meyering.net>
67707
67708         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67709         in place of snprintf.
67710
67711         * modules/inttostr (Files): Add lib/uinttostr.c.
67712         * lib/uinttostr.c (inttostr): New file/function.
67713         * lib/inttostr.h (uinttostr): Declare.
67714         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67715         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67716         Add uinttostr.
67717         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67718
67719 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * lib/canonicalize.c (ELOOP): Define if not already defined.
67722         Problem reported by Bruno Haible in
67723         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67724
67725 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67726
67727         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67728         Problem reported by Perry Smith and Ville Laurikari.
67729
67730         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67731         uses.
67732
67733 2006-10-19  Bruno Haible  <bruno@clisp.org>
67734
67735         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67736         for mingw.
67737
67738 2006-10-19  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67741         Needed for mingw.
67742
67743 2006-10-19  Bruno Haible  <bruno@clisp.org>
67744
67745         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67746
67747 2006-10-19  Bruno Haible  <bruno@clisp.org>
67748
67749         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67750         it.
67751
67752 2006-10-19  Bruno Haible  <bruno@clisp.org>
67753
67754         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67755         invocation.
67756
67757 2006-10-19  Bruno Haible  <bruno@clisp.org>
67758
67759         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67760         mountlist by default.
67761
67762 2006-10-16  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/c-strstr.c: Include c-strstr.h.
67765
67766 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67767
67768         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67769         in a slash.
67770
67771 2006-10-18  Bruno Haible  <bruno@clisp.org>
67772
67773         * lib/lock.h [C++]: Wrap definitions in extern "C".
67774
67775 2006-10-18  Bruno Haible  <bruno@clisp.org>
67776
67777         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67778         gl_LIBOBJS list.
67779
67780 2006-10-18  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67783
67784 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         * lib/xstrtol.h: Include gettext.h.
67787         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67788         Problem reported by Eric Blake.
67789         * modules/xstrtol (Depends-on): Add gettext-h.
67790
67791 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67792
67793         * lib/strftime.c (advance): New macro.
67794         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67795         incomplete type, so you can't add 0 to it.  Problem and patch
67796         reported by Eelco Dolstra for dietlibc.
67797
67798 2006-10-18  Jim Meyering  <jim@meyering.net>
67799
67800         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67801         type for a local, and rename it: s/up/user_proc/.
67802
67803 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67804
67805         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67806         READ_UTMP_USER_PROCESS.
67807         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67808
67809 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67812         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67813
67814 2006-10-17  Eric Blake  <ebb9@byu.net>
67815
67816         * lib/sigprocmask.c (sigprocmask): Fix typo.
67817
67818         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67819
67820         * modules/clean-temp (Makefile.am): Don't add to make output...
67821         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67822         config.h.
67823
67824 2006-10-17  Bruno Haible  <bruno@clisp.org>
67825
67826         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67827         differently if DEFAULT_TEXT_DOMAIN is set.
67828
67829 2006-10-16  Bruno Haible  <bruno@clisp.org>
67830
67831         * lib/clean-temp.c: Include fwriteerror.h.
67832
67833 2006-10-16  Bruno Haible  <bruno@clisp.org>
67834
67835         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67836
67837 2006-10-16  Bruno Haible  <bruno@clisp.org>
67838
67839         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67840         * lib/sigprocmask.h: Include <sys/types.h>.
67841         (sigset_t): Use the system's definition if present.
67842
67843 2006-10-17  Eric Blake  <ebb9@byu.net>
67844
67845         * lib/xvasprintf.c (includes): Assume config.h.
67846         * lib/xasprintf.c (includes): Likewise.
67847
67848 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67851         at least as wide as intmax_t.
67852
67853 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67854
67855         (Imported from Automake.)
67856         * build-aux/gnupload: Update to version 1.1 of directive file.
67857
67858 2006-10-16  Eric Blake  <ebb9@byu.net>
67859
67860         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67861         match Automake 1.10a.
67862
67863 2006-10-14  Bruno Haible  <bruno@clisp.org>
67864
67865         * modules/sigprocmask: New file.
67866         * lib/sigprocmask.h: New file.
67867         * lib/sigprocmask.c: New file.
67868         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67869         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67870         request sigprocmask.o.
67871         (gl_PREREQ_SIGPROCMASK): New macro.
67872         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67873         (Depends-on): Add sigprocmask.
67874         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67875         gt_SIGNALBLOCKING. Test for 'raise' only once.
67876         * lib/fatal-signal.c: Include sigprocmask.h.
67877         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67878         unblock_fatal_signals): Define always.
67879         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67880         sigprocmask.
67881
67882 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67883
67884         Sync from Automake.
67885         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67886         which incorrectly sets the mode of an existing destination
67887         directory.  In some cases the unpatched install-sh could do the
67888         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67889         system.  We hope this is rare in practice, but it's clearly worth
67890         fixing.  Problem reported by Alex Unleashed in
67891         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67892         Also, don't bother to check for -m bugs unless we're using -m;
67893         suggested by Stepan Kasal.
67894
67895 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67896
67897         Sync from Automake.
67898         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67899         `-c' flag, so they appear at the same position as in %FASTDEP%
67900         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67901         which ignores unknown options only after the first non-option.
67902         Bug report against M4 by Nelson H. F. Beebe.
67903
67904 2006-10-13  Jim Meyering  <jim@meyering.net>
67905
67906         Fix a bug in yesterday's change.
67907         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67908         p->fts_statp->st_dev would be used uninitialized.
67909         Ensures that we always call fts_stat on the very first entry.
67910         Miklos Szeredi reported that find -xdev stopped working.
67911
67912 2006-10-12  Bruno Haible  <bruno@clisp.org>
67913
67914         * gnulib-tool (func_get_automake_snippet): Append an automatically
67915         computed EXTRA_DIST augmentation.
67916         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67917         * modules/alloca-opt (Makefile.am): Likewise.
67918         * modules/allocsa (Makefile.am): Likewise.
67919         * modules/arcfour (Makefile.am): Likewise.
67920         * modules/arctwo (Makefile.am): Likewise.
67921         * modules/argmatch (Makefile.am): Likewise.
67922         * modules/argz (Makefile.am): Likewise.
67923         * modules/atexit (Makefile.am): Likewise.
67924         * modules/backupfile (Makefile.am): Likewise.
67925         * modules/byteswap (Makefile.am): Likewise.
67926         * modules/c-strtod (Makefile.am): Likewise.
67927         * modules/c-strtold (Makefile.am): Likewise.
67928         * modules/calloc (Makefile.am): Likewise.
67929         * modules/canon-host (Makefile.am): Likewise.
67930         * modules/canonicalize (Makefile.am): Likewise.
67931         * modules/chdir-long (Makefile.am): Likewise.
67932         * modules/chdir-safer (Makefile.am): Likewise.
67933         * modules/check-version (Makefile.am): Likewise.
67934         * modules/chown (Makefile.am): Likewise.
67935         * modules/cloexec (Makefile.am): Likewise.
67936         * modules/close-stream (Makefile.am): Likewise.
67937         * modules/closeout (Makefile.am): Likewise.
67938         * modules/crc (Makefile.am): Likewise.
67939         * modules/csharpexec (Makefile.am): Likewise.
67940         * modules/cycle-check (Makefile.am): Likewise.
67941         * modules/des (Makefile.am): Likewise.
67942         * modules/dev-ino (Makefile.am): Likewise.
67943         * modules/dirfd (Makefile.am): Likewise.
67944         * modules/dirname (Makefile.am): Likewise.
67945         * modules/dup2 (Makefile.am): Likewise.
67946         * modules/eealloc (Makefile.am): Likewise.
67947         * modules/error (Makefile.am): Likewise.
67948         * modules/euidaccess (Makefile.am): Likewise.
67949         * modules/exclude (Makefile.am): Likewise.
67950         * modules/exitfail (Makefile.am): Likewise.
67951         * modules/fcntl-safer (Makefile.am): Likewise.
67952         * modules/fcntl (Makefile.am): Likewise.
67953         * modules/file-type (Makefile.am): Likewise.
67954         * modules/fileblocks (Makefile.am): Likewise.
67955         * modules/filemode (Makefile.am): Likewise.
67956         * modules/filenamecat (Makefile.am): Likewise.
67957         * modules/fnmatch (Makefile.am): Likewise.
67958         * modules/fopen-safer (Makefile.am): Likewise.
67959         * modules/fpending (Makefile.am): Likewise.
67960         * modules/fprintftime (Makefile.am): Likewise.
67961         * modules/free (Makefile.am): Likewise.
67962         * modules/fsusage (Makefile.am): Likewise.
67963         * modules/ftruncate (Makefile.am): Likewise.
67964         * modules/fts (Makefile.am): Likewise.
67965         * modules/gc-arcfour (Makefile.am): Likewise.
67966         * modules/gc-des (Makefile.am): Likewise.
67967         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67968         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67969         * modules/gc-md4 (Makefile.am): Likewise.
67970         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67971         * modules/gc-sha1 (Makefile.am): Likewise.
67972         * modules/gc (Makefile.am): Likewise.
67973         * modules/getaddrinfo (Makefile.am): Likewise.
67974         * modules/getcwd (Makefile.am): Likewise.
67975         * modules/getdelim (Makefile.am): Likewise.
67976         * modules/getdomainname (Makefile.am): Likewise.
67977         * modules/getgroups (Makefile.am): Likewise.
67978         * modules/gethostname (Makefile.am): Likewise.
67979         * modules/gethrxtime (Makefile.am): Likewise.
67980         * modules/getline (Makefile.am): Likewise.
67981         * modules/getloadavg (Makefile.am): Likewise.
67982         * modules/getlogin_r (Makefile.am): Likewise.
67983         * modules/getndelim2 (Makefile.am): Likewise.
67984         * modules/getopt (Makefile.am): Likewise.
67985         * modules/getpagesize (Makefile.am): Likewise.
67986         * modules/getpass-gnu (Makefile.am): Likewise.
67987         * modules/getpass (Makefile.am): Likewise.
67988         * modules/getsubopt (Makefile.am): Likewise.
67989         * modules/gettime (Makefile.am): Likewise.
67990         * modules/gettimeofday (Makefile.am): Likewise.
67991         * modules/getugroups (Makefile.am): Likewise.
67992         * modules/getusershell (Makefile.am): Likewise.
67993         * modules/glob (Makefile.am): Likewise.
67994         * modules/group-member (Makefile.am): Likewise.
67995         * modules/hard-locale (Makefile.am): Likewise.
67996         * modules/hash (Makefile.am): Likewise.
67997         * modules/hmac-md5 (Makefile.am): Likewise.
67998         * modules/hmac-sha1 (Makefile.am): Likewise.
67999         * modules/human (Makefile.am): Likewise.
68000         * modules/idcache (Makefile.am): Likewise.
68001         * modules/imaxabs (Makefile.am): Likewise.
68002         * modules/imaxdiv (Makefile.am): Likewise.
68003         * modules/inet_ntop (Makefile.am): Likewise.
68004         * modules/inet_pton (Makefile.am): Likewise.
68005         * modules/intprops (Makefile.am): Likewise.
68006         * modules/inttostr (Makefile.am): Likewise.
68007         * modules/inttypes (Makefile.am): Likewise.
68008         * modules/isapipe (Makefile.am): Likewise.
68009         * modules/javaversion (Makefile.am): Likewise.
68010         * modules/lchmod (Makefile.am): Likewise.
68011         * modules/lchown (Makefile.am): Likewise.
68012         * modules/localcharset (Makefile.am): Likewise.
68013         * modules/long-options (Makefile.am): Likewise.
68014         * modules/lstat (Makefile.am): Likewise.
68015         * modules/malloc (Makefile.am): Likewise.
68016         * modules/mathl (Makefile.am): Likewise.
68017         * modules/mbchar (Makefile.am): Likewise.
68018         * modules/md2 (Makefile.am): Likewise.
68019         * modules/md4 (Makefile.am): Likewise.
68020         * modules/md5 (Makefile.am): Likewise.
68021         * modules/memcasecmp (Makefile.am): Likewise.
68022         * modules/memchr (Makefile.am): Likewise.
68023         * modules/memcmp (Makefile.am): Likewise.
68024         * modules/memcoll (Makefile.am): Likewise.
68025         * modules/memcpy (Makefile.am): Likewise.
68026         * modules/memmem (Makefile.am): Likewise.
68027         * modules/memmove (Makefile.am): Likewise.
68028         * modules/mempcpy (Makefile.am): Likewise.
68029         * modules/memrchr (Makefile.am): Likewise.
68030         * modules/memset (Makefile.am): Likewise.
68031         * modules/memxor (Makefile.am): Likewise.
68032         * modules/mkancesdirs (Makefile.am): Likewise.
68033         * modules/mkdir-p (Makefile.am): Likewise.
68034         * modules/mkdir (Makefile.am): Likewise.
68035         * modules/mkdtemp (Makefile.am): Likewise.
68036         * modules/mkstemp (Makefile.am): Likewise.
68037         * modules/mktime (Makefile.am): Likewise.
68038         * modules/modechange (Makefile.am): Likewise.
68039         * modules/mountlist (Makefile.am): Likewise.
68040         * modules/nanosleep (Makefile.am): Likewise.
68041         * modules/obstack (Makefile.am): Likewise.
68042         * modules/openat (Makefile.am): Likewise.
68043         * modules/pagealign_alloc (Makefile.am): Likewise.
68044         * modules/pathmax (Makefile.am): Likewise.
68045         * modules/physmem (Makefile.am): Likewise.
68046         * modules/poll (Makefile.am): Likewise.
68047         * modules/posixtm (Makefile.am): Likewise.
68048         * modules/posixver (Makefile.am): Likewise.
68049         * modules/putenv (Makefile.am): Likewise.
68050         * modules/quote (Makefile.am): Likewise.
68051         * modules/quotearg (Makefile.am): Likewise.
68052         * modules/raise (Makefile.am): Likewise.
68053         * modules/read-file (Makefile.am): Likewise.
68054         * modules/readline (Makefile.am): Likewise.
68055         * modules/readlink (Makefile.am): Likewise.
68056         * modules/readtokens (Makefile.am): Likewise.
68057         * modules/readutmp (Makefile.am): Likewise.
68058         * modules/realloc (Makefile.am): Likewise.
68059         * modules/regex (Makefile.am): Likewise.
68060         * modules/rename-dest-slash (Makefile.am): Likewise.
68061         * modules/rename (Makefile.am): Likewise.
68062         * modules/rijndael (Makefile.am): Likewise.
68063         * modules/rmdir (Makefile.am): Likewise.
68064         * modules/rpmatch (Makefile.am): Likewise.
68065         * modules/safe-read (Makefile.am): Likewise.
68066         * modules/safe-write (Makefile.am): Likewise.
68067         * modules/same-inode (Makefile.am): Likewise.
68068         * modules/same (Makefile.am): Likewise.
68069         * modules/save-cwd (Makefile.am): Likewise.
68070         * modules/savedir (Makefile.am): Likewise.
68071         * modules/setenv (Makefile.am): Likewise.
68072         * modules/settime (Makefile.am): Likewise.
68073         * modules/sha1 (Makefile.am): Likewise.
68074         * modules/sig2str (Makefile.am): Likewise.
68075         * modules/snprintf (Makefile.am): Likewise.
68076         * modules/stat-macros (Makefile.am): Likewise.
68077         * modules/stat-time (Makefile.am): Likewise.
68078         * modules/stdbool (Makefile.am): Likewise.
68079         * modules/stdint (Makefile.am): Likewise.
68080         * modules/stdlib-safer (Makefile.am): Likewise.
68081         * modules/stpcpy (Makefile.am): Likewise.
68082         * modules/stpncpy (Makefile.am): Likewise.
68083         * modules/strcase (Makefile.am): Likewise.
68084         * modules/strcasestr (Makefile.am): Likewise.
68085         * modules/strchrnul (Makefile.am): Likewise.
68086         * modules/strcspn (Makefile.am): Likewise.
68087         * modules/strdup (Makefile.am): Likewise.
68088         * modules/strerror (Makefile.am): Likewise.
68089         * modules/strftime (Makefile.am): Likewise.
68090         * modules/strndup (Makefile.am): Likewise.
68091         * modules/strnlen (Makefile.am): Likewise.
68092         * modules/strpbrk (Makefile.am): Likewise.
68093         * modules/strsep (Makefile.am): Likewise.
68094         * modules/strstr (Makefile.am): Likewise.
68095         * modules/strtod (Makefile.am): Likewise.
68096         * modules/strtoimax (Makefile.am): Likewise.
68097         * modules/strtok_r (Makefile.am): Likewise.
68098         * modules/strtol (Makefile.am): Likewise.
68099         * modules/strtoll (Makefile.am): Likewise.
68100         * modules/strtoul (Makefile.am): Likewise.
68101         * modules/strtoull (Makefile.am): Likewise.
68102         * modules/strtoumax (Makefile.am): Likewise.
68103         * modules/strverscmp (Makefile.am): Likewise.
68104         * modules/sys_socket (Makefile.am): Likewise.
68105         * modules/sys_stat (Makefile.am): Likewise.
68106         * modules/sysexits (Makefile.am): Likewise.
68107         * modules/time_r (Makefile.am): Likewise.
68108         * modules/timegm (Makefile.am): Likewise.
68109         * modules/timespec (Makefile.am): Likewise.
68110         * modules/tmpfile-safer (Makefile.am): Likewise.
68111         * modules/trim (Makefile.am): Likewise.
68112         * modules/unistd-safer (Makefile.am): Likewise.
68113         * modules/unlinkdir (Makefile.am): Likewise.
68114         * modules/unlocked-io (Makefile.am): Likewise.
68115         * modules/userspec (Makefile.am): Likewise.
68116         * modules/utime (Makefile.am): Likewise.
68117         * modules/utimecmp (Makefile.am): Likewise.
68118         * modules/utimens (Makefile.am): Likewise.
68119         * modules/vasnprintf (Makefile.am): Likewise.
68120         * modules/vasprintf (Makefile.am): Likewise.
68121         * modules/vsnprintf (Makefile.am): Likewise.
68122         * modules/xalloc (Makefile.am): Likewise.
68123         * modules/xgetcwd (Makefile.am): Likewise.
68124         * modules/xnanosleep (Makefile.am): Likewise.
68125         * modules/xreadlink (Makefile.am): Likewise.
68126         * modules/xstrtod (Makefile.am): Likewise.
68127         * modules/xstrtol (Makefile.am): Likewise.
68128         * modules/xstrtold (Makefile.am): Likewise.
68129         * modules/yesno (Makefile.am): Likewise.
68130         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68131
68132 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * modules/error (Makefile.am): Distribute files through
68135         EXTRA_DIST, not lib_SOURCES.
68136
68137 2006-10-12  Eric Blake  <ebb9@byu.net>
68138
68139         * modules/error (Makefile.am): Distribute files in /lib.
68140         * modules/obstack (Makefile.am): Likewise.
68141
68142 2006-10-12  Bruno Haible  <bruno@clisp.org>
68143
68144         * modules/acl (Makefile.am): Distribute all files in lib/ through
68145         EXTRA_DIST.
68146         * modules/arcfour (Makefile.am): Likewise.
68147         * modules/arctwo (Makefile.am): Likewise.
68148         * modules/argmatch (Makefile.am): Likewise.
68149         * modules/argz (Makefile.am): Likewise.
68150         * modules/atexit (Makefile.am): Likewise.
68151         * modules/backupfile (Makefile.am): Likewise.
68152         * modules/c-strtod (Makefile.am): Likewise.
68153         * modules/c-strtold (Makefile.am): Likewise.
68154         * modules/calloc (Makefile.am): Likewise.
68155         * modules/canon-host (Makefile.am): Likewise.
68156         * modules/canonicalize (Makefile.am): Likewise.
68157         * modules/chdir-long (Makefile.am): Likewise.
68158         * modules/chdir-safer (Makefile.am): Likewise.
68159         * modules/check-version (Makefile.am): Likewise.
68160         * modules/chown (Makefile.am): Likewise.
68161         * modules/cloexec (Makefile.am): Likewise.
68162         * modules/close-stream (Makefile.am): Likewise.
68163         * modules/closeout (Makefile.am): Likewise.
68164         * modules/crc (Makefile.am): Likewise.
68165         * modules/cycle-check (Makefile.am): Likewise.
68166         * modules/des (Makefile.am): Likewise.
68167         * modules/dirfd (Makefile.am): Likewise.
68168         * modules/dirname (Makefile.am): Likewise.
68169         * modules/dup2 (Makefile.am): Likewise.
68170         * modules/euidaccess (Makefile.am): Likewise.
68171         * modules/exclude (Makefile.am): Likewise.
68172         * modules/exitfail (Makefile.am): Likewise.
68173         * modules/fcntl-safer (Makefile.am): Likewise.
68174         * modules/file-type (Makefile.am): Likewise.
68175         * modules/fileblocks (Makefile.am): Likewise.
68176         * modules/filemode (Makefile.am): Likewise.
68177         * modules/filenamecat (Makefile.am): Likewise.
68178         * modules/fnmatch (Makefile.am): Likewise.
68179         * modules/fopen-safer (Makefile.am): Likewise.
68180         * modules/fpending (Makefile.am): Likewise.
68181         * modules/fprintftime (Makefile.am): Likewise.
68182         * modules/free (Makefile.am): Likewise.
68183         * modules/fsusage (Makefile.am): Likewise.
68184         * modules/ftruncate (Makefile.am): Likewise.
68185         * modules/fts (Makefile.am): Likewise.
68186         * modules/gc (Makefile.am): Likewise.
68187         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68188         * modules/getaddrinfo (Makefile.am): Likewise.
68189         * modules/getcwd (Makefile.am): Likewise.
68190         * modules/getdelim (Makefile.am): Likewise.
68191         * modules/getdomainname (Makefile.am): Likewise.
68192         * modules/getgroups (Makefile.am): Likewise.
68193         * modules/gethostname (Makefile.am): Likewise.
68194         * modules/gethrxtime (Makefile.am): Likewise.
68195         * modules/getline (Makefile.am): Likewise.
68196         * modules/getloadavg (Makefile.am): Likewise.
68197         * modules/getlogin_r (Makefile.am): Likewise.
68198         * modules/getopt (Makefile.am): Likewise.
68199         * modules/getpass (Makefile.am): Likewise.
68200         * modules/getpass-gnu (Makefile.am): Likewise.
68201         * modules/getsubopt (Makefile.am): Likewise.
68202         * modules/gettime (Makefile.am): Likewise.
68203         * modules/gettimeofday (Makefile.am): Likewise.
68204         * modules/getugroups (Makefile.am): Likewise.
68205         * modules/getusershell (Makefile.am): Likewise.
68206         * modules/glob (Makefile.am): Likewise.
68207         * modules/group-member (Makefile.am): Likewise.
68208         * modules/hard-locale (Makefile.am): Likewise.
68209         * modules/hash (Makefile.am): Likewise.
68210         * modules/hmac-md5 (Makefile.am): Likewise.
68211         * modules/hmac-sha1 (Makefile.am): Likewise.
68212         * modules/human (Makefile.am): Likewise.
68213         * modules/idcache (Makefile.am): Likewise.
68214         * modules/imaxabs (Makefile.am): Likewise.
68215         * modules/imaxdiv (Makefile.am): Likewise.
68216         * modules/inet_ntop (Makefile.am): Likewise.
68217         * modules/inet_pton (Makefile.am): Likewise.
68218         * modules/inttostr (Makefile.am): Likewise.
68219         * modules/isapipe (Makefile.am): Likewise.
68220         * modules/lchown (Makefile.am): Likewise.
68221         * modules/long-options (Makefile.am): Likewise.
68222         * modules/lstat (Makefile.am): Likewise.
68223         * modules/malloc (Makefile.am): Likewise.
68224         * modules/mathl (Makefile.am): Likewise.
68225         * modules/mbchar (Makefile.am): Likewise.
68226         * modules/md2 (Makefile.am): Likewise.
68227         * modules/md4 (Makefile.am): Likewise.
68228         * modules/md5 (Makefile.am): Likewise.
68229         * modules/memcasecmp (Makefile.am): Likewise.
68230         * modules/memchr (Makefile.am): Likewise.
68231         * modules/memcmp (Makefile.am): Likewise.
68232         * modules/memcoll (Makefile.am): Likewise.
68233         * modules/memcpy (Makefile.am): Likewise.
68234         * modules/memmem (Makefile.am): Likewise.
68235         * modules/memmove (Makefile.am): Likewise.
68236         * modules/mempcpy (Makefile.am): Likewise.
68237         * modules/memrchr (Makefile.am): Likewise.
68238         * modules/memset (Makefile.am): Likewise.
68239         * modules/memxor (Makefile.am): Likewise.
68240         * modules/mkancesdirs (Makefile.am): Likewise.
68241         * modules/mkdir (Makefile.am): Likewise.
68242         * modules/mkdir-p (Makefile.am): Likewise.
68243         * modules/mkdtemp (Makefile.am): Likewise.
68244         * modules/mkstemp (Makefile.am): Likewise.
68245         * modules/mktime (Makefile.am): Likewise.
68246         * modules/modechange (Makefile.am): Likewise.
68247         * modules/mountlist (Makefile.am): Likewise.
68248         * modules/nanosleep (Makefile.am): Likewise.
68249         * modules/openat (Makefile.am): Likewise.
68250         * modules/pagealign_alloc (Makefile.am): Likewise.
68251         * modules/physmem (Makefile.am): Likewise.
68252         * modules/poll (Makefile.am): Likewise.
68253         * modules/posixtm (Makefile.am): Likewise.
68254         * modules/posixver (Makefile.am): Likewise.
68255         * modules/putenv (Makefile.am): Likewise.
68256         * modules/quote (Makefile.am): Likewise.
68257         * modules/quotearg (Makefile.am): Likewise.
68258         * modules/raise (Makefile.am): Likewise.
68259         * modules/read-file (Makefile.am): Likewise.
68260         * modules/readline (Makefile.am): Likewise.
68261         * modules/readlink (Makefile.am): Likewise.
68262         * modules/readtokens (Makefile.am): Likewise.
68263         * modules/readutmp (Makefile.am): Likewise.
68264         * modules/realloc (Makefile.am): Likewise.
68265         * modules/regex (Makefile.am): Likewise.
68266         * modules/rename (Makefile.am): Likewise.
68267         * modules/rename-dest-slash (Makefile.am): Likewise.
68268         * modules/rijndael (Makefile.am): Likewise.
68269         * modules/rmdir (Makefile.am): Likewise.
68270         * modules/rpmatch (Makefile.am): Likewise.
68271         * modules/safe-read (Makefile.am): Likewise.
68272         * modules/safe-write (Makefile.am): Likewise.
68273         * modules/same (Makefile.am): Likewise.
68274         * modules/save-cwd (Makefile.am): Likewise.
68275         * modules/savedir (Makefile.am): Likewise.
68276         * modules/setenv (Makefile.am): Likewise.
68277         * modules/settime (Makefile.am): Likewise.
68278         * modules/sha1 (Makefile.am): Likewise.
68279         * modules/sig2str (Makefile.am): Likewise.
68280         * modules/snprintf (Makefile.am): Likewise.
68281         * modules/stdlib-safer (Makefile.am): Likewise.
68282         * modules/stpcpy (Makefile.am): Likewise.
68283         * modules/stpncpy (Makefile.am): Likewise.
68284         * modules/strcase (Makefile.am): Likewise.
68285         * modules/strcasestr (Makefile.am): Likewise.
68286         * modules/strchrnul (Makefile.am): Likewise.
68287         * modules/strcspn (Makefile.am): Likewise.
68288         * modules/strdup (Makefile.am): Likewise.
68289         * modules/strerror (Makefile.am): Likewise.
68290         * modules/strftime (Makefile.am): Likewise.
68291         * modules/strndup (Makefile.am): Likewise.
68292         * modules/strnlen (Makefile.am): Likewise.
68293         * modules/strpbrk (Makefile.am): Likewise.
68294         * modules/strsep (Makefile.am): Likewise.
68295         * modules/strstr (Makefile.am): Likewise.
68296         * modules/strtod (Makefile.am): Likewise.
68297         * modules/strtoimax (Makefile.am): Likewise.
68298         * modules/strtok_r (Makefile.am): Likewise.
68299         * modules/strtol (Makefile.am): Likewise.
68300         * modules/strtoll (Makefile.am): Likewise.
68301         * modules/strtoul (Makefile.am): Likewise.
68302         * modules/strtoull (Makefile.am): Likewise.
68303         * modules/strtoumax (Makefile.am): Likewise.
68304         * modules/strverscmp (Makefile.am): Likewise.
68305         * modules/time_r (Makefile.am): Likewise.
68306         * modules/timegm (Makefile.am): Likewise.
68307         * modules/tmpfile-safer (Makefile.am): Likewise.
68308         * modules/unistd-safer (Makefile.am): Likewise.
68309         * modules/unlinkdir (Makefile.am): Likewise.
68310         * modules/userspec (Makefile.am): Likewise.
68311         * modules/utime (Makefile.am): Likewise.
68312         * modules/utimecmp (Makefile.am): Likewise.
68313         * modules/utimens (Makefile.am): Likewise.
68314         * modules/vasnprintf (Makefile.am): Likewise.
68315         * modules/vasprintf (Makefile.am): Likewise.
68316         * modules/vsnprintf (Makefile.am): Likewise.
68317         * modules/xalloc (Makefile.am): Likewise.
68318         * modules/xgetcwd (Makefile.am): Likewise.
68319         * modules/xnanosleep (Makefile.am): Likewise.
68320         * modules/xreadlink (Makefile.am): Likewise.
68321         * modules/xstrtod (Makefile.am): Likewise.
68322         * modules/xstrtol (Makefile.am): Likewise.
68323         * modules/xstrtold (Makefile.am): Likewise.
68324         * modules/yesno (Makefile.am): Likewise.
68325
68326 2006-10-12  Jim Meyering  <jim@meyering.net>
68327
68328         * m4/getloadavg.m4: Revert the change below.
68329
68330         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68331         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68332         fail with a symlink, which is what coreutils' ./bootstrap now
68333         creates by default.
68334
68335 2006-10-12  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68338         mingw.
68339         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68340         MSVC and mingw explicitly.
68341
68342 2006-10-11  Simon Josefsson  <jas@extundo.com>
68343             Bruno Haible  <bruno@clisp.org>
68344
68345         Add support for multiple gnulib-tool invocations in the scope of a
68346         single configure.ac file.
68347         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68348         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68349         with the same contents as the _LIBADD variable.
68350         (func_emit_initmacro_start, func_emit_initmacro_end,
68351         func_emit_initmacro_done): New functions.
68352         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68353         gl_LIBOBJS and gl_LTLIBOBJS.
68354
68355 2006-10-11  Bruno Haible  <bruno@clisp.org>
68356
68357         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68358         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68359         autoreconf. Instead, invoke autopoint explicitly but move back the
68360         *.m4 files from gnulib.
68361
68362 2006-10-11  Bruno Haible  <bruno@clisp.org>
68363
68364         * gnulib-tool (func_usage): Make module names after --create-testdir
68365         optional.
68366         (func_create_testdir): If no module was specified, use nearly all
68367         modules.
68368
68369 2006-10-12  Jim Meyering  <jim@meyering.net>
68370
68371         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68372         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68373         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68374         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68375         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68376         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68377         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68378         (fts_set_stat_required): New function.
68379         (fts_open): Defer the calls to fts_stat, if possible or requested.
68380         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68381         into fts_stat itself.
68382         (fts_read): Perform any required (deferred) fts_stat call.
68383         (fts_build): Likewise, for the directory we're about to open and read.
68384         In the readdir loop, carefully decide whether each entry will require
68385         an eventual call to fts_stat, using dirent.d_type info if available.
68386         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68387         a command line argument into this function.  Update all callers.
68388         Map a return value of FTS_DOT to FTS_D for a command line argument.
68389         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68390         Thanks to Miklos Szeredi for his tenacity and for the initial
68391         bug report about "find" failing on a FUSE-based file system.
68392
68393         * lib/fts.c (fts_open): Use consistent indentation.
68394
68395 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68396
68397         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68398         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68399         reported by Jim Meyering.  All uses of cache variables renamed
68400         to match Autoconf's.
68401         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68402         the other one.
68403
68404         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68405         Fix misspelling in diagnostic.
68406
68407 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68410         defined.  Problem reported by Matthew Woehlke.
68411
68412         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68413         Add support for Tandem NonStop R series.
68414         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68415         Use new macro.
68416
68417         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68418         (has_trailing_slash): Omit size arg; all callers changed.
68419         Omit 'inline', since it doesn't help performance and we'd
68420         need to configure it.
68421         Don't count //, ///, etc. as having a trailing slash.
68422         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68423         (rpl_rename_dest_slash): On failure, use rename's errno rather
68424         than (in some cases) an incorrect or junk errno.
68425         Simplify code by removing need to compute length; this does
68426         cause it to make two passes instead of one over the file name,
68427         but it's worth it.
68428
68429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68430         change, since Autoconf's version may no longer be appropriate now
68431         that we are using CVS Autoconf's version.  Add support for Tandem.
68432
68433 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68434             Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68437         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68438         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68439         gl_AC_TYPE_LONG_LONG.
68440
68441         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68442         instead of HAVE_LONG_LONG.
68443         * lib/printf-args.c (printf_fetchargs): Likewise.
68444         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68445         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68446         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68447         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68448         gl_AC_TYPE_LONG_LONG.
68449
68450 2006-10-11  Bruno Haible  <bruno@clisp.org>
68451
68452         * m4/longlong.m4: Add comments.
68453         * m4/ulonglong.m4: Likewise.
68454
68455 2006-10-10  Bruno Haible  <bruno@clisp.org>
68456
68457         Make it possible to #define stpcpy, strdup to aliases.
68458         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68459         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68460
68461 2006-10-10  Bruno Haible  <bruno@clisp.org>
68462
68463         Make it possible to #define gcd to an alias.
68464         * lib/gcd.c: Include config.h.
68465
68466 2006-10-10  Bruno Haible  <bruno@clisp.org>
68467
68468         Make it possible to #define c_isascii to an alias.
68469         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68470         defined. Undefine the macros before defining them, to avoid gcc
68471         warnings.
68472         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68473         define NO_C_CTYPE_MACROS early.
68474
68475 2006-10-10  Bruno Haible  <bruno@clisp.org>
68476
68477         Make it possible to #define set_program_name to an alias.
68478         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68479         ENABLE_RELOCATABLE early.
68480
68481 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68482
68483         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68484         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68485         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68486         More generally, don't assume that 64-bit signed int is available
68487         if unsigned int is, and vice versa.
68488         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68489         unsigned symbols, not on their signed counterparts.
68490         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68491         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68492         (UINT64_C, UINTMAX_C):
68493         Likewise.
68494         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68495         unsigned counterparts.
68496         (Have_long_long, Unsigned): New macros.
68497         (Int): Renamed from INT.
68498         (strtoimax): Use the new macros.
68499         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68500         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68501         * modules/inttypes (inttypes.h): Substitute
68502         HAVE_UNSIGNED_LONG_LONG_INT.
68503         * modules/stdint (stdint.h): Likewise.
68504         (Files): Add m4/ulonglong.m4.
68505
68506 2006-10-10  Bruno Haible  <bruno@clisp.org>
68507
68508         Fix a gcc -Wshadow warning.
68509         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68510         to 'bucket'.
68511         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68512         gl_linked_indexof_from_to): Likewise.
68513         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68514         Likewise.
68515         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68516         Likewise.
68517         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68518         Reported by Eric Blake.
68519
68520 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68523         for NetBSD.  Problem reported by Bruno Haible.
68524
68525 2006-10-09  Jim Meyering  <jim@meyering.net>
68526
68527         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68528         Patch from Bruno Haible.
68529
68530 2006-10-09  Jim Meyering  <jim@meyering.net>
68531
68532         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68533         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68534         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68535
68536 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68537
68538         Don't include <config.h> twice; this doesn't work in some cases,
68539         e.g., when config.h has "#define intmax_t long long int" and
68540         we include <config.h>, <inttypes.h>, <config.h> in that order.
68541         Problem reported by Matthew Woehlke in:
68542         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68543         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68544         * lib/fts-cycle.c: Don't include config.h.
68545         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68546         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68547         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68548         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68549         inttypes.h.
68550         * lib/xstrtoumax.c: Likewise.
68551         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68552         __strtol and the like, so that this module is more like its siblings.
68553         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68554         Remove; no longer needed now that we assume gnulib inttypes.h.
68555
68556 2006-10-08  Bruno Haible  <bruno@clisp.org>
68557
68558         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68559         option.
68560
68561 2006-10-07  Jim Meyering  <jim@meyering.net>
68562
68563         * modules/inttypes (inttypes.h): Revert what seems to have been
68564         an inadvertent part of today's change: use "|", not "/" in the
68565         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68566
68567 2006-10-07  Bruno Haible  <bruno@clisp.org>
68568
68569         * modules/sublist: New file.
68570
68571 2006-10-07  Bruno Haible  <bruno@clisp.org>
68572
68573         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68574         * modules/argz (argz.h): Likewise.
68575         * modules/arpa_inet (arpa/inet.h): Likewise.
68576         * modules/byteswap (byteswap.h): Likewise.
68577         * modules/configmake (configmake.h): Likewise.
68578         * modules/fcntl (fcntl.h): Likewise.
68579         * modules/fnmatch (fnmatch.h): Likewise.
68580         * modules/getopt (getopt.h): Likewise.
68581         * modules/glob (glob.h): Likewise.
68582         * modules/inttypes (inttypes.h): Likewise.
68583         * modules/netinet_in (netinet/in.h): Likewise.
68584         * modules/poll (poll.h): Likewise.
68585         * modules/stdbool (stdbool.h): Likewise.
68586         * modules/stdint (stdint.h): Likewise.
68587         * modules/sys_select (sys/select.h): Likewise.
68588         * modules/sys_socket (sys/socket.h): Likewise.
68589         * modules/sys_stat (sys/stat.h): Likewise.
68590         * modules/sysexits (sysexits.h): Likewise.
68591         * modules/unistd (unistd.h): Likewise.
68592         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68593         Add a "DO NOT EDIT" comment to the generated file.
68594         (func_import): Likewise for gnulib-comp.m4.
68595
68596 2006-10-07  Bruno Haible  <bruno@clisp.org>
68597
68598         * lib/gl_sublist.h: New file.
68599         * lib/gl_sublist.c: New file.
68600
68601 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68602
68603         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68604         name (relative to the original working directory) and the file
68605         name component (relative to the temporary working directory).  All
68606         callers changed.
68607         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68608         * lib/mkdir-p.c (make_dir_parents): Likewise.
68609         * lib/mkdir-p.h (make_dir_parents): Likewise.
68610
68611 2006-10-06  Eric Blake  <ebb9@byu.net>
68612
68613         Define several macros for use by the clean-temp module.
68614         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68615         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68616         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68617
68618         * lib/clean-temp.h (close_stream_temp): New declaration.
68619         * lib/clean-temp.c (includes): Pull in headers according to what
68620         other modules are in use.
68621         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68622
68623 2006-10-06  Bruno Haible  <bruno@clisp.org>
68624
68625         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68626         instead of fopen, fwriteerror.
68627
68628 2006-10-06  Bruno Haible  <bruno@clisp.org>
68629
68630         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68631         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68632         int.
68633         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68634         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68635         Return an error indicator.
68636         Suggested by Eric Blake.
68637
68638 2006-10-06  Bruno Haible  <bruno@clisp.org>
68639
68640         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68641         Reported by Eric Blake.
68642
68643 2006-10-06  Bruno Haible  <bruno@clisp.org>
68644
68645         * modules/closeout (Description): Mention stderr too.
68646
68647 2006-10-06  Bruno Haible  <bruno@clisp.org>
68648         and Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * lib/closeout.c (close_stdout): Also close stderr.
68651         * lib/closeout.h: Update comment.
68652
68653 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68654
68655         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68656         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68657         * lib/dirchownmod.c: Include lchown.h.
68658         * lib/lchown.c: Don't include files that lchown.h now includes.
68659         Don't declare chown, since lchown.h now does that.
68660         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68661         (lchown): Define to rpl_chown if lchown is declared but
68662         does not exist.  Declare using a prototype if lchown is not
68663         declared.  Add a copyright notice.
68664         * lib/mkstemp.h: Include <unistd.h>.
68665         * lib/openat.c: Include lchown.h.
68666
68667         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68668         we now test for that separately.
68669         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68670         rather than O_NOFOLLOW, when testing whether it's possible to
68671         avoid a race condition reliably.
68672         * lib/savewd.c (savewd_chdir): Likewise.
68673
68674         Remove macros that are no longer needed now that stdint.h is
68675         reliable.
68676         * lib/fsusage.c (UINTMAX_MAX): Remove.
68677         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68678         * lib/utimecmp.c (SIZE_MAX): Remove.
68679
68680         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68681
68682         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68683         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68684         O_NOATIME works.
68685
68686 2006-10-05  Bruno Haible  <bruno@clisp.org>
68687
68688         * lib/gl_list.h (gl_sortedlist_search_from_to,
68689         gl_sortedlist_indexof_from_to): New declarations.
68690         (gl_list_implementation): New fields sortedlist_search_from_to,
68691         sortedlist_indexof_from_to.
68692         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68693         inline functions.
68694         * lib/gl_list.c (gl_sortedlist_search_from_to,
68695         gl_sortedlist_indexof_from_to): New functions.
68696         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68697         function.
68698         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68699         (gl_array_sortedlist_search_from_to): New function.
68700         (gl_array_list_implementation): Update.
68701         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68702         function.
68703         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68704         (gl_carray_sortedlist_search_from_to): New function.
68705         (gl_carray_list_implementation): Update.
68706         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68707         gl_linked_sortedlist_indexof_from_to): New functions.
68708         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68709         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68710         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68711         gl_tree_sortedlist_indexof_from_to): New functions.
68712         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68713         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68714         Update.
68715         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68716         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68717         Update.
68718
68719 2006-10-05  Bruno Haible  <bruno@clisp.org>
68720
68721         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68722         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68723         (struct gl_list_implementation): Add fields search_from_to,
68724         indexof_from_to. Remove fields search, indexof.
68725         (gl_list_search): Use the search_from_to method.
68726         (gl_list_search_from, gl_list_search_from_to): New functions.
68727         (gl_list_indexof): Use the indexof_from_to method.
68728         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68729         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68730         (gl_list_search_from, gl_list_search_from_to): New functions.
68731         (gl_list_indexof): Use the indexof_from_to method.
68732         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68733         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68734         gl_array_indexof. Add start_index, end_index arguments.
68735         (gl_array_search_from_to): Renamed from gl_array_search. Add
68736         start_index, end_index arguments.
68737         (gl_array_remove, gl_array_list_implementation): Update.
68738         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68739         gl_carray_indexof. Add start_index, end_index arguments.
68740         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68741         start_index, end_index arguments.
68742         (gl_carray_remove, gl_carray_list_implementation): Update.
68743         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68744         gl_linked_search. Add start_index, end_index arguments.
68745         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68746         start_index, end_index arguments.
68747         (gl_linked_remove): Update.
68748         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68749         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68750         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68751         field to 'size_t'.
68752         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68753         gl_tree_search. Add start_index, end_index arguments.
68754         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68755         start_index, end_index arguments.
68756         (gl_tree_remove): Update.
68757         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68758         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68759         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68760         function.
68761         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68762         gl_tree_search. Add start_index, end_index arguments.
68763         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68764         start_index, end_index arguments.
68765         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68766         Update.
68767         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68768
68769 2006-10-05  Bruno Haible  <bruno@clisp.org>
68770
68771         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68772
68773         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68774         fwriteerror_temp): New declarations.
68775         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68776         (descriptors): New variable.
68777         (cleanup): First, close the descriptors.
68778         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68779         fclose_temp, fwriteerror_temp): New functions.
68780
68781 2006-10-04  Jim Meyering  <jim@meyering.net>
68782
68783         * lib/fts.c (fts_open): Tiny comment change.
68784
68785 2006-10-04  Bruno Haible  <bruno@clisp.org>
68786
68787         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68788         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68789         gl_LOCK_BODY.
68790         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68791         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68792         gl_LOCK_EARLY_BODY.
68793         (gl_LOCK): Require gl_LOCK_BODY.
68794
68795 2006-10-04  Bruno Haible  <bruno@clisp.org>
68796
68797         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68798         (gl_oset_search_atleast): New declaration.
68799         (struct gl_oset_implementation): Add field 'search_atleast'.
68800         (gl_oset_search_atleast): New inline function.
68801         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68802         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68803         (gl_array_oset_implementation): Update.
68804         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68805         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68806         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68807
68808 2006-10-04  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68811
68812 2006-10-03  Bruno Haible  <bruno@clisp.org>
68813
68814         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68815         from gl_avltreehash_list_implementation.
68816
68817 2006-10-03  Bruno Haible  <bruno@clisp.org>
68818
68819         * lib/gl_oset.c (gl_oset_add): Fix return type.
68820
68821 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68822
68823         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68824
68825 2006-10-02  Eric Blake  <ebb9@byu.net>
68826
68827         * modules/strnlen (Depends-on): Add extensions.
68828
68829 2006-10-02  Eric Blake  <ebb9@byu.net>
68830
68831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68832         definition in 2.60+.
68833
68834 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68835
68836         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68837         checks.
68838
68839 2006-10-02  Bruno Haible  <bruno@clisp.org>
68840
68841         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68842         to the AUTOMAKE_OPTIONS.
68843         Reported by Jim Meyering.
68844
68845 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         Work around bug in Solaris 10 /proc file system:
68848         /proc/self/fd/NNN/.. isn't the parent directory of
68849         the directory whose file descriptor is NNN.  This needs to
68850         be worked around at run time, not compile time, since a
68851         program might be built on Solaris 8, where things work, and
68852         run on Solaris 10.
68853         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68854         to use the following interface instead:
68855         (OPENAT_BUFFER_SIZE): New macro.
68856         (openat_proc_name): New function.
68857         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68858         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68859         Likewise.
68860         * lib/openat-proc.c: New file.
68861         * modules/openat (Files): Add lib/openat-proc.c.
68862         (Depends-on): Add same-inode, stdbool.
68863         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68864
68865 2006-09-29  Bruno Haible  <bruno@clisp.org>
68866
68867         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68868         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68869         argument. Set stdout_closed before testing for ferror, not after.
68870         (fwriteerror, fwriteerror_no_ebadf): New functions.
68871
68872 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68873
68874         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68875
68876 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68877
68878         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68879         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68880
68881 2006-09-28  Jim Meyering  <jim@meyering.net>
68882
68883         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68884         Include <unistd.h>.
68885
68886 2006-09-28  Bruno Haible  <bruno@clisp.org>
68887
68888         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68889         * modules/linkedhash-list (Depends-on): Likewise.
68890         * modules/rbtreehash-list (Depends-on): Likewise.
68891
68892 2006-09-28  Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/strndup.h: Simplify the redefinition of strndup.
68895         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68896         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68897
68898 2006-09-28  Bruno Haible  <bruno@clisp.org>
68899
68900         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68901         * lib/gl_linkedhash_list.c: Likewise.
68902         * lib/gl_rbtreehash_list.c: Likewise.
68903
68904 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68907         getaddrinfo.
68908
68909         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68910         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68911         it causes <stdio_ext.h> to cause a compile-time error.
68912         Problem reported by Nelson H. F. Beebe.
68913         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68914         of HAVE_DECL___PENDING.
68915
68916         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68917         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68918         declaration.
68919
68920 2006-09-27  Jim Meyering  <jim@meyering.net>
68921
68922         This file could end up with a definition for a function
68923         named __strndup, rather than rpl_strndup on a system with
68924         incomplete weak_alias support.
68925         * lib/strndup.c (strndup): Rename from __strndup.
68926         Remove #defines that used to map __strndup to strndup.
68927         Don't use K&R prototypes.
68928         Remove LIBC-related code, since this file is not sync'd with glibc.
68929         * lib/strndup.h: Revamp, accordingly.
68930         * m4/strndup.m4: Modernize.
68931
68932 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * modules/savewd (Depends-on): Add 'raise'.
68935         * lib/savewd.c: Include <signal.h>, for 'raise'.
68936
68937 2006-09-26  Jim Meyering  <jim@meyering.net>
68938
68939         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68940         when we detect Darwin 8.7.0's acl_get_file bug.
68941         Rearrange to perform the new (below) run-test while $LIBS
68942         contains any acl-related library.  Set USE_ACL at the end.
68943         (gl_ACL_GET_FILE): New function.
68944
68945 2006-09-26  Eric Blake  <ebb9@byu.net>
68946
68947         * lib/verror.c: Include <config.h> unconditionally.
68948
68949 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * modules/clock-time (Maintainer): Add self.
68952         * modules/getlogin_r (Depends-on): Add extensions.
68953
68954 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68955
68956         * modules/clock-time: New module.
68957         * modules/nanosleep (Depends-on): Add clock-time.
68958         * modules/gethrxtime (Depends-on): Likewise.
68959         * modules/gettime (Depends-on): Likewise.
68960         * modules/settime (Depends-on): Likewise.
68961
68962         * modules/fts-lgpl: Depend on openat.
68963         * modules/mkancesdirs: Depend on savewd.
68964         * modules/mkdir-p: Likewise.
68965
68966 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68967
68968         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68969
68970         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68971         `gl_have_arbitrary_file_name_length_limit' to
68972         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68973         actually works between configure runs.
68974
68975 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68976             Bruno Haible  <bruno@clisp.org>
68977
68978         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68979
68980 2006-09-25  Jim Meyering  <jim@meyering.net>
68981
68982         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68983         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68984
68985 2006-09-25  Eric Blake  <ebb9@byu.net>
68986
68987         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68988         exec's in 2006-09-18 patch when shuffling fds.
68989
68990 2006-09-25  Bruno Haible  <bruno@clisp.org>
68991
68992         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68993         Reported by Jim Meyering.
68994
68995 2006-09-24  Jim Meyering  <jim@meyering.net>
68996
68997         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68998         compare a pointer against a literal "0".  That caused failures with
68999         at least HP-UX's hpcc.
69000
69001 2006-09-22  Simon Josefsson  <jas@extundo.com>
69002
69003         * modules/gc-sha1:
69004         * modules/gc-md4:
69005         * modules/gc-hmac-sha1:
69006         * modules/gc-hmac-md5:
69007         * modules/gc-des:
69008         * modules/gc-arcfour: Distribute more files.
69009
69010 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69011
69012         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69013         (gl_linked_iterator_from_to): Initialize struct completely.
69014         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69015         (gl_tree_iterator_from_to): Likewise
69016         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69017         * lib/gl_array_list.c [lint] (gl_array_iterator)
69018         (gl_array_iterator_from_to): Likewise.
69019         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69020         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69021         (gl_carray_iterator_from_to): Likewise.
69022
69023         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69024         * lib/md4.c (md4_process_block): Remove unused variable.
69025         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69026         parentheses for clarity.
69027
69028 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69029
69030         * modules/bison-i18n (Depends-on): Add gettext.
69031
69032 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69033
69034         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69035         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69036         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69037         also add missing comma that caused broken test.
69038         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69039         stdlib.h, for `abort'.
69040         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69041         variables.
69042         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69043         include unistd.h if present, for `rmdir'.
69044         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69045         variables.
69046         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69047         in the process include standard headers for prototypes.
69048         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69049         gets declared on GNU/Linux.
69050         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69051         unistd.h, for `rmdir'.
69052         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69053
69054         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69055         always true.
69056         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69057
69058         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69059
69060 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69061
69062         * gnulib-tool (func_version): Create output all at once.  This
69063         may help avoid triggering unnecessary SIGPIPEs, and at any
69064         rate it doesn't hurt.
69065
69066 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69067             Bruno Haible  <bruno@clisp.org>
69068
69069         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69070         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69071         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69072
69073         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69074         (gl_FUNC_VASPRINTF): Invoke it.
69075
69076 2006-09-22  Bruno Haible  <bruno@clisp.org>
69077
69078         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69079         getloadavg.c as first argument.
69080
69081 2006-09-22  Bruno Haible  <bruno@clisp.org>
69082
69083         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69084         at the beginning of the gl_INIT macro.
69085         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69086         gl_GETLOADAVG.
69087
69088 2006-09-22  Bruno Haible  <bruno@clisp.org>
69089
69090         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69091         module.
69092         Suggested by Ralf Wildenhues.
69093
69094 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69095
69096         Import this patch from libc:
69097
69098         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69099
69100         * lib/regex_internal.c (re_string_reconstruct): Handle
69101         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69102         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69103         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69104         re_string_context_at.
69105
69106         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69107         now requires it.
69108         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69109         gl_REGEX now does it for us.
69110         (gl_REGEX): Add test taken from
69111         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69112
69113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69114         Check that large offsets work.  Modernize Autoconf usages.
69115         Prefer "yes" to mean a good thing rather than a bad.
69116         Don't put "#define mkstemp" in config.h, as this might interfere
69117         with standard system headers that "#define mkstemp mkstemp64".
69118
69119         * modules/mkstemp (Depends-on): Add extensions, so that
69120         mkstemp is visible on some platforms.
69121         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69122         (Include): Change to "mkstemp.h" from <stdlib.h>.
69123         (Files): Add mkstemp.h.
69124
69125         * lib/mkstemp.h: New file, since some standard headers
69126         #define mkstemp.
69127         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69128         Include "mkstemp.h".
69129         Make the _LIBC code resemble glibc original more,
69130         e.g., use K&R style.
69131         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69132         (mkstemp): Remove, since mkstemp.h does this for us.
69133         * lib/stdlib--.h: Include mkstemp.h.
69134
69135         Import this patch from libc:
69136
69137         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69138
69139         * lib/tempname.c (__gen_tempname): Change attempts_min
69140         into a macro.  Use preprocessor to decide how to initialize
69141         attempts [Coverity CID 67].
69142
69143 2006-09-20  Bruno Haible  <bruno@clisp.org>
69144
69145         * lib/mkdtemp.c: Import from libc.
69146         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69147                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69148                 attempts_min into a macro.  Use preprocessor to decide how to
69149                 initialize attempts [Coverity CID 67].
69150         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69151                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69152                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69153
69154 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69155
69156         * gnulib-tool (func_exit): New function, to allow to pass the
69157         exit status portably through the trap.  Use everywhere.
69158         (--help, --version): Signal a write error.
69159         (trap): catch SIGPIPE, for write errors.
69160         Exit at the end of the trap, with the correct exit status.
69161
69162 2006-09-19  Karl Berry  <karl@gnu.org>
69163
69164         * doc/gnulib.texi: note about the license texinfo files.
69165
69166 2006-09-19  Eric Blake  <ebb9@byu.net>
69167
69168         * gnulib-tool: Avoid space-tab.
69169
69170 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69171
69172         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69173         that prevented coreutils 6.1 from building.  Problem reported
69174         by Petter Reinholdtsen.
69175
69176 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * gnulib-tool (avoidlist): Fix typo that broke options like
69179         --avoid=lock that are used by coreutils bootstrap.
69180
69181 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69182
69183         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69184         more systematically.
69185
69186 2006-09-18  Jim Meyering  <jim@meyering.net>
69187
69188         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69189
69190 2006-09-18  Bruno Haible  <bruno@clisp.org>
69191
69192         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69193
69194 2006-09-18  Bruno Haible  <bruno@clisp.org>
69195
69196         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69197         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69198         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69199         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69200         * m4/gettext.m4: Require autoconf >= 2.52.
69201         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69202         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69203         of gl_cv_header_inttypes_h.
69204
69205 2006-09-18  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/javaversion.c: Include configmake.h.
69208
69209 2006-09-18  Bruno Haible  <bruno@clisp.org>
69210
69211         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69212         avoid that the while loops be executed in a subshell.
69213
69214 2006-09-18  Bruno Haible  <bruno@clisp.org>
69215
69216         * MODULES.html.sh (func_module): Break long lines.
69217         Suggested by Bruce Korb <bkorb@gnu.org>.
69218
69219 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69220
69221         Speed up by a factor of 1.12.
69222         * gnulib-tool (nl): New variable.
69223         (func_import): Rewrite include directive extraction to only read each
69224         directive once.
69225
69226 2006-09-17  Bruno Haible  <bruno@clisp.org>
69227
69228         * modules/javaversion (Makefile.am): Remove DEFS setting.
69229         (Depends-on): Add configmake, for PKGDATADIR definition.
69230
69231 2006-09-17  Bruno Haible  <bruno@clisp.org>
69232
69233         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69234
69235 2006-09-17  Bruno Haible  <bruno@clisp.org>
69236
69237         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69238         (func_modules_transitive_closure, func_modules_add_dummy,
69239         func_modules_to_filelist, func_import, func_create_testdir,
69240         func_create_megatestdir, ...): Use it wherever possible.
69241         Suggested by Ralf Wildenhues.
69242
69243 2006-09-16  Karl Berry  <karl@gnu.org>
69244
69245         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69246         to avoid sectioning errors.
69247         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69248         [ifinfo]: blank line after @center-ed titles.
69249         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69250         Spell FSF address consistently with others.
69251         (These changes approved by rms.)
69252
69253 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69254
69255         Speed up by a factor of 1.61.
69256         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69257         already checked module names again.
69258
69259 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69260
69261         Speed up by a factor of 1.13.
69262         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69263         for new_files, and the input to func_add_or_update.
69264
69265 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69266
69267         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69268         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69269
69270 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * modules/mkancesdirs (Depends-on): Add fcntl.
69273         * modules/savewd: New file.
69274         * MODULES.html.sh (File system functions): Add savewd.
69275
69276         * modules/configmake (Makefile.am): Add support for the
69277         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69278
69279 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69280
69281         * m4/savewd.m4: New file.
69282
69283 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69286         (dirchownmod): New arg FD.  All callers changed.
69287         Use FD rather than opening the directory ourself, as opening is
69288         now the caller's responsibility.
69289         * lib/dirchownmod.h: Likewise.
69290         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69291         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69292         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69293         (test_dir): Remove.
69294         (mkancesdirs): Return length of prefix of FILE that has already
69295         been made, or -2 if there is a child doing the work.  Redo
69296         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69297         ".", and treat ".." specially since it might stray back into
69298         already-created areas.  Use a subprocess if necessary.  New arg
69299         WD; all users changed.  MAKE_DIR function should now return 1
69300         if it creates a directory that is not readable.  Return -2 if
69301         a child process is spun off.
69302         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69303         Adjust signature to match code.
69304         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69305         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69306         all users changed.
69307         * lib/savewd.c, lib/savewd.h: New files.
69308
69309 2006-09-15  Jim Meyering  <jim@meyering.net>
69310
69311         * modules/rename-dest-slash: New module.
69312         * MODULES.html.sh (posix_compat): Add it here.
69313
69314         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69315
69316 2006-09-15  Jim Meyering  <jim@meyering.net>
69317
69318         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69319         file.
69320
69321         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69322
69323 2006-09-15  Jim Meyering  <jim@meyering.net>
69324
69325         * lib/rename-dest-slash.c (has_trailing_slash): Use
69326         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69327         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69328         test before testing whether SRC is a directory.
69329         Suggestions from Bruno Haible.
69330
69331         Avoid a warning about an unused variable.
69332         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69333         into the #ifdef block where it's used.
69334
69335         * lib/rename-dest-slash.c: New file.
69336
69337 2006-09-14  Bruno Haible  <bruno@clisp.org>
69338
69339         * lib/allocsa.c: Include <config.h> unconditionally.
69340         * lib/asnprintf.c: Likewise.
69341         * lib/asprintf.c: Likewise.
69342         * lib/c-strcasecmp.c: Likewise.
69343         * lib/c-strcasestr.c: Likewise.
69344         * lib/c-strncasecmp.c: Likewise.
69345         * lib/c-strstr.c: Likewise.
69346         * lib/classpath.c: Likewise.
69347         * lib/clean-temp.c: Likewise.
69348         * lib/concatpath.c: Likewise.
69349         * lib/copy-file.c: Likewise.
69350         * lib/csharpcomp.c: Likewise.
69351         * lib/csharpexec.c: Likewise.
69352         * lib/execute.c: Likewise.
69353         * lib/fatal-signal.c: Likewise.
69354         * lib/findprog.c: Likewise.
69355         * lib/fwriteerror.c: Likewise.
69356         * lib/gl_array_list.c: Likewise.
69357         * lib/gl_array_oset.c: Likewise.
69358         * lib/gl_avltree_list.c: Likewise.
69359         * lib/gl_avltree_oset.c: Likewise.
69360         * lib/gl_avltreehash_list.c: Likewise.
69361         * lib/gl_carray_list.c: Likewise.
69362         * lib/gl_linked_list.c: Likewise.
69363         * lib/gl_linkedhash_list.c: Likewise.
69364         * lib/gl_list.c: Likewise.
69365         * lib/gl_oset.c: Likewise.
69366         * lib/gl_rbtree_list.c: Likewise.
69367         * lib/gl_rbtree_oset.c: Likewise.
69368         * lib/gl_rbtreehash_list.c: Likewise.
69369         * lib/imaxabs.c: Likewise.
69370         * lib/imaxdiv.c: Likewise.
69371         * lib/javacomp.c: Likewise.
69372         * lib/javaexec.c: Likewise.
69373         * lib/javaversion.c: Likewise.
69374         * lib/linebreak.c: Likewise.
69375         * lib/localcharset.c: Likewise.
69376         * lib/lock.c: Likewise.
69377         * lib/mbchar.c: Likewise.
69378         * lib/mbswidth.c: Likewise.
69379         * lib/mkdtemp.c: Likewise.
69380         * lib/pipe.c: Likewise.
69381         * lib/printf-args.c: Likewise.
69382         * lib/printf-parse.c: Likewise.
69383         * lib/progname.c: Likewise.
69384         * lib/progreloc.c: Likewise.
69385         * lib/readlink.c: Likewise.
69386         * lib/sh-quote.c: Likewise.
69387         * lib/stpcpy.c: Likewise.
69388         * lib/stpncpy.c: Likewise.
69389         * lib/strcasecmp.c: Likewise.
69390         * lib/strcasestr.c: Likewise.
69391         * lib/strcspn.c: Likewise.
69392         * lib/striconv.c: Likewise.
69393         * lib/strncasecmp.c: Likewise.
69394         * lib/strnlen1.c: Likewise.
69395         * lib/strstr.c: Likewise.
69396         * lib/strtok_r.c: Likewise.
69397         * lib/tls.c: Likewise.
69398         * lib/tmpdir.c: Likewise.
69399         * lib/unicodeio.c: Likewise.
69400         * lib/unsetenv.c: Likewise.
69401         * lib/vasnprintf.c: Likewise.
69402         * lib/vasprintf.c: Likewise.
69403         * lib/wait-process.c: Likewise.
69404         * lib/xallocsa.c: Likewise.
69405         * lib/xsetenv.c: Likewise.
69406         * lib/xstriconv.c: Likewise.
69407
69408 2006-09-13  Simon Josefsson  <jas@extundo.com>
69409
69410         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69411         that internally, suggested by Ralf Wildenhues
69412         <Ralf.Wildenhues@gmx.de>.
69413
69414 2006-09-13  Simon Josefsson  <jas@extundo.com>
69415
69416         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69417         @LIBOBJS@.
69418         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69419
69420 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69421
69422         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69423         longer worry about uses that don't define HAVE_CONFIG_H.
69424         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69425         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69426         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69427         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69428         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69429         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69430         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69431         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69432         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69433         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69434         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69435         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69436         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69437         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69438         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69439         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69440         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69441         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69442         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69443         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69444         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69445         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69446         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69447         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69448         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69449         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69450         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69451         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69452         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69453         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69454         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69455         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69456         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69457         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69458         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69459         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69460         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69461         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69462         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69463         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69464         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69465         Likewise.
69466
69467 2006-09-13  Eric Blake  <ebb9@byu.net>
69468
69469         * lib/getopt.c: Fix typo in last commit.
69470
69471 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69472
69473         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69474         dgettext.
69475
69476 2006-09-12  Jim Meyering  <jim@meyering.net>
69477
69478         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69479         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69480         Reported by Nelson H. F. Beebe.
69481
69482 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69483
69484         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69485         program_invocation_name and program_invocation_short_name are
69486         initialized.
69487         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69488         and program_invocation_short_name to argp.h, so they are visible
69489         to user programs.
69490         * lib/argp.h: Likewise
69491
69492 2006-09-10  Bruno Haible  <bruno@clisp.org>
69493
69494         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69495         m4/inttypes_h.m4, m4/uintmax_t.m4.
69496
69497 2006-09-10  Bruno Haible  <bruno@clisp.org>
69498
69499         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69500         gl_AC_TYPE_UINTMAX_T.
69501
69502 2006-09-10  Bruno Haible  <bruno@clisp.org>
69503
69504         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69505
69506 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69507
69508         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69509         convention.  Text proposed by Bruno Haible.
69510         (struct argp_option): Document the use of N_() wrappers.
69511
69512         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69513         '\v', and translate the two parts separately, instead of feeding
69514         the whole string to gettext.  This allows to exclude
69515         '\v' from the strings visible to the translator by writing doc
69516         strings as N_("..") "\v" N_("..").
69517
69518 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         * config/srclist.txt: Undo latest change; the bug was fixed.
69521
69522 2006-09-09  Bruno Haible  <bruno@clisp.org>
69523
69524         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69525         assignments if building a library without libtool.
69526         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69527         in func_emit_lib_Makefile_am.
69528         (func_import): When building a static library libfoo.a, arrange to
69529         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69530         (func_create_testdir): Likewise.
69531         * modules/gc (configure.ac, Makefile.am): If building statically,
69532         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69533         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69534         * modules/striconv (configure.ac, Makefile.am): Likewise.
69535         Based on a suggestion by Ralf Wildenhues.
69536
69537 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69540         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69541         Also:
69542
69543         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69544         Add year_2050_test to catch glibc bug 2821
69545         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69546
69547         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69548         Prefer #ifdef to #if.
69549
69550         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69551         Return from 'main' instead of calling 'exit'.
69552
69553 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69556         returned the maximum time_t value rather than (time_t) -1.
69557         Problem originally reported by William Bardwell
69558         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69559
69560         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69561         Moved to here ...
69562         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69563         ... from here.
69564
69565 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69566
69567         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69568         2821 is fixed.
69569
69570 2006-09-08  Jim Meyering  <jim@meyering.net>
69571
69572         Don't make generated files read-only.  That would bother too many
69573         people.  However, do retain the ability to work when targets are
69574         read-only: remove the destination and temporary files before writing
69575         them (when generated via sed or echo), or by using the -f option for
69576         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69577         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69578         * modules/byteswap, modules/configmake, modules/fcntl:
69579         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69580         * modules/localcharset, modules/netinet_in, modules/poll:
69581         * modules/stdbool, modules/stdint, modules/sys_select:
69582         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69583
69584 2006-09-08  Jim Meyering  <jim@meyering.net>
69585
69586         Avoid new build failure on FreeBSD 6.0.
69587         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69588         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69589         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69590
69591 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69592
69593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69594
69595 2006-09-07  Jim Meyering  <jim@meyering.net>
69596
69597         Fix global typo in last change: use chmod u-w, not chmod u-x.
69598         Spotted by Paul Eggert and Bruce Korb.
69599         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69600         * modules/byteswap, modules/configmake, modules/fcntl:
69601         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69602         * modules/localcharset, modules/netinet_in, modules/poll:
69603         * modules/stdbool, modules/stdint, modules/sys_select:
69604         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69605
69606 2006-09-06  Jim Meyering  <jim@meyering.net>
69607
69608         Make generated files be read-only.
69609         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69610         Ensure that each generated file is now read-only.
69611         * modules/argz: Likewise.
69612         * modules/arpa_inet: Likewise.
69613         * modules/byteswap: Likewise.
69614         * modules/configmake: Likewise.
69615         * modules/fcntl: Likewise.
69616         * modules/fnmatch: Likewise.
69617         * modules/getopt: Likewise.
69618         * modules/glob: Likewise.
69619         * modules/inttypes: Likewise.
69620         * modules/netinet_in: Likewise.
69621         * modules/poll: Likewise.
69622         * modules/stdbool: Likewise.
69623         * modules/stdint: Likewise.
69624         * modules/sys_select: Likewise.
69625         * modules/sys_socket: Likewise.
69626         * modules/sys_stat: Likewise.
69627         * modules/sysexits: Likewise.
69628         * modules/localcharset: Same as above, but continue using temporary
69629         file named "t-$@" (why different?) rather than the "$@-t" used
69630         everywhere else.
69631
69632         * modules/sysexits (Makefile.am): Replace literal occurrences
69633         of "sysexit.h" more readable, and more consistent, "$@".
69634
69635 2006-09-06  Bruno Haible  <bruno@clisp.org>
69636
69637         * modules/striconv: New file.
69638         * modules/xstriconv: New file.
69639         * MODULES.html.sh (Internationalization functions): Add striconv,
69640         xstriconv.
69641
69642 2006-09-06  Bruno Haible  <bruno@clisp.org>
69643
69644         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69645         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69646         not using libtool correctly.
69647
69648 2006-09-06  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/striconv.h: New file.
69651         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69652         iconvstring.c.
69653         * lib/xstriconv.h: New file.
69654         * lib/xstriconv.c: New file.
69655
69656 2006-09-06  Bruno Haible  <bruno@clisp.org>
69657
69658         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69659         lib_..._LDFLAGS.
69660
69661 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69662
69663         * lib/argz_.h: Sync from Libtool.
69664
69665         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69666                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69667
69668         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69669
69670 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69671
69672         * modules/trim: New file.
69673
69674 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69675
69676         * lib/trim.h: New file.
69677         * lib/trim.c: New file.
69678
69679 2006-09-05  Bruno Haible  <bruno@clisp.org>
69680
69681         * MODULES.html.sh (String handling): Add trim.
69682
69683 2006-09-04  Karl Berry  <karl@gnu.org>
69684
69685         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69686         until next release.
69687
69688 2006-09-03  Bruno Haible  <bruno@clisp.org>
69689
69690         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69691         correctly.
69692
69693 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69694
69695         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69696         not gl_GETLOADAVG.  Omit unneeded semicolons.
69697         Problems reported by Ralf Wildenhues in
69698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69699         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69700         at the end, which is the usual gnulib style.
69701
69702         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69703         of doing all the work ourselves.
69704         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69705         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69706
69707 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69710         Problem reported by Ralf Wildenhues in
69711         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69712
69713         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69714         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69715
69716 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69719         yesterday's patch by changing test -n to test -z.
69720
69721 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69724         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69725         the former is now obsolescent.
69726
69727         * modules/chdir-long (Depends-on): Add fcntl.
69728
69729 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69730
69731         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69732         obsolescent, and programs should use gnulib instead.
69733         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69734         but with prefixes changed.
69735
69736 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69739         or stdbool.h, because they might not exist while configuring.
69740
69741         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69742         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69743         does that for us.
69744         (O_DIRECTORY): Remove.
69745
69746 2006-08-31  Eric Blake  <ebb9@byu.net>
69747
69748         * gnulib-tool: Don't let emacs change spaces to TAB.
69749
69750 2006-08-31  Bruno Haible  <bruno@clisp.org>
69751
69752         * gnulib-tool: When calling func_import more than once, do it in a
69753         subshell.
69754         Reported by Eric Blake <ebb9@byu.net>.
69755
69756 2006-08-31  Bruno Haible  <bruno@clisp.org>
69757
69758         * gnulib-tool (nl): Remove variable.
69759         (sed_transform_lib_file): Use more robust test for config-h module.
69760         (func_import): Fix typo in 2006-08-25 patch.
69761
69762 2006-08-31  Bruno Haible  <bruno@clisp.org>
69763
69764         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69765         specified, augment Makefile.am variables instead of assigning them.
69766
69767 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69768
69769         Work around a bug in both the Linux and SunOS 64-bit kernels:
69770         nanosleep mishandles sleeps for longer than 2**31 seconds.
69771         Problem reported by Frank v Waveren in
69772         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69774         Check for nanosleep bug.
69775         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69776
69777 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69778
69779         Work around a bug in both the Linux and SunOS 64-bit kernels:
69780         nanosleep mishandles sleeps for longer than 2**31 seconds.
69781         Problem reported by Frank v Waveren in
69782         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69783         * lib/nanosleep.c (BILLION): New constant.
69784         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69785         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69786         implementation.
69787
69788 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * modules/nanosleep (Depends-on): Add gettime.
69791
69792 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69793         and Simon Josefsson  <jas@extundo.com>
69794         and Oskar Liljeblad  <oskar@osk.mine.nu>
69795
69796         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69797         * gnulib-tool (func_import): New license type 'unmodifiable license
69798         text'.
69799         * modules/fdl: Use it.  Longer description.
69800         * module/gpl, module/lgpl: New files.
69801
69802 2006-08-30  Jim Meyering  <jim@meyering.net>
69803
69804         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69805         shadowing the parameter.
69806
69807 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69808
69809         Sync from Libtool:
69810
69811         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69812
69813         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69814         sharing with gnulib.  Report by Eric Blake.
69815
69816 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         * modules/isapipe: New file.
69819         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69820
69821 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * modules/configmake (Makefile.am): Add a comment, and omit
69824         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69825         by Bruno Haible.
69826
69827 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69828
69829         * m4/isapipe.m4: New file.
69830
69831 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69832
69833         * lib/isapipe.c, lib/isapipe.h: New files.
69834
69835 2006-08-29  Jim Meyering  <jim@meyering.net>
69836
69837         * modules/configmake (Makefile.am): Make configmake.h depend on
69838         Makefile.  Otherwise, a stale configmake.h could hang around.
69839
69840 2006-08-29  Eric Blake  <ebb9@byu.net>
69841
69842         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69843         resolution of upstream bug 3044.
69844
69845 2006-08-29  Bruno Haible  <bruno@clisp.org>
69846
69847         * modules/localcharset (Depends-on): Add configmake.
69848         (Makefile.am): Remove setting of LIBDIR through DEFS.
69849
69850 2006-08-29  Bruno Haible  <bruno@clisp.org>
69851
69852         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69853         defined.
69854
69855 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * modules/fcntl: New file.
69858         * modules/chdir-safer (Depends-on): Add fcntl.
69859         * modules/fts: Likewise.
69860         * modules/mkdir-p: Likewise.
69861
69862         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69863         This undoes the most recent change, since we're now addressing the
69864         problem in a different way.
69865
69866         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69867         into output, since the output might be called Makefile.am even
69868         if $makefile_name is something different.
69869         (func_import): Use $makefile_am rather than
69870         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69871         empty.
69872
69873         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69874
69875 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69876
69877         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69878         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69879         recent change to stdint.m4, since we're now addressing the problem in a
69880         different way.
69881
69882 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * m4/fcntl_h.m4: New file.
69885
69886 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * lib/fcntl_.h: New file.
69889         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69890         the fcntl module.
69891         * lib/dirchownmod.c: Likewise.
69892         * lib/fts.c: Likewise.
69893
69894         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69895         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69896         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69897         just before including <inttypes.h>, to avoid circular inclusion.
69898
69899 2006-08-28  Jim Meyering  <jim@meyering.net>
69900
69901         * doc/visibility.texi: Actually read and correct the grammar of the
69902         sentence affected by yesterday's change.
69903
69904 2006-08-28  Eric Blake  <ebb9@byu.net>
69905
69906         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69907         needs wrapper.
69908
69909 2006-08-28  Eric Blake  <ebb9@byu.net>
69910
69911         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69912
69913 2006-08-28  Eric Blake  <ebb9@byu.net>
69914
69915         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69916
69917 2006-08-28  Bruno Haible  <bruno@clisp.org>
69918
69919         * modules/c-strstr: New file, from GNU gettext.
69920         * MODULES.html.sh (String handling): Add c-strstr.
69921
69922 2006-08-28  Bruno Haible  <bruno@clisp.org>
69923
69924         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69925         macros.
69926         Reported by Eric Blake.
69927
69928 2006-08-28  Bruno Haible  <bruno@clisp.org>
69929
69930         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69931         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69932         * lib/vasprintf.c: Include errno.h, limits.h.
69933         (EOVERFLOW): New fallback definition.
69934         (vasprintf): Test here whether the string length is > INT_MAX.
69935         * lib/vsnprintf.c: Include errno.h, limits.h.
69936         (EOVERFLOW): New fallback definition.
69937         (vsnprintf): Fix bug when generated string was too long for the buffer.
69938         Test here whether the string length is > INT_MAX.
69939
69940 2006-08-28  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/inttypes_.h (SCNX*): Remove definitions.
69943         Reported by Eric Blake.
69944
69945 2006-08-28  Bruno Haible  <bruno@clisp.org>
69946
69947         * lib/c-strstr.h: New file, from GNU gettext.
69948         * lib/c-strstr.c: New file, from GNU gettext.
69949
69950 2006-08-28  Bruno Haible  <bruno@clisp.org>
69951
69952         * gnulib-tool: Reorder some statements.
69953
69954 2006-08-28  Bruno Haible  <bruno@clisp.org>
69955
69956         * gnulib-tool: New option --makefile-name.
69957         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69958         $makefile_name.
69959         (func_import): Write $makefile_name to the cache file, and read it from
69960         there unless explicitly specified. Use $makefile_name as file name
69961         instead of Makefile.am. Adjust the recommendations accordingly.
69962
69963 2006-08-28  Bruno Haible  <bruno@clisp.org>
69964
69965         * gnulib-tool (func_verify_module): Check against misapplying patch.
69966
69967 2006-08-28  Bruno Haible  <bruno@clisp.org>
69968
69969         * gnulib-tool (func_relativize, func_relconcat): New functions.
69970         Give an error if --local-dir is given with --update.
69971         Remove trailing slashes from $local_gnulib_dir.
69972         (func_import): Store the relativized $local_gnulib_dir in
69973         gnulib-cache.m4, and read it from there if not specified explicitly.
69974
69975 2006-08-28  Bruno Haible  <bruno@clisp.org>
69976
69977         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69978         is the current directory. Respect also $local_gnulib_dir.
69979
69980 2006-08-28  Bruno Haible  <bruno@clisp.org>
69981             Simon Josefsson  <jas@extundo.com>
69982
69983         BeOS portability.
69984         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69985
69986 2006-08-27  Jim Meyering  <jim@meyering.net>
69987
69988         * doc/visibility.texi: Remove duplicate word: "pointer".
69989
69990 2006-08-26  Bruno Haible  <bruno@clisp.org>
69991
69992         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69993         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69994         (Makefile.am): Create inttypes.h from inttypes_.h.
69995         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69996
69997         * modules/imaxabs: New file.
69998
69999         * modules/imaxdiv: New file.
70000
70001 2006-08-26  Bruno Haible  <bruno@clisp.org>
70002
70003         * m4/inttypes.m4: New file.
70004         * m4/_inttypes_h.m4: Remove file.
70005         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70006         PRI_MACROS_BROKEN.
70007         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70008
70009         * m4/imaxabs.m4: New file.
70010
70011         * m4/imaxdiv.m4: New file.
70012
70013 2006-08-26  Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/inttypes_.h: New file.
70016         * lib/inttypes.h: Remove file.
70017         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70018
70019         * lib/imaxabs.c: New file.
70020
70021         * lib/imaxdiv.c: New file.
70022
70023 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70024
70025         New config-h module, so that "make" output needn't be cluttered
70026         by -DHAVE_CONFIG_H.
70027         * MODULES.html.sh (Support for building libraries and executables):
70028         Add config-h.
70029         * modules/config-h: New file.
70030         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70031         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70032         the config-h module is used.
70033
70034         New configmake module, so that "make" output needn't be cluttered
70035         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70036         * MODULES.html.sh (Support for building libraries and executables):
70037         Add configmake.
70038         * modules/configmake: New file.
70039
70040 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         * m4/config-h.m4: New file.
70043
70044 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * config/srclist.txt: Add elisp-comp.
70047
70048 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * MODULES.html.sh (Support for building libraries and executables):
70051         Add elisp-comp.
70052         * build-aux/elisp-comp: New file.
70053         * modules/elisp-comp: New file.
70054
70055 2006-08-24  Bruno Haible  <bruno@clisp.org>
70056
70057         * gnulib-tool (func_create_testdir): Use non-default values of
70058         sourcebase and m4base.
70059
70060 2006-08-24  Bruno Haible  <bruno@clisp.org>
70061
70062         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70063         HTML structure.
70064
70065 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         * modules/openat (Depends-on): Add lchown.
70068
70069 2006-08-23  Bruno Haible  <bruno@clisp.org>
70070
70071         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70072         of gl_LOCK_EARLY instead of gl_LOCK.
70073
70074 2006-08-23  Bruno Haible  <bruno@clisp.org>
70075
70076         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70077         on OSF/1 to no.
70078         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70079
70080 2006-08-23  Bruno Haible  <bruno@clisp.org>
70081
70082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70083         as unusable.
70084
70085         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70086         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70087         (gl_LOCK): New macro.
70088
70089 2006-08-22  Simon Josefsson  <jas@extundo.com>
70090
70091         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70092         to md5 module.
70093
70094 2006-08-22  Simon Josefsson  <jas@extundo.com>
70095
70096         * MODULES.html.sh: Add "Support for maintaining and release
70097         projects".
70098
70099         * build-aux/gnupload: New file, from coreutils.
70100
70101 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         Avoid the need for AC_LIBSOURCES in m4 macros.
70104         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70105         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70106         * modules/check-version (EXTRA_DIST): Add check-version.h.
70107         * modules/crc (EXTRA_DIST): Add crc.h.
70108         * modules/des (EXTRA_DIST): Add des.h.
70109         * modules/gc (EXTRA_DIST): Add gc.h.
70110         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70111         * modules/getline (EXTRA_DIST): Add getline.h.
70112         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70113         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70114         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70115         * modules/md2 (EXTRA_DIST): Add md2.h.
70116         * modules/md4 (EXTRA_DIST): Add md4.h.
70117         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70118         * modules/read-file (EXTRA_DIST): Add read-file.h.
70119         * modules/readline (EXTRA_DIST): Add readline.h.
70120         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70121         rijndael-api-fst.h.
70122
70123 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * m4/rijndael.m4 (gl_ARCFOUR):
70126         * m4/arctwo.m4 (gl_ARCTWO):
70127         * m4/check-version.m4 (gl_CHECK_VERSION):
70128         * m4/crc.m4 (gl_CRC):
70129         * m4/des.m4 (gl_DES):
70130         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70131         * m4/gc.m4 (gl_GC):
70132         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70133         * m4/getline.m4 (gl_FUNC_GETLINE):
70134         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70135         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70136         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70137         * m4/md2.m4 (gl_MD2):
70138         * m4/md4.m4 (gl_MD4):
70139         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70140         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70141         * m4/readline.m4 (gl_FUNC_READLINE):
70142         * m4/rijndael.m4 (gl_RIJNDAEL):
70143         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70144         to get the necessary .h files and whatnot.
70145
70146 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70149         gnulib rather than the other way around.
70150         * config/srclistvars.sh (COREUTILS): Remove.
70151
70152 2006-08-22  Jim Meyering  <jim@meyering.net>
70153
70154         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70155
70156         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70157
70158 2006-08-22  Eric Blake  <ebb9@byu.net>
70159
70160         * modules/regexprops-generic: New file.
70161         * MODULES.html.sh (Support for building documentation): List it.
70162
70163 2006-08-22  Eric Blake  <ebb9@byu.net>
70164
70165         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70166         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70167         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70168         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70169
70170 2006-08-22  Bruno Haible  <bruno@clisp.org>
70171
70172         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70173         and lib_LTLIBRARIES like the other lib_* variables.
70174
70175 2006-08-22  Bruno Haible  <bruno@clisp.org>
70176
70177         * build-aux/x-to-1.in: New file, from GNU gettext.
70178
70179 2006-08-22  Bruno Haible  <bruno@clisp.org>
70180
70181         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70182         <utmpx.h> exists.
70183
70184 2006-08-22  Bruno Haible  <bruno@clisp.org>
70185
70186         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70187         <utmpx.h> exists.
70188
70189 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70190
70191         BeOS portability.
70192         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70193         exist.
70194         Problem reported by Bruno Haible.
70195
70196 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70197
70198         Avoid the need for AC_LIBSOURCES in m4 macros.
70199         * modules/acl (EXTRA_DIST): Add acl.h.
70200         * modules/argmatch (Files): Add m4/argmatch.m4.
70201         (configure.ac): Add gl_ARGMATCH.
70202         (EXTRA_DIST): Renamed from lib_SOURCES, for
70203         consistency with the other modules.  Remove argmatch.c.
70204         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70205         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70206         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70207         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70208         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70209         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70210         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70211         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70212         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70213         * modules/closeout (EXTRA_DIST): Add closeout.h.
70214         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70215         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70216         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70217         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70218         dirname.h; remove basename.c and stripslash.c.
70219         * modules/exclude (EXTRA_DIST): Add exclude.h.
70220         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70221         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70222         * modules/file-type (EXTRA_DIST): Add file-type.h.
70223         * modules/filemode (EXTRA_DIST): Add filemode.h.
70224         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70225         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70226         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70227         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70228         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70229         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70230         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70231         * modules/getdate (EXTRA_DIST): Add getdate.c.
70232         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70233         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70234         * modules/getpass (EXTRA_DIST): Add getpass.h.
70235         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70236         * modules/group-member (EXTRA_DIST): Add group-member.h.
70237         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70238         * modules/hash (EXTRA_DIST): Add hash.h.
70239         * modules/human (EXTRA_DIST): Add human.h.
70240         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70241         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70242         * modules/lchown (EXTRA_DIST): Add lchown.h.
70243         * modules/long-options (EXTRA_DIST): Add long-options.h.
70244         * modules/lstat (EXTRA_DIST): Add lstat.h.
70245         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70246         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70247         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70248         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70249         * modules/memxor (EXTRA_DIST): Add memxor.h.
70250         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70251         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70252         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70253         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70254         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70255         * modules/physmem (EXTRA_DIST): Add physmem.h.
70256         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70257         * modules/posixver (EXTRA_DIST): Add posixver.h.
70258         * modules/quote (EXTRA_DIST): Add quote.h.
70259         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70260         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70261         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70262         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70263         regex_internal.h regexec.c.
70264         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70265         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70266         * modules/same (EXTRA_DIST): Add same.h.
70267         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70268         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70269         * modules/savedir (EXTRA_DIST): Add savedir.h.
70270         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70271         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70272         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70273         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70274         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70275         * modules/strdup (EXTRA_DIST): Add strdup.h.
70276         * modules/strftime (EXTRA_DIST): Add strftime.h.
70277         * modules/strndup (EXTRA_DIST): Add strndup.h.
70278         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70279         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70280         * modules/time_r (EXTRA_DIST): Add time_r.h.
70281         * modules/timespec (EXTRA_DIST): Add timespec.h.
70282         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70283         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70284         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70285         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70286         * modules/userspec (EXTRA_DIST): Add userspec.h.
70287         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70288         * modules/utimens (EXTRA_DIST): Add utimens.h.
70289         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70290         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70291         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70292         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70293         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70294         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70295         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70296         * modules/yesno (EXTRA_DIST): Add yesno.h.
70297
70298 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70299
70300         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70301
70302         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70303         * m4/dev-ino.m4, same-inode.m4: Remove.
70304
70305         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70306         * m4/acl.m4 (AC_FUNC_ACL):
70307         * m4/backupfile.m4 (gl_BACKUPFILE):
70308         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70309         * m4/canon-host.m4 (gl_CANON_HOST):
70310         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70311         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70312         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70313         * m4/cloexec.m4 (gl_CLOEXEC):
70314         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70315         * m4/closeout.m4 (gl_CLOSEOUT):
70316         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70317         * m4/dirname.m4 (gl_DIRNAME):
70318         * m4/exclude.m4 (gl_EXCLUDE):
70319         * m4/exitfail.m4 (gl_EXITFAIL):
70320         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70321         * m4/file-type.m4 (gl_FILE_TYPE):
70322         * m4/filemode.m4 (gl_FILEMODE):
70323         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70324         * m4/fpending.m4 (gl_FUNC_FPENDING):
70325         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70326         * m4/fts.m4 (gl_FUNC_FTS):
70327         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70328         * m4/getdate.m4 (gl_GETDATE):
70329         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70330         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70331         * m4/getpass.m4 (gl_FUNC_GETPASS):
70332         * m4/gettime.m4 (gl_GETTIME):
70333         * m4/getugroups.m4 (gl_GETUGROUPS):
70334         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70335         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70336         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70337         * m4/hash.m4 (gl_HASH):
70338         * m4/idcache.m4 (gl_IDCACHE):
70339         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70340         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70341         * m4/long-options.m4 (gl_LONG_OPTIONS):
70342         * m4/lstat.m4 (gl_FUNC_LSTAT):
70343         * m4/md5.m4 (gl_MD5):
70344         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70345         * m4/memcoll.m4 (gl_MEMCOLL):
70346         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70347         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70348         * m4/memxor.m4 (gl_MEMXOR):
70349         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70350         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70351         * m4/modechange.m4 (gl_MODECHANGE):
70352         * m4/mountlist.m4 (gl_MOUNTLIST):
70353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70354         * m4/openat.m4 (gl_FUNC_OPENAT):
70355         * m4/pathmax.m4 (gl_PATHMAX):
70356         * m4/physmem.m4 (gl_PHYSMEM):
70357         * m4/posixtm.m4 (gl_POSIXTM):
70358         * m4/posixver.m4 (gl_POSIXVER):
70359         * m4/quote.m4 (gl_QUOTE):
70360         * m4/quotearg.m4 (gl_QUOTEARG):
70361         * m4/readtokens.m4 (gl_READTOKENS):
70362         * m4/readutmp.m4 (gl_READUTMP):
70363         * m4/regex.m4 (gl_REGEX):
70364         * m4/safe-read.m4 (gl_SAFE_READ):
70365         * m4/safe-write.m4 (gl_SAFE_WRITE):
70366         * m4/same.m4 (gl_SAME):
70367         * m4/save-cwd.m4 (gl_SAVE_CWD):
70368         * m4/savedir.m4 (gl_SAVEDIR):
70369         * m4/settime.m4 (gl_SETTIME):
70370         * m4/sha1.m4 (gl_SHA1):
70371         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70372         * m4/stat-macros.m4 (gl_STAT_MACROS):
70373         * m4/stat-time.m4 (gl_STAT_TIME):
70374         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70375         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70376         * m4/strdup.m4 (gl_FUNC_STRDUP):
70377         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70378         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70379         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70380         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70381         * m4/time_r.m4 (gl_TIME_R):
70382         * m4/timespec.m4 (gl_TIMESPEC):
70383         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70384         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70385         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70386         * m4/userspec.m4 (gl_USERSPEC):
70387         * m4/utimecmp.m4 (gl_UTIMECMP):
70388         * m4/utimens.m4 (gl_UTIMENS):
70389         * m4/xalloc.m4 (gl_XALLOC):
70390         * m4/xgetcwd.m4 (gl_XGETCWD):
70391         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70392         * m4/xreadlink.m4 (gl_XREADLINK):
70393         * m4/xstrtod.m4 (gl_XSTRTOD):
70394         * m4/yesno.m4 (gl_YESNO):
70395         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70396         to get the necessary .h files and whatnot.
70397
70398 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70399             Bruno Haible  <bruno@clisp.org>
70400
70401         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70402         /bin/sh understanding of '!' conditional negation.
70403
70404 2006-08-21  Jim Meyering  <jim@meyering.net>
70405
70406         * modules/openat (Depends-on): Really alphabetize.
70407
70408         * modules/acl (Depends-on): Add error and quote.
70409
70410         * check-module (find_included_lib_files): Add at-func.c to the
70411         ok-to-include-more-than-once white list.
70412
70413         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70414
70415 2006-08-21  Bruno Haible  <bruno@clisp.org>
70416
70417         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70418         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70419         Reported by Martin Lambers <marlam@marlam.de>.
70420
70421 2006-08-21  Bruno Haible  <bruno@clisp.org>
70422
70423         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70424         specify an installation location, don't emit a noinst_LIBRARIES or
70425         noinst_LTLIBRARIES assignment.
70426
70427 2006-08-21  Bruno Haible  <bruno@clisp.org>
70428
70429         BeOS portability.
70430         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70431         BeOS has mbrtowc() but no <wctype.h>.
70432
70433 2006-08-21  Bruno Haible  <bruno@clisp.org>
70434
70435         BeOS portability.
70436         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70437         exist.
70438
70439 2006-08-21  Bruno Haible  <bruno@clisp.org>
70440
70441         BeOS portability.
70442         * lib/mbchar.h: Include <wctype.h> only if it exists.
70443
70444 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70445
70446         Remove files that are no longer needed by their respective modules.
70447         * m4/obstack.m4: Remove.
70448         * m4/strerror_r.m4: Remove.
70449         * m4/uint32_t.m4: Remove.
70450         * m4/uintptr_t.m4: Remove.
70451         * m4/ullong_max.m4: Remove.
70452         * m4/xstrtoimax.m4: Remove.
70453         * m4/xstrtoumax.m4: Remove.
70454
70455         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70456         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70457         dependencies now capture this.
70458
70459         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70460         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70461         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70462         * m4/human.m4 (gl_HUMAN): Likewise.
70463         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70464         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70465
70466         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70467
70468         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70469         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70470         stdint.
70471         * m4/human.m4 (gl_HUMAN): Likewise.
70472         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70473         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70474         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70475         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70476         * m4/xstrtol (gl_XSTRTOL): Likewise.
70477
70478         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70479         AC_TYPE_LONG_LONG_INT.
70480         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70481         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70482         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70483         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70484
70485         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70486         on stdbool.
70487
70488         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70489         (gl_PREREQ_XSTRTOUL): Remove.
70490
70491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70492
70493         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70494         mode.
70495
70496 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70497
70498         Add and change modules to make it easier for coreutils to use
70499         gnulib-tool.
70500         * modules/backupfile (Files): Remove m4/d-ino.m4.
70501         (Depends-on): Add d-ino.
70502         * modules/cycle-check (Depends-on): Add stdint.
70503         (lib_SOURCES): Add cycle-check.h.
70504         * modules/d-ino: New module.
70505         * modules/d-type: New module.
70506         * modules/error (Files): Remove m4/strerror_r.m4.
70507         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70508         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70509         m4/inttypes_h.m4, m4/uintmax_t.m4.
70510         (Depends-on): Add stdint.
70511         (lib_SOURCES): Add fsusage.h.
70512         * modules/getcwd (Files): Remove d-ino.m4.
70513         (Depends-on): Add d-ino.
70514         * modules/getndelim2 (Depends-on): Add stdint.
70515         * modules/glob (Files): Remove m4/d-type.m4.
70516         (Depends-on): Add d-type.
70517         * modules/host-os: New module.
70518         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70519         m4/inttypes_h.m4, m4/uintmax_t.m4.
70520         * Depends-on: Add stdint.
70521         (lib_SOURCES): Add human.h.
70522         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70523         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70524         m4/uintmax_t.m4, m4/ulonglong.m4.
70525         (Depends-on): Add stdint.
70526         (EXTRA_DIST): Add inttostr.h.
70527         * modules/lchmod: New module.
70528         * modules/link-follow: New module.
70529         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70530         (Depends-on): Add lchmod.
70531         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70532         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70533         (Depends-on): Add stdint.
70534         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70535         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70536         (Depends-on): Add stdint.
70537         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70538         * modules/perl: New module.
70539         * modules/regex (Depends-on): Add stdint.
70540         * modules/rmdir-errno: New module.
70541         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70542         m4/intmax_t.m4.
70543         (Depends-on): Add stdint.
70544         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70545         m4/uintmax_t.m4.
70546         (Depends-on): Add stdint.
70547         * modules/unlink-busy: New module.
70548         * modules/utimecmp (Depends-on): Add stdint.
70549         * modules/uptime: New module.
70550         * modules/winsz-ioctl: New module.
70551         * modules/winsz-termios: New module.
70552         * modules/xnanosleep (Depends-on): Add nanosleep.
70553         * modules/ullong_max: Remove.
70554         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70555         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70556         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70557         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70558         (Depends-on): Add inttypes.
70559         (lib_SOURCES): Add xstrtol.h.
70560         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70561         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70562         * MODULES.html.sh: Move 'assert' into the assert section.
70563         Move 'dummy' into the linking section.
70564         Remove ullong_max.
70565         Add section for compatibility checks for POSIX:2001 functions,
70566         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70567         winsz-ioctl, and winsz-termios into it.
70568         Add lchmod.
70569         Add top-level Misc section and put host-os, perl, and uptime
70570         into it.
70571
70572 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70573
70574         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70575         now assume the stdint module.  Do not include inttypes.h.
70576         * lib/fsusage.h: Likewise.
70577         * lib/getndelim2.c: Likewise.
70578         * lib/human.h: Likewise.
70579         * lib/inttostr.h: Likewise.
70580         * lib/obstack.c: Likewise.
70581         * lib/regex_internal.h: Likewise.
70582         * lib/tempname.c: Likewise.
70583         * lib/utimecmp.c: Likewise.
70584         * lib/xstrtol.h: Likewise.
70585
70586         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70587
70588         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70589         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70590         * lib/xtime.h: Likewise.
70591
70592 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70593
70594         * modules/openat (Files): Add lib/fchmodat.c.
70595         Fixes problem reported by Jay Youngman.
70596
70597 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70598
70599         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70600         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70601
70602 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70603             Bruno Haible  <bruno@clisp.org>
70604
70605         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70606         and is a script that invokes bison. Tighten the code. Add comments.
70607
70608 2006-08-18  Jim Meyering  <jim@meyering.net>
70609
70610         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70611         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70612         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70613         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70614
70615 2006-08-18  Bruno Haible  <bruno@clisp.org>
70616
70617         * modules/bison-i18n: New file.
70618         * MODULES.html.sh (Internationalization functions): Add it.
70619
70620 2006-08-18  Bruno Haible  <bruno@clisp.org>
70621
70622         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70623         sys/statvfs.h. When getmntinfo was found, check its declaration and
70624         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70625
70626 2006-08-18  Bruno Haible  <bruno@clisp.org>
70627
70628         * m4/bison-i18n.m4: New file, from bison.
70629
70630 2006-08-18  Bruno Haible  <bruno@clisp.org>
70631
70632         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70633         (ME_DUMMY): Treat "kernfs" as a dummy.
70634         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70635
70636 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70637
70638         Update from coreutils.
70639
70640         2006-08-15  Jim Meyering  <jim@meyering.net>
70641
70642         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70643
70644         2006-01-17  Jim Meyering  <jim@meyering.net>
70645
70646         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70647
70648         2006-01-11  Jim Meyering  <jim@meyering.net>
70649
70650         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70651         Check for the lchmod function.
70652
70653 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70654
70655         Update from coreutils.
70656
70657         * lib/__fpending.h: Add copyright notice.
70658         * lib/fprintftime.h: Likewise.
70659         * lib/savedir.c: Use (C) in copyright notice.
70660         * lib/savedir.h: Likewise.
70661
70662         2006-08-15  Jim Meyering  <jim@meyering.net>
70663
70664         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70665         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70666         in support of the EXPECTED_ERRNO macro.
70667         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70668         definitions.  Instead, define the appropriate symbols and include
70669         "at-func.c".
70670         * lib/mkdirat.c (mkdirat): Likewise.
70671         * lib/fchmodat.c (fchmodat): Likewise.
70672         (ENOSYS): Remove definition.
70673         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70674         it.  Don't include "unistd--.h" -- it wasn't ever used.
70675
70676         2006-01-17  Jim Meyering  <jim@meyering.net>
70677
70678         Rewrite fts.c not to change the current working directory,
70679         by using openat, fstatat, fdopendir, etc..
70680
70681         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70682         (HAVE_OPENAT_SUPPORT): Define.
70683         [_LIBC] (fchdir): Don't undef or define; no longer used.
70684         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70685         Now, this `function' always succeeds, and consumes its file descriptor
70686         parameter -- so callers must not close such FDs.  Update callers.
70687         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70688         (diropen): Add parameter, SP.  Adjust all callers.
70689         Implement using diropen_fd, rather than open.
70690         (fts_open): Initialize new member, fts_cwd_fd.
70691         Remove fts_rft-setting code.
70692         (fts_close): Close fts_cwd_fd, if necessary.
70693         (__opendir2): Define in terms of opendir or opendirat,
70694         depending on whether the FST_NOCHDIR flag is set.
70695         (fts_build): Since fts_safe_changedir consumes its FD, and since
70696         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70697         and close the dup'd file descriptor upon failure.
70698         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70699         (fts_safe_changedir): Tweak semantics to reflect that this function
70700         now calls cwd_advance_fd and hence consumes its FD argument.
70701         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70702         [struct FTS] (fts_rft): Remove now-unused member.
70703         [struct FTS] (fts_cycle.state): Improve comment.
70704
70705         * lib/openat.c (openat_needs_fchdir): New function.
70706         * lib/openat.h (openat_needs_fchdir): Declare it.
70707
70708 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70711         Problem and fix reported by Pádraig Brady in
70712         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70713
70714 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70715
70716         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70717
70718 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70719
70720         * lib/memcoll.c (memcoll): Optimize for the common case where the
70721         arguments are bytewise equal.
70722
70723 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70724
70725         * doc/regexprops-generic.texi: Add a copyright notice.
70726
70727 2006-08-15  Bruno Haible  <bruno@clisp.org>
70728
70729         * modules/tmpdir (License): Change to LGPL.
70730
70731 2006-08-15  Bruno Haible  <bruno@clisp.org>
70732
70733         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70734         module.
70735
70736 2006-08-14  Simon Josefsson  <jas@extundo.com>
70737
70738         * config/srclist.txt: Add gnupload.
70739
70740 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70741
70742         Change copyright notice from LGPL 2 to GPL 2, since that's the
70743         standard form used in the gnulib repository.
70744         * tests/test-lock.c: Likewise.
70745         * tests/test-stdint.c: Likewise.
70746         * tests/test-tls.c: Likewise.
70747
70748         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70749         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70750         Add copyright notice.
70751
70752         * check-module: Add copyright notice.  Output a copyright
70753         notice if "--version" is specified.
70754         * modules/COPYING: New file.
70755         * tests/test-getaddrinfo.c: Add copyright notice.
70756         * tests/test-verify.c: Likewise.
70757
70758 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         Change copyright notice from LGPL 2 to GPL 2, since that's the
70761         standard form used in the gnulib repository.
70762         * lib/lock.c: LGPL -> GPL.
70763         * lib/lock.h: Likewise.
70764         * lib/strnlen1.c: Likewise.
70765         * lib/strnlen1.h: Likewise.
70766         * lib/tls.c: Likewise.
70767         * lib/tls.h: Likewise.
70768         * lib/tmpdir.c: Likewise.
70769
70770         * lib/TODO: Remove; this belongs only in coreutils.
70771
70772 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         Add copyright notices to long-enough files that lack them, since
70775         otherwise the files aren't clearly free.  Use the same notice that
70776         getdate.texi already uses.
70777         * doc/alloca-opt.texi: Add copyright notice.
70778         * doc/alloca.texi: Likewise.
70779         * doc/ctime.texi: Likewise.
70780         * doc/functions.texi: Likewise.
70781         * doc/gcd.texi: Likewise.
70782         * doc/gnulib-tool.texi: Likewise.
70783         * doc/inet_ntoa.texi: Likewise.
70784         * doc/visibility.texi: Likewise.
70785
70786         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70787         * doc/quote.texi: Add copyright notice.
70788
70789         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70790         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70791         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70792         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70793         is now obsolete, and give a pointer to the Sun list.
70794         Add copyright notice.
70795
70796 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70797
70798         * config/srclistvars.sh: Add copyright notice.
70799
70800 2006-08-14  Eric Blake  <ebb9@byu.net>
70801
70802         Import the following change from libc:
70803
70804         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70805
70806         Upstream bug 2997.
70807         * lib/misc/error.c: Add space between program name and message if file
70808         name is missing.
70809
70810 2006-08-12  Karl Berry  <karl@gnu.org>
70811
70812         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70813         remove, these originate in gnulib now.
70814
70815 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70816
70817         * doc/Makefile (standards.info standards.html standards.dvi):
70818         Also depend on make-stds.texi.
70819
70820 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70823         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70824
70825         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70826         in wchar_t.  Problem reported by Eric Blake.
70827
70828         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70829         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70830         Also, help the compiler to keep LEN in a register.
70831
70832 2006-08-11  Eric Blake  <ebb9@byu.net>
70833
70834         * users.txt: Sort.  Add tar.
70835
70836 2006-08-11  Bruno Haible  <bruno@clisp.org>
70837
70838         * users.txt: New file.
70839
70840 2006-08-11  Bruno Haible  <bruno@clisp.org>
70841
70842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70843         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70844
70845 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * modules/snprintf (Depends-on): Remove minmax.
70848         (Maintainer): Add self and Bruno.
70849
70850 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70851
70852         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70853         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70854         (EOVERFLOW): Define if the system does not.
70855         Do not include "minmax.h"; it wasn't used.
70856         (snprintf): Don't assume size_t promotes to an unsigned type.
70857         Fix bug when generated string was too long for the buffer: the
70858         buffer's contents are supposed to be the initial prefix of the
70859         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70860         exceeds INT_MAX; do the check ourselves.
70861
70862         Import the following changes from libc:
70863
70864         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70865
70866         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70867         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70868         set wc to the byte which couldn't be converted.
70869         (re_string_reconstruct): Don't clear valid_raw_len before calling
70870         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70871         tip_context using re_string_context_at.
70872
70873         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70874
70875         * lib/posix/regex.h: g++ still cannot handled [restrict].
70876
70877         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70878
70879         * lib/posix/regex.h: Remove special handling for VMS.
70880
70881 2006-08-10  Jim Meyering  <jim@meyering.net>
70882
70883         * modules/same-inode: New module.
70884         * modules/dev-ino: New module.
70885         * modules/cycle-check: Depend on these modules, rather than simply
70886         including their .h files.
70887         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70888         required via m4/cycle-check.m4.
70889         * modules/same: Depend on new same-inode module, rather than
70890         including same-inode.h.
70891         * modules/chdir-safer: New file.
70892
70893         * modules/chown (Depends-on): Add stat-macros.
70894
70895 2006-08-10  Jim Meyering  <jim@meyering.net>
70896
70897         * m4/cycle-check.m4: New file.
70898         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70899         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70900
70901 2006-08-10  Eric Blake  <ebb9@byu.net>
70902
70903         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70904         in from original proposal.
70905
70906 2006-08-10  Eric Blake  <ebb9@byu.net>
70907         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70908
70909         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70910         namespace.
70911
70912 2006-08-10  Bruno Haible  <bruno@clisp.org>
70913
70914         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70915         as well.
70916
70917 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         Sync from coreutils.
70920
70921         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70922
70923         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70924         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70925
70926 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70927
70928         * modules/restrict: Remove; no longer needed now that we assume
70929         Autoconf 2.59 or later.
70930         * MODULES.html.sh: Remove 'restrict'.
70931         * modules/argp (Depends-on): Remove 'restrict'.
70932         * modules/base64 (Depends-on): Likewise.
70933         * modules/gc (Depends-on): Likewise.
70934         * modules/getaddrinfo (Depends-on): Likewise.
70935         * modules/glob (Depends-on): Likewise.
70936         * modules/inet_ntop (Depends-on): Likewise.
70937         * modules/inet_pton (Depends-on): Likewise.
70938         * modules/memxor (Depends-on): Likewise.
70939         * modules/regex (Depends-on): Likewise.
70940         * modules/strtok_r (Depends-on): Likewise.
70941         * modules/time_r (Depends-on): Likewise.
70942
70943 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70946         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70947         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70948         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70949         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70950         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70951         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70952         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70953
70954         Merge from coreutils.
70955         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70956         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70957         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70958         * m4/time_r.m4 (gl_TIME_R): Likewise.
70959
70960 2006-08-09  Karl Berry  <karl@gnu.org>
70961
70962         * config/srclist.txt: no more gettext-tools, per Bruno.
70963
70964 2006-08-08  Eric Blake  <ebb9@byu.net>
70965
70966         * modules/verror: New module.
70967         * MODULES.html.sh: Document it.
70968
70969 2006-08-08  Eric Blake  <ebb9@byu.net>
70970
70971         * lib/verror.h, lib/verror.c: New files.
70972
70973 2006-08-08  Eric Blake  <ebb9@byu.net>
70974
70975         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70976         verror_at_line output complies with GNU Coding Standards even when
70977         file is NULL.
70978
70979 2006-08-07  Bruno Haible  <bruno@clisp.org>
70980
70981         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70982         versions of AIX.
70983         Reported by Ralf Wildenhues.
70984
70985 2006-08-07  Bruno Haible  <bruno@clisp.org>
70986
70987         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70988         in an AC_DEFUN. Needed so that the autoconf snippets can use
70989         AC_REQUIRE.
70990
70991 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70992
70993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70994         Initialize pkgdata_DATA.
70995         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70996         overriding it.
70997
70998 2006-08-06  Eric Blake  <ebb9@byu.net>
70999
71000         * lib/error.h: Fold in some upstream changes from glibc.
71001         * lib/error.c: Likewise.
71002
71003 2006-08-04  Bruno Haible  <bruno@clisp.org>
71004
71005         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71006         Make the mostlyclean-local rule depend on mostlyclean-generic.
71007         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71008
71009 2006-07-31  Bruno Haible  <bruno@clisp.org>
71010
71011         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71012         <stdlib.h>, <string.h>.
71013
71014 2006-07-30  Bruno Haible  <bruno@clisp.org>
71015
71016         * modules/readlink (License): Change to LGPL.
71017
71018 2006-07-30  Bruno Haible  <bruno@clisp.org>
71019
71020         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71021         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71022         set PKGDATADIR to point to it.
71023
71024 2006-07-30  Bruno Haible  <bruno@clisp.org>
71025
71026         * modules/csharpexec (configure.ac): Comment out macro invocation.
71027         * modules/javaexec (configure.ac): Likewise.
71028         * modules/javacomp-script (configure.ac): Likewise.
71029
71030         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71031
71032 2006-07-30  Bruno Haible  <bruno@clisp.org>
71033
71034         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71035         linked-list.
71036
71037 2006-07-30  Bruno Haible  <bruno@clisp.org>
71038
71039         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71040
71041 2006-07-30  Bruno Haible  <bruno@clisp.org>
71042
71043         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71044         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71045         get removed.
71046
71047 2006-07-29  Bruno Haible  <bruno@clisp.org>
71048
71049         Make it possible for gnulib-tool to work with locally modified or
71050         augmented gnulib repositories.
71051         * gnulib-tool (func_usage): Document --local-dir option.
71052         (local_gnulib_dir): New variable.
71053         Handle --local-dir option.
71054         (func_lookup_file): New function.
71055         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71056         (func_get_description, func_get_filelist, func_get_description,
71057         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71058         func_get_automake_snippet, func_get_include_directive,
71059         func_get_license, func_get_maintainer): Use func_lookup_file.
71060         (func_import, func_create_testdir): Use func_lookup_file.
71061
71062 2006-07-29  Bruno Haible  <bruno@clisp.org>
71063
71064         * modules/setenv (Depends-on): Add unistd.
71065
71066 2006-07-29  Bruno Haible  <bruno@clisp.org>
71067
71068         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71069
71070 2006-07-29  Bruno Haible  <bruno@clisp.org>
71071
71072         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71073
71074 2006-07-29  Bruno Haible  <bruno@clisp.org>
71075
71076         * gnulib-tool (import, update): If there is no Makefile.am, look at
71077         aclocal.m4, instead of bailing out.
71078
71079 2006-07-29  Bruno Haible  <bruno@clisp.org>
71080
71081         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71082         Categorize the options by when they are useful.
71083
71084 2006-07-29  Bruno Haible  <bruno@clisp.org>
71085
71086         * gnulib-tool (func_usage): Document option --no-libtool.
71087         Handle option --no-libtool.
71088         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71089         for changed semantics of $libtool variable.
71090         (func_import): Likewise. If libtool is not used, show this through
71091         an option --no-libtool.
71092         (func_create_testdir): Update.
71093
71094 2006-07-29  Bruno Haible  <bruno@clisp.org>
71095
71096         * gnulib-tool (func_import): Extend error message about missing
71097         --doc-base.
71098
71099 2006-07-29  Bruno Haible  <bruno@clisp.org>
71100
71101         * gnulib-tool (func_import): Don't create the $docbase directory if
71102         there is no file to store there.
71103
71104 2006-07-29  Bruno Haible  <bruno@clisp.org>
71105
71106         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71107         relevant, look for configure.ac there, not in the current directory.
71108         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71109
71110 2006-07-29  Bruno Haible  <bruno@clisp.org>
71111
71112         * gnulib-tool (SORT): New variable.
71113         (func_usage): Undocument --assume-autoconf option.
71114         Remove --assume-autoconf option handling.
71115         (autoconf_minversion): Determine from the contents of configure.ac.
71116         (func_import): Remove autoconf_minversion handling.
71117         Suggested by Eric Blake.
71118
71119 2006-07-29  Bruno Haible  <bruno@clisp.org>
71120
71121         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71122
71123 2006-07-29  Bruno Haible  <bruno@clisp.org>
71124
71125         * config/srclist.txt (*setenv.[ch]): Remove rules.
71126
71127 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71128
71129         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71130
71131 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71132
71133         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71134         arpa/inet.h.
71135
71136 2006-07-28  Simon Josefsson  <jas@extundo.com>
71137
71138         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71139         * modules/inet_pton (Depends-on): Likewise.
71140
71141 2006-07-28  Simon Josefsson  <jas@extundo.com>
71142
71143         * m4/netinet_in_h.m4: New file.
71144
71145 2006-07-28  Simon Josefsson  <jas@extundo.com>
71146
71147         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71148         #include's.
71149
71150 2006-07-28  Simon Josefsson  <jas@extundo.com>
71151
71152         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71153         #include's.
71154
71155 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71158         setgid on directories only if they set these bits.
71159         * lib/modechange.h: Remove obsolete comment about masks.
71160
71161 2006-07-28  Eric Blake  <ebb9@byu.net>
71162
71163         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71164         macro expansion.
71165
71166 2006-07-28  Bruno Haible  <bruno@clisp.org>
71167
71168         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71169
71170 2006-07-28  Bruno Haible  <bruno@clisp.org>
71171
71172         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71173
71174 2006-07-28  Bruno Haible  <bruno@clisp.org>
71175
71176         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71177         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71178         Define fallbacks.
71179         Avoids link error on FreeBSD 4.x.
71180         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71181
71182         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71183         encoding.
71184         * lib/mbswidth.c (iswcntrl): Likewise.
71185
71186 2006-07-27  Bruno Haible  <bruno@clisp.org>
71187
71188         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71189         test.
71190
71191 2006-07-27  Bruno Haible  <bruno@clisp.org>
71192
71193         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71194         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71195         defined.
71196
71197 2006-07-26  Eric Blake  <ebb9@byu.net>
71198
71199         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71200
71201 2006-07-26  Eric Blake  <ebb9@byu.net>
71202
71203         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71204         like mingw that lack mkstemp.
71205         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71206         avoid compilation warning on mingw.
71207
71208 2006-07-26  Bruno Haible  <bruno@clisp.org>
71209
71210         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71211         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71212         INT_FAST*_MIN, INTPTR_MIN.
71213
71214 2006-07-25  Bruno Haible  <bruno@clisp.org>
71215
71216         * modules/version-etc (Depends-on): Add stdarg.
71217
71218 2006-07-25  Bruno Haible  <bruno@clisp.org>
71219
71220         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71221         complex commands.
71222
71223 2006-07-25  Bruno Haible  <bruno@clisp.org>
71224
71225         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71226         defined in <stdarg.h> or config.h.
71227
71228 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71229
71230         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71231         (gl_STDIO_SAFER): Remove.
71232
71233 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71234
71235         * MODULES.html.sh (File stream based Input/Output):
71236         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71237         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71238         * modules/fopen-safer, modules/tmpfile-safer: New files.
71239         * modules/stdio-safer: Remove.
71240
71241 2006-07-24  Bruno Haible  <bruno@clisp.org>
71242
71243         * modules/tmpdir: New file.
71244         * MODULES.html.sh (File system functions): Add it.
71245
71246 2006-07-24  Bruno Haible  <bruno@clisp.org>
71247
71248         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71249         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71250
71251 2006-07-24  Bruno Haible  <bruno@clisp.org>
71252
71253         * modules/clean-temp: New file.
71254
71255 2006-07-24  Bruno Haible  <bruno@clisp.org>
71256
71257         * m4/tmpdir.m4: New file, from GNU gettext.
71258
71259 2006-07-24  Bruno Haible  <bruno@clisp.org>
71260
71261         * lib/tmpdir.h: New file, from GNU gettext.
71262         * lib/tmpdir.c: New file, from GNU gettext.
71263
71264 2006-07-24  Bruno Haible  <bruno@clisp.org>
71265
71266         * lib/clean-temp.h: New file, from GNU gettext.
71267         * lib/clean-temp.c: New file, from GNU gettext.
71268
71269 2006-07-23  Eric Blake  <ebb9@byu.net>
71270
71271         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71272         (Depends-on): Add binary-io.
71273
71274 2006-07-23  Eric Blake  <ebb9@byu.net>
71275
71276         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71277
71278 2006-07-23  Eric Blake  <ebb9@byu.net>
71279
71280         * lib/tmpfile-safer.c: New file.
71281         * lib/stdio-safer.h (fopen_safer): Add prototype.
71282         * lib/stdio--.h (tmpfile): Make safer.
71283
71284 2006-07-23  Bruno Haible  <bruno@clisp.org>
71285
71286         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71287         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71288         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71289         gl_linked_remove_at): Use it.
71290
71291 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71292         and Simon Josefsson <jas@extundo.com>
71293
71294         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71295
71296         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71297
71298 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71299
71300         * modules/close-stream: New file.
71301         * modules/closeout (Description): Make it clear that it exits
71302         with a diagnostic on error.
71303         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71304         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71305
71306 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71307
71308         * m4/close-stream.m4: New file.
71309
71310 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * lib/close-stream.c, lib/close-stream.h: New files.
71313
71314 2006-07-22  Bruno Haible  <bruno@clisp.org>
71315
71316         Merge from GNU gettext 0.15.
71317
71318         2006-05-01  Bruno Haible  <bruno@clisp.org>
71319
71320                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71321
71322         2006-07-22  Bruno Haible  <bruno@clisp.org>
71323
71324                 * modules/javaversion: New file.
71325                 * MODULES.html.sh (Java): Add javaversion.
71326
71327         2006-03-12  Bruno Haible  <bruno@clisp.org>
71328
71329                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71330
71331         2005-12-04  Bruno Haible  <bruno@clisp.org>
71332
71333                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71334                 (untested).
71335
71336         2006-06-21  Bruno Haible  <bruno@clisp.org>
71337
71338                 Avoid warnings from recent versions of mcs.
71339                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71340                 -o, -L, -r any more. Use options documented since mcs-1.0
71341                 instead. Similarly for -g.
71342
71343         2005-12-04  Bruno Haible  <bruno@clisp.org>
71344
71345                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71346                 .resources, not .resource.
71347
71348         2005-07-09  Bruno Haible  <bruno@clisp.org>
71349
71350                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71351                 add a .dll suffix.
71352                 Reported by Mark Junker <mjscod@gmx.de>.
71353
71354         2006-07-22  Bruno Haible  <bruno@clisp.org>
71355
71356                 * modules/gettext: Upgrade to gettext-0.15.
71357                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71358                 m4/visibility.m4.
71359                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71360
71361 2006-07-22  Bruno Haible  <bruno@clisp.org>
71362
71363         Merge from GNU gettext 0.15.
71364
71365         2006-03-25  Bruno Haible  <bruno@clisp.org>
71366
71367                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71368
71369         2006-07-21  Bruno Haible  <bruno@clisp.org>
71370
71371                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71372                 "1.1".
71373
71374         2006-05-09  Bruno Haible  <bruno@clisp.org>
71375
71376                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71377                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71378                 for the conftestver execution.
71379
71380         2006-05-01  Bruno Haible  <bruno@clisp.org>
71381
71382                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71383                 optional target-version argument. Verify that the compiler
71384                 groks source of the specified source-version, or add -source
71385                 option as necessary. Verify that the compiler produces
71386                 bytecode in the specified target-version, or add -target and
71387                 -source options as necessary. Make the result of the test
71388                 available as variable CONF_JAVAC. Also log error output in
71389                 config.log.
71390
71391         2006-03-11  Bruno Haible  <bruno@clisp.org>
71392
71393                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71394
71395         2006-05-09  Bruno Haible  <bruno@clisp.org>
71396
71397                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71398                 CLASSPATH_SEPARATOR to a semicolon.
71399
71400         2006-03-12  Bruno Haible  <bruno@clisp.org>
71401
71402                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71403                 available as variable CONF_JAVA, for subsequent autoconf
71404                 tests. Also log error output in config.log.
71405
71406         2006-07-19  Bruno Haible  <bruno@clisp.org>
71407
71408                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71409                 that getline works on glibc2 systems. Needed to avoid trouble
71410                 in relocatable.c.
71411                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71412
71413         2005-12-04  Bruno Haible  <bruno@clisp.org>
71414
71415                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71416                 launcher (untested).
71417
71418         2005-12-04  Bruno Haible  <bruno@clisp.org>
71419
71420                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71421
71422         2006-07-22  Bruno Haible  <bruno@clisp.org>
71423
71424                 * gettext.m4: Update from GNU gettext-0.15.
71425                 * nls.m4: Likewise.
71426                 * po.m4: Likewise.
71427                 * inttypes-pri.m4: Likewise.
71428                 * inttypes-h.m4: Renamed from inttypes.m4.
71429                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71430
71431 2006-07-22  Bruno Haible  <bruno@clisp.org>
71432
71433         Merge from GNU gettext 0.15.
71434
71435         2005-07-05  Bruno Haible  <bruno@clisp.org>
71436
71437                 * printf-args.c (printf_fetchargs): Work around broken
71438                 definition of wint_t on mingw.
71439
71440         2005-02-12  Bruno Haible  <bruno@clisp.org>
71441
71442                 * xallocsa.h: Add extern "C" for C++.
71443
71444         2006-05-17  Bruno Haible  <bruno@clisp.org>
71445
71446                 Cygwin portability.
71447                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71448
71449         2006-04-30  Bruno Haible  <bruno@clisp.org>
71450
71451                 * progreloc.c: Include <mach-o/dyld.h> if available.
71452                 (find_executable): Use _NSGetExecutablePath when possible.
71453
71454         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71455
71456                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71457                 function.
71458
71459         2005-12-29  Bruno Haible  <bruno@clisp.org>
71460
71461                 * progreloc.c (set_program_name_and_installdir): Fix
71462                 compilation error.
71463
71464         2005-12-04  Bruno Haible  <bruno@clisp.org>
71465
71466                 Cygwin portability.
71467                 * progreloc.c: Include <windows.h> also on Cygwin.
71468                 (find_executable): Add support for Cygwin.
71469                 (set_program_name_and_installdir): Handle also platforms with
71470                 nonempty EXEEXT.
71471
71472         2006-07-11  Bruno Haible  <bruno@clisp.org>
71473
71474                 * javacomp.c: Fix a comment.
71475                 Reported by Jim Meyering.
71476
71477         2006-04-30  Bruno Haible  <bruno@clisp.org>
71478
71479                 * javacomp.h (compile_java_class): Add source_version,
71480                 target_version arguments.
71481                 * javacomp.c: Rewritten to choose only a compiler that
71482                 respects the specified source_version and target_version.
71483
71484         2006-06-27  Bruno Haible  <bruno@clisp.org>
71485
71486                 Assume correct S_ISDIR macro.
71487                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71488
71489         2006-07-22  Bruno Haible  <bruno@clisp.org>
71490
71491                 * javaversion.h: New file, from GNU gettext.
71492                 * javaversion.c: New file, from GNU gettext.
71493                 * javaversion.java: New file, from GNU gettext.
71494                 * javaversion.class: New file, from GNU gettext.
71495
71496         2006-05-17  Bruno Haible  <bruno@clisp.org>
71497
71498                 Cygwin portability.
71499                 * javaexec.c (execute_java_class): Test for jview program
71500                 also on Cygwin.
71501
71502         2006-04-09  Bruno Haible  <bruno@clisp.org>
71503
71504                 * fatal-signal.c: Don't include string.h.
71505                 (at_fatal_signal): Use a copying loop instead of memcpy.
71506
71507         2005-12-04  Bruno Haible  <bruno@clisp.org>
71508
71509                 * csharpexec.c: Add support for 'clix' launcher (untested).
71510                 (execute_csharp_using_sscli): New function.
71511                 (execute_csharp_program): Call it.
71512
71513         2006-06-21  Bruno Haible  <bruno@clisp.org>
71514
71515                 Avoid warnings from recent versions of mcs.
71516                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71517                 -o, -L, -r any more. Use options documented since mcs-1.0
71518                 instead. Similarly for -g.
71519
71520         2005-07-09  Bruno Haible  <bruno@clisp.org>
71521
71522                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71523                 add a .dll suffix.
71524                 Reported by Mark Junker <mjscod@gmx.de>.
71525
71526         2006-06-17  Bruno Haible  <bruno@clisp.org>
71527
71528                 * config.charset: Update for NetBSD 3.0.
71529
71530         2006-05-17  Bruno Haible  <bruno@clisp.org>
71531
71532                 Cygwin portability.
71533                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71534
71535         2006-05-16  Bruno Haible  <bruno@clisp.org>
71536
71537                 * localcharset.c [CYGWIN]: Include <windows.h>.
71538                 (get_charset_aliases): For Cygwin, return the same CPxxx
71539                 aliases list as under WIN32.
71540                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71541                 the environment variables. Fall back to GetACP().
71542
71543         2006-04-05  Bruno Haible  <bruno@clisp.org>
71544
71545                 * config.charset: Update Juan Manuel Guerrero's address.
71546
71547         2005-02-12  Bruno Haible  <bruno@clisp.org>
71548
71549                 * allocsa.h: Add extern "C" for C++.
71550
71551         2005-02-10  Bruno Haible  <bruno@clisp.org>
71552
71553                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71554                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71555
71556         2006-07-22  Bruno Haible  <bruno@clisp.org>
71557
71558                 * gettext.h: Update to GNU gettext-0.15.
71559
71560 2006-07-22  Bruno Haible  <bruno@clisp.org>
71561
71562         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71563         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71564         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71565
71566 2006-07-21  Eric Blake  <ebb9@byu.net>
71567
71568         * modules/stdlib-safer: New file.
71569         * MODULES.html.sh (File stream based Input/Output): Add
71570         stdlib-safer.
71571
71572 2006-07-21  Eric Blake  <ebb9@byu.net>
71573
71574         * lib/stdlib-safer.h: New file from coreutils, required by
71575         stdlib--.h.
71576
71577 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71580
71581 2006-07-20  Bruno Haible  <bruno@clisp.org>
71582
71583         * gnulib-tool: Recognize new option --assume-autoconf.
71584         (autoconf_minversion): New variable.
71585         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71586
71587 2006-07-20  Bruno Haible  <bruno@clisp.org>
71588
71589         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71590
71591 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71592
71593         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71594         Reindent and repaginate.
71595
71596 2006-07-19  Derek Price  <derek@ximbiot.com>
71597
71598         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71599         Correct grammar.
71600
71601 2006-07-17  Bruno Haible  <bruno@clisp.org>
71602
71603         * modules/list: New file.
71604         * modules/array-list: New file.
71605         * modules/carray-list, modules/carray-list-tests: New files.
71606         * modules/linked-list, modules/linked-list-tests: New files.
71607         * modules/avltree-list, modules/avltree-list-tests: New files.
71608         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71609         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71610         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71611         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71612         * modules/oset: New file.
71613         * modules/array-oset: New file.
71614         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71615         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71616         * tests/test-carray_list.c: New file.
71617         * tests/test-linked_list.c: New file.
71618         * tests/test-avltree_list.c: New file.
71619         * tests/test-rbtree_list.c: New file.
71620         * tests/test-linkedhash_list.c: New file.
71621         * tests/test-avltreehash_list.c: New file.
71622         * tests/test-rbtreehash_list.c: New file.
71623         * tests/test-avltree_oset.c: New file.
71624         * tests/test-rbtree_oset.c: New file.
71625         * MODULES.html.sh (Container data structures): New section.
71626
71627 2006-07-17  Bruno Haible  <bruno@clisp.org>
71628
71629         * m4/gl_list.m4: New file.
71630
71631 2006-07-17  Bruno Haible  <bruno@clisp.org>
71632
71633         * lib/gl_list.h: New file.
71634         * lib/gl_list.c: New file.
71635         * lib/gl_array_list.h: New file.
71636         * lib/gl_array_list.c: New file.
71637         * lib/gl_carray_list.h: New file.
71638         * lib/gl_carray_list.c: New file.
71639         * lib/gl_linked_list.h: New file.
71640         * lib/gl_linked_list.c: New file.
71641         * lib/gl_anylinked_list1.h: New file.
71642         * lib/gl_anylinked_list2.h: New file.
71643         * lib/gl_avltree_list.h: New file.
71644         * lib/gl_avltree_list.c: New file.
71645         * lib/gl_anyavltree_list1.h: New file.
71646         * lib/gl_anyavltree_list2.h: New file.
71647         * lib/gl_rbtree_list.h: New file.
71648         * lib/gl_rbtree_list.c: New file.
71649         * lib/gl_anyrbtree_list1.h: New file.
71650         * lib/gl_anyrbtree_list2.h: New file.
71651         * lib/gl_anytree_list1.h: New file.
71652         * lib/gl_anytree_list2.h: New file.
71653         * lib/gl_linkedhash_list.h: New file.
71654         * lib/gl_linkedhash_list.c: New file.
71655         * lib/gl_anyhash_list1.h: New file.
71656         * lib/gl_anyhash_list2.h: New file.
71657         * lib/gl_avltreehash_list.h: New file.
71658         * lib/gl_avltreehash_list.c: New file.
71659         * lib/gl_rbtreehash_list.h: New file.
71660         * lib/gl_rbtreehash_list.c: New file.
71661         * lib/gl_anytreehash_list1.h: New file.
71662         * lib/gl_anytreehash_list2.h: New file.
71663
71664         * lib/gl_oset.h: New file.
71665         * lib/gl_oset.c: New file.
71666         * lib/gl_array_oset.h: New file.
71667         * lib/gl_array_oset.c: New file.
71668         * lib/gl_avltree_oset.h: New file.
71669         * lib/gl_avltree_oset.c: New file.
71670         * lib/gl_rbtree_oset.h: New file.
71671         * lib/gl_rbtree_oset.c: New file.
71672         * lib/gl_anytree_oset.h: New file.
71673
71674 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         * m4/mkancesdirs.m4: New file.
71677         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71678         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71679         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71680         it.
71681
71682 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71683
71684         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71685         * lib/mkancesdirs.h: New files.
71686         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71687         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71688         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71689         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71690         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71691         callers changed.  Revamp internals significantly, by not
71692         attempting to create directories that are temporarily more
71693         permissive than the final results.  Do not attempt to use
71694         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71695         This removes some race conditions, fixes some bugs, and simplifies
71696         things.  Use new dirchownmod function to do owner and mode changes.
71697         * lib/mkdir-p.h: Likewise.
71698         * lib/modechange.c (octal_to_mode): New function.
71699         (struct mode_change): New member mentioned.
71700         (make_node_op_equals): New arg mentioned.  All callers changed.
71701         (mode_compile): Keep track of which mode bits the user has explicitly
71702         mentioned.
71703         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71704         New arg PMODE_BITS, to keep track of which mode bits the user
71705         mentioned; it treats S_ISUID and S_ISGID speciall.
71706         All callers changed.
71707         * lib/modechange.h: Likewise.
71708
71709 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * MODULES.html.sh: Add mkancestors.
71712         * modules/mkancesdirs: New module.
71713         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71714         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71715         The chdir-safer and afs files are now orphans; I'll remove them
71716         unless someone speaks up.
71717         Add lib/dirchownmod.c, lib/dirchownmod.h.
71718         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71719         Add lchown, mkancesdirs.
71720         (Maintainer): Add self.
71721
71722 2006-07-15  Karl Berry  <karl@gnu.org>
71723
71724         * gnulib-tool: help message wording/arrangement.
71725
71726 2006-07-14  Simon Josefsson  <jas@extundo.com>
71727
71728         * doc/gnulib.texi (Libtool and Windows): New section.
71729
71730 2006-07-12  Simon Josefsson  <jas@extundo.com>
71731
71732         * modules/gendocs (License): Fix license, approved by Karl.
71733
71734 2006-07-12  Eric Blake  <ebb9@byu.net>
71735
71736         * MODULES.html.sh: Add gendocs.
71737
71738 2006-07-11  Eric Blake  <ebb9@byu.net>
71739
71740         * modules/fdl: New module, to install doc/fdl.texi.
71741         * MODULES.html.sh: Add new section for documentation modules.
71742         * gnulib-tool: Avoid space-tab.
71743         (--doc-base): New option, to manage files from doc.
71744
71745 2006-07-11  Eric Blake  <ebb9@byu.net>
71746
71747         * m4/absolute-header.m4: Fix comments to match recent change.
71748
71749 2006-07-11  Eric Blake  <ebb9@byu.net>
71750
71751         * gnulib-tool: List --doc-base before --tests-base.
71752
71753 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71754
71755         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71756
71757 2006-07-11  Bruno Haible  <bruno@clisp.org>
71758
71759         * README: Mention where to put documentation.
71760
71761 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71762
71763         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71764
71765 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71768         to stdint.m4.
71769
71770 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71771
71772         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71773         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71774         "no/such/file/stdint.h" when there is no such file, so that
71775         the resulting C code can be parsed by dodgy compilers.
71776         Problems reported by Bob Proulx.
71777
71778 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71779
71780         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71781         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71782         macros into the GNU _D_EXACT_NAMLEN.
71783         * lib/savedir.c:  Likewise.
71784         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71785
71786 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71787         and Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71790         * m4/savedir.m4:
71791         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71792         macros into the GNU _D_EXACT_NAMLEN.
71793
71794 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71797         around the absolute name, to work around a problem with the HP-UX
71798         11.23 native C compiler, reported by Bob Proulx.
71799
71800 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71801
71802         * doc/maintain.texi, make-stds.texi: Sync from
71803         <http://savannah.gnu.org/projects/gnustandards>.
71804
71805 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71808
71809 2006-07-09  Jim Meyering  <jim@meyering.net>
71810
71811         * m4/glob.m4: Remove a doubled word in a comment.
71812
71813 2006-07-09  Jim Meyering  <jim@meyering.net>
71814
71815         * lib/argp-pv.c: Remove a doubled word in a comment.
71816         * lib/check-version.c (check_version): Likewise.
71817         * lib/javacomp.c (compile_java_class): Likewise.
71818
71819 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71822         for the benefit of people using Autoconf 2.60.  If you want to
71823         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71824         (or m4/onceonly.m4, if pre-2.57) manually.
71825
71826 2006-07-08  Jim Meyering  <jim@meyering.net>
71827
71828         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71829         comment.
71830         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71831         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71832         comment.
71833
71834 2006-07-08  Jim Meyering  <jim@meyering.net>
71835
71836         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71837
71838 2006-07-07  Simon Josefsson  <jas@extundo.com>
71839
71840         * tests/test-crc.c: Change expected crc value, the test vector
71841         were probably computed using the old broken crc.c?
71842
71843 2006-07-06  Simon Josefsson  <jas@extundo.com>
71844
71845         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71846         now the canonical place for the M4 file).
71847
71848         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71849         from the sys_socket dependency now.
71850
71851         * modules/inet_pton (Files): Ditto.
71852
71853         * modules/inet_ntop (Files): Ditto.
71854
71855 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71856
71857         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71858         not gl_PREREQ_GETUSERSHELL.
71859
71860 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71861
71862         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71863         with only one argument, for Autoconf 2.60.
71864         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71865         expand to nothing, so add a shell command to avoid syntax error.
71866         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71867
71868 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71869
71870         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71871
71872 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71875         no longer needed.  Check for isblank decl.
71876         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71877         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71878         of existence.
71879
71880 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71881
71882         * lib/getloadavg.c: Use __VMS, not VMS.
71883         * lib/getopt.c: Likewise.
71884         * lib/getpagesize.h: Likewise.
71885         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71886         and probably does not work.
71887
71888 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71889
71890         * lib/.cppi-disable: Add wcwidth.
71891         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71892         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71893         (ISGRAPH): Remove.  All uses changed to isgraph.
71894         (FOLD) [!defined _LIBC]: Remove special case.
71895         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71896         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71897         HAVE_ISBLANK.
71898         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71899         case.
71900
71901 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71902
71903         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71904         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71905         brackets.  Other minor changes to suppress some compiler
71906         warnings.
71907
71908 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71909         and Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71912         of invoking obsolescent AC_HEADER_DIRENT macro.
71913         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71914         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71915         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71916         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71917         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71918         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71919         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71920         * m4/readdir.m4: Remove; no longer needed.
71921
71922 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71923         and Paul Eggert  <eggert@cs.ucla.edu>
71924
71925         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71926         Don't worry about this obsolete case any more.
71927         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71928         directories.
71929         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71930         worry about this obsolete case any more.
71931         * lib/fts.c: Likewise.
71932         * lib/getcwd.c: Likewise.
71933         * lib/glob.h: Likewise.
71934         * lib/savedir.c: Likewise.
71935
71936 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71939         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71940         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71941         needed.
71942         All uses removed.
71943         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71944         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71945         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71946         needed.
71947         * m4/getdate.m4 (gl_GETDATE): Likewise.
71948         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71949         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71950         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71951         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71952         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71953         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71954         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71955         needed.
71956
71957 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71958
71959         * lib/memcasecmp.c: Include <limits.h>.
71960         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71961         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71962         Don't assume isdigit succeeds only on '0' through '9'.
71963
71964 2006-07-05  Eric Blake  <ebb9@byu.net>
71965
71966         * modules/getaddrinfo (Depends-on): Add snprintf.
71967
71968 2006-07-05  Eric Blake  <ebb9@byu.net>
71969
71970         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71971         to avoid 'header present but could not be compiled' on cygwin.
71972
71973 2006-07-05  Eric Blake  <ebb9@byu.net>
71974
71975         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71976         missing from netdb.h.
71977         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71978
71979 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71980
71981         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71982         no longer needed.
71983         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71984         * m4/getdate.m4 (gl_GETDATE): Likewise.
71985         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71986         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71987         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71988         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71989         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71990
71991 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71992
71993         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71994         All uses of is_space replaced by isspace.
71995         * lib/exit.h: Don't talk about STDC_HEADERS.
71996         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71997         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71998         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71999         replaced by isprint etc.
72000         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72001         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72002         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72003         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72004         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72005         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72006
72007 2006-07-05  Bruno Haible  <bruno@clisp.org>
72008
72009         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72010         the function exists, before testing against AIX.
72011         Reported by Martin Lambers <marlam@marlam.de>.
72012
72013 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72014
72015         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72016         From Mark D. Baushke.
72017
72018 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72021         to the absolute name, not just one, to bypass Sun C 5.8's
72022         "warning: #include of /usr/include/... may be non-portable".
72023
72024 2006-07-04  Eric Blake  <ebb9@byu.net>
72025
72026         * modules/dirname-tests: New test module.
72027         * tests/test-dirname.c: New file, replacing dirname.c
72028         TEST_DIRNAME section that was recently deleted.
72029
72030 2006-07-04  Bruno Haible  <bruno@clisp.org>
72031
72032         Assume ANSI C header files and <ctype.h> functions.
72033         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72034         (mbsnwidth): Use isprint, iscntrl instead.
72035
72036 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72037
72038         Merge from coreutils.
72039         * MODULES.html.sh: Add xstrtold.
72040         * modules/xstrtold: New file.
72041         * modules/cycle-check (Files): Add lib/same-inode.h.
72042         * modules/dirname (Files): Add m4/double-slash-root.m4.
72043         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72044         * modules/mkdir-p (Files): Add lib/same-inode.h.
72045         * modules/same (Files): Add lib/same-inode.h.
72046
72047 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72048
72049         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72050         This is to keep the terminology clean; POSIX talks about
72051         "absolute pathnames", not "full pathnames", but the GNU
72052         Coding Standards say to use "path" for something else;
72053         so use "absolute" to keep both sides happy.
72054         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72055         Set gl_absolute_header, not gl_full_header_path.
72056         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72057         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72058         All uses changed.
72059
72060         Merge from coreutils.
72061
72062         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72063
72064         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72065         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72066         want to require the building of c-strtod.o.
72067         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72068         needs -lm directly.
72069         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72070
72071         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72074         --as-needed option if available.  Problem reported by Albert Chin in
72075         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72076         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72077         cc merely issues a bunch of annoying warnings for --as-needed
72078         (this problem was reported by Bob Proulx).  Also, try linking with
72079         -lm to detect a bug in binutils 2.16 (this problem was reported
72080         by Ralf Wildenhues).
72081
72082         2006-06-18  Jim Meyering  <jim@meyering.net>
72083
72084         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72085         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72086         macro.
72087         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72088         also check for glibc-2.4's abort-inducing bug.
72089
72090         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72091         Low-probability clean-up should be to use rmdir to get rid of
72092         the just-created directory, not unlink.
72093
72094         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72095         configure fail, and request a bug report to inform us about it.
72096         Add a comment that, barring reports to the contrary, in 2007 we'll
72097         assume ftruncate is universally available.
72098
72099         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72102
72103         2006-03-12  Jim Meyering  <jim@meyering.net>
72104
72105         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72106         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72107         * m4/same.m4 (gl_SAME): Likewise.
72108         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72109
72110         2006-03-11  Eric Blake  <ebb9@byu.net>
72111
72112         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72113         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72114         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72115         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72116
72117 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72120         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72121         reported by Mark D. Baushke, one in
72122         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72123
72124         Merge from coreutils.
72125
72126         * lib/.cppi-disable: Add stdint_.h.
72127         * lib/.cvsignore: Add stdint.h.
72128
72129         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72130
72131         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72132         both double and long double versions.
72133         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72134         * lib/xstrtold.c: New file.
72135         * lib/xstrtod.h (xstrtold): New decl.
72136
72137         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * lib/filemode.c (setst): Remove.
72140         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72141         (arguably) clearer, and the generated code is a bit smaller on my
72142         Debian GNU/Linux stable x86 host.
72143
72144         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72147         Assume that filemode.h includes sys/types.h and sys/stat.h.
72148         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72149         (ftypelet): Reorder to put common cases first, for efficiency.
72150         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72151         to do 'M'.
72152         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72153         of 10, for compatibility with FreeBSD.  All callers changed.
72154         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72155         types that can't be deduced solely from st_mode.  First arg is now a
72156         const pointer.
72157         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72158         (strmode): Renamed from mode_string.
72159         (filemodestring): New decl.
72160         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72161         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72162         needed.
72163         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72164
72165         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72168         fsusage.h now does that.  Include fsusage.h first, to test interface.
72169         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72170         at most one method (the old code could have generated decls that
72171         didn't conform to C89, not that this was ever exercised).
72172         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72173
72174         2006-03-19  Jim Meyering  <jim@meyering.net>
72175
72176         Work even in a chroot where d_ino values for entries in "/"
72177         don't match the stat.st_ino values for the same names.
72178         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72179         number, iterate through all entries again, using lstat instead.
72180         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72181         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72182
72183         * lib/getcwd.c (__getcwd): Clarify a comment.
72184         Use memcpy in place of a call to strcpy.
72185
72186         2006-03-12  Jim Meyering  <jim@meyering.net>
72187
72188         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72189         matches that of the current directory (which we're about to chdir ".."
72190         out of), then save the dev-ino of the parent, instead.
72191
72192         * lib/same-inode.h (SAME_INODE): New file/macro.
72193         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72194         Include "same-inode.h", instead.
72195         * lib/same.c: Likewise.
72196         * lib/cycle-check.h: Include "same-inode.h".
72197         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72198         * lib/cycle-check.c (SAME_INODE): Remove definition.
72199         * lib/root-dev-ino.h: Include "same-inode.h".
72200
72201         2006-03-11  Eric Blake  <ebb9@byu.net>
72202
72203         * lib/same.c (same_name): s/base_name/last_component/
72204         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72205         * lib/filenamecat.c (file_name_concat): Likewise.
72206
72207         2006-03-11  Eric Blake  <ebb9@byu.net>,
72208                     Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72211         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72212         drive prefix.
72213         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72214         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72215         (last_component): New method.
72216         * lib/dirname.c (dir_len): Determine when drive letters need a
72217         subsequent slash.  Preserve // when it is special.
72218         (dir_name): Don't append dot when drive letter is absolute.
72219         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72220         * lib/basename.c (base_name): New semantics - malloc the result.
72221         Preserve // when it is special.  Preserve relative files that look
72222         like drive letters.
72223         (base_len): Preserve // when it is special.
72224         (last_component): New method, similar to old base_name semantics.
72225         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72226         base_name.  Strip redundant slashes from ///.
72227
72228 2006-07-03  Jim Meyering  <jim@meyering.net>
72229
72230         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72231         macro is used before the first cycle_check call.
72232
72233 2006-07-03  Eric Blake  <ebb9@byu.net>
72234
72235         * modules/dirname (Depends-on): Add xstrndup.
72236
72237 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72240         test cases, so that config.log is a bit easier to follow.
72241
72242 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72243
72244         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72245         both are 64 bits, since this seems to be the tradition, and this
72246         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72247         we ever run into a host that prefers long long to long in this
72248         case, we'll need another configure-time test.  Problem reported by
72249         Jim Meyering.
72250
72251 2006-07-02  Eric Blake  <ebb9@byu.net>
72252
72253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72254
72255 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72256
72257         * modules/inttypes (Depends-on): No longer depends on stdint.
72258         * modules/stdint (Description): Say more about assumptions.
72259         Say that the fast types might differ.  Say macros are used.
72260         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72261         (Makefile.am): Revise list of substituted symbols to match
72262         new stdint.m4.
72263         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72264         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72265         * tests/test-stdint.c (verify_same_types)
72266         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72267         the code conforms to C99/C89.
72268         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72269         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72270
72271 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72272
72273         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72274         but fix a bug, by requiring at least 64 bits.
72275         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72276         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72277         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72278         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72279
72280         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72281         changes.  Make 2.59 a prerequisite.  Check and substitute for
72282         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72283         inttypes.h.  Do not use special include files; just use the
72284         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72285         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72286         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72287         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72288         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72289         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72290         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72291         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72292         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72293         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72294         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72295         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72296         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72297         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72298         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72299         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72300         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72301         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72302         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72303         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72304         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72305         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72306         not check for things that C99 does not require, e.g., int8_t.  If
72307         a test isn't needed unless <stdint.h> isn't working, and is
72308         unlikely to be needed for any other reason, then don't do it
72309         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72310         size_t, since we assume C89 freestanding at least.  Do not check
72311         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72312         the right thing even if the types are not defined.  Instead use:
72313         (gl_STDINT_TYPE_PROPERTIES): New macro.
72314         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72315         testing whether <sys/types.h> clashes, as Autoconf does this for
72316         us now.  All uses removed.
72317         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72318         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72319         (gl_CHECK_TYPE_SAME):
72320         Remove; no longer needed.
72321         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72322         exists, since we'll return 0 anyway in that case.
72323         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72324
72325 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72326
72327         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72328         possible collision with system files.
72329         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72330         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72331         WCHAR_MIN and WCHAR_MAX in this case.
72332         (<stddef.h>): Do not include; no longer needed.
72333         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72334         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72335         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72336         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72337         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72338         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72339         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72340         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72341         !defined(__c99))]: Include in this case too, since it's harmless
72342         now.
72343         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72344         dangerous to do so.
72345         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72346         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72347         (_STDINT_MIN, _STDINT_MAX): New macros.
72348         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72349         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72350         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72351         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72352         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72353         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72354         macros, not typedefs; this simplifies things quite a bit.
72355         Use long int for all types narrower than int64_t.
72356         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72357         Define in terms of long long int or int64_t or long int,
72358         not int64_t or int32_t.  This saves some compile-time testing.
72359         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72360         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72361         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72362         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72363         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72364         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72365         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72366         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72367         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72368         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72369         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72370         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72371         undef any previous version and define our own version, for
72372         simplicity and consistency with the new macros for types.
72373         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72374         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72375         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72376         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72377         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72378         @WINT_T_SUFFIX@ to keep things simple here.
72379         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72380         Simplify by assuming typical 8/16/32/64 host, since we're
72381         already doing that elsewhere anyway.
72382         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72383         and assume long long int is 64 bits if available.  This
72384         speeds up 'configure'.
72385
72386 2006-07-01  Eric Blake  <ebb9@byu.net>
72387
72388         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72389         Reported by Andreas Buening.
72390
72391 2006-07-01  Eric Blake  <ebb9@byu.net>
72392
72393         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72394
72395 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72396
72397         * lib/getaddrinfo.c: fixed typo
72398
72399 2006-06-29  Jim Meyering  <jim@meyering.net>
72400
72401         * modules/strftime (Maintainer): Add my name, since with the
72402         FPRINTFTIME changes strftime.c has forked from glibc.
72403
72404 2006-06-29  Eric Blake  <ebb9@byu.net>
72405
72406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72407
72408 2006-06-29  Eric Blake  <ebb9@byu.net>
72409
72410         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72411
72412 2006-06-29  Eric Blake  <ebb9@byu.net>
72413
72414         * lib/stat_.h: New file.
72415
72416 2006-06-29  Eric Blake  <ebb9@byu.net>
72417
72418         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72419         unused static function.
72420
72421 2006-06-29  Eric Blake  <ebb9@byu.net>
72422
72423         * doc/functions.texi (Function Portability): Document missing lstat
72424         on mingw.
72425
72426 2006-06-29  Eric Blake  <ebb9@byu.net>
72427
72428         * MODULES.html.sh: Add sys_stat.
72429         * modules/sys_stat: New module.
72430         * modules/mkstemp (Depends-on): Add sys_stat.
72431
72432 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72433
72434         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72435
72436 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72437
72438         * m4/c-bs-a.m4: Removed.
72439
72440 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72441
72442         * lib/strftime.c: Assume strftime() exists.
72443
72444 2006-06-29  Derek Price  <derek@ximbiot.com>
72445
72446         * modules/c-bs-a: Removed - \a is C89.
72447         * MODULES.html.sh: Remove c-bs-a.
72448
72449 2006-06-29  Bruno Haible  <bruno@clisp.org>
72450
72451         * modules/wcwidth (License): Change to LGPL.
72452
72453 2006-06-28  Simon Josefsson  <jas@extundo.com>
72454
72455         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72456         on _WIN32.
72457
72458         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72459         getnameinfo.
72460
72461 2006-06-28  Simon Josefsson  <jas@extundo.com>
72462
72463         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72464
72465 2006-06-28  Simon Josefsson  <jas@extundo.com>
72466
72467         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72468         functions there.  It will succeed on Windows XP, but on Windows
72469         2000 and (presumably) earlier, it will fail, and use the internal
72470         re-implementation.
72471         (use_win32_p): New function.
72472         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72473         Support AI_NUMERICSERV to disable getservbyname.
72474         (getnameinfo): New function, only supports
72475         NI_NUMERICHOST|NI_NUMERICSERV for now.
72476
72477         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72478         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72479         getnameinfo.
72480
72481 2006-06-28  Eric Blake  <ebb9@byu.net>
72482
72483         * modules/wcwidth: New file.
72484         * modules/mbchar (Depends-on): Add wcwidth.
72485         * modules/mbswidth (Depends-on): Add wcwidth.
72486         * MODULES.html.sh: Add wcwidth.
72487
72488 2006-06-28  Eric Blake  <ebb9@byu.net>
72489
72490         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72491         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72492
72493 2006-06-28  Eric Blake  <ebb9@byu.net>
72494
72495         * lib/xvasprintf.h: Fix comments.
72496
72497 2006-06-28  Eric Blake  <ebb9@byu.net>
72498
72499         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72500         * lib/mbswidth.c (wcwidth): Move from here...
72501         * lib/wcwidth.h: ...to this new file.
72502
72503 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72504
72505         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72506
72507         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72508         it's obsolete.
72509         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72510
72511 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72512
72513         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72514         Autoconf 2.60 says this stuff was obsolete.
72515
72516 2006-06-28  Bruno Haible  <bruno@clisp.org>
72517
72518         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72519
72520 2006-06-28  Bruno Haible  <bruno@clisp.org>
72521
72522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72523         gt_TYPE_WCHAR_T.
72524
72525 2006-06-28  Bruno Haible  <bruno@clisp.org>
72526
72527         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72528         declaration for wcwidth.
72529         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72530
72531 2006-06-28  Bruno Haible  <bruno@clisp.org>
72532
72533         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72534         (mkdir): Define using _mkdir.
72535
72536 2006-06-28  Bruno Haible  <bruno@clisp.org>
72537
72538         * lib/getaddrinfo.h: Fix POSIX URL.
72539         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72540         _WIN32.
72541         (use_win32_p): Make static.
72542         (getaddrinfo): Reject service name if it is empty or does not consist
72543         solely of decimal digits, or if its value is > 65535.
72544         (getnameinfo): Remove useless casts.
72545
72546 2006-06-27  Simon Josefsson  <jas@extundo.com>
72547
72548         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72549         Eggert and Martin Lambers.
72550
72551 2006-06-27  Simon Josefsson  <jas@extundo.com>
72552
72553         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72554         Eggert and Martin Lambers.
72555
72556 2006-06-27  Bruno Haible  <bruno@clisp.org>
72557
72558         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72559         result to 0, not to empty.
72560         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72561
72562 2006-06-27  Bruno Haible  <bruno@clisp.org>
72563
72564         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72565
72566 2006-06-26  Simon Josefsson  <jas@extundo.com>
72567
72568         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72569         present.
72570
72571 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72572
72573         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72574         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72575         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72576
72577 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72578
72579         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72580
72581 2006-06-26  Bruno Haible  <bruno@clisp.org>
72582
72583         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72584
72585 2006-06-26  Bruno Haible  <bruno@clisp.org>
72586
72587         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72588
72589 2006-06-26  Bruno Haible  <bruno@clisp.org>
72590
72591         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72592         SGI C compiler in pre-C99 mode.
72593         Suggested by Mark D. Baushke and Larry Jones.
72594
72595 2006-06-26  Bruno Haible  <bruno@clisp.org>
72596
72597         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72598         WCHAR_MAX.
72599         Reported by Mark D. Baushke and Larry Jones.
72600
72601 2006-06-26  Bruno Haible  <bruno@clisp.org>
72602
72603         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72604         in pre-C99 mode.
72605         Suggested by Mark D. Baushke and Larry Jones.
72606
72607 2006-06-23  Simon Josefsson  <jas@extundo.com>
72608             Bruno Haible  <bruno@clisp.org>
72609
72610         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72611         Emit mostlyclean-local rule.
72612         (func_emit_tests_Makefile_am): Likewise.
72613         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72614
72615 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72616
72617         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72618
72619 2006-06-23  Bruno Haible  <bruno@clisp.org>
72620
72621         * tests/test-stdint.c: Update to match ISO C 99 Technical
72622         Corrigendum 1.
72623
72624 2006-06-23  Bruno Haible  <bruno@clisp.org>
72625
72626         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72627
72628 2006-06-23  Bruno Haible  <bruno@clisp.org>
72629
72630         * lib/stdint_.h: Treat IRIX like OpenBSD.
72631
72632 2006-06-23  Bruno Haible  <bruno@clisp.org>
72633
72634         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72635         ISO C 99 Technical Corrigendum 1.
72636
72637 2006-06-22  Simon Josefsson  <jas@extundo.com>
72638
72639         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72640         MinGW.
72641
72642 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72645         needed.  Some compiler complained about some of them.  Problem reported
72646         by Larry Jones in
72647         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72648
72649 2006-06-21  Simon Josefsson  <jas@extundo.com>
72650
72651         * tests/test-getaddrinfo.c: New file.
72652
72653         * modules/getaddrinfo-tests: New file.
72654
72655         * MODULES.html.sh: Add inet_pton.
72656
72657         * modules/inet_pton: New file.
72658
72659 2006-06-21  Simon Josefsson  <jas@extundo.com>
72660
72661         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72662         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72663         of using the (limited) gnulib implementation on Windows XP.
72664
72665         * m4/inet_pton.m4: New file.
72666
72667 2006-06-21  Simon Josefsson  <jas@extundo.com>
72668
72669         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72670         variable.
72671
72672         * lib/socket_.h: Don't define WINVER.
72673
72674         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72675         slightly modified to work in gnulib.
72676
72677 2006-06-21  Simon Josefsson  <jas@extundo.com>
72678
72679         * doc/gnulib.texi (Windows sockets): Add.
72680
72681 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72682
72683         * lib/read-file.c (fread_file): Start with buffer allocation of
72684         0 bytes rather than 1 byte; this simplifies the code.
72685         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72686         code to free buffer and save/restore errno.
72687         (internal_read_file): Remove unused local.
72688
72689 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72692         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72693         Problem reported by Denis Excoffier in
72694         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72695
72696 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72697
72698         * modules/sys_socket, modules/socklen: Include sys/types since
72699         FreeBSD 4.x's sys/socket.h needs it.
72700
72701 2006-06-19  Simon Josefsson  <jas@extundo.com>
72702
72703         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72704
72705 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72706
72707         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72708
72709 2006-06-19  Bruno Haible  <bruno@clisp.org>
72710
72711         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72712         and FULL_PATH_INTTYPES_H in angle brackets.
72713         Reported by Mark D. Baushke <mdb@gnu.org>.
72714
72715 2006-06-17  Eric Blake  <ebb9@byu.net>
72716
72717         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72718         errno.
72719
72720 2006-06-17  Bruno Haible  <bruno@clisp.org>
72721
72722         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72723         <sys/inttypes.h>.
72724
72725 2006-06-17  Bruno Haible  <bruno@clisp.org>
72726
72727         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72728         whether errno is declared. Assume <errno.h> declares errno.
72729
72730 2006-06-17  Bruno Haible  <bruno@clisp.org>
72731
72732         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72733
72734 2006-06-17  Bruno Haible  <bruno@clisp.org>
72735
72736         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72737         problem on Solaris 2.5.1.
72738
72739 2006-06-16  Eric Blake  <ebb9@byu.net>
72740
72741         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72742         * lib/unicodeio.c [!defined errno]: Likewise.
72743         * lib/strtol.c [!defined errno]: Likewise.
72744         * lib/strtod.c [!defined errno]: Likewise.
72745
72746 2006-06-15  Eric Blake  <ebb9@byu.net>
72747
72748         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72749
72750 2006-06-15  Eric Blake  <ebb9@byu.net>
72751
72752         * config/srclist.txt (ssize_t.m4): Lose sync.
72753
72754 2006-06-15  Bruno Haible  <bruno@clisp.org>
72755
72756         * modules/stdint (Files): Include m4/full-header-path.m4,
72757         m4/size_max.m4, m4/wchar_t.m4.
72758         (Makefile.am): Many more substitutions.
72759         * modules/stdint-tests: New file.
72760         * tests/test-stdint.c: New file.
72761
72762 2006-06-15  Bruno Haible  <bruno@clisp.org>
72763
72764         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72765         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72766         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72767         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72768         gl_CHECK_TYPE_SAME): New macros.
72769
72770 2006-06-15  Bruno Haible  <bruno@clisp.org>
72771
72772         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72773
72774 2006-06-15  Bruno Haible  <bruno@clisp.org>
72775
72776         * lib/stdint_.h: Rewritten to be fully auto-configured.
72777         Fixes bug on HP-UX/IA64.
72778
72779 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * lib/getdate.y (__attribute__): Don't define if already defined.
72782         Problem reported by Larry Jones.
72783         * lib/utimens.c (__attribute__): Likewise.
72784
72785 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72788         reported by Andreas Schwab.
72789
72790 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72791             Bruno Haible  <bruno@clisp.org>
72792
72793         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72794         check for the declaration of strnlen and a run test that exposes the
72795         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72796         rpl_strndup.
72797
72798 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72799             Bruno Haible  <bruno@clisp.org>
72800
72801         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72802
72803 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72804
72805         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72806         compile test, for Tru64 4.0D.
72807
72808 2006-05-28  Karl Berry  <karl@gnu.org>
72809
72810         * config/srclist.txt (printf-args.c): lose sync.
72811
72812 2006-05-26  Martin Lambers  <marlam@marlam.de>
72813
72814         * lib/getpass.c: Updates the test for the native W32 API, and adds
72815         missing includes, thus fixing compilation warnings.
72816
72817 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72818
72819         * lib/exclude.c (exclude_fnmatch): New function.
72820         (excluded_file_name): Call exclude_fnmatch.
72821         * lib/exclude.h (excluded_file_name): New prototype
72822
72823 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72824
72825         * lib/tempname.c (small_open, large_open): New macros.
72826         (__open, __open64) [!_LIBC]: Remove.
72827         (__gen_tempname): Use small_open and large_open instead of __open
72828         and __open64.  This fixes a portability bug on HP-UX 11.11i
72829         reported by Simon Wing-Tang in
72830         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72831
72832 2006-05-24  Bruno Haible  <bruno@clisp.org>
72833
72834         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72835         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72836         Reported by Thorsten Maerz <torte@netztorte.de> via
72837         Aaron Stone <aaron@serendipity.cx>.
72838
72839 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72842         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72843         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72844         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72845         not really conditional on the cache.
72846         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72847
72848 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72851         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72852         (my_usleep): Don't mishandle maximum value.
72853
72854 2006-05-19  Jim Meyering  <jim@meyering.net>
72855
72856         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72857
72858 2006-05-17  Bruno Haible  <bruno@clisp.org>
72859
72860         Cygwin portability.
72861         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72862
72863 2006-05-17  Bruno Haible  <bruno@clisp.org>
72864
72865         * lib/stdint_.h: Fix recognition of Cygwin.
72866
72867 2006-05-15  Bruno Haible  <bruno@clisp.org>
72868
72869         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72870         on libtool patch by Ralf Wildenhues.
72871
72872 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72873
72874         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72875         test for C99 conformance; (bool) 0.5 is an integer constant
72876         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72877         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72878
72879 2006-05-11  Simon Josefsson  <jas@extundo.com>
72880
72881         * m4/xvasprintf.m4: Fix obvious typo.
72882
72883 2006-05-11  Jim Meyering  <jim@meyering.net>
72884
72885         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72886         James Lemley.
72887
72888 2006-05-10  Simon Josefsson  <jas@extundo.com>
72889
72890         * lib/md4.c: Typo fix, update copyright years.
72891         (K1, K2): Don't use L because it turn computations into 64-bit on
72892         64-bit platforms.
72893
72894 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72897         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72898         unwanted sign propagation, e.g., on hosts with 64-bit int.
72899         There still are some problems with reeelly weird theoretical hosts
72900         (e.g., 33-bit int) but it's not worth worrying about now.
72901         * lib/sha1.c (rol): Likewise.
72902         (K1, K2, K3, K4): Remove unnecessary L suffix.
72903
72904 2006-05-10  Bruno Haible  <bruno@clisp.org>
72905
72906         * lib/des.c: Cast to avoid warnings.
72907
72908 2006-05-09  Bruno Haible  <bruno@clisp.org>
72909
72910         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72911         (Depends-on): Depend also on xsize, stdarg.
72912         (configure.ac): Add gl_XVASPRINTF.
72913
72914 2006-05-09  Bruno Haible  <bruno@clisp.org>
72915
72916         * m4/xvasprintf.m4: New file.
72917
72918 2006-05-09  Bruno Haible  <bruno@clisp.org>
72919
72920         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72921         (EOVERFLOW): Define fallback value.
72922         (xstrcat): New function.
72923         (xvasprintf): Recognize the special case of a string concatenation.
72924
72925 2006-05-08  Eric Blake  <ebb9@byu.net>
72926
72927         * gnulib-tool (func_version): Base copyright year on CVS date.
72928         (func_emit_copyright_notice): New function.
72929         (func_emit_lib_Makefile_am): Use it.
72930         (func_emit_tests_Makefile_am): Likewise.
72931         (func_import): Likewise.
72932
72933 2006-05-08  Bruno Haible  <bruno@clisp.org>
72934
72935         * modules/stdarg: New file.
72936         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72937
72938 2006-05-08  Bruno Haible  <bruno@clisp.org>
72939
72940         * m4/stdarg.m4: New file, from GNU gettext.
72941
72942 2006-05-08  Bruno Haible  <bruno@clisp.org>
72943
72944         * config/srclist.txt (build-aux/config.rpath): different from latest
72945         release.
72946
72947 2006-05-08  Bruno Haible  <bruno@clisp.org>
72948
72949         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72950
72951 2006-05-05  Jim Meyering  <jim@meyering.net>
72952
72953         * m4/warning.m4: New file, derived from bison's file by the same name.
72954
72955 2006-05-03  Bruno Haible  <bruno@clisp.org>
72956
72957         * lib/stdint_.h: Shorter URL.
72958         * lib/inttypes.h: Likewise.
72959
72960 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72963
72964 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         * lib/verify.h: Document the internals better.  Most of this change
72967         was written by Bruno Haible.
72968
72969 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72970
72971         * doc/verify.texi: New file, partly based on a proposal by
72972         Bruno Haible.
72973
72974 2006-05-02  Bruno Haible  <bruno@clisp.org>
72975
72976         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72977         test from here...
72978         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72979
72980 2006-04-29  Bruno Haible  <bruno@clisp.org>
72981
72982         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72983         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72984
72985 2006-04-29  Bruno Haible  <bruno@clisp.org>
72986
72987         * gnulib-tool: Make --update option actually work.
72988
72989 2006-04-29  Bruno Haible  <bruno@clisp.org>
72990
72991         * doc/gcd.texi: New file.
72992         * doc/gnulib.texi: Include it.
72993
72994 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         * lib/getdate.y (get_date): When adding relative date, start with the
72997         initial time, not with the result of the first mktime call.
72998
72999 2006-04-25  Bruno Haible  <bruno@clisp.org>
73000
73001         * gnulib-tool (func_import): Output the include directives in three
73002         blocks, sorted separately.
73003         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73004
73005 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73008         to define main with arguments, for C++.  Reported by Eric Blake.
73009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73010         Prefer 'int main ()' to 'int main (void)', for C++.
73011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73013         for 'main', for C99 and C++.
73014
73015 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73018         Don't assume that exit status -1 is valid.
73019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73020         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73021         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73022         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73023         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73024         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73025         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73026         functions can be used without declaring them, or that you can
73027         exit with status -1.
73028         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73029
73030 2006-04-24  Karl Berry  <karl@gnu.org>
73031
73032         * config/srclist.txt (longdouble.m4): sync lost.
73033
73034 2006-04-24  Eric Blake  <ebb9@byu.net>
73035
73036         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73037
73038 2006-04-24  Bruno Haible  <bruno@clisp.org>
73039
73040         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73041         poll() implementation in AIX.
73042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73043
73044 2006-04-24  Bruno Haible  <bruno@clisp.org>
73045
73046         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73047         assigned exactly once.
73048
73049 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73050             Bruno Haible  <bruno@clisp.org>
73051
73052         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73053         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73054         for AM_CPPFLAGS.
73055
73056 2006-04-23  Bruno Haible  <bruno@clisp.org>
73057
73058         * modules/copy-file: Depend on unistd.
73059         * modules/execute: Likewise.
73060         * modules/fatal-signal: Likewise.
73061         * modules/findprog: Likewise.
73062         * modules/mkdtemp : Likewise.
73063         * modules/pipe: Likewise.
73064         * modules/wait-process: Likewise.
73065
73066 2006-04-23  Bruno Haible  <bruno@clisp.org>
73067
73068         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73069         condition was already detected.
73070         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73071
73072 2006-04-23  Bruno Haible  <bruno@clisp.org>
73073
73074         * lib/copy-file.c: Include <unistd.h> unconditionally.
73075         * lib/execute.c: Likewise.
73076         * lib/fatal-signal.c: Likewise.
73077         * lib/findprog.c: Likewise.
73078         * lib/mkdtemp.c: Likewise.
73079         * lib/pipe.h: Likewise.
73080         * lib/pipe.c: Likewise.
73081         * lib/wait-process.h: Likewise.
73082
73083 2006-04-23  Bruno Haible  <bruno@clisp.org>
73084
73085         * gnulib-tool (func_usage): Fix --import description. Document
73086         --update.
73087         (func_import): Create temporary file in a temporary directory, if
73088         --dry-run is specified. Silence errors from 'grep' when there are no
73089         m4 files in $m4dir.
73090         (func_create_testdir): Silence errors from 'grep' when there are no
73091         m4 files in $m4dir.
73092         Reported by Karl Berry <karl@freefriends.org>.
73093
73094 2006-04-20  Bruno Haible  <bruno@clisp.org>
73095
73096         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73097         one argument, so that the code will be portable to Autoconf 2.60.
73098         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73099         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73100         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73101
73102 2006-04-19  Derek Price  <derek@ximbiot.com>
73103             Eric Blake  <ebb9@byu.net>
73104
73105         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73106         rather than "/full/path.h".  Update comment to match.  Shorten &
73107         generalize m4_translit call via AS_TR_CPP.
73108
73109 2006-04-19  Derek Price  <derek@ximbiot.com>
73110             Eric Blake  <ebb9@byu.net>
73111
73112         * lib/inttypes.h: Correct grammar in comment.
73113
73114 2006-04-18  Derek Price  <derek@ximbiot.com>
73115             Paul Eggert  <eggert@cs.ucla.edu>
73116
73117         * modules/inttypes: New file.
73118         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73119
73120 2006-04-18  Derek Price  <derek@ximbiot.com>
73121             Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73124         New files.
73125
73126 2006-04-18  Derek Price  <derek@ximbiot.com>
73127             Paul Eggert  <eggert@cs.ucla.edu>
73128
73129         * lib/inttypes.h: New file.
73130         * lib/strtoimax.c: Assume <inttypes.h>.
73131
73132 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73135         isn't mounted.  Problem reported by Kir Kolyshkin.
73136
73137 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73140         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73141         Derek R. Price.
73142         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73143         implementation.
73144
73145 2006-04-12  Eric Blake  <ebb9@byu.net>
73146
73147         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73148         is now done automatically by the corresponding Autoconf macro.
73149
73150 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73153         time_r.h.
73154
73155 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         Merge regex changes from libc, removing some of our
73158         POSIX-conformance changes that were rejected and redoing them in a
73159         less-intrusive way.
73160
73161         * lib/regcomp.c (re_compile_internal, init_dfa):
73162         Length arg is now size_t, not Idx.  All uses changed.
73163         (peek_token): Forward decl now says internal_function.
73164         (__re_error_msgid, __re_error_msgid_idx):
73165         Now static rather than extern with attribute_hidden.
73166         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73167         For some reason libc prefers K&R style defns for external functions.
73168         (regerror) [!defined _LIBC]: Likewise.
73169         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73170         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73171         (build_range_exp, build_collating_symbol):
73172         Use K&R-style defn.
73173         (re_compile_fastmap): Use '\0' to memset, not 0.
73174         (utf8_sb_map): Make the calculations more obvious.
73175         (init_dfa, parse_bracket_exp, build_charclass_op):
73176         Call calloc and cast result, as glibc does.
73177         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73178         (build_range_exp, build_collating_symbol):
73179         Now internal functions.
73180
73181         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73182
73183         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73184         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73185         Don't depend on VMS; depend on __VMS instead, for POSIX
73186         namespace cleanness.
73187         (regoff_t): Define to ssize_t, not long int.
73188
73189         Remove the REG_ macros named below.  Instead, make the old names
73190         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73191         __USE_GNU_REGEX.
73192         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73193         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73194         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73195         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73196         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73197         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73198         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73199         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73200         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73201         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73202         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73203         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73204         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73205         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73206         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73207         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73208         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73209         (REG_NREGS):
73210         Remove.  All uses replaced by the old RE_* names.
73211         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73212         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73213         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73214         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73215         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73216         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73217         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73218         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73219         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73220         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73221         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73222         Don't bother having these macros be independent of each others'
73223         values, since they no longer exist in the POSIX name space.
73224
73225         Rename the following member names back to their old names,
73226         unless !__USE_GNU_REGEX.  All uses changed back.
73227         (buffer): Renamed from re_buffer.
73228         (allocated): Renamed from re_allocated.
73229         (used): Renamed from re_used.
73230         (syntax): Renamed from re_syntax.
73231         (fastmap): Renamed from re_fastmap.
73232         (translate): Renamed from re_translate.
73233         (can_be_null): Renamed from re_can_be_null.
73234         (regs_allocated): Renamed from re_regs_allocated.
73235         (fastmap_accurate): Renamed from re_fastmap_accurate.
73236         (no_sub): Renamed from re_no_sub.
73237         (not_bol): Renamed from re_not_bol.
73238         (not_eol): Renamed from re_not_eol.
73239         (newline_anchor): Renamed from re_newline_anchor.
73240         (num_regs): Renamed from rm_num_regs.
73241         (start): Renamed from rm_start.
73242         (end): Renamed from rm_end.
73243
73244         (free_state): Move up a bit.
73245
73246         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73247         #define to be empty.
73248         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73249         when that is what is intended.
73250         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73251         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73252         (MAX): New macro.
73253         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73254         All uses changed back to re_malloc, etc.  It's now the caller's
73255         responsibility to check for overflow; all callers changed.
73256         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73257         (re_x2nrealloc): Remove.
73258         (free_state): Remove decl.
73259
73260         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73261         (re_set_registers, re_exec):
73262         Use K&R-style defn.
73263
73264         2006-01-31  Roland McGrath  <roland@redhat.com>
73265
73266         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73267         Reported by Mike Frysinger <vapier@gentoo.org>.
73268
73269         2006-01-15  Andreas Jaeger  <aj@suse.de>
73270
73271         [BZ #1950]
73272         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73273         build_wcs_upper_buffer change.
73274         (build_wcs_upper_buffer): Change return type.
73275
73276         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73277
73278         * lib/regex_internal.h: Include <stdint.h> if available.
73279
73280         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73281
73282         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73283
73284         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73285
73286         * lib/regcomp.c: Adjust for changed secondary hash function.
73287
73288         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73289
73290         * lib/regex.h: Pretty printing.
73291         Clean up namespace a bit.
73292
73293         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73294
73295         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73296         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73297
73298         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73299                     Ulrich Drepper  <drepper@redhat.com>
73300
73301         [BZ #1302]
73302         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73303         changed.
73304         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73305
73306         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73307
73308         [BZ #281]
73309         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73310         * lib/regcomp.c: Remove unnecessary uses of
73311         unsigned RE_TRANSLATE_TYPE.
73312         * lib/regex_internal.h: Likewise.
73313         * lib/regex_internal.c: Likewise.
73314         * lib/regexec.c: Likewise.
73315         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73316
73317         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73318
73319         * lib/regexec.c (find_recover_state): Remove unnecessary
73320         initialization.
73321         (transit_state_bkref): Make DFA a const pointer.
73322         (get_subexp): Likewise.
73323         (check_arrival): Likewise.
73324         (update_cur_sifted_state): Likewise.
73325         (re_search_internal): Likewise.
73326         (prune_impossible_nodes): Likewise.
73327         (acquire_init_state_context): Likewise.
73328         (proceed_next_node): Likewise.
73329         (set_regs): Likewise.
73330         (free_fail_stack_return): Likewise.
73331         (check_arrival_expand_ecl): Mark DFA parameter as const.
73332         (check_arrival_expand_ecl_sub): Likewise.
73333         (check_subexp_limits): Likewise.
73334         (sub_epsilon_src_nodes):  Likewise.
73335         (add_epsilon_src_nodes):  Likewise.
73336         (merge_state_array): Likewise.
73337         (update_regs): Likewise.
73338         (build_trtable): Likewise.
73339         (sift_states_backward): Mark MCTX parameter as const.
73340         (build_sifted_states): Likewise.
73341         (update_cur_sifted_state): Likewise.
73342         (sift_states_mkref): Likewise.
73343         (check_arrival_expand_ecl): Mark eclosure as const.
73344         (check_dst_limits_calc_pos_1): Likewise.
73345         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73346         pointer.
73347
73348         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73349
73350         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73351         (transit_state_sb): Likewise.
73352         (transit_state_mb): Likewise.
73353         (sift_states_iter_mb): Likewise.
73354         (check_arrival_add_next_nodes): Likewise.
73355         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73356         [_LIBC] (re_search_2_stub): Use mempcpy.
73357
73358         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73359         mbrtowc for very simple UTF-8 case.
73360
73361         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73362         a pointer-to-const.
73363         (re_acquire_state_context): Likewise.
73364         * lib/regex_internal.h: Adjust prototypes.
73365
73366         * lib/regex.c: Prevent using C++ compilers.
73367
73368         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73369         (re_acquire_state_context): Likewise.
73370
73371 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73372
73373         * modules/regex (Depends-on): Add ssize_t.
73374
73375 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73376
73377         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73378         translation table.
73379
73380 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73381
73382         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73383
73384 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73385             Bruno Haible  <bruno@clisp.org>
73386
73387         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73388         <sys/types.h> and <inttypes.h>.
73389
73390 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73391
73392         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73393         `__error_t_defined', so argp.h will not typedef the former.
73394
73395 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73396
73397         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73398         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73399         glibc names.  Even if glibc is changed to conform to POSIX, the
73400         traditional names will be available anyway, since regex depends on
73401         the extensions module.  Also, fix a longstanding typo in the
73402         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73403         reported by Emanuele Giaquinta.  Also, change sense of cached
73404         variable, so that the message makes sense.
73405
73406 2006-03-24  Simon Josefsson  <jas@extundo.com>
73407
73408         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73409         including some doc fixes.
73410         (base64_encode_alloc): Fix +1 bug on allocation failures.
73411
73412 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73413
73414         * lib/base64.c (base64_encode): Do not read past end of array with
73415         unsanitized input on systems with CHAR_BIT > 8.
73416
73417 2006-03-24  Eric Blake  <ebb9@byu.net>
73418
73419         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73420
73421 2006-03-22  Karl Berry  <karl@gnu.org>
73422
73423         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73424         * config/srclistvars.sh (COREUTILS): new var.
73425
73426 2006-03-17  Jim Meyering  <jim@meyering.net>
73427
73428         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73429         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73430
73431 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73432
73433         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73434         no longer needs it.  Instead, check that regoff_t is as least
73435         as wide as ptrdiff_t.
73436
73437         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73438         so that our regex.h stays compatible with the installed regex.
73439         This is helpful for installers who configure --without-included-regex.
73440         Problem reported by Emanuele Giaquinta.
73441
73442 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73445         Typedef to long int, not to off_, as POSIX will likely change
73446         in that direction.
73447
73448 2006-03-15  Eric Blake  <ebb9@byu.net>
73449
73450         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73451
73452 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73453
73454         * lib/argp-help.c (validate_uparams): Fix typo
73455         * lib/argp-parse.c (argp_default_options): Consistently begin help
73456         messages with a lowercase letter.
73457
73458 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73461         overrun buffers and shouldn't be used (much as gets shouldn't be
73462         used).
73463         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73464
73465 2006-03-08  Simon Josefsson  <jas@extundo.com>
73466
73467         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73468         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73469
73470 2006-03-08  Simon Josefsson  <jas@extundo.com>
73471
73472         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73473         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73474
73475 2006-03-08  Simon Josefsson  <jas@extundo.com>
73476
73477         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73478         signal that configure disabled the device.
73479
73480 2006-03-08  Simon Josefsson  <jas@extundo.com>
73481
73482         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73483         languages.
73484
73485 2006-03-07  Simon Josefsson  <jas@extundo.com>
73486
73487         * modules/getopt (Depends-on): Add unistd.
73488
73489         * modules/unistd: New file.
73490
73491 2006-03-07  Simon Josefsson  <jas@extundo.com>
73492
73493         * modules/gc-random: New file.
73494
73495 2006-03-07  Simon Josefsson  <jas@extundo.com>
73496
73497         * m4/unistd_h.m4: New file.
73498
73499 2006-03-07  Simon Josefsson  <jas@extundo.com>
73500
73501         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73502         test to be side-effect free by storing the result in the cache
73503         variable gl_cv_lib_readline, and moving the assignment of
73504         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73505         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73506
73507 2006-03-07  Simon Josefsson  <jas@extundo.com>
73508
73509         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73510         error on missing devices (the functions will return an error).
73511
73512         * m4/gc.m4: Move random stuff to gc-random.m4
73513
73514 2006-03-07  Simon Josefsson  <jas@extundo.com>
73515
73516         * lib/unistd_.h: New file.
73517
73518 2006-03-07  Simon Josefsson  <jas@extundo.com>
73519
73520         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73521
73522 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73523
73524         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73525         Problem reported by Juan Manuel Guerrero.
73526
73527 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73528
73529         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73530         the unistd module.
73531         * lib/getlogin_r.c: Likewise.
73532         * lib/getlogin_r.h: Likewise.
73533         * lib/glob.c: Likewise.
73534         * lib/pagealign_alloc.c: Likewise.
73535         * lib/unistd_.h: Remove; no longer needed.
73536
73537 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73538
73539         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73540         Add unistd.
73541         * modules/c-stack (Depends-on): Add unistd.
73542         * modules/getlogin_r: Likewise.
73543         * modules/glob: Likewise.
73544         * modules/pagealign_alloc: Likewise.
73545         * modules/unistd (Files): Remove lib/unistd_.h.
73546         (EXTRA_DIST): Remove.
73547         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73548         need unistd_.h.
73549         (MOSTLYCLEANFILES): Remove unistd.h-t.
73550
73551 2006-03-03  Simon Josefsson  <jas@extundo.com>
73552
73553         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73554
73555 2006-03-03  Simon Josefsson  <jas@extundo.com>
73556
73557         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73558         libidn and bison.
73559
73560 2006-03-03  Simon Josefsson  <jas@extundo.com>
73561
73562         * build-aux/maint.mk: Add indent target.
73563
73564 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73565
73566         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73567         our replacement poll.h in any case, to avoid a differing
73568         declaration from a system header.  Seen on AIX.
73569
73570 2006-03-01  Simon Josefsson  <jas@extundo.com>
73571
73572         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73573         <kasal@ucw.cz>.
73574
73575 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         * modules/gettime (Depends-on): Add extensions module.
73578         * modules/nanosleep (Depends-on): Likewise.
73579         * modules/settime (Depends-on): Likewise.
73580
73581 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73584         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73585         pedantically.
73586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73587         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73588
73589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73590         not "==".  Reported by Ralf Wildenhues.
73591
73592 2006-03-01  Karl Berry  <karl@gnu.org>
73593
73594         * doc/Copyright/request-*: new files, synced from gnuorg.
73595
73596 2006-03-01  Karl Berry  <karl@gnu.org>
73597
73598         * config/srclist.txt (Copyright/*): new entries.
73599
73600 2006-02-28  Simon Josefsson  <jas@extundo.com>
73601
73602         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73603
73604 2006-02-27  Simon Josefsson  <jas@extundo.com>
73605
73606         * lib/base64.h: Indent #define's.  From Jim Meyering
73607         <jim@meyering.net>.
73608
73609 2006-02-27  Jim Meyering  <jim@meyering.net>
73610
73611         Revert the change of 2006-02-24, so these files can continue
73612         to be sync'd from gettext.
73613         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73614         of `config.h'.
73615
73616 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * modules/intprops: New file.
73619         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73620         Add intprops.
73621         * modules/getloadavg (Files): Remove lib/intprops.h.
73622         (Depends-on): Add intprops.
73623         * modules/human: Likewise.
73624         * modules/inttostr: Likewise.
73625         * modules/openat: Likewise.
73626         * modules/sig2str: Likewise.
73627         * modules/userspec: Likewise.
73628         * modules/utimecmp: Likewise.
73629         * modules/xnanosleep: Likewise.
73630         * modules/xstrtol: Likewise.
73631
73632 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73633
73634         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73635         * modules/lock-tests (TESTS): Use $(EXEEXT).
73636         * modules/tls-tests: Likewise.
73637         * modules/argp-tests: Likewise.
73638         (check_PROGRAMS): New var, replacing...
73639         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73640
73641 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73642
73643         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73644         `config.h'.
73645
73646 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73649
73650 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73651
73652         Sync from coreutils.
73653         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73654         gl_CHDIR_SAFER.
73655
73656 2006-02-22  Jim Meyering  <jim@meyering.net>
73657
73658         Sync from coreutils.
73659         * m4/chdir-safer.m4: New file.
73660
73661 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73664         AT_FDCWD exceeds INT_MAX.
73665         * lib/openat.h (AT_FDCWD): Likewise.
73666
73667 2006-02-17  Eric Blake  <address@hidden>
73668
73669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73670
73671 2006-02-16  Simon Josefsson  <jas@extundo.com>
73672
73673         * modules/getaddrinfo (Depends-on): Add sys_socket.
73674
73675 2006-02-15  Simon Josefsson  <jas@extundo.com>
73676
73677         * build-aux/maint.mk: Add dsyntax-check rule.
73678
73679 2006-02-15  Eric Blake  <ebb9@byu.net>
73680
73681         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73682         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73683         'present but cannot compile' warnings on cygwin.
73684         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73685         use ws2tcpip.h if sys/socket.h works.
73686         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73687         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73688
73689 2006-02-14  Simon Josefsson  <jas@extundo.com>
73690
73691         * modules/maintainer-makefile (Files): Rename.
73692
73693         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73694         and (the local) Makefile.cfg to maint-cfg.mk.
73695
73696         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73697         to the latter.
73698
73699         * modules/maintainer-makefile: New module.
73700
73701         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73702         severaly stripped to make it possible to build it up from scratch
73703         with reliable tests.
73704
73705         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73706         fixes to permit overriding the default actions when configure and
73707         makefile are not available.
73708
73709 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         Sync from coreutils.
73712         * modules/lstat (Depends-on): Don't depend on xalloc.
73713         (License): Change from GPL to LGPL, since this is now simply a
73714         replacement for a libc function.
73715
73716 2006-02-14  Jim Meyering  <jim@meyering.net>
73717
73718         Sync from coreutils.
73719
73720         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73721         failure on deficient systems, and simplify gnulib lgpl dependencies.
73722         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73723         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73724
73725         * lib/xalloc-die.c: Remove unused definition of N_.
73726
73727 2006-02-14  Jim Meyering  <jim@meyering.net>
73728
73729         Sync from coreutils.
73730         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73731         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73732         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73733         double-quote uses of that variable, to accommodate the rare case in
73734         which getmntent is available in none of the libraries checked.  This
73735         happens at least on FreeBSD 5.0.
73736
73737 2006-02-13  Simon Josefsson  <jas@extundo.com>
73738
73739         * gnulib-tool (Usage): Fix --import, from
73740         karl@freefriends.org (Karl Berry).
73741
73742 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73743
73744         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73745
73746 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73747
73748         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73749         "autoupdate" on 2005-12-12.
73750
73751 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73752
73753         * modules/closeout (Depends-on): Remove atexit.
73754
73755 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73758         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73759
73760 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73761
73762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73763         __EXTENSIONS__ if this causes compilation to fail.  Problem
73764         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73765         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73766
73767 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73770         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73771         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73772         All uses changed.
73773
73774 2006-01-26  Simon Josefsson  <jas@extundo.com>
73775
73776         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73777         prototype is visible on mingw32.
73778
73779         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73780         for mingw32.
73781
73782         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73783         mingw32).
73784
73785 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73786
73787         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73788         attempt to open for write; this always fails, at least on POSIX
73789         hosts.  This reinstates the 2006-01-09 change, which was
73790         inadvertently removed.
73791
73792 2006-01-26  Bruno Haible  <bruno@clisp.org>
73793
73794         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73795         Reported by Paul Eggert.
73796
73797 2006-01-26  Bruno Haible  <bruno@clisp.org>
73798             Paul Eggert  <eggert@cs.ucla.edu>
73799
73800         * lib/stdbool_.h (_Bool)
73801         [(! (defined __cplusplus || defined __BEOS__)
73802           && !defined __GNUC__
73803           && !(defined __HP_cc || defined __xlc__
73804                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73805                || defined __sgi))]:
73806         #define to signed char in these cases too; this simplifies
73807         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73808         etc., separately) and makes it more conservative.
73809
73810 2006-01-25  Simon Josefsson  <jas@extundo.com>
73811
73812         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73813         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73814         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73815
73816 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73817
73818         * lib/argp-namefrob.h: Bugfix. Remove stray #
73819
73820 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73821
73822         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73823         so that we test the test.
73824         Check for yet another HP-UX cc bug involving *bool |= bool.
73825
73826 2006-01-25  Karl Berry  <karl@gnu.org>
73827
73828         * config/srclist.txt (vasnprintf.c): sync lost.
73829
73830 2006-01-25  Jim Meyering  <jim@meyering.net>
73831
73832         Sync from the stable (b5) branch of coreutils:
73833
73834         * lib/fts.c (fts_children): Don't let close() clobber errno from
73835         failed fchdir().
73836
73837         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73838         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73839         a dangling symlink.  That can also happen at least for ELOOP.
73840         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73841         FYI, this bug predates the inclusion of fts.c in coreutils.
73842
73843         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73844         in their own block, so pre-c99 compilers don't object.
73845
73846         Avoid the double-free (first in fts_read, second in fts_close) that
73847         would occur when an `active' directory is made inaccessible (e.g.,
73848         via chmod a-x) during a traversal.
73849         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73850         before returning.  Reproduce this failure by
73851         mkdir -p a/b; cd a; chmod a-x . b
73852         Reported by Stavros Passas.
73853
73854 2006-01-25  Jim Meyering  <jim@meyering.net>
73855
73856         * lib/fileblocks.c: Remove more useless parentheses.
73857         * lib/readutmp.h: Likewise.
73858
73859 2006-01-25  Bruno Haible  <bruno@clisp.org>
73860
73861         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73862         warnings.
73863         Reported by Paul Eggert.
73864
73865 2006-01-25  Bruno Haible  <bruno@clisp.org>
73866
73867         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73868         rid of a trap command. For Solaris sh.
73869         Reported by Mark D. Baushke <mdb@gnu.org>.
73870
73871 2006-01-24  Simon Josefsson  <jas@extundo.com>
73872
73873         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73874         Bruno.
73875
73876 2006-01-24  Karl Berry  <karl@gnu.org>
73877
73878         * config/srclist.txt (argp-namefrob.h): sync lost.
73879
73880 2006-01-24  Jim Meyering  <jim@meyering.net>
73881
73882         * modules/openat (Files): Add lib/intprops.h.
73883         From Mark D. Baushke.
73884
73885 2006-01-24  Jim Meyering  <jim@meyering.net>
73886
73887         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73888         Reported by Mark D. Baushke.
73889
73890 2006-01-24  Jim Meyering  <jim@meyering.net>
73891
73892         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73893
73894 2006-01-24  Bruno Haible  <bruno@clisp.org>
73895
73896         * modules/strnlen (Maintainer): Change from glibc to all.
73897
73898 2006-01-24  Bruno Haible  <bruno@clisp.org>
73899
73900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73901         Patch by Paul Eggert.
73902
73903 2006-01-24  Bruno Haible  <bruno@clisp.org>
73904
73905         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73906         already has it.
73907         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73908         2005-11-26.
73909
73910         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73911         'signed char' to avoid problems with the built-in _Bool type.
73912         Reported by Paul Eggert on 2005-11-26.
73913
73914 2006-01-24  Bruno Haible  <bruno@clisp.org>
73915
73916         * gnulib-tool (func_import): Avoid constructing complicated sed
73917         expressions inside backquote.
73918         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73919
73920 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73921
73922         These changes imported from libc.
73923         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73924         test and two separate function calls.
73925         * lib/strndup.c (__strndup): Add libc_hidden_def.
73926
73927 2006-01-23  Simon Josefsson  <jas@extundo.com>
73928
73929         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73930         Remove the test_*_SOURCES variable: automake infers it by default.
73931         * modules/tls-tests: Likewise.
73932
73933 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         Work around porting bugs reported by Dieter in
73936         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73937         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73938         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73939         Include "getopt.h" first, to check interface.
73940         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73941         !HAVE_DECL_GETENV.
73942         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73943         (__strndup): Revert to K&R-style function dfns, the glibc style.
73944         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73945         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73946         Include strnlen.h first, to get prototype properly.
73947         (strnlen): Renamed from __strnlen.
73948         Remove weak alias.
73949
73950 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73951
73952         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73953
73954 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73955
73956         * config/srclist.txt: Adjust to reflect glibc reorganization.
73957         This affects only comments.
73958
73959 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73960
73961          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73962          Reported by Bruce Korb <bkorb@gnu.org>.
73963
73964 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73967         to pacify gcc -Wswitch-default.
73968
73969 2006-01-22  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73972         temporary buffer for sprintf, take into account the precision also
73973         for 'd', 'i', 'u', 'o', 'x', 'X'.
73974
73975 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73976
73977         * modules/argp-tests: New module
73978         * tests/test-argp.c: New file
73979         * tests/test-argp-2.sh: New file
73980
73981 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73982
73983         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73984         (__argp_base_name): Removed
73985         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73986         typo.
73987         (__argp_base_name): Provide macro definition or extern declaration
73988         depending on the configuration
73989
73990 2006-01-20  Simon Josefsson  <jas@extundo.com>
73991
73992         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73993
73994 2006-01-20  Simon Josefsson  <jas@extundo.com>
73995
73996         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73997
73998 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73999
74000         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74001         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74002         Suggested by Bruno Haible.
74003
74004 2006-01-20  Karl Berry  <karl@gnu.org>
74005
74006         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74007         until changes propagate, I guess.
74008
74009 2006-01-19  Simon Josefsson  <jas@extundo.com>
74010
74011         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74012
74013 2006-01-19  Simon Josefsson  <jas@extundo.com>
74014
74015         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74016
74017 2006-01-19  Simon Josefsson  <jas@extundo.com>
74018
74019         * gnulib-tool: Set check_PROGRAMS.
74020
74021         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74022         modules/des-tests, modules/gc-arcfour-tests,
74023         modules/gc-arctwo-tests, modules/gc-des-tests,
74024         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74025         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74026         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74027         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74028         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74029         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74030         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74031         test_*_SOURCES.
74032
74033 2006-01-18  Simon Josefsson  <jas@extundo.com>
74034
74035         * modules/socklen (Depends-on): Depend on sys_socket.
74036
74037 2006-01-18  Simon Josefsson  <jas@extundo.com>
74038
74039         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74040         modules/des-tests, modules/gc-arcfour-tests,
74041         modules/gc-arctwo-tests, modules/gc-des-tests,
74042         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74043         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74044         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74045         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74046         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74047         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74048         $(EXEEXT) to automake TESTS variable, for mingw32.
74049
74050 2006-01-17  Simon Josefsson  <jas@extundo.com>
74051
74052         * modules/socklen (Include): Need sys/socket.h.
74053
74054 2006-01-17  Bruno Haible  <bruno@clisp.org>
74055
74056         * modules/ssize_t (Include): Add <sys/types.h>.
74057
74058 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74059
74060         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74061         it's not portable and it doesn't work with cross-compiles.
74062         Problem reported by Bruno Haible.  Fix missing-$ typo in
74063         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74064         -zignore from being used with Sun's C compiler.
74065
74066 2006-01-12  Simon Josefsson  <jas@extundo.com>
74067
74068         * lib/base64.c: Fix warning, reported by Bruno Haible
74069         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74070
74071 2006-01-12  Bruno Haible  <bruno@clisp.org>
74072
74073         * modules/ldd: New file.
74074         * build-aux/ldd.sh.in: New file.
74075         * MODULES.html.sh (Support for building libraries and executables): Add
74076         ldd.
74077
74078 2006-01-12  Bruno Haible  <bruno@clisp.org>
74079
74080         * m4/ldd.m4: New file.
74081
74082 2006-01-12  Bruno Haible  <bruno@clisp.org>
74083
74084         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74085         endless loop while replacing $auxdir with build-aux.
74086
74087 2006-01-11  Simon Josefsson  <jas@extundo.com>
74088
74089         * lib/stdint_.h (SIZE_MAX): Add missing (.
74090
74091 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74092
74093         Sync from coreutils.
74094         * lib/md5.c: Fix commentary typos.
74095         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74096         * lib/md5.h (__attribute__): Remove; unused.
74097         * lib/sha1.c: Fix commentary to match md5 better.
74098         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74099         so that we don't need to worry about alignment.  All uses changed.
74100         This merges the 2005-10-28 md5 change into sha1.
74101
74102 2006-01-11  Jim Meyering  <jim@meyering.net>
74103
74104         Sync from coreutils.
74105         * lib/md5.c (OP): Fix spacing.
74106
74107 2006-01-11  Bruno Haible  <bruno@clisp.org>
74108
74109         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74110         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74111         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74112
74113 2006-01-11  Bruno Haible  <bruno@clisp.org>
74114
74115         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74116         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74117         the "early" section as well.
74118
74119 2006-01-11  Bruno Haible  <bruno@clisp.org>
74120
74121         Avoid "ar: no archive members specified" error on MacOS X.
74122         * gnulib-tool (func_modules_add_dummy): New function.
74123         (func_import, func_create_testdir): Invoke it.
74124
74125 2006-01-11  Bruno Haible  <bruno@clisp.org>
74126
74127         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74128         with $auxdir in AC_CONFIG_FILES statements.
74129
74130 2006-01-11  Bruno Haible  <bruno@clisp.org>
74131
74132         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74133         Initialize also noinst_HEADERS to empty.
74134
74135 2006-01-11  Bruno Haible  <bruno@clisp.org>
74136
74137         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74138         variables.
74139         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74140         autoreconf.
74141
74142 2006-01-11  Bruno Haible  <bruno@clisp.org>
74143
74144         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74145         overridable by the user.
74146         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74147
74148 2006-01-10  Simon Josefsson  <jas@extundo.com>
74149
74150         * modules/sys_socket: New file.
74151
74152 2006-01-10  Simon Josefsson  <jas@extundo.com>
74153
74154         * m4/sys_socket_h.m4: New file.
74155
74156 2006-01-10  Simon Josefsson  <jas@extundo.com>
74157
74158         * lib/socket_.h: New file.
74159
74160 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74161
74162         * modules/readutmp (Maintainer): Add myself.
74163
74164 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74165
74166         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74167         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74168         People who are still concerned with buggy memcmp implementations
74169         can invoke gl_FUNC_MEMCMP themselves.
74170
74171 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74172
74173         * lib/regex_internal.h (BITSET_WORD_BITS):
74174         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74175         preprocessor mishandles large unsigned values as if they were signed.
74176         Problem reported by Claudio Fontana in
74177         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74178
74179 2006-01-10  Jim Meyering  <jim@meyering.net>
74180
74181         Avoid the double-free (first in fts_read, second in fts_close) that
74182         would occur when an `active' directory is made inaccessible (e.g.,
74183         via chmod a-x) during a traversal.
74184         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74185         before returning.  Reproduce this failure by
74186         mkdir -p a/b; cd a; chmod a-x . b
74187         Reported by Stavros Passas.
74188
74189         Sync from coreutils.
74190         * lib/sha1.c: Tweak grammar in a comment.
74191
74192 2006-01-10  Jim Meyering  <jim@meyering.net>
74193
74194         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74195         Patch by Joerg Sonnenberger.
74196
74197 2006-01-10  Bruno Haible  <bruno@clisp.org>
74198
74199         * modules/readutmp: Depend on module free.
74200         * modules/strtok_r: Depend on module restrict.
74201
74202 2006-01-10  Bruno Haible  <bruno@clisp.org>
74203
74204         * modules/gettext (configure.ac): Add an invocation of
74205         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74206
74207 2006-01-10  Bruno Haible  <bruno@clisp.org>
74208
74209         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74210         Reported by Werner Lemberg <wl@gnu.org>.
74211
74212 2006-01-10  Bruno Haible  <bruno@clisp.org>
74213
74214         * lib/localcharset.c: Update from GNU gettext.
74215
74216 2006-01-10  Bruno Haible  <bruno@clisp.org>
74217
74218         * lib/argp.h (__const): Remove macro. Use const instead.
74219         * lib/argp-fmtstream.h (__const): Likewise.
74220         * lib/glob_.h (__const): Remove macro.
74221         * lib/glob-libc.h: Use const instead of __const.
74222
74223 2006-01-10  Bruno Haible  <bruno@clisp.org>
74224
74225         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74226         variable.
74227         Needed to avoid an automake error regarding the 'gettext' module.
74228
74229 2006-01-09  Simon Josefsson  <jas@extundo.com>
74230
74231         * modules/inet_ntop (Depends-on): Add restrict.
74232
74233 2006-01-09  Simon Josefsson  <jas@extundo.com>
74234
74235         * modules/gc-rijndael-tests (License): Put under LGPL.
74236
74237         * modules/gc-des-tests (License): Likewise.
74238
74239         * modules/gc-arcfour-tests (License): Likewise.
74240
74241         * modules/gc-arctwo-tests (License): Likewise.
74242
74243         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74244
74245         * modules/gc-hmac-sha1-tests (Files): Likewise.
74246
74247         * modules/gc-hmac-md5-tests (License): Likewise.
74248
74249         * modules/gc-sha1-tests (License): Likewise.
74250
74251         * modules/gc-md5-tests (License): Likewise.
74252
74253         * modules/gc-md4-tests (License): Likewise.
74254
74255         * modules/gc-md2-tests (License): Likewise.
74256
74257         * modules/gc-tests (License): Likewise.
74258
74259         * modules/des-tests (License): Likewise.
74260
74261         * modules/md4-tests (License): Likewise.
74262
74263         * modules/md2-tests (License): Likewise.
74264
74265 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         Sync from coreutils:
74268
74269         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74270         * modules/lib-ignore: New file.
74271         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74272         chdir-safer.m4, lchmod.m4.
74273         * modules/openat: Add mkdirat.c, openat-priv.h.
74274
74275 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74276
74277         Sync from coreutils.
74278         * m4/lib-ignore.m4: New file.
74279         * m4/lchmod.m4: New file.
74280
74281 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74282
74283         Sync from coreutils.
74284         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74285         for write access: POSIX says that must fail.
74286         * lib/fts.c (diropen): Likewise.
74287         * lib/save-cwd.c (save_cwd): Likewise.
74288         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74289         well, for minor improvements on hosts that lack O_DIRECTORY.
74290         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74291         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74292         Fall back on chown if open failed with EACCES.
74293
74294         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74295         Report an error at compile-time if only a 1-second nominal clock
74296         resolution is found.
74297
74298         * lib/lchmod.h: New file.
74299         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74300         (make_dir_parents): Use lchown rather than chown, and
74301         lchmod rather than chmod.
74302
74303         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74304         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74305         "proc" reported by n0dalus.
74306
74307         * lib/mountlist.c: Include <limits.h>.
74308         (dev_from_mount_options)
74309         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74310         New function.  It no longer assumes "dev=" has the System V meaning
74311         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74312         (read_file_system_list)
74313         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74314         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74315         dev= in that case.
74316
74317         * lib/posixtm.h (PDS_PRE_2000): New macro.
74318         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74319         allow_century.  All usages changed.  Reject dates outside the range
74320         1969-1999 if PDS_PRE_2000 is used.
74321
74322 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         Sync from coreutils.
74325         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74326         (Time of day items): Mention the possibility of leap seconds.
74327         Problem reported by Dr. David Alan Gilbert.
74328
74329 2006-01-09  Jim Meyering  <jim@meyering.net>
74330
74331         Sync from coreutils.
74332
74333         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74334
74335         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74336
74337         * lib/modechange.c (mode_compile): Reject an invalid mode string
74338         that starts with an octal digit.  From Andreas Gruenbacher.
74339
74340         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74341         and dup to open_safer and dup_safer, respectively.
74342         (openat_permissive): Fix typo in comment.
74343
74344         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74345         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74346         (_): Remove; no longer needed.
74347         (openat): Renamed from rpl_openat; no need for rpl_openat
74348         since openat.h renames openat for us.
74349         Replace most of the body with a call to openat_permissive,
74350         to avoid duplicate code.
74351         Port to (probably hypothetical) environments were mode_t is
74352         wider than int.
74353         (openat_permissive): Require mode arg, so that we can check
74354         types better.  Put it just after flags.  Change cwd failure
74355         indicator from pointer-to-bool to pointer-to-errno-value.
74356         All callers changed.
74357         Invoke openat_save_fail and/or openat_restore_fail if
74358         cwd_errno is null, so that openat can call us.
74359         (openat_permissive, fdopendir, fstatat, unlinkat):
74360         Simplify errno handling to avoid some duplicate code,
74361         as it's OK to set errno on success.
74362         * lib/openat.h: Revamp code so that function macros depend on
74363         __OPENAT_PREFIX only, not also on AT_FDCWD.
74364         (openat_ro): Remove.  Caller changed to use openat_permissive.
74365         (openat_permissive): Now a macro, if not a function.
74366         (openat_restore_fail, openat_save_fail): Now always functions,
74367         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74368
74369         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74370         and openat.c.
74371         * lib/mkdirat.c: Include openat-priv.h.
74372         Remove definitions of macros defined therein.
74373         * lib/openat.c: Likewise.
74374
74375         * lib/mkdirat.c (mkdirat): New file and function.
74376         * lib/openat.h (mkdirat): Declare.
74377
74378         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74379
74380         * lib/openat.h (openat_permissive): Declare.
74381         (openat_ro): Define.
74382
74383         * lib/openat.c (EXPECTED_ERRNO): New macro.
74384         (openat_permissive): New function -- used in remove.c rewrite.
74385         (all functions): Set errno just before returning, only if there
74386         was an actual failure.
74387         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74388
74389         Emulate openat-family functions using Linux's procfs, if possible.
74390         Idea and some code based on Ulrich Drepper's glibc changes.
74391
74392         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74393         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74394         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74395         before falling back on save_cwd and restore_cwd.
74396         (fdopendir, fstatat, unlinkat): Likewise.
74397
74398         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74399         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74400
74401         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74402         as second argument to va_arg.  Otherwise, some versions of gcc
74403         warn that `if this code is reached, the program will abort'.
74404
74405 2006-01-09  Jim Meyering  <jim@meyering.net>
74406
74407         Sync from coreutils.
74408         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74409         Require openat-priv.h.
74410
74411 2006-01-09  Bruno Haible  <bruno@clisp.org>
74412
74413         * modules/strnlen (Include): Use strnlen.h.
74414
74415 2006-01-09  Bruno Haible  <bruno@clisp.org>
74416
74417         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74418
74419 2006-01-09  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/sysexit_.h (EX_OK): New macro.
74422         Suggested by Martin Lambers <marlam@marlam.de>.
74423
74424 2006-01-09  Bruno Haible  <bruno@clisp.org>
74425
74426         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74427         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74428
74429 2006-01-09  Bruno Haible  <bruno@clisp.org>
74430
74431         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74432         numbers.
74433
74434 2006-01-09  Bruno Haible  <bruno@clisp.org>
74435
74436         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74437         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74438         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74439         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74440
74441 2006-01-09  Bruno Haible  <bruno@clisp.org>
74442
74443         * build-aux/javacomp.sh.in: New file, moved from lib/.
74444         * modules/javacomp-script (Files): Update.
74445         (configure.ac): Add AC_CONFIG_FILES invocation.
74446         (EXTRA_DIST): Remove variable.
74447
74448         * build-aux/javaexec.sh.in: New file, moved from lib/.
74449         * modules/javaexec (Files): Update.
74450         (configure.ac): Add AC_CONFIG_FILES invocation.
74451         (EXTRA_DIST): Remove javaexec.sh.in.
74452
74453         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74454         * modules/csharpcomp-script (Files): Update.
74455         (configure.ac): Add AC_CONFIG_FILES invocation.
74456         (EXTRA_DIST): Remove variable.
74457
74458         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74459         * modules/csharpexec (Files): Update.
74460         (configure.ac): Add AC_CONFIG_FILES invocation.
74461         (EXTRA_DIST): Remove csharpexec.sh.in.
74462
74463 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74464
74465         Sync from coreutils.
74466
74467         Add POSIX ACL support
74468         * lib/acl.h (copy_acl, set_acl): Add declarations.
74469         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74470         systems other than Linux.
74471         (chmod_or_fchmod): New function: use fchmod when possible,
74472         and chmod otherwise.
74473         (file_has_acl): Add a POSIX ACL implementation, with a
74474         Linux-specific subcase.
74475         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74476         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74477         acls are unsupported.
74478         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74479         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74480         are unsupported.
74481
74482 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74483
74484         Sync from coreutils.
74485         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74486
74487 2006-01-07  Bruno Haible  <bruno@clisp.org>
74488
74489         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74490         gl_EARLY.
74491
74492 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74495         Problem reported for Mingw by Mark Junker.
74496
74497 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74498
74499         * README: Gnulib normally doesn't generate a tarball.
74500
74501 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74504         long int, not int, for nanosecond counts, so that people who are
74505         used to POSIX struct timespec won't be surprised.  Reported by Jim
74506         Meyering.
74507
74508 2005-12-28  Bruno Haible  <bruno@clisp.org>
74509
74510         * build-aux/config.rpath: Update from GNU gettext.
74511
74512 2005-12-16  Jim Meyering  <jim@meyering.net>
74513
74514         * modules/fprintftime: New module.
74515         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74516
74517 2005-12-16  Jim Meyering  <jim@meyering.net>
74518
74519         * m4/fprintftime.m4: New file.
74520
74521 2005-12-16  Jim Meyering  <jim@meyering.net>
74522
74523         * lib/fprintftime.c, lib/fprintftime.h: New files.
74524
74525 2005-12-15  Simon Josefsson  <jas@extundo.com>
74526
74527         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74528         new m4/socklen.m4.
74529
74530 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74531
74532         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74533         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74534
74535 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74536
74537         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74538         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74539         struct uparams is valid. Fall back to the default values if it is
74540         not.
74541
74542 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74543
74544         * modules/argp (Files): Add argp-pin.c
74545         (Depends-on): dirname
74546         (lib_SOURCES): Add argp-pin.c
74547
74548 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74549
74550         * m4/argp.m4:  Check if program_invocation_name and
74551         program_invocation_short_name are declared and define appropriate
74552         macros if they are not.
74553
74554 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74555
74556         * lib/argp-help.c (__argp_base_name): New function
74557         (__argp_short_program_name): Rewrite using __argp_base_name
74558         * lib/argp-namefrob.h: Define program_invocation_name and
74559         program_invocation_short_name if requested
74560         (__argp_base_name): Add prototype
74561         * lib/argp-parse.c (argp_def): Use gettext wrappers
74562         (argp_default_parser): Use __argp_base_name
74563         * lib/argp-pin.c: New file. Defines program_invocation_name and
74564         program_invocation_short_name on systems that lack them.
74565
74566 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74569         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74570         porting problem reported by Georg Schwarz in
74571         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74572
74573 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74576         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74577         porting problem reported by Georg Schwarz in
74578         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74579
74580 2005-12-05  Bruno Haible  <bruno@clisp.org>
74581
74582         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74583         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74584         Reported by Mark Junker <mjscod@gmx.de>.
74585
74586 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74589         Use implementation from Albert Chin, with some
74590         comments/corrections by Stepan Kasal and myself.
74591
74592 2005-12-02  Bruno Haible  <bruno@clisp.org>
74593
74594         * gnulib-tool (func_import): Accept GPLed build tool modules when
74595         --lgpl is given.
74596         * modules/csharpcomp-script: New file.
74597         * modules/csharpcomp: Depend on it.
74598         * modules/javacomp-script: New file.
74599         * modules/javacomp: Depend on it.
74600         Suggested by Simon Josefsson.
74601
74602 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74605         statement, to work around an HP-UX 10.20 compiler bug reported by
74606         Peter O'Gorman.
74607
74608 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         * modules/savedir (Depends-on): Add openat.
74611
74612 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74613
74614         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74615         (uintmax_t) [defined uintmax_t]: Do not declare.
74616         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74617         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74618         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74619         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74620         sake of portability to weird hosts that C allows (though we don't
74621         know of any practical examples).
74622
74623         * lib/savedir.h (fdsavedir): New decl.
74624         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74625         contains most of the former guts of savedir.
74626         (savedir): Use savedirstream.
74627         Include "openat.h".
74628
74629 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         * modules/obstack (Files): Add m4/ulonglong.m4.
74632         Problem reported by Davide Angelocola.
74633
74634 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74635
74636         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74637         coreutils no longer futzes with rounding modes.
74638
74639 2005-11-14  Jim Meyering  <jim@meyering.net>
74640
74641         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74642         replacement of mkstemp.
74643
74644 2005-11-10  Simon Josefsson  <jas@extundo.com>
74645
74646         * lib/readline.c: Remove EOL.
74647
74648 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74649
74650         * modules/gethrxtime (Depends-on): Add gettime.
74651
74652 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74653
74654         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74655         or gettimeofday; no longer needed.
74656
74657 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74658
74659         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74660         time business.
74661         (gethrxtime) [! (HAVE_NANOUPTIME
74662         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74663         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74664         our own approximation.
74665
74666 2005-11-08  Eric Blake  <ebb9@byu.net>
74667
74668         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74669
74670 2005-11-08  Eric Blake  <ebb9@byu.net>
74671
74672         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74673
74674 2005-11-04  Bruno Haible  <bruno@clisp.org>
74675
74676         * gnulib-tool: Implement --update mode.
74677
74678 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         Fix porting problem reported by Theodoros V. Kalamatianos.
74681         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74682         Don't assume that futimes failing means we must fail.
74683
74684 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74687         variables to suggest the intended function of the PATH_MAX check.
74688
74689 2005-10-30  Kean Johnston  <jkj@sco.com>
74690
74691         Trivial changes to support SCO systems.
74692         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74693         as PATH_MAX.
74694         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74695         where __ptr is null when no I/O is pending.
74696
74697 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74700         leave errno alone.  Problem reported by Dmitry V. Levin.
74701
74702 2005-10-28  Simon Josefsson  <jas@extundo.com>
74703
74704         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74705         Test more.
74706
74707         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74708
74709         * modules/md2, modules/md2-tests: New files.
74710
74711 2005-10-28  Simon Josefsson  <jas@extundo.com>
74712
74713         * m4/inet_ntop.m4: More tests.
74714
74715         * m4/gc-md2.m4, md2.m4: New file.
74716
74717 2005-10-28  Simon Josefsson  <jas@extundo.com>
74718
74719         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74720         "restrict" keywords, as per POSIX.  Protect the function
74721         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74722         Don't use K&R prototypes.  Check the sprintf return values.
74723         Re-define EAFNOSUPPORT if not present.  Indent.
74724
74725         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74726         suggested by Bruno Haible <bruno@clisp.org>.
74727
74728         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74729
74730         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74731
74732         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74733         libgcrypt).
74734
74735         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74736
74737         * lib/md2.h, lib/md2.c: New files.
74738
74739 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74742         errno alone.  Problem reported by Frederic Jolliton.
74743
74744 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74745
74746         * modules/verify (License): Change from GPL to LGPL.  This is a
74747         tiny module and there are apparently near-equivalents that are
74748         under the BSD license.
74749
74750 2005-10-24  Simon Josefsson  <jas@extundo.com>
74751
74752         * modules/sha1: Relicense to LGPL.
74753
74754 2005-10-24  Simon Josefsson  <jas@extundo.com>
74755
74756         * lib/md4.h: Shrink buffer size, now that we changed the type.
74757
74758 2005-10-23  Simon Josefsson  <jas@extundo.com>
74759
74760         * gnulib-tool (func_import): Fix --tests-base.
74761
74762 2005-10-22  Simon Josefsson  <jas@extundo.com>
74763
74764         * modules/arcfour (Depends-on): Need stdint.
74765
74766 2005-10-22  Simon Josefsson  <jas@extundo.com>
74767
74768         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74769         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74770
74771 2005-10-22  Simon Josefsson  <jas@extundo.com>
74772
74773         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74774         suggested by Bruno Haible <bruno@clisp.org>.
74775
74776 2005-10-22  Simon Josefsson  <jas@extundo.com>
74777
74778         * lib/crc.h: Include stddef.h, for size_t.
74779
74780 2005-10-22  Simon Josefsson  <jas@extundo.com>
74781
74782         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74783         arcfour_context struct (simplify test vector testing in GNU
74784         Shishi).
74785
74786 2005-10-21  Simon Josefsson  <jas@extundo.com>
74787
74788         * modules/des, modules/des-tests: New files.
74789
74790         * modules/gc-des, modules/gc-des-tests: New files.
74791
74792         * tests/test-des.c, tests/test-gc-des.c: New file.
74793
74794 2005-10-21  Simon Josefsson  <jas@extundo.com>
74795
74796         * modules/arctwo, modules/arctwo-tests: New files.
74797
74798         * tests/test-arctwo.c: New file.
74799
74800         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74801
74802         * tests/test-gc-arctwo.c: New file.
74803
74804 2005-10-21  Simon Josefsson  <jas@extundo.com>
74805
74806         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74807         Bruno Haible <bruno@clisp.org>.
74808
74809         * m4/gc-des.m4: New file.
74810
74811 2005-10-21  Simon Josefsson  <jas@extundo.com>
74812
74813         * m4/arctwo.m4: New file.
74814
74815         * m4/gc-arctwo.m4: New file.
74816
74817 2005-10-21  Simon Josefsson  <jas@extundo.com>
74818
74819         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74820         block.
74821
74822 2005-10-21  Simon Josefsson  <jas@extundo.com>
74823
74824         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74825         <bruno@clisp.org>.
74826
74827         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74828
74829         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74830         Bruno Haible <bruno@clisp.org>.
74831
74832         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74833         <bruno@clisp.org>.
74834
74835 2005-10-21  Simon Josefsson  <jas@extundo.com>
74836
74837         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74838
74839 2005-10-21  Simon Josefsson  <jas@extundo.com>
74840
74841         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74842
74843 2005-10-21  Simon Josefsson  <jas@extundo.com>
74844
74845         * lib/des.h, lib/des.c: New files.
74846
74847         * lib/gc-gnulib.c: Support DES.c
74848
74849 2005-10-21  Simon Josefsson  <jas@extundo.com>
74850
74851         * lib/arctwo.h, lib/arctwo.c: New files.
74852
74853         * lib/gc-gnulib.c: Support ARCTWO.
74854
74855 2005-10-21  Simon Josefsson  <jas@extundo.com>
74856
74857         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74858         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74859
74860 2005-10-21  Simon Josefsson  <jas@extundo.com>
74861
74862         * gnulib-tool (func_import, func_create_testdir): Define automake
74863         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74864         Makefile.am snippet),
74865         suggested by Bruno Haible <bruno@clisp.org>.
74866
74867         * modules/gc (Makefile.am): Use it.
74868
74869 2005-10-21  Bruno Haible  <bruno@clisp.org>
74870
74871         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74872         patch.
74873
74874 2005-10-19  Simon Josefsson  <jas@extundo.com>
74875
74876         * tests/test-gc-rijndael.c: New file.
74877
74878         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74879
74880 2005-10-19  Simon Josefsson  <jas@extundo.com>
74881
74882         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74883         interface too.
74884
74885 2005-10-19  Simon Josefsson  <jas@extundo.com>
74886
74887         * tests/test-gc-arcfour.c: New file.
74888
74889         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74890
74891 2005-10-19  Simon Josefsson  <jas@extundo.com>
74892
74893         * modules/gc-md4, modules/gc-md4-tests: New file.
74894
74895         * tests/test-gc-md4.c: New file.
74896
74897 2005-10-19  Simon Josefsson  <jas@extundo.com>
74898
74899         * m4/gc-md4.m4: New file.
74900
74901 2005-10-19  Simon Josefsson  <jas@extundo.com>
74902
74903         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74904         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74905         <kasal@ucw.cz>.
74906
74907 2005-10-19  Simon Josefsson  <jas@extundo.com>
74908
74909         * m4/gc-arcfour.m4: New file.
74910
74911         * m4/gc-rijndael.m4: New file.
74912
74913 2005-10-19  Simon Josefsson  <jas@extundo.com>
74914
74915         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74916
74917 2005-10-19  Simon Josefsson  <jas@extundo.com>
74918
74919         * lib/gc-gnulib.c: Support ARCFOUR.
74920
74921 2005-10-19  Simon Josefsson  <jas@extundo.com>
74922
74923         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74924         support.
74925
74926         * lib/gc.h: Add ECB enum type.
74927
74928         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74929
74930 2005-10-18  Simon Josefsson  <jas@extundo.com>
74931
74932         * tests/test-md5.c: New file.
74933
74934         * modules/md5-tests: New file.
74935
74936 2005-10-18  Simon Josefsson  <jas@extundo.com>
74937
74938         * tests/test-md4.c: New file.
74939
74940         * modules/md4, modules/md4-tests: New files.
74941
74942 2005-10-18  Simon Josefsson  <jas@extundo.com>
74943
74944         * m4/md4.m4: New file.
74945
74946 2005-10-18  Simon Josefsson  <jas@extundo.com>
74947
74948         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74949
74950 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74951
74952         * gnulib-tool (func_create_testdir): Omit the second check whether
74953         BUILT_SOURCES in nonempty.
74954
74955 2005-10-17  Simon Josefsson  <jas@extundo.com>
74956
74957         * tests/test-rijndael.c: New file.
74958
74959 2005-10-17  Simon Josefsson  <jas@extundo.com>
74960
74961         * modules/sha1: Depend on stdint instead of md5.
74962
74963         * modules/md5: Depend on stdint, remove uint32_t.
74964
74965 2005-10-17  Simon Josefsson  <jas@extundo.com>
74966
74967         * modules/gc-sha1-tests: New file.
74968
74969         * tests/test-gc-sha1.c: New file.
74970
74971 2005-10-17  Simon Josefsson  <jas@extundo.com>
74972
74973         * m4/md5.m4: Remove call to uint32_t.m4.
74974
74975 2005-10-17  Simon Josefsson  <jas@extundo.com>
74976
74977         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74978
74979         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74980         md5.h.
74981
74982         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74983
74984         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74985
74986 2005-10-17  Simon Josefsson  <jas@extundo.com>
74987
74988         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74989
74990 2005-10-17  Simon Josefsson  <jas@extundo.com>
74991
74992         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74993
74994 2005-10-17  Simon Josefsson  <jas@extundo.com>
74995
74996         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74997
74998         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74999
75000 2005-10-17  Bruno Haible  <bruno@clisp.org>
75001
75002         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75003         that it can also be used in a test.
75004
75005 2005-10-16  Bruno Haible  <bruno@clisp.org>
75006
75007         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75008         TESTS_ENVIRONMENT, so that individual tests can augment it.
75009
75010         * gnulib-tool (func_create_testdir): Use an intermediate target for
75011         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75012         macros, like $(ALLOCA_H), which cannot be passed through the command
75013         line.
75014
75015 2005-10-15  Simon Josefsson  <jas@extundo.com>
75016
75017         * modules/rijndael-tests: New file.
75018
75019         * modules/rijndael: New file.
75020
75021 2005-10-15  Simon Josefsson  <jas@extundo.com>
75022
75023         * m4/rijndael.m4: New file.
75024
75025 2005-10-15  Simon Josefsson  <jas@extundo.com>
75026
75027         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75028
75029         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75030
75031 2005-10-14  Simon Josefsson  <jas@extundo.com>
75032
75033         * tests/test-arcfour.c: New file.
75034
75035         * modules/arcfour, modules/arcfour-tests: New files.
75036
75037 2005-10-14  Simon Josefsson  <jas@extundo.com>
75038
75039         * m4/arcfour.m4: New file.
75040
75041 2005-10-14  Simon Josefsson  <jas@extundo.com>
75042
75043         * lib/arcfour.h, lib/arcfour.c: New files.
75044
75045 2005-10-14  Roland McGrath  <roland@redhat.com>
75046
75047         Import from libc.  [BZ #1331]
75048         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75049         macro argument.
75050         Reported by Matej Vela <vela@debian.org>.
75051
75052 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75055         include <wchar.h>; no longer needed.
75056
75057 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75058
75059         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75060
75061 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75062         and  Ulrich Drepper  <drepper@redhat.com>
75063
75064         Import from libc.
75065         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75066         instead of inline stream orientation test and two separate
75067         function calls.  Pay no attention to USE_IN_LIBIO.
75068
75069 2005-10-13  Simon Josefsson  <jas@extundo.com>
75070
75071         * modules/gc-hmac-md5-tests: New file.
75072
75073         * tests/test-gc-hmac-sha1.c: New file.
75074
75075         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75076
75077         * modules/gc-hmac-md5-tests: New file.
75078
75079         * tests/test-gc-md5.c: New file.
75080
75081         * modules/gc-md5-tests: New file.
75082
75083 2005-10-13  Simon Josefsson  <jas@extundo.com>
75084
75085         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75086         Move memory allocation outside of loop.
75087
75088 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75091         intermediate directory is in a read-only file system.  Problem
75092         reported by Eric Blake.
75093
75094 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75095
75096         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75097
75098 2005-10-12  Simon Josefsson  <jas@extundo.com>
75099
75100         * tests/test-hmac-sha1.c: New file.
75101
75102         * modules/hmac-sha1-tests: New file.
75103
75104         * modules/hmac-sha1: New file.
75105
75106 2005-10-12  Simon Josefsson  <jas@extundo.com>
75107
75108         * modules/gc-sha1: New file.
75109
75110 2005-10-12  Simon Josefsson  <jas@extundo.com>
75111
75112         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75113
75114         * tests/test-gc-pbkdf2-sha1.c: New file.
75115
75116 2005-10-12  Simon Josefsson  <jas@extundo.com>
75117
75118         * modules/gc-md5, modules/gc-hmac-md5: New files.
75119
75120         * modules/gc (Files): Remove md5, memxor and hmac files.
75121
75122 2005-10-12  Simon Josefsson  <jas@extundo.com>
75123
75124         * m4/gc-pbkdf2-sha1.m4: New file.
75125
75126         * m4/gc-hmac-sha1.m4: New file.
75127
75128         * m4/gc-sha1: New file.
75129
75130         * m4/hmac-sha1.m4: New file.
75131
75132 2005-10-12  Simon Josefsson  <jas@extundo.com>
75133
75134         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75135
75136         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75137
75138 2005-10-12  Simon Josefsson  <jas@extundo.com>
75139
75140         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75141         suggested by Bruno Haible <bruno@clisp.org>.
75142
75143 2005-10-12  Simon Josefsson  <jas@extundo.com>
75144
75145         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75146
75147 2005-10-12  Simon Josefsson  <jas@extundo.com>
75148
75149         * lib/gc-pbkdf2-sha1.c: New file.
75150
75151         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75152
75153 2005-10-12  Simon Josefsson  <jas@extundo.com>
75154
75155         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75156
75157         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75158
75159 2005-10-12  Simon Josefsson  <jas@extundo.com>
75160
75161         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75162         GC_USE_HMAC_MD5, respectively.
75163
75164         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75165         (gc_md5): Fix typo.
75166
75167         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75168
75169         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75170
75171         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75172
75173 2005-10-12  Bruno Haible  <bruno@clisp.org>
75174
75175         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75176         Reported by Stepan Kasal <kasal@ucw.cz>.
75177
75178 2005-10-11  Simon Josefsson  <jas@extundo.com>
75179
75180         * tests/test-crc.c: New file.
75181
75182         * modules/crc, modules/crc-tests: New files.
75183
75184 2005-10-11  Simon Josefsson  <jas@extundo.com>
75185
75186         * m4/crc.m4: New file.
75187
75188 2005-10-11  Simon Josefsson  <jas@extundo.com>
75189
75190         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75191
75192         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75193
75194         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75195
75196 2005-10-11  Simon Josefsson  <jas@extundo.com>
75197
75198         * lib/crc.h, lib/crc.c: New files.
75199
75200         * lib/gc.h (gc_hash_buffer): Add doc.
75201
75202 2005-10-11  Bruno Haible  <bruno@clisp.org>
75203
75204         * modules/c-strcasestr: New file.
75205         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75206
75207 2005-10-11  Bruno Haible  <bruno@clisp.org>
75208
75209         * modules/c-strcase: New file.
75210         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75211
75212 2005-10-11  Bruno Haible  <bruno@clisp.org>
75213
75214         * lib/strcasecmp.c: Include limits.h.
75215         (strcasecmp): Avoid integer overflow on exotic platforms.
75216         * lib/strncasecmp.c: Include limits.h.
75217         (strncasecmp): Avoid integer overflow on exotic platforms.
75218         Reported by Paul Eggert.
75219
75220 2005-10-11  Bruno Haible  <bruno@clisp.org>
75221
75222         * lib/c-strcasestr.h: New file, from GNU gettext.
75223         * lib/c-strcasestr.c: New file, from GNU gettext.
75224
75225 2005-10-11  Bruno Haible  <bruno@clisp.org>
75226
75227         * lib/c-strcase.h: New file, from GNU gettext.
75228         * lib/c-strcasecmp.c: New file, from GNU gettext.
75229         * lib/c-strncasecmp.c: New file, from GNU gettext.
75230
75231 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         * modules/mempcpy (License): GPL -> LGPL.
75234         * modules/strchrnul (License): Likewise.
75235         * modules/sysexits (License): Likewise.
75236
75237 2005-10-08  Simon Josefsson  <jas@extundo.com>
75238
75239         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75240
75241 2005-10-07  Simon Josefsson  <jas@extundo.com>
75242
75243         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75244
75245 2005-10-06  Simon Josefsson  <jas@extundo.com>
75246
75247         * tests/test-hmac-md5.c: New file.
75248
75249         * modules/hmac-md5-tests: New file.
75250
75251         * modules/hmac-md5: New file.
75252
75253 2005-10-06  Simon Josefsson  <jas@extundo.com>
75254
75255         * m4/hmac-md5.m4: New file.
75256
75257         * m4/memxor.m4: Require gl_C_RESTRICT.
75258
75259 2005-10-06  Simon Josefsson  <jas@extundo.com>
75260
75261         * lib/memxor.c (memxor): Avoid casts and warnings.
75262
75263 2005-10-06  Simon Josefsson  <jas@extundo.com>
75264
75265         * lib/hmac-md5.c: New file.
75266
75267         * lib/hmac.h: New file.
75268
75269 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75272         promotes to int, not unsigned int, to catch the AIX 5.3
75273         compiler bug.
75274
75275 2005-10-05  Simon Josefsson  <jas@extundo.com>
75276
75277         * modules/memxor: New file.
75278
75279         * modules/iconv (Files): Move config.rpath to havelib, it is used
75280         there.
75281
75282         * modules/havelib (Files): Add config.rpath.
75283
75284 2005-10-05  Simon Josefsson  <jas@extundo.com>
75285
75286         * m4/memxor.m4: New file.
75287
75288 2005-10-05  Simon Josefsson  <jas@extundo.com>
75289
75290         * lib/memxor.c (memxor): Fix compiler error.
75291
75292         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75293         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75294
75295         * lib/memxor.h, lib/memxor.c: New files.
75296
75297         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75298         we assume all systems have it, suggested by Jim Meyering
75299         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75300         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75301         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75302         same reasons.
75303
75304 2005-10-05  Simon Josefsson  <jas@extundo.com>
75305
75306         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75307
75308 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75311         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75312         needed, since the source code now assumes these .h files.
75313
75314 2005-10-05  Derek Price  <derek@ximbiot.com>
75315
75316         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75317
75318 2005-10-05  Bruno Haible  <bruno@clisp.org>
75319
75320         * modules/stdint (License): Change to LGPL.
75321
75322 2005-10-04  Simon Josefsson  <jas@extundo.com>
75323
75324         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75325         D. Baushke" <mdb@gnu.org>.
75326
75327 2005-10-04  Bruno Haible  <bruno@clisp.org>
75328
75329         * lib/verify.h (verify_true): Provide alternative definition for C++.
75330
75331 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75334         (SSIZE_MAX): New macro, if not already defined.
75335         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75336         than 2 GiB.
75337
75338 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75339
75340         Sync from coreutils.
75341         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75342         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75343         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75344         ULLONG_MAX doesn't work with 2.7.2.1.
75345
75346 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75347
75348         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75349         From Ben Pfaff.
75350
75351         * modules/exclude (Depends-on): Depend on verify.
75352         * modules/strtoimax (Depends-on): Likewise.
75353         * modules/utimecmp (Depends-on): Likewise.
75354
75355 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75356
75357         * lib/exclude.c: Include verify.h.
75358         (verify): Remove.  All callers changed to use verify.h's version.
75359         * lib/strtoimax.c: Likewise.
75360         * lib/utimecmp.c: Likewis.e
75361
75362         Sync from coreutils.
75363         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75364         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75365         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75366         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75367         bother returning ENOSYS if settimeofday or stime fails; just let
75368         them return whatever errno they want to return.
75369         * lib/utimens.c: Include unistd.h, for dup2.
75370         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75371         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75372
75373 2005-10-02  Jim Meyering  <jim@meyering.net>
75374
75375         Sync from coreutils.
75376         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75377         from glibc-2.2.5 that fails for read-only files.
75378
75379 2005-10-02  Jim Meyering  <jim@meyering.net>
75380
75381         Sync from coreutils.
75382         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75383         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75384         `#if HAVE_CONFIG_H'.
75385         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75386         Remove AT_FDCWD test.
75387         Do not consume the fd unless successful.
75388         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75389         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75390         block, so that we don't even try to compile it if settimeofday is
75391         available.  This works around a compilation failure on OSF1 V5.1,
75392         due to stime requiring a `long int*' while tv_sec is `int'.
75393
75394 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75395
75396         Sync from coreutils.
75397         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75398         against `yes', rather than just testing for nonempty.
75399
75400 2005-10-01  Simon Josefsson  <jas@extundo.com>
75401
75402         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75403         and Darwin.
75404
75405         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75406         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75407         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75408         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75409         Check if struct addrinfo is declared.
75410
75411 2005-10-01  Simon Josefsson  <jas@extundo.com>
75412
75413         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75414         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75415         AI_* and EAI_* definitions.  Protect function declarations.
75416
75417 2005-10-01  Jim Meyering  <jim@meyering.net>
75418
75419         Sync from coreutils.
75420
75421         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75422         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75423         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75425         in the inet and nsl libraries.  Required on Solaris 5.7.
75426
75427 2005-10-01  Jim Meyering  <jim@meyering.net>
75428
75429         Sync from coreutils.
75430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75431         in the inet and nsl libraries.  Required on Solaris 5.7.
75432
75433 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75434
75435         * lib/getdelim.c (getdelim): Remove unused variables.
75436
75437 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75440         so that the code works even with ancient cpp.  Portability problem
75441         with GCC 2.7.2.1 reported by Thomas M.Ott.
75442
75443 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75444
75445         * modules/regex (Depends-on): Add strcase.
75446
75447         * modules/gethostname (Licence): Change from GPL to LGPL, since
75448         gethostname.c is a trivial implementation of a standard library
75449         function.
75450         * modules/poll (License): Change from GPL to LGPL, since it's
75451         derived from LGPL code.
75452
75453 2005-09-27  Jim Meyering  <jim@meyering.net>
75454
75455         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75456         HAVE_CONFIG_H.
75457
75458         * lib/intprops.h (signed_type_or_expr__): Define.
75459         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75460         for unsigned types.
75461
75462 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * lib/verify.h (verify_expr): Remove, replacing with:
75465         (verify_true): New macro that returns true instead of void.
75466         (verify_type__): Remove.
75467         (verify): Use verify_true rather than verify_type__.
75468
75469 2005-09-26  Bruno Haible  <bruno@clisp.org>
75470
75471         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75472         is necessary.
75473         (lib_SOURCES): Remove mbchar.c.
75474         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75475         (Files): Add m4/mbrtowc.m4.
75476         * modules/mbiter: Likewise.
75477         * modules/mbuiter: Likewise.
75478
75479 2005-09-26  Bruno Haible  <bruno@clisp.org>
75480
75481         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75482         compile mbchar.c if they are not both present.
75483         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75484         * m4/mbiter.m4 (gl_MBITER): Likewise.
75485         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75486         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75487         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75488
75489 2005-09-25  Jim Meyering  <jim@meyering.net>
75490
75491         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75492         also uses socklen_t.
75493
75494 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * lib/utimens.c (ENOSYS): Define if not already defined.
75497         (futimens): Support having a null PATH if the file descriptor
75498         is nonnegative.
75499
75500         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75501         Remove.
75502         (__attribute): Define to empty unless GCC 3.1 or later.
75503         This works around a core dump on OpenBSD 3.4, which has GCC
75504         2.95.3, which dumps core when given __attribute__(()).  It also
75505         simplifies other tests, since we really don't want to bother with
75506         worrying about which ancient version of GCC supported what.
75507         Original problem reported by Yoann Vandoorselaere, with part of
75508         the fix suggested by Derek Price.
75509
75510 2005-09-24  Jim Meyering  <jim@meyering.net>
75511
75512         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75513         so we can once again use a positive bitfield width of 1 -- now we
75514         don't have to explain why we were using a bitfield width of 2.
75515
75516 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75517
75518         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75519         and similarly for the other external symbols.  Problem reported
75520         by James Gallager.
75521
75522         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75523         bug reported by Jim Meyering.
75524
75525         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75526         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75527         not needed, since socklen is a prerequisite module.
75528
75529 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75532         Problem reported by Eric Blake.
75533         (getaddrinfo): Initialize se so that it's not garbage.
75534         Redo internal storage allocation so that it doesn't make unportable
75535         assumptions about alignment.
75536         Fix a memory leak.
75537
75538         * lib/utimens.c (futimens): Use futimesat if available.
75539         Prefer it to futimes since it doesn't have the futimes bug.
75540
75541         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75542         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75543         Instead, declare a function that returns a pointer to an array,
75544         and use verify_type__ to declare the size of the array.
75545         Problem and germ of a solution reported by Bruno Haible.
75546         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75547         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75548
75549 2005-09-23  Jim Meyering  <jim@meyering.net>
75550
75551         Sync from coreutils.
75552         Correct build failure (socklen_t not defined) on at least
75553         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75554         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75555
75556 2005-09-23  Jim Meyering  <jim@meyering.net>
75557
75558         * modules/getaddrinfo (Depends-on): Add socklen.
75559
75560 2005-09-23  Bruno Haible  <bruno@clisp.org>
75561
75562         * tests/test-verify.c: New file.
75563
75564 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75565
75566         Sync from coreutils.
75567
75568         * modules/argmatch (Depends-on): Add verify.
75569         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75570         unistd-safer.
75571         * modules/save-cwd (Depends-on): Likewise.
75572
75573         * modules/openat (Files): Add lib/openat-die.c.
75574         (Depends-on): Remove error, exitfail.
75575         Add dirname.
75576
75577         * modules/verify: New file.
75578         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75579         with "verify" module.
75580
75581 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         Sync from coreutils.
75584
75585         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75586         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75587         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75588         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75589         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75590         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75591         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75592         Don't bother checking for string.h, stdlib.h, unistd.h.
75593         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75594         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75595         module's job.
75596         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75597         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75598
75599         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75600         (gl_GETDATE): Use it.
75601
75602         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75603
75604 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         Sync from coreutils.
75607
75608         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75609         stat-time.h.
75610         * lib/argmatch.h: Include verify.h
75611         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75612         (ARGMATCH_ASSERT): Remove; unused.
75613         * lib/canonicalize.c: Assume STDC_HEADERS.
75614         * lib/exclude.c: Include "strcase.h".
75615         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75616         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75617         and stdio-safer.h.
75618         (getusershell): Call fopen, not fopen_safer.
75619         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75620         Do not include unistd-safer.h.
75621         (save_cwd): Don't call fd_safer; no longer needed
75622         now that we include fcntl--.h.
75623
75624         * lib/getdate.y (relative_time): New type.
75625         (RELATIVE_TIME_0): New constant.
75626         (parser_control): Use relative_time instead of doing it ourselves.
75627         (%union): Add new relative_time rel member.
75628         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75629         Now typeless.
75630         (relunit, relunit_snumber): Now of type rel.
75631         (zone, rel, relunit, get_date): Adjust to above changes.
75632
75633         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75634         Do not include unistd-safer.h.
75635         (getloadavg): Don't call fd_safer; no longer needed
75636         now that we include fcntl--.h.
75637
75638         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75639         (make_dir_parents): Treat ENOSYS like EEXIST.
75640
75641         Improve quality of diagnostics on restore_cwd failure.
75642         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75643         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75644         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75645         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75646         each time through the loop.  Do not diagnose restore_cwd failure;
75647         that is the caller's job (and perhaps the caller does not care).
75648
75649         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75650         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75651         If the file already exists but is not a directory, don't bother
75652         to try to make its parents.
75653         Close potential file descriptor leak if we can't chdir("/") (!).
75654         Don't always return true if chdir($PWD) fails; return true only
75655         if the requested action was done successfully (except for the
75656         chdir($PWD)).
75657         Don't log final directory unless we actually made it.
75658         Refactor to avoid duplicate code to fix up permissions.
75659         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75660
75661         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75662         to make it a bit faster and (I hope) clearer.
75663         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75664         Fix bug in formats like %2N.
75665
75666         * lib/verify.h: New file.
75667
75668 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         Sync from coreutils.
75671         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75672
75673 2005-09-22  Jim Meyering  <jim@meyering.net>
75674
75675         Sync from coreutils.
75676
75677         * m4/lstat.m4 (gl_FUNC_LSTAT):
75678         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75679         Remove obsolete comment.
75680         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75681         * m4/xstrtod.m4: Likewise.
75682
75683         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75684
75685 2005-09-22  Jim Meyering  <jim@meyering.net>
75686
75687         Sync from coreutils.
75688
75689         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75690
75691         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75692         the .tm_year member, since otherwise gcc-4.0 would now warn about
75693         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75694
75695         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75696         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75697
75698         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75699         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75700         when run in a time zone for which daylight savings time is in effect
75701         for the starting date.
75702
75703         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75704         stop us from restricting permissions of just-created absolute-named
75705         directories.
75706         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75707         to restore initial working directory.
75708         * lib/mkdir-p.c (make_dir_parents): New parameter:
75709         different_working_dir, to tell caller if/when we change the working
75710         directory and are unable to return to the initial one.
75711         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75712         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75713         `return false'.  This fixes a bug introduced on 2004-07-30.
75714
75715         * lib/openat.c (fdopendir): Be sure to close the supplied
75716         file descriptor before returning.  This makes our replacement
75717         implementation a little closer to Solaris's, where fdopendir
75718         ties the file descriptor to the returned DIR* pointer.
75719         * lib/openat.c (unlinkat): New function.
75720         * lib/openat.h (unlinkat): Add prototype.
75721         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75722         (openat_restore_fail): Rename from openat_restore_die.
75723         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75724
75725         Provide an alternative to exiting immediately upon save_cwd or
75726         restore_cwd failure.  Now, an application can arrange e.g.,
75727         to perform a longjump in that case.
75728         * lib/openat.c: Include dirname.h.
75729         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75730         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75731         and openat_restore_die rather than calling error directly.
75732         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75733
75734         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75735         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75736         define.
75737
75738         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75739         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75740                             int utc, int nanoseconds);
75741         Background:
75742         date should not have to allocate a megabyte of virtual memory to
75743         handle a format argument like +%1048575T.  When implemented with
75744         strftime, it must allocate such a buffer, use strftime to fill it
75745         in, print it, then free it.
75746         With fprintftime, it simply prints everything and exits.
75747         With no need for memory allocation, that's one fewer way to fail.
75748         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75749         optional field width, not before, so we accept %9:z, not %:9z.
75750         (my_strftime): Be sure to use L_('x') for literals.
75751
75752         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75753         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75754         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75755         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75756         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75757         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75758         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75759         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75760         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75761         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75762         * lib/xgethostname.c, lib/xreadlink.c:
75763         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75764
75765         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75766         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75767         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75768         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75769         and don't include <sys/file.h>).
75770
75771 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75772
75773         Sync from coreutils.
75774
75775         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75776         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75777         [!LDAV_DONE]: Avoid unused variable warning.
75778
75779 2005-09-21  Bruno Haible  <bruno@clisp.org>
75780
75781         * lib/unicodeio.h (unicode_to_mb): New declaration.
75782
75783 2005-09-20  Derek Price  <derek@ximbiot.com>
75784
75785         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75786         getaddrinfo.h.
75787
75788 2005-09-20  Bruno Haible  <bruno@clisp.org>
75789
75790         * gnulib-tool: Remove trailing slashes from the values specified for
75791         --source-base, --m4-base, --tests-base, --aux-dir.
75792         Suggested by Simon Josefsson <jas@extundo.com>.
75793
75794 2005-09-20  Bruno Haible  <bruno@clisp.org>
75795
75796         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75797         func_modules_to_filelist, func_import, func_create_testdir): Make all
75798         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75799         change when gnulib-tool is invoked in a different locale.
75800
75801 2005-09-19  Simon Josefsson  <jas@extundo.com>
75802
75803         * m4/socklen.m4: Fix typo.
75804
75805 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75806
75807         Use a consistent style for including <config.h>.
75808         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75809         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75810         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75811         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75812         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75813         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75814         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75815         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75816         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75817         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75818         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75819         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75820         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75821         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75822         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75823         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75824         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75825         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75826         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75827         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75828         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75829         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75830         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75831         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75832         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75833         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75834         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75835         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75836         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75837         lib/xstrtoumax.c, lib/yesno.c:
75838         Standardize inclusion of config.h.
75839         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75840         lib/inttostr.h:  Removed inclusion of config.h from header files.
75841         * lib/inttostr.c:  Adjusted in-tree users.
75842         * lib/timespec.h: Remove superfluous warning to include config.h.
75843         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75844         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75845         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75846         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75847         config.h with HAVE_CONFIG_H.
75848
75849 2005-09-19  Jim Meyering  <jim@meyering.net>
75850
75851         * modules/pathmax (License): Change to LGPL.
75852
75853 2005-09-19  Derek Price  <derek@ximbiot.com>
75854
75855         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75856
75857 2005-09-19  Bruno Haible  <bruno@clisp.org>
75858
75859         * gnulib-tool (import): Provide default for --tests-base.
75860
75861 2005-09-19  Bruno Haible  <bruno@clisp.org>
75862
75863         * doc/quote.texi: New file, extracted from gnulib.texi.
75864         * doc/ctime.texi: New file, extracted from gnulib.texi.
75865         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75866         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75867         * doc/gnulib.texi: Include them.
75868
75869 2005-09-18  Bruno Haible  <bruno@clisp.org>
75870
75871         Portability fix.
75872         * gnulib-tool (func_readlink): New function.
75873         (func_ln_if_changed): Use it.
75874
75875 2005-09-18  Bruno Haible  <bruno@clisp.org>
75876
75877         * gnulib-tool: Support --with-tests also with --import.
75878         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75879         (func_import): Use variables $testsbase and $inctests. Emit a
75880         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75881         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75882         SUBDIRS += $testsdir.
75883         (func_create_testdir): Update.
75884
75885 2005-09-18  Bruno Haible  <bruno@clisp.org>
75886
75887         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75888         instead of $dry_run.
75889         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75890         (func_ln_if_changed): Don't handle dry-run here.
75891         (func_import): In dry-run mode, detect more precisely which actions
75892         would be performed, and don't use "...ing" verbs.
75893
75894 2005-09-18  Bruno Haible  <bruno@clisp.org>
75895
75896         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75897         (func_import): Use join on two temporary files instead of three nested
75898         loops, in order to determine which files are new or old.
75899
75900 2005-09-18  Bruno Haible  <bruno@clisp.org>
75901
75902         * gnulib-tool (func_import): Comment out code that spits out the
75903         new files with --dry-run.
75904
75905 2005-09-18  Bruno Haible  <bruno@clisp.org>
75906
75907         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75908
75909 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75910
75911         * lib/stat-time.h: New file.
75912         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75913         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75914         in a different way.
75915         (timespec_cmp): New function.
75916         * lib/utimecmp.c: Include stat-time.h.
75917         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75918         members exist, not on the obsolescent ST_MTIM_NSEC.
75919         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75920
75921 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75924
75925 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75926
75927         * MODULES.html.sh (File system functions): Add stat-time.
75928         * modules/stat-time: New file.
75929         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75930         is now done in a different way, by the stat-time module.
75931         * modules/utimecmp (Depends-on): Add stat-time.
75932
75933 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75934
75935         * m4/st_mtim.m4: Remove.  Superseded by...
75936         * m4/stat-time.m4: New file.
75937         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75938         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75939
75940 2005-09-15  Derek Price  <derek@ximbiot.com>
75941
75942         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75943
75944 2005-09-15  Derek Price  <derek@ximbiot.com>
75945
75946         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75947         * lib/regex_internal.c: Ditto, using this...
75948         (__GNUC_PREREQ): ...new macro.
75949         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75950         using...
75951         (__GNUC_PREREQ): ...this new macro.
75952
75953         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75954
75955 2005-09-15  Derek Price  <derek@ximbiot.com>
75956             Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75959         changes, consolidating in...
75960         * lib/regex_internal.h: ...this file.
75961
75962 2005-09-13  Jim Meyering  <jim@meyering.net>
75963
75964         * lib/canon-host.c: Filter through gnu indent and reword comments
75965         slightly.
75966         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75967
75968 2005-09-13  Derek Price  <derek@ximbiot.com>
75969
75970         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75971         failure.
75972         Reported by Jim Meyering  <jim@meyering.net>.
75973
75974 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75975
75976         * lib/base64.c: Typo.
75977         (base64_encode): Put b64str in initialized data section.
75978
75979 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         Merge glibc and coreutils changes into gnulib, plus a few
75982         extra fixes.
75983         * lib/md5.c: Use #error rather than a string.
75984         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75985         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75986         (__attribute__): Define to empty for non recent-GCC.
75987         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75988         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75989         Renamed from their non-__ counterparts, with new macros replacing
75990         them if not _LIBC.  Add __THROW attribute.
75991         (rol): Remove.
75992         (struct md5_ctx): Align buffer if using GCC.
75993         * lib/sha1.h (struct sha1_ctx): Likewise.
75994         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75995         The old name was backwards.
75996         (NOTSWAP): Remove; not used.
75997         (rol): New macro, moved here from md5.h.
75998         (sha1_process_block): Remove a FIXME that doesn't make sense.
75999
76000 2005-09-12  Derek Price  <derek@ximbiot.com>
76001
76002         Return usable errors from canon-host.
76003         * lib/canon-host.h: New file.
76004         * lib/canon-host.c (canon_host): Wrap...
76005         (canon_host_r): ...this new function, which now relies exclusively on
76006         getaddrinfo.
76007         (ch_strerror): New function.
76008         (last_cherror): New global.
76009         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76010         interface.
76011         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76012         void *.
76013         (freeaddrinfo): Free ai->ai_canonname when set.
76014
76015 2005-09-12  Derek Price  <derek@ximbiot.com>
76016
76017         Make canon-host require getaddrinfo.
76018         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76019         AC_LIBSOURCE canon-host.h.  Call...
76020         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76021         gl_GETADDRINFO.
76022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76023
76024 2005-09-12  Derek Price  <derek@ximbiot.com>
76025
76026         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76027         LGPL.
76028         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76029
76030 2005-09-12  Derek Price  <derek@ximbiot.com>
76031
76032         * lib/gai_strerror.c: Include config.h when available.  Include
76033         getaddrinfo.h before other headers to test interface.
76034         Reported by Larry Jones <lawrence.jones@ugs.com>.
76035
76036 2005-09-12  Derek Price  <derek@ximbiot.com>
76037             Paul Eggert  <eggert@cs.ucla.edu>
76038
76039         * modules/glob (Files): Add glob-libc.h.
76040
76041 2005-09-12  Derek Price  <derek@ximbiot.com>
76042             Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76045         glob_.h, glob-libc.h.
76046         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76047
76048 2005-09-12  Derek Price  <derek@ximbiot.com>
76049             Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76052         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76053         protecting things that should be done only in gnulib contexts.
76054         * lib/glob_.h: New file, containing only the glob things needed for
76055         gnulib.
76056         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76057         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76058         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76059         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76060         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76061         and to respect the namespace rules better.
76062
76063 2005-09-08  Simon Josefsson  <jas@extundo.com>
76064
76065         * modules/socklen: New file.
76066
76067 2005-09-08  Simon Josefsson  <jas@extundo.com>
76068
76069         * m4/socklen.m4: New file.
76070
76071 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * modules/utimens (Files): Add m4/utimbuf.m4, since
76074         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76075         Reported by Sergey Poznyakoff.
76076
76077 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76078
76079         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76080         definitions, since that's the preferred style in glibc.
76081         Fix a minor spacing issue, and update copyright notice to match
76082         glibc's.
76083
76084 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76085
76086         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76087
76088 2005-09-06  Simon Josefsson  <jas@extundo.com>
76089
76090         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76091         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76092
76093 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76096         warning.
76097
76098 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76099
76100         * config/srclist.txt: Add glibc bug 1302.
76101
76102 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         Change bitset word type from unsigned int to unsigned long int,
76105         as this has better performance on typical 64-bit hosts.
76106         Port bitset code to hosts with unusual word sizes.
76107         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76108         (build_collating_symbol):
76109         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76110         argument is a bitset.  This is merely a style issue, but it makes
76111         it clearer that an entire array is expected.
76112         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76113         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76114         Port to the case where bitset_word is not the same as unsigned int.
76115         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76116         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76117         Likewise.
76118         * lib/regexec.c (check_dst_limits_calc_pos_1,
76119         check_subexp_matching_top):
76120         (build_trtable, group_nodes_into_DFAstates):
76121         Likewise.
76122         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76123         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76124         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76125         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76126         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76127         * lib/regcomp.c (optimize_subexps, lower_subexp):
76128         Work even if bitset_word has holes in its bitwise representation.
76129         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76130         * lib/regexec.c (check_dst_limits_calc_pos_1,
76131         check_subexp_matching_top):
76132         Likewise.
76133         * lib/regex_internal.c (re_string_reconstruct):
76134         Don't assume UCHAR_MAX == 255.
76135         * lib/regex_internal.h (bitset_set_all): Likewise.
76136         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76137         All uses changed.
76138         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76139         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76140         All uses changed.
76141         (BITSET_WORD_MAX): New macro.
76142         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76143         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76144         (bitset_empty, bitset_copy):
76145         Prefer sizeof (bitset) to multiplying it out ourselves.
76146         (bitset_not_merge): Remove; unused.
76147         (bitset_contain): Return bool, not unsigned int with one bit on.
76148         All callers changed.
76149         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76150         alignment than re_node_set; do this by defining a new internal
76151         type struct dests_alloc and using it to allocate memory.
76152
76153 2005-09-05  Bruno Haible  <bruno@clisp.org>
76154
76155         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76156         links.
76157
76158 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76159
76160         * modules/size_max (Makefile.am): Add size_max.h
76161
76162 2005-09-04  Derek Price  <derek@ximbiot.com>
76163
76164         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76165
76166 2005-09-03  Simon Josefsson  <jas@extundo.com>
76167
76168         * gnulib-tool: Fix typo.
76169
76170 2005-09-03  Simon Josefsson  <jas@extundo.com>
76171
76172         * config/srclist.txt: Add glibc bug 1293.
76173
76174 2005-09-03  Derek Price  <derek@ximbiot.com>
76175
76176         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76177         From Larry Jones <lawrence.jones@ugs.com>.
76178
76179 2005-09-02  Simon Josefsson  <jas@extundo.com>
76180
76181         * modules/socklen: New file.
76182
76183 2005-09-02  Simon Josefsson  <jas@extundo.com>
76184
76185         * modules/havelib: New module.
76186
76187         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76188         Use havelib.
76189
76190 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76191
76192         Check for arithmetic overflow when calculating sizes, to prevent
76193         some buffer-overflow issues.  These patches are conservative, in the
76194         sense that when I couldn't determine whether an overflow was possible,
76195         I inserted a run-time check.
76196         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76197         macros.
76198         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76199         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76200         (re_xnrealloc, re_x2nrealloc): New inline functions.
76201         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76202         parse_bracket_exp):
76203         (build_equiv_class, build_charclass): Check for arithmetic overflow
76204         in size expression calculations.
76205         * lib/regex_internal.c (re_string_realloc_buffers):
76206         (build_wcs_upper_buffer, re_node_set_add_intersect):
76207         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76208         (re_dfa_add_node, register_state): Likewise.
76209         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76210         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76211         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76212         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76213
76214 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76215
76216         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76217         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76218
76219 2005-09-02  Bruno Haible  <bruno@clisp.org>
76220
76221         Support for lib vs. lib64 distinction on biarch platforms.
76222         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76223         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76224         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76225
76226 2005-09-02  Bruno Haible  <bruno@clisp.org>
76227
76228         * gnulib-tool (import): In the other first-use case, provide defaults
76229         as well.
76230
76231 2005-09-02  Bruno Haible  <bruno@clisp.org>
76232
76233         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76234         patches not yet found in the latest gettext release.
76235
76236 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76239         to avoid a collision with bits/local_lim.h in glibc.
76240         All uses changed.  Problem reported by Dmitry V. Levin in
76241         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76242
76243         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76244         bugs in int versus size_t comparisons.
76245         (re_string_context_at): Fix bug where the code assumed that
76246         Idx is signed.
76247
76248         Use bool where appropriate.
76249         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76250         All callers changed.
76251         (calc_eclosure_iter): Likewise, for ROOT arg.
76252         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76253         (build_charclass_op): Likewise, for NON_MATCH arg.
76254         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76255         (re_string_construct_common): Likewise, for ICASE arg.
76256         * lib/regexec.c (re_search_2_stub, re_search_stub):
76257         Likewise, for RET_LEN arg.
76258         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76259         (set_regs): Likewise, for FL_BACKTRACK arg.
76260         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76261         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76262         (calc_eclosure_iter, parse_bracket_exp):
76263         Use bool for internal variables that are booleans.
76264         * lib/regexec.c (re_search_internal, check_matching,
76265         proceed_next_node):
76266         (set_regs, build_sifted_states, sift_states_bkref):
76267         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76268         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76269         (find_collation_sequence_value):
76270         Likewise.
76271         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76272         (re_node_set_compare):
76273         Return bool, not int. All callers changed.
76274         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76275         (build_trtable, check_node_accept): Likewise.
76276         * lib/regex_internal.h: Include stdbool.h.
76277
76278         Fix bugs uncovered when converting to bool.
76279         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76280         failure instead of charging ahead blindly.
76281         * lib/regex_internal.c (register_state): Likewise.
76282         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76283         for freeing internal storage.
76284         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76285         bitset pieces used as boolean, to avoid undefined behavior
76286         on hosts that do int overflow checking.
76287
76288 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         * config/srclist.txt: Add glibc bugs 1285-1287.
76291
76292 2005-09-01  Jim Meyering  <jim@meyering.net>
76293
76294         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76295         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76296         Require gl_STAT_MACROS, too.
76297
76298 2005-09-01  Bruno Haible  <bruno@clisp.org>
76299
76300         * gnulib-tool (import): In the first-use case, provide defaults.
76301
76302 2005-09-01  Bruno Haible  <bruno@clisp.org>
76303
76304         * gnulib-tool (func_import): Remove the .tmp files.
76305
76306 2005-09-01  Bruno Haible  <bruno@clisp.org>
76307
76308         * gnulib-tool (func_import): Fix handling of symbolic links.
76309
76310 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76311
76312         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76313         old glibc regex code mishandles strings longer than 2**31 bytes.
76314         This patch fixes this when the regex code is used in gnulib
76315         (i.e., outside glibc).
76316
76317         This patch should not affect the use of the regex code inside
76318         glibc.  No doubt this problem also needs to be handled for glibc
76319         as well, but the result will be an incompatible change to the
76320         glibc ABI, and the old ABI will have to be supported too.  That
76321         can be the the subject for another patch.
76322
76323         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76324         governing whether the rest of this patch is active.  By default,
76325         the macro is disabled and the patch has no effect.
76326         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76327         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76328         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76329         (re_match_2, re_set_registers): Use the new types.
76330         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76331         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76332         New macros.
76333         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76334         (re_string_context_at, bin_tree_t, re_dfastate_t):
76335         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76336         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76337         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76338         (re_string_char_size_at, re_string_wchar_at):
76339         (re_string_elem_size_at):
76340         Use the new types and macros to port to 64-bit hosts.
76341         Use unsigned types for internal values, so that the code
76342         mostly works even for arrays larger than SSIZE_MAX.
76343         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76344         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76345         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76346         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76347         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76348         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76349         (calc_inveclosure, parse_dup_op, build_range_exp):
76350         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76351         (fetch_number, create_token_tree, mark_opt_subexp):
76352         Likewise.
76353         * lib/regex_internal.c (re_string_construct_common,
76354         create_ci_newstate):
76355         (create_cd_newstate, re_string_allocate, re_string_construct):
76356         (re_string_realloc_buffers, build_wcs_upper_buffer):
76357         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76358         (re_string_reconstruct, re_string_peek_byte_case):
76359         (re_string_fetch_byte_case, re_string_context_at):
76360         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76361         (re_node_set_init_copy, re_node_set_add_intersect):
76362         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76363         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76364         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76365         (re_acquire_state, re_acquire_state_context, register_state):
76366         Likewise.
76367         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76368         search_cur_bkref_entry):
76369         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76370         (re_search_internal, re_search_2_stub, re_search_stub)
76371         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76372         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76373         (update_cur_sifted_state, check_dst_limits):
76374         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76375         (check_subexp_limits, sift_states_bkref, merge_state_array):
76376         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76377         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76378         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76379         (expand_bkref_cache, check_node_accept_bytes):
76380         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76381         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76382         (acquire_init_state_context, check_halt_node_context):
76383         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76384         (sift_states_backward, clean_state_log_if_needed):
76385         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76386         (find_recover_state, transit_state_sb, transit_state_mb):
76387         (transit_state_bkref, build_trtable, match_ctx_clean):
76388         Likewise.
76389         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76390         to work around an assumption that REG_MISSING is negative.
76391
76392         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76393         (seek_collating_symbol_entry) [defined _LIBC]:
76394         (lookup_collation_sequence_value) [defined _LIBC]:
76395         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76396         Use prototypes rather than old-style function definitions.
76397         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76398         (transit_state_sb) [0]:
76399         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76400
76401         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76402         rm_eo.
76403
76404         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76405         (optimize_subexps, lower_subexp):
76406         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76407         since the signed shift might overflow.  Use 1u<<31 instead.
76408         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76409         Likewise.
76410         * lib/regexec.c (check_dst_limits_calc_pos_1,
76411         check_subexp_matching_top): Likewise.
76412
76413         * lib/regcomp.c (optimize_subexps, lower_subexp):
76414         Use CHAR_BIT rather than 8, for clarity.
76415         * lib/regexec.c (check_dst_limits_calc_pos_1):
76416         (check_subexp_matching_top): Likewise.
76417         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76418         have to worry about portability issues when shifting it left.
76419         Remove no-longer-needed test for table_size > 0.
76420         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76421         in a word, as the resulting behavior is undefined.
76422         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76423         in one case, a <= should have been an <, and in another case the
76424         whole test was missing.
76425         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76426         the standard name CHAR_BIT.
76427         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76428         this is not true on one's complement and signed-magnitude hosts.
76429
76430         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76431         next_last_offset.
76432         (struct re_dfa_t): Remove unused member states_alloc.
76433         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76434
76435 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76438         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76439         and large-file glibc and in 32-bit large-file Solaris.
76440
76441 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76444         lengths fit in regoff_t; this isn't true if regoff_t is the same
76445         width as size_t.
76446         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76447         (= START + RANGE) instead of RANGE.  This avoids overflow
76448         problems when regoff_t is the same width as size_t.
76449         All callers changed.
76450         (re_search_2_stub): Check for overflow when adding the
76451         sizes of the two strings.
76452         (re_search_stub): Check for overflow when adding START
76453         to RANGE; if it occurs, substitute the extreme value.
76454
76455 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76458
76459 2005-08-31  Jim Meyering  <jim@meyering.net>
76460
76461         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76462         a pointer-to-const.
76463         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76464         (register_state): Likewise.
76465         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76466         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76467         (group_nodes_into_DFAstates): Likewise.
76468
76469 2005-08-31  Jim Meyering  <jim@meyering.net>
76470
76471         * check-module: Add a FIXME comment.
76472
76473 2005-08-31  Eric Blake  <ebb9@byu.net>
76474
76475         * modules/unistd-safer (Files): Add unistd--.h.
76476         * modules/stdio-safer (Files): Add stdio--.h.
76477
76478 2005-08-31  Derek Price  <derek@ximbiot.com>
76479
76480         * lib/getdelim.c (getdelim): Return EOF on EOF.
76481         Reported by Larry Jones <lawrence.jones@ugs.com>.
76482
76483 2005-08-31  Bruno Haible  <bruno@clisp.org>
76484
76485         Avoid unnecessary diffs in the generated lib/Makefile.am.
76486         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76487         the generated files.
76488         (func_import): Don't set cmd.
76489
76490 2005-08-31  Bruno Haible  <bruno@clisp.org>
76491
76492         * lib/strstr.c: Include <stddef.h>, for NULL.
76493         * lib/strcasestr.c: Likewise.
76494         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76495
76496 2005-08-31  Bruno Haible  <bruno@clisp.org>
76497
76498         * gnulib-tool: New option --macro-prefix.
76499         (func_import): Use macro_prefix.
76500         (import): Handle option --macro-prefix.
76501
76502 2005-08-31  Bruno Haible  <bruno@clisp.org>
76503
76504         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76505         Also use new variables cached_lgpl, cached_libtool.
76506
76507 2005-08-31  Bruno Haible  <bruno@clisp.org>
76508
76509         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76510         always instantiating them.
76511
76512 2005-08-31  Bruno Haible  <bruno@clisp.org>
76513
76514         * gnulib-tool (func_import): Read the previous cached settings
76515         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76516         earlier added by gnulib but are now dropped. Warn when a gnulib file
76517         overwrites a non-gnulib file.
76518
76519 2005-08-31  Bruno Haible  <bruno@clisp.org>
76520
76521         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76522         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76523         projects that don't keep autogenerated files in CVS. Put into
76524         actioncmd only the specified modules, not the transitive closure.
76525
76526 2005-08-31  Bruno Haible  <bruno@clisp.org>
76527
76528         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76529         Create directories that shall be filled.
76530         (import): Don't look for gl_* macros in configure.ac. Recurse across
76531         all directories containing a gnulib-cache.m4 files, if meaningful.
76532
76533 2005-08-31  Bruno Haible  <bruno@clisp.org>
76534
76535         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76536         (import): Set seen_libtool when we see gl_LIBTOOL.
76537
76538 2005-08-31  Bruno Haible  <bruno@clisp.org>
76539
76540         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76541         declaration macro definitions from generated gnulib.m4.
76542
76543 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76544
76545         * lib/iconvme.h: Add prototype for iconv_alloc.
76546
76547 2005-08-29  Simon Josefsson  <jas@extundo.com>
76548
76549         * lib/iconvme.c: Fix errno.
76550
76551 2005-08-29  Bruno Haible  <bruno@clisp.org>
76552
76553         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76554         that it works when the directory contains spaces.
76555
76556 2005-08-29  Bruno Haible  <bruno@clisp.org>
76557
76558         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76559
76560 2005-08-29  Bruno Haible  <bruno@clisp.org>
76561
76562         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76563         Emit more advice.
76564
76565 2005-08-29  Bruno Haible  <bruno@clisp.org>
76566         and Stepan Kasal  <kasal@ucw.cz>
76567
76568         * check-module: If more parameters are given, check each of them
76569         separately; add more exceptions, as noted by Jim Meyering.
76570         (check_module): New procedure.
76571         (%exempt_header): Now contains all exceptions.
76572
76573 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76574
76575         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76576
76577 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76578
76579         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76580
76581 2005-08-28  Bruno Haible  <bruno@clisp.org>
76582
76583         * m4/gnulib-tool.m4: New file.
76584
76585 2005-08-27  Jim Meyering  <jim@meyering.net>
76586
76587         * modules/unistd-safer (Files): Add pipe-safer.c.
76588         * modules/fcntl-safer (Files): Add creat-safer.c.
76589
76590 2005-08-27  Jim Meyering  <jim@meyering.net>
76591
76592         * m4/stdlib-safer.m4: New file.  From coreutils.
76593         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76594         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76595         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76596         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76597         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76598
76599 2005-08-27  Jim Meyering  <jim@meyering.net>
76600
76601         * lib/fopen-safer.c: Merge minor changes from coreutils.
76602         * lib/dup-safer.c: Likewise.
76603         * lib/fd-safer.c: Likewise.
76604
76605         Merge from coreutils.
76606         * lib/stdio--.h: New file.
76607         * lib/stdlib--.h: New file.
76608         * lib/mkstemp-safer.c: New file.
76609
76610         GNU tar needs these.
76611         * lib/pipe-safer.c: New file.
76612         * lib/creat-safer.c: New file.
76613         * lib/fcntl--.h (creat): Define to creat_safer.
76614         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76615         * lib/unistd--.h (pipe): Define to pipe_safer.
76616         * lib/unistd-safer.h: Declare pipe_safer.
76617
76618 2005-08-26  Simon Josefsson  <jas@extundo.com>
76619
76620         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76621         Haible <bruno@clisp.org>.
76622
76623 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * lib/regex_internal.h: Remove all references to
76626         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76627         or better.
76628         (bitset_not, bitset_merge, bitset_not_merge):
76629         (bitset_mask, re_string_allocate, re_string_construct):
76630         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76631         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76632         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76633         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76634         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76635         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76636         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76637         (re_acquire_state_context):
76638         Remove unnecessary forward decls.
76639         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76640         Put __attribute at function definition,
76641         now that the function decl has been removed.
76642         * lib/regex_internal.c (re_string_peek_byte_case):
76643         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76644         Likewise.
76645
76646 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76647
76648         * m4/regex.m4: Add AC_PREREQ(2.50).
76649         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76650
76651 2005-08-25  Simon Josefsson  <jas@extundo.com>
76652
76653         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76654         __fsetlocking.
76655
76656 2005-08-25  Simon Josefsson  <jas@extundo.com>
76657
76658         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76659         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76660         GLIBC specific code.
76661
76662 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76663
76664         Make regex safe for g++.  This fixes one real bug (an "err"
76665         that should have been "*err").  g++ problem reported by
76666         Sam Steingold.
76667         * lib/regex_internal.h (re_calloc): New macro, consistent with
76668         re_malloc etc.  All callers of calloc changed to use re_calloc.
76669         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76670         not int.  All callers changed.
76671         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76672         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76673         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76674         (find_recover_state): Change "err" to "*err"; this fixes what
76675         appears to be a real bug.
76676         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76677         versus int.
76678
76679 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         * modules/regex (Depends-on): Add malloc, since the code
76682         assumes that !malloc(0) means failure.
76683
76684 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76685
76686         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76687
76688         alloca modernization/simplification for regex.
76689         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76690         needs to be at the start of the file, and can be moved into
76691         regex_internal.h and simplified.
76692         * lib/regex_internal.h: Include <alloca.h>.
76693         (__libc_use_alloca) [!defined _LIBC]: New macro.
76694         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76695         now works outside glibc.
76696
76697 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * config/srclist.txt: Add glibc bugs 1241, 1245.
76700
76701 2005-08-25  Jim Meyering  <jim@meyering.net>
76702
76703         * lib/open-safer.c: Include <config.h>.
76704         Otherwise, we'd lose LARGEFILE support in any file using
76705         e.g. "fcntl--.h"
76706
76707 2005-08-25  Bruno Haible  <bruno@clisp.org>
76708
76709         * m4/minmax.m4: Require autoconf 2.52.
76710         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76711         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76712         alternatives of translit over the alphabet.
76713         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76714
76715 2005-08-24  Simon Josefsson  <jas@extundo.com>
76716
76717         * tests/test-getpass.c: New file.
76718
76719 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76722         for GNU regex features.
76723
76724 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76727         * lib/regex.h (regerror): Likewise.
76728
76729         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76730         requires this.  (The code never needed it.)
76731
76732         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76733         All uses of recently-renamed identifiers changed to use the new,
76734         POSIX-compliant names.  The code will build and run just fine
76735         without these changes, but it's better to eat our own dog food
76736         and use the standard-conforming names.
76737
76738         * lib/regex.h: Fix a multitude of POSIX name space violations.
76739         These changes have an effect only for programs that define
76740         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76741         do not change anything for programs compiled in the normal way.
76742         Also, there is no effect on the ABI.
76743
76744         (_REGEX_SOURCE): New macro.
76745         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76746         defined and _GNU_SOURCE is not; this fixes a name space violation.
76747
76748         Rename the following macros to obey POSIX requirements.
76749         The old names are still visible as macros if _REGEX_SOURCE is defined.
76750         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76751         RE_BACKSLASH_ESCAPE_IN_LISTS.
76752         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76753         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76754         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76755         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76756         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76757         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76758         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76759         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76760         (REG_INTERVALS): renamed from RE_INTERVALS.
76761         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76762         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76763         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76764         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76765         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76766         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76767         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76768         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76769         RE_UNMATCHED_RIGHT_PAREN_ORD.
76770         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76771         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76772         (REG_DEBUG): renamed from RE_DEBUG.
76773         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76774         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76775         unusual, since we can't clash with the POSIX REG_ICASE.
76776         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76777         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76778         (REG_NO_SUB): renamed from RE_NO_SUB.
76779         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76780         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76781         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76782         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76783         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76784         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76785         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76786         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76787         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76788         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76789         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76790         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76791         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76792         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76793         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76794         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76795         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76796         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76797         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76798         (REG_FIXED): Renamed from REGS_FIXED.
76799         (REG_NREGS): Renamed from RE_NREGS.
76800
76801         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76802         of other REG_* macros, since POSIX says the user is allowed to
76803         #undef these macros selectively.
76804
76805         (reg_errcode_t): Update comment stating what other tables need
76806         to be consistent.
76807
76808         Rename the following enum values to obey POSIX requirements.
76809         The old names are still visible as macros.
76810         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76811         is not defined, since GNU is supposed to be a superset of POSIX as
76812         much as possible, and since we want reg_errcode_t to be a signed
76813         type for implementation consistency.
76814         (_REG_NOERROR): Renamed from REG_NOERROR.
76815         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76816         (_REG_BADPAT): Renamed from REG_BADPAT.
76817         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76818         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76819         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76820         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76821         (_REG_EBRACK): Renamed from REG_EBRACK.
76822         (_REG_EPAREN): Renamed from REG_EPAREN.
76823         (_REG_EBRACE): Renamed from REG_EBRACE.
76824         (_REG_BADBR): Renamed from REG_BADBR.
76825         (_REG_ERANGE): Renamed from REG_ERANGE.
76826         (_REG_ESPACE): Renamed from REG_ESPACE.
76827         (_REG_BADRPT): Renamed from REG_BADRPT.
76828         (_REG_EEND): Renamed from REG_EEND.
76829         (_REG_ESIZE): Renamed from REG_ESIZE.
76830         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76831         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76832         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76833         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76834         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76835
76836         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76837         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76838         changed.  But support the old name if the new one is not defined
76839         and if _REGEX_SOURCE.
76840
76841         Change the following member names in struct re_pattern_buffer.
76842         The old names are still supported if !_REGEX_SOURCE.
76843         The new names are always supported, regardless of _REGEX_SOURCE.
76844         (re_buffer): Renamed from buffer.
76845         (re_allocated): Renamed from allocated.
76846         (re_used): Renamed from used.
76847         (re_syntax): Renamed from syntax.
76848         (re_fastmap): Renamed from fastmap.
76849         (re_translate): Renamed from translate.
76850         (re_can_be_null): Renamed from can_be_null.
76851         (re_regs_allocated): Renamed from regs_allocated.
76852         (re_fastmap_accurate): Renamed from fastmap_accurate.
76853         (re_no_sub): Renamed from no_sub.
76854         (re_not_bol): Renamed from not_bol.
76855         (re_not_eol): Renamed from not_eol.
76856         (re_newline_anchor): Renamed from newline_anchor.
76857
76858         Change the following member names in struct re_registers.
76859         The old names are still supported if !_REGEX_SOURCE.
76860         The new names are always supported, regardless of _REGEX_SOURCE.
76861         (rm_num_regs): Renamed from num_regs.
76862         (rm_start): Renamed from start.
76863         (rm_end): Renamed from end.
76864
76865         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76866         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76867         Prepend __ to parameter names.
76868
76869         Undo yesterday's changes.
76870
76871 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76874         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76875         lib/regex.c.
76876
76877 2005-08-24  Jim Meyering  <jim@meyering.net>
76878
76879         Sync from coreutils.
76880         * m4/fcntl-safer.m4: New file.
76881
76882         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76883         and object files for this module.
76884
76885 2005-08-24  Jim Meyering  <jim@meyering.net>
76886
76887         Sync from coreutils.
76888         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76889
76890 2005-08-24  Jim Meyering  <jim@meyering.net>
76891
76892         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76893         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76894
76895 2005-08-24  Jim Meyering  <jim@meyering.net>
76896
76897         * modules/fcntl-safer: New module.
76898         * modules/fts (Depends-on): Add fcntl-safer.
76899         * MODULES.html.sh (File descriptor based Input/Output):
76900         Add fcntl-safer.
76901
76902 2005-08-24  Bruno Haible  <bruno@clisp.org>
76903
76904         Support for unit test modules.
76905         * modules/README: Mention tests modules.
76906         * modules/TEMPLATE-TESTS: New file.
76907         * gnulib-tool: New options --extract-tests-module, --with-tests and
76908         --tests-base (unused for the moment).
76909         (testsbase, inctests): New variables.
76910         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76911         (func_verify_module): Exclude TEMPLATE-TESTS.
76912         (func_verify_nontests_module, func_verify_tests_module): New functions.
76913         (func_get_dependencies): Add implicit dependency for tests modules.
76914         (func_get_tests_module): New function.
76915         (func_modules_transitive_closure): When --with-tests was specified,
76916         include the unit tests as well, unless explicitly avoided.
76917         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76918         (func_emit_tests_Makefile_am): New function.
76919         (func_create_testdir): When --with-tests was specified, emit a
76920         tests/ directory.
76921         * MODULES.html.sh (Future developments): Update.
76922
76923 2005-08-24  Bruno Haible  <bruno@clisp.org>
76924
76925         * modules/tls-tests: New file.
76926         * tests/test-tls.c: New file, from GNU gettext.
76927
76928 2005-08-24  Bruno Haible  <bruno@clisp.org>
76929
76930         * modules/lock-tests: New file.
76931         * tests/test-lock.c: New file, from GNU gettext.
76932
76933 2005-08-24  Bruno Haible  <bruno@clisp.org>
76934
76935         * lib/lock.h: Add multiple inclusion guard.
76936         * lib/tls.h: Add multiple inclusion guard.
76937
76938 2005-08-24  Bruno Haible  <bruno@clisp.org>
76939
76940         * gnulib-tool: Add support for the --aux-dir option to
76941         --create-testdir, --create-megatestdir, --test, --megatest.
76942         (func_create_testdir, func_create_megatestdir): Optionally emit a
76943         AC_CONFIG_AUX_DIR directive.
76944         (create-testdir, create-megatestdir, test, megatest): Provide a
76945         default value for $auxdir.
76946
76947 2005-08-24  Bruno Haible  <bruno@clisp.org>
76948
76949         * gnulib-tool (import): Use compound statement instead of subshell
76950         where possible.
76951
76952 2005-08-24  Bruno Haible  <bruno@clisp.org>
76953
76954         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76955
76956 2005-08-24  Bruno Haible  <bruno@clisp.org>
76957
76958         * gnulib-tool (func_version): Update.
76959
76960 2005-08-24  Bruno Haible  <bruno@clisp.org>
76961
76962         * gnulib-tool (func_import, func_create_testdir,
76963         func_create_megatestdir): Quote all autoconf macro arguments.
76964
76965 2005-08-24  Bruno Haible  <bruno@clisp.org>
76966
76967         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76968         option --force, because --force causes the aclocal.m4 of each
76969         subdirectory to be newer than the corresponding config.h.in.
76970
76971 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76974         All contents moved to gl_REGEX.
76975         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76976         assume that it does.
76977
76978 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76979
76980         * lib/regex.h (REG_NOSYS)
76981         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76982         Define, since POSIX requires it as of 2001.
76983         (_REG_ENOSYS)
76984         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76985         New private symbol, used to keep the enum signed in all cases.
76986         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76987         Youngman in
76988         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76989
76990         * lib/regex_internal.c (re_string_skip_chars, register_state):
76991         (calc_state_hash):
76992         Remove forward decls; no longer needed now that we use prototypes.
76993         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76994         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76995         (clean_state_log_if_needed): Likewise.
76996
76997 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         * config/srclist.txt: Add glibc bugs 1231-1233.
77000
77001 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77002
77003         Fix problems reported by Sam Steingold in
77004         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77005         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77006         assumed that reg_errcode_t is a signed type, which is not
77007         necessarily true if _XOPEN_SOURCE is not defined.
77008         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77009         since some compilers warn about it otherwise.
77010
77011 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77012
77013         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77014         (init_word_char, create_initial_state, duplicate_node_closure):
77015         (fetch_token, peek_token_bracket, build_range_exp):
77016         (build_collating_symbol): Remove forward decls; no longer needed
77017         now that we use prototypes.
77018
77019         * lib/regcomp.c:
77020         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77021         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77022         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77023         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77024         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77025         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77026         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77027         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77028         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77029         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77030         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77031         (build_charclass, build_charclass_op, fetch_number, create_tree):
77032         (create_token_tree, mark_opt_subexp, duplicate_tree):
77033         Use prototypes rather than old-style definitions.
77034
77035         * lib/regex_internal.c:
77036         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77037         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77038         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77039         (re_string_reconstruct, re_string_peek_byte_case):
77040         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77041         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77042         (re_node_set_init_copy, re_node_set_add_intersect):
77043         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77044         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77045         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77046         (re_acquire_state, re_acquire_state_context, register_state):
77047         (create_ci_newstate, create_cd_newstate, free_state):
77048         Likewise.
77049         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77050         re_search_2):
77051         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77052         (re_search_internal, prune_impossible_nodes):
77053         (acquire_init_state_context, check_matching, static):
77054         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77055         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77056         (update_regs, sift_states_backward, build_sifted_states):
77057         (clean_state_log_if_needed, merge_state_array):
77058         (update_cur_sifted_state, add_epsilon_src_nodes):
77059         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77060         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77061         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77062         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77063         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77064         (check_arrival, check_arrival_add_next_nodes):
77065         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77066         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77067         (check_node_accept_bytes, check_node_accept, extend_buffers):
77068         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77069         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77070         (sift_ctx_init):
77071         Likewise.
77072
77073         * lib/regex_internal.h:
77074         (re_string_allocate, re_string_construct, re_string_reconstruct):
77075         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77076         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77077         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77078         (re_string_context_at, re_string_peek_byte_case):
77079         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77080         is defined, since we now use prototypes always.
77081
77082         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77083         C89 or better.  All uses removed.
77084
77085 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77086
77087         * config/srclist.txt: Add glibc bugs 1220-1227.
77088
77089 2005-08-20  Jim Meyering  <jim@meyering.net>
77090
77091         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77092         of unused local, dfa.
77093
77094 2005-08-20  Bruno Haible  <bruno@clisp.org>
77095
77096         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77097
77098 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77101         (re_node_set_insert_last, re_dfa_add_node):
77102         Rename local variables to avoid GCC shadowing warnings.
77103
77104 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77107         [defined lint]: Suppress bogus uninitialized-variable warnings.
77108
77109         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77110         and let the caller return REG_ESPACE if out of space.  This
77111         removes an uninitialied-variable warning with GCC 4.0.1, and also
77112         avoids taking the address of a local variable.  All callers
77113         changed.
77114
77115 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77116
77117         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77118         $LIBCSRC/posix/regexec.c.
77119         Add glibc bug 1217 for regcomp.c.
77120
77121 2005-08-19  Jim Meyering  <jim@meyering.net>
77122
77123         * lib/regexec.c (proceed_next_node): Redo local variables to
77124         avoid GCC shadowing warnings.
77125
77126 2005-08-18  Bruno Haible  <bruno@clisp.org>
77127
77128         * lib/strstr.c (strstr): Fix return value in multibyte case.
77129         * lib/strcasestr.c (strcasestr): Likewise.
77130
77131 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77134
77135 2005-08-17  Jim Meyering  <jim@meyering.net>
77136
77137         Make the %s format (seconds since the epoch) work for a negative
77138         number and when used with a zero-padded field width, e.g. %015s.
77139
77140         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77141         label so that it precedes the code to set `digits'.  Otherwise,
77142         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77143         print `00-22'.  Now, it prints `-0022', as it should.
77144
77145 2005-08-17  Bruno Haible  <bruno@clisp.org>
77146
77147         * modules/strstr (Files): Add m4/mbrtowc.m4.
77148         (Depends-on): Add mbuiter.
77149
77150 2005-08-17  Bruno Haible  <bruno@clisp.org>
77151
77152         * modules/strcasestr: New file.
77153         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77154         strcasestr.
77155
77156 2005-08-17  Bruno Haible  <bruno@clisp.org>
77157
77158         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77159
77160 2005-08-17  Bruno Haible  <bruno@clisp.org>
77161
77162         * modules/mbuiter: New file.
77163         * MODULES.html.sh (Extended multibyte and wide character utilities):
77164         Add mbuiter.
77165
77166 2005-08-17  Bruno Haible  <bruno@clisp.org>
77167
77168         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77169         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77170
77171 2005-08-17  Bruno Haible  <bruno@clisp.org>
77172
77173         * m4/strcasestr.m4: New file.
77174
77175 2005-08-17  Bruno Haible  <bruno@clisp.org>
77176
77177         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77178         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77179
77180 2005-08-17  Bruno Haible  <bruno@clisp.org>
77181
77182         * lib/strcasestr.h: New file.
77183         * lib/strcasestr.c: New file.
77184
77185 2005-08-17  Bruno Haible  <bruno@clisp.org>
77186
77187         * lib/strcasecmp.c: Use mbuiter.h.
77188
77189 2005-08-17  Bruno Haible  <bruno@clisp.org>
77190
77191         * lib/mbuiter.h: New file.
77192
77193 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77194
77195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77196         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77197         and gl_GETOPT are both invoked via different paths (as happens
77198         with GNU tar CVS because it uses both argp and getopt), the former
77199         wins.
77200
77201 2005-08-16  Bruno Haible  <bruno@clisp.org>
77202
77203         * modules/tls: New file.
77204         * MODULES.html.sh (Multithreading): Add tls.
77205
77206 2005-08-16  Bruno Haible  <bruno@clisp.org>
77207
77208         * modules/strnlen1: New file.
77209         * MODULES.html.sh (String handling): Add strnlen1.
77210
77211 2005-08-16  Bruno Haible  <bruno@clisp.org>
77212
77213         * modules/strcase (Files): Add m4/mbrtowc.m4.
77214         (Depends-on): Add strnlen1, mbchar.
77215
77216 2005-08-16  Bruno Haible  <bruno@clisp.org>
77217
77218         * modules/mbiter: New file.
77219         * MODULES.html.sh (Extended multibyte and wide character utilities):
77220         Add mbiter.
77221
77222 2005-08-16  Bruno Haible  <bruno@clisp.org>
77223
77224         * modules/mbfile: New file.
77225         * MODULES.html.sh (Extended multibyte and wide character utilities):
77226         Add mbfile.
77227
77228 2005-08-16  Bruno Haible  <bruno@clisp.org>
77229
77230         * modules/mbchar: New file.
77231         * MODULES.html.sh (Extended multibyte and wide character utilities):
77232         New section.
77233
77234 2005-08-16  Bruno Haible  <bruno@clisp.org>
77235
77236         * m4/tls.m4: New file, from GNU gettext.
77237
77238 2005-08-16  Bruno Haible  <bruno@clisp.org>
77239
77240         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77241         always.
77242         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77243
77244 2005-08-16  Bruno Haible  <bruno@clisp.org>
77245
77246         * m4/mbiter.m4: New file.
77247
77248 2005-08-16  Bruno Haible  <bruno@clisp.org>
77249
77250         * m4/mbfile.m4: New file.
77251
77252 2005-08-16  Bruno Haible  <bruno@clisp.org>
77253
77254         * m4/mbchar.m4: New file.
77255
77256 2005-08-16  Bruno Haible  <bruno@clisp.org>
77257
77258         * lib/tls.h: New file, from GNU gettext.
77259         * lib/tls.c: New file, from GNU gettext.
77260
77261 2005-08-16  Bruno Haible  <bruno@clisp.org>
77262
77263         * lib/strnlen1.h: New file.
77264         * lib/strnlen1.c: New file.
77265
77266 2005-08-16  Bruno Haible  <bruno@clisp.org>
77267
77268         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77269         (mbi_init): Update.
77270         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77271         NUL byte, not after it.
77272
77273 2005-08-16  Bruno Haible  <bruno@clisp.org>
77274
77275         * lib/strcase.h (strcasecmp): Add note in comments.
77276         * lib/strncasecmp.c: Use code from strcasecmp.c.
77277         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77278         (strcasecmp): Work correctly in multibyte locales.
77279
77280 2005-08-16  Bruno Haible  <bruno@clisp.org>
77281
77282         * lib/mbiter.h: New file.
77283
77284 2005-08-16  Bruno Haible  <bruno@clisp.org>
77285
77286         * lib/mbfile.h: New file.
77287
77288 2005-08-16  Bruno Haible  <bruno@clisp.org>
77289
77290         * lib/mbchar.h: New file.
77291         * lib/mbchar.c: New file.
77292
77293 2005-08-16  Bruno Haible  <bruno@clisp.org>
77294
77295         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77296         the valid ones. Makes the comparison operations transitive:
77297         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77298         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77299
77300 2005-08-15  Simon Josefsson  <jas@extundo.com>
77301
77302         * modules/ssize_t (License): Change to 'unlimited'.
77303
77304         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77305
77306 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77307
77308         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77309         Add comments for each pending glibc patch.
77310
77311 2005-08-15  Bruno Haible  <bruno@clisp.org>
77312
77313         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77314         __cplusplus is defined.
77315
77316 2005-08-14  Jim Meyering  <jim@meyering.net>
77317
77318         Sync from coreutils.
77319
77320         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77321         Use the hash-table-based cycle-detection code not just when
77322         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77323         Reported by James Youngman in
77324         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77325         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77326         FTS_TIGHT_CYCLE_CHECK.
77327         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77328         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77329         once again.
77330         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77331         * lib/fts.c (fd_safer): Remove decl.
77332         Include fcntl--.h rather than unistd-safer.h
77333         (fts_safe_changedir): Don't call fd_safer; no longer needed
77334         now that we include fcntl--.h.
77335
77336 2005-08-12  Simon Josefsson  <jas@extundo.com>
77337
77338         * modules/getndelim2: Use ssize_t module.
77339         * modules/getnline: Likewise.
77340         * modules/safe-read: Likewise.
77341         * modules/xreadlink: Likewise.
77342
77343         * modules/ssize_t: New file.
77344
77345 2005-08-12  Simon Josefsson  <jas@extundo.com>
77346
77347         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77348
77349 2005-08-12  Simon Josefsson  <jas@extundo.com>
77350
77351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77352         ssize_t.
77353
77354 2005-08-12  Simon Josefsson  <jas@extundo.com>
77355
77356         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77357         readline, getdelim and check_version.
77358         (Support for systems lacking ISO C 99: Sizes of integer types):
77359         Add size_max.
77360
77361 2005-08-12  Bruno Haible  <bruno@clisp.org>
77362
77363         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77364
77365 2005-08-11  Simon Josefsson  <jas@extundo.com>
77366
77367         * modules/readline: New file.
77368
77369         * modules/strnlen (Files): Add strnlen.h.
77370
77371 2005-08-11  Simon Josefsson  <jas@extundo.com>
77372
77373         * m4/readline.m4: New file.
77374
77375 2005-08-11  Simon Josefsson  <jas@extundo.com>
77376
77377         * lib/readline.h, readline.c: New file.
77378
77379 2005-08-11  Simon Josefsson  <jas@extundo.com>
77380
77381         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77382         gl_AVOID.
77383
77384 2005-08-11  Bruno Haible  <bruno@clisp.org>
77385
77386         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77387
77388 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77389
77390         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77391
77392 2005-08-10  Simon Josefsson  <jas@extundo.com>
77393
77394         * tests/test-iconvme.c: New file.
77395
77396 2005-08-10  Simon Josefsson  <jas@extundo.com>
77397
77398         * m4/strnlen.m4: New file.
77399
77400         * m4/strndup.m4: Don't check for strnlen declaration, done in
77401         strnlen.m4.
77402
77403 2005-08-10  Simon Josefsson  <jas@extundo.com>
77404
77405         * lib/strndup.c: Use strnlen.h.
77406
77407         * lib/strnlen.h: New file.
77408
77409 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77410
77411         * README: Typos.
77412
77413 2005-08-02  Simon Josefsson  <jas@extundo.com>
77414
77415         * modules/readline: New file.
77416
77417 2005-08-02  Simon Josefsson  <jas@extundo.com>
77418
77419         * modules/getdelim: New file.
77420
77421         * modules/getline: Rewrite, don't use getndelim2.
77422
77423 2005-08-02  Simon Josefsson  <jas@extundo.com>
77424
77425         * m4/getline.m4: Separate out getdelim stuff into separate module.
77426
77427         * m4/getdelim.m4: New file.
77428
77429 2005-08-02  Simon Josefsson  <jas@extundo.com>
77430
77431         * lib/getline.h, getline.c: Rewrite.
77432
77433         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77434
77435 2005-07-31  Bruno Haible  <bruno@clisp.org>
77436
77437         * lib/lock.h (gl_lock_initializer): New macro.
77438         (gl_lock_define_initialized): Use it.
77439         (gl_rwlock_initializer): New macro.
77440         (gl_rwlock_define_initialized): Use it.
77441         (gl_recursive_lock_initializer): New macro.
77442         (gl_recursive_lock_define_initialized): Use it.
77443
77444 2005-07-30  Karl Berry  <karl@gnu.org>
77445
77446         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77447         Report from Ben Pfaff, regarding getopt.
77448
77449 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77450
77451         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77452         normal way.
77453         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77454         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77455         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77456         (gl_GETOPT): Use the new macros.  Most of the implementation
77457         is moved to the new macros.  This is for programs like Emacs
77458         that don't want all the functionality of gl_GETOPT.
77459
77460 2005-07-26  Bruno Haible  <bruno@clisp.org>
77461
77462         * m4/lock.m4: Update from GNU gettext.
77463
77464 2005-07-26  Bruno Haible  <bruno@clisp.org>
77465
77466         * lib/lock.h: Update from GNU gettext.
77467         * lib/lock.c: Update from GNU gettext.
77468
77469 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77470
77471         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77472         obsolescent AC_TRY_RUN.  Include the default includes files, for
77473         'exit'.
77474
77475 2005-07-24  Bruno Haible  <bruno@clisp.org>
77476
77477         * modules/visibility: New file.
77478         * MODULES.html.sh (Misc): Add visibility.
77479
77480 2005-07-24  Bruno Haible  <bruno@clisp.org>
77481
77482         * m4/visibility.m4: New file.
77483
77484 2005-07-24  Bruno Haible  <bruno@clisp.org>
77485
77486         * doc/visibility.texi: New file.
77487
77488 2005-07-22  Bruno Haible  <bruno@clisp.org>
77489
77490         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77491         $(ALLOCA_H), redundant through BUILT_SOURCES.
77492         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77493         redundant through BUILT_SOURCES.
77494         * modules/byteswap (Makefile.am): Remove explicit dependency on
77495         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77496         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77497         $(FNMATCH_H), redundant through BUILT_SOURCES.
77498         * modules/getopt (Makefile.am): Remove explicit dependency on
77499         $(GETOPT_H), redundant through BUILT_SOURCES.
77500         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77501         redundant through BUILT_SOURCES.
77502         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77503         redundant through BUILT_SOURCES.
77504         * modules/stdbool (Makefile.am): Remove explicit dependency on
77505         $(STDBOOL_H), redundant through BUILT_SOURCES.
77506         * modules/stdint (Makefile.am): Remove explicit dependency on
77507         $(STDINT_H), redundant through BUILT_SOURCES.
77508         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77509         Remove explicit dependency on $(SYSEXITS_H).
77510         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77511
77512 2005-07-18  Simon Josefsson  <jas@extundo.com>
77513
77514         * lib/check-version.c (check_version): Accept identical versions too.
77515
77516 2005-07-18  Bruno Haible  <bruno@clisp.org>
77517
77518         * modules/lock: New file.
77519         * MODULES.html.sh (Multithreading): New section.
77520
77521 2005-07-18  Bruno Haible  <bruno@clisp.org>
77522
77523         * m4/lock.m4: New file, from GNU gettext.
77524
77525 2005-07-18  Bruno Haible  <bruno@clisp.org>
77526
77527         * lib/lock.h: New file, from GNU gettext.
77528         * lib/lock.c: New file, from GNU gettext.
77529
77530 2005-07-18  Bruno Haible  <bruno@clisp.org>
77531
77532         * lib/lock.h (gl_once_t): New type.
77533         (gl_once_define, gl_once): New macros.
77534         * lib/lock.c (fresh_once): New variable.
77535         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77536         functions.
77537
77538 2005-07-16  Simon Josefsson  <jas@extundo.com>
77539
77540         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77541         workaround, suggested by Bruno.
77542
77543 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * modules/xalloc (Depends-on): Add xalloc-die.
77546         * modules/xvasprintf (Depends-on): Add xalloc-die.
77547
77548 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77549
77550         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77551         with a minor change.
77552
77553 2005-07-15  Bruno Haible  <bruno@clisp.org>
77554
77555         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77556         When using lib/poll.c, define poll as rpl_poll.
77557
77558 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * modules/argp (Depends-on): Remove unlocked-io.
77561
77562 2005-07-14  Derek Price  <derek@ximbiot.com>
77563
77564         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77565         for glob symlink bug.
77566
77567 2005-07-14  Bruno Haible  <bruno@clisp.org>
77568
77569         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77570         Instead, test for *_unlocked function declarations directly.
77571
77572 2005-07-11  Simon Josefsson  <jas@extundo.com>
77573
77574         * modules/size_max: New file.
77575
77576         * modules/xsize: Depend on size_max module for size_max.m4.
77577
77578 2005-07-11  Simon Josefsson  <jas@extundo.com>
77579
77580         * lib/size_max.h: New file.
77581
77582 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77585         copyright symbol and the year.
77586         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77587         (version_etc_va): Use parameterized copyright notice.
77588         Reword to conform to the current GNU coding standards.
77589
77590 2005-07-11  Karl Berry  <karl@gnu.org>
77591
77592         * doc/gnulib.texi (Quoting): new node.
77593         (Initial import): more info, from Patrice.
77594
77595 2005-07-11  Bruno Haible  <bruno@clisp.org>
77596
77597         * gnulib-tool (func_usage): Document option --avoid.
77598         (Command line options): Handle --avoid.
77599         (func_acceptable): New function.
77600         (func_modules_transitive_closure): Use it.
77601
77602 2005-07-11  Bruno Haible  <bruno@clisp.org>
77603
77604         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77605         Reported by Jim Meyering.
77606
77607 2005-07-10  Bruno Haible  <bruno@clisp.org>
77608
77609         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77610         Needed when size_t is smaller than 'unsigned int'.
77611         Reported by Paul Eggert.
77612
77613 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77614
77615         * modules/argp (Depends-on): Add unlocked-io
77616
77617 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77618
77619         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77620         block of defines.
77621
77622 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77623
77624         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77625         fix now.
77626
77627 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77628         and Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77631         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77632
77633 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * modules/regex (Files): Add lib/regex_internal.c,
77636         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77637         (Depends-on): Add extensions.
77638         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77639
77640 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77643         pathconf.
77644         * m4/same.m4 (gl_SAME): Likewise.
77645         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77646
77647         * m4/regex.m4: Adjust to new libc regex implementation.
77648         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77649         all the .c and .h parts of (the new) regex.
77650         Quote the m4 stuff better.
77651         Check for RE_ICASE bug of old gnulib.
77652         Check for REG_STARTEND of recent libc.
77653         Rename local variables from jm_* to gl_*.
77654         Quote operand of "test -f".
77655         Say "recent enough" version of libc, not "version 2".
77656         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77657         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77658         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77659         Remove check for btowc, isascii.
77660         Require AM_LANGINFO_CODESET.
77661
77662 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77663
77664         * lib/regex.c, regex.h: Sync from libc.
77665         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77666         * lib/regexec.c:
77667         New files, synced from libc, except that regex_internal.h
77668         currently has a small porting fix.
77669
77670 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77673         regex_internal.c, regexec.c.
77674         Add regex_internal.h too, but as a comment, since the libc version
77675         is currently broken in gnulib mode.
77676
77677 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         Support programs like Emacs that use gnulib but not gettext.
77680         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77681         * modules/gettext-h: New file.
77682         * modules/gettext (Files): Remove lib/gettext.h.
77683         (Depends-on): Add gettext-h.
77684         (Makefile.am): Remove lib_SOURCES.
77685         * modules/argmatch, modules/c-stack, modules/closeout:
77686         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77687         * modules/execute, modules/file-type, modules/getaddrinfo:
77688         * modules/getopt, modules/human, modules/javacomp:
77689         * modules/javaexec, modules/mkdir-p, modules/obstack:
77690         * modules/openat, modules/pagealign_alloc, modules/pipe:
77691         * modules/quotearg, modules/regex, modules/rpmatch:
77692         * modules/unicodeio, modules/userspec, modules/version-etc:
77693         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77694         * modules/xsetenv:
77695         Depend on gettext-h, not gettext.
77696
77697 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77698
77699         * gnulib-tool (func_import): Add support for 'public domain' license.
77700         * modules/alloca, modules/atexit, modules/memmove:
77701         Now public domain, not GPL.
77702         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77703         * modules/realloc, modules/strerror, modules/strtod:
77704         Now LGPL, not GPL.
77705
77706 2005-07-05  Bruno Haible  <bruno@clisp.org>
77707
77708         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77709         autoconf CVS. Needed for mingw.
77710
77711 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77712
77713         Remove the dependency of the strftime module on the tzset module.
77714         * modules/strftime (Depends-on): Remove dependency on tzset.
77715
77716 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         Remove the dependency of the strftime module on the tzset module.
77719         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77720         gl_FUNC_TZSET_CLOBBER.
77721
77722 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77723
77724         Remove the dependency of the strftime module on the tzset module.
77725         * lib/strftime.c (my_strftime)
77726         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77727         Copy the input structure, to work around some of the bug with
77728         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77729         Solaris releases, you should also use the tzset module, but we won't
77730         require it as a dependency any more since we don't want LGPLed code
77731         to depend on GPLed code.
77732
77733 2005-07-02  Jim Meyering  <jim@meyering.net>
77734
77735         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77736         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77737         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77738         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77739
77740 2005-07-02  Jim Meyering  <jim@meyering.net>
77741
77742         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77743
77744 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77747         declares only 'struct timespec;' (!).
77748
77749 2005-07-01  Jim Meyering  <jim@meyering.net>
77750
77751         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77752         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77753         * lib/save-cwd.c, tempname.c:
77754         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77755         and don't include <sys/file.h>).
77756
77757 2005-06-29  Jim Meyering  <jim@meyering.net>
77758
77759         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77760         type name.  Use the variable name instead.
77761         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77762         Likewise.
77763
77764 2005-06-28  Simon Josefsson  <jas@extundo.com>
77765
77766         * modules/check-version (Files): Add check-version.m4.
77767
77768 2005-06-28  Simon Josefsson  <jas@extundo.com>
77769
77770         * m4/check-version.m4: New file, suggested by Jim Meyering
77771         <jim@meyering.net>.
77772
77773 2005-06-28  Simon Josefsson  <jas@extundo.com>
77774
77775         * lib/check-version.h, lib/check-version.c: New files.
77776
77777 2005-06-28  Simon Josefsson  <jas@extundo.com>
77778
77779         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77780         collision with global variable.  Better indentation.  Don't
77781         increment buffer pointer beyond buffer end.  Based on comments
77782         from Paul Eggert <eggert@cs.ucla.edu>.
77783
77784         * lib/base64.h: Indent.
77785
77786 2005-06-28  Simon Josefsson  <jas@extundo.com>
77787
77788         * doc/gnulib.texi (Library version handling): New section.
77789
77790 2005-06-28  Jim Meyering  <jim@meyering.net>
77791
77792         * check-module (find_included_lib_files): Hard-code another
77793         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77794         but modules/fts-lgpl (correctly) does not list those files.
77795
77796         * modules/canonicalize (Files): Add lib/pathmax.h.
77797
77798 2005-06-25  Simon Josefsson  <jas@extundo.com>
77799
77800         * modules/check-version: New file.
77801
77802 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77803
77804         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77805         initializer of struct addrinfo, as an indication that we don't
77806         care how many members the structure has.
77807
77808 2005-06-24  Derek Price  <derek@ximbiot.com>
77809         and Bruno Haible  <bruno@clisp.org>
77810
77811         Remove stat module & update lstat.
77812         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77813         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77814         * m4/stat.m4: Remove this file.
77815
77816 2005-06-24  Derek Price  <derek@ximbiot.com>
77817         and Bruno Haible  <bruno@clisp.org>
77818
77819         Remove stat module & update lstat.
77820         * lib/stat.c: Remove this file...
77821         (slash_aware_lstat): ...moving this content and its support...
77822         * lib/lstat.c (rpl_lstat): ...into here.
77823         * lib/lstat.h: New file.
77824
77825 2005-06-24  Derek Price  <derek@ximbiot.com>
77826         and Bruno Haible  <bruno@clisp.org>
77827
77828         Remove stat module & update lstat.
77829         * config/srclist.txt (libc sources): Remove stat.
77830
77831 2005-06-24  Derek Price  <derek@ximbiot.com>
77832         and Bruno Haible  <bruno@clisp.org>
77833
77834         Remove stat module & update lstat.
77835         * MODULES.html.sh (stat): Remove.
77836         * MODULES.html: Regenerated.
77837         * modules/lstat (Description): Correct function name.
77838         (Files): Add "lstat.h".
77839         (Depends-on): Remove stat, add xalloc, stat-macros.
77840         * modules/stat: Remove this file.
77841         (Include): Add "lstat.h", remove <sys/stat.h>.
77842
77843 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77846         (ranged_convert): Don't save conversion in a temporary struct.
77847         This causes a warning with GCC 4.0.0, and anyway in the typical
77848         case it's not worth the extra 100 bytes or so of code.
77849         (ranged_convert, __mktime_internal): When calling a function via a
77850         pointer P, use P () rather than (*P) (), as we now assume C89 or
77851         better.
77852
77853 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77856         "who -r" failed to give output.  Problem reported by Tim Waugh.
77857
77858         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77859         (xcalloc): Use it to avoid needless tests.
77860         Problem reported by Jim Meyering.
77861
77862 2005-06-20  Derek Price  <derek@ximbiot.com>
77863
77864         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77865         unnecessary for Autoconfs > 2.59c.
77866
77867 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77868
77869         * lib/argp.h (__option_is_short): Check upper limit of
77870         __key. Isprint() requires its argument to have the value
77871         of an unsigned char or EOF.
77872
77873 2005-06-16  Jim Meyering  <jim@meyering.net>
77874
77875         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77876         when either N or S is zero.
77877
77878 2005-06-16  Derek Price  <derek@ximbiot.com>
77879
77880         * m4/bison.m4: Declare YACC & YFLAGS precious.
77881
77882 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77885         multibyte string or pattern, fall back on unibyte matching.
77886         Problem reported by James Youngman.
77887
77888 2005-06-08  Bruno Haible  <bruno@clisp.org>
77889
77890         * modules/csharpcomp: New file.
77891         * MODULES.html.sh (C#): Add csharpcomp.
77892
77893 2005-06-08  Bruno Haible  <bruno@clisp.org>
77894
77895         * m4/csharpcomp.m4: New file, from GNU gettext.
77896
77897 2005-06-08  Bruno Haible  <bruno@clisp.org>
77898
77899         * lib/csharpcomp.h: New file, from GNU gettext.
77900         * lib/csharpcomp.c: New file, from GNU gettext.
77901         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77902
77903 2005-06-08  Bruno Haible  <bruno@clisp.org>
77904
77905         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77906         warning on mingw.
77907
77908 2005-06-07  Derek Price  <derek@ximbiot.com>
77909
77910         Sync from CVS.
77911         * lib/glob_.h: Indent nested #ifdef.
77912
77913 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         Sync from coreutils.
77916         Use "file name" when talking about file names, instead of "filename"
77917         or "path", as per the GNU coding standards.
77918         * lib/mkdir-p.c: Renamed from makepath.c.
77919         (make_dir_parents): Renamed from make_path.  All callers changed.
77920         * lib/mkdir-p.h: Likewise.  All includers changed.
77921         * lib/filenamecat.c: Renamed from path-concat.c.
77922         (file_name_concat): Renamed from path_concat.  All callers changed.
77923         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77924         * lib/filenamecat.h: Likewise.  All includers changed.
77925         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77926         in comments or local variable names.
77927         * lib/basename.c: Likewise.
77928         * lib/canonicalize.c, canonicalize.h: Likewise.
77929         * lib/dirname.c, dirname.h: Likewise.
77930         * lib/euidaccess.c: Likewise.
77931         * lib/exclude.c: Likewise
77932         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77933         * lib/fsusage.c, fsuage.h: Likewise.
77934         * lib/fts.c, fts_.h: Likewise.
77935         * lib/getcwd.c: Likewise.
77936         * lib/getloadavg.c: Likewise.
77937         * lib/mkstemp.c: Likewise.
77938         * lib/mountlist.c, mountlist.h: Likewise.
77939         * lib/openat.c, openat.h: Likewise.
77940         * lib/readlink-stub.c: Likewise.
77941         * lib/readutmp.c, readutmp.h: Likewise.
77942         * lib/rename.c: Likewise.
77943         * lib/rmdir.c: Likewise.
77944         * lib/same.c: Likewise.
77945         * lib/savedir.c: Likewise.
77946         * lib/stripslash.c: Likewise.
77947         * lib/tempname.c: Likewise.
77948         * lib/xreadlink.c: Likewise.
77949         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77950         All uses changed.
77951         * lib/exclude.h: Likewise.
77952
77953         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77954         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77955         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77956         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77957         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77958         files have been getting away with it for years (MORE/BSD 4.3
77959         is extinct now).
77960         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77961         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77962
77963         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77964         Define to 256, not 255, as per modern POSIX.
77965
77966 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         Sync from coreutils.
77969         Use "file name" when talking about file names, instead of "filename"
77970         or "path", as per the GNU coding standards.
77971         * MODULES.html.sh: mkdir-p renamed from makepath.
77972         filenamecat renamed from path-concat.
77973         * modules/filenamecat: Renamed from modules/path-concat.
77974         (Files): filenamecat.h and filenamecat.c renamed from
77975         path-concat.h and path-concat.c.
77976         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77977         (Include): filenamecat.h, not path-concat.h.
77978         * modules/mkdir-p: Renamed from modules/makepath.
77979         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77980         makepath.c.
77981         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77982         (Include): mkdir-p.h, not makepath.h.
77983
77984 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77985
77986         Sync from coreutils.
77987         * m4/mkdir-p.m4: Renamed from makepath.m4.
77988         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77989         Rename files from makepath.c to mkdir-p.c, and from
77990         makepath.h to mkdir-p.h.
77991         * m4/filenamecat.m4: Renamed from path-concat.m4.
77992         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77993         Rename files from path-concat.c to filenamecat.c,
77994         and from path-concat.h to filenamecat.h.
77995         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77996         "file name" in local variables or comments.
77997         * m4/rename.m4: Likewise.
77998
77999 2005-06-01  Bruno Haible  <bruno@clisp.org>
78000
78001         * modules/csharpexec: New file.
78002         * MODULES.html.sh (C#): New section.
78003
78004 2005-06-01  Bruno Haible  <bruno@clisp.org>
78005
78006         * m4/csharp.m4: New file, from GNU gettext.
78007         * m4/csharpexec.m4: New file, from GNU gettext.
78008
78009 2005-06-01  Bruno Haible  <bruno@clisp.org>
78010
78011         * lib/csharpexec.h: New file, from GNU gettext.
78012         * lib/csharpexec.c: New file, from GNU gettext.
78013         * lib/csharpexec.sh.in: New file, from GNU gettext.
78014
78015 2005-05-31  Derek Price  <derek@ximbiot.com>
78016             Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         Sync from cvs.
78019         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78020
78021 2005-05-31  Derek Price  <derek@ximbiot.com>
78022             Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         Sync from cvs.
78025         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78026
78027 2005-05-29  Derek Price  <derek@ximbiot.com>
78028
78029         * config/srclist.txt (glob_.h, glob.c): Add these files.
78030
78031 2005-05-29  Derek Price  <derek@ximbiot.com>
78032
78033         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78034         * modules/glob: New file.
78035         * modules/getlogin_r: Add link to POSIX spec in description.
78036
78037 2005-05-29  Derek Price  <derek@ximbiot.com>
78038             Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         * m4/glob.m4: New file.
78041
78042 2005-05-29  Derek Price  <derek@ximbiot.com>
78043             Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * lib/glob_.h, lib/glob.c: New files.
78046
78047 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78050         * modules/fts-lgpl (Depends-on): Remove gettext.
78051
78052 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78053
78054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78055         and don't require gt_INTTYPES_PRI.
78056
78057 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78060
78061         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78062         the configuration hassle isn't worth it.
78063         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78064         (LONGEST_MODIFIER, PRIuMAX): Remove.
78065
78066 2005-05-27  Bruno Haible  <bruno@clisp.org>
78067
78068         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78069
78070 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78071
78072         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78073         _POSIX_PTHREAD_SEMANTICS for Solaris.
78074
78075 2005-05-25  Derek Price  <derek@ximbiot.com>
78076
78077         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78078
78079 2005-05-25  Derek Price  <derek@ximbiot.com>
78080             Paul Eggert  <eggert@cs.ucla.edu>
78081
78082         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78083         * lib/getlogin_r.c, getlogin_r.h: New files.
78084
78085 2005-05-25  Bruno Haible  <bruno@clisp.org>
78086             Derek Price  <derek@ximbiot.com>
78087
78088         * lib/getlogin_r.h: Simplify API documentation.
78089
78090 2005-05-23  Derek Price  <derek@ximbiot.com>
78091
78092         * modules/minmax (Files): Add m4/minmax.m4.
78093         (configure.ac): Add gl_MINMAX.
78094
78095 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78098         so that unistd-safer.h (GPL'ed code) need not be included.
78099
78100 2005-05-22  Bruno Haible  <bruno@clisp.org>
78101
78102         * m4/minmax.m4: New file.
78103         Based on a patch by Derek Price <derek@ximbiot.com>.
78104
78105 2005-05-22  Bruno Haible  <bruno@clisp.org>
78106
78107         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78108         (INT64_MIN): Fix definition.
78109         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78110
78111         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78112         NEED_SIGNED_INT_TYPES.
78113
78114         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78115         HAVE_SYSTEM_INTTYPES.
78116
78117 2005-05-22  Bruno Haible  <bruno@clisp.org>
78118
78119         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78120         Also include <sys/param.h> if it defines MIN, MAX.
78121         Based on a patch by Derek Price <derek@ximbiot.com>.
78122
78123 2005-05-21  Jim Meyering  <jim@meyering.net>
78124
78125         * modules/fts (Files): Add m4/inttypes-pri.m4.
78126         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78127
78128 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         New fts module.
78131         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78132         (setup_dir, free_dir): New functions.
78133         (enter_dir, leave_dir): Define trivial
78134         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78135         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78136         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78137         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78138         Move to fts-cycle.c.
78139         (fts_open): Use setup_dir.
78140         (fts_close): Use free_dir.
78141         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78142         This adds a label and some gotos, but the alternatives were messier.
78143         Check for memory allocation failure when entering a dir.
78144         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78145         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78146         (FTS): New member fts_cycle, that is a union that contains the
78147         old active_dir_ht and cycle_state.  All uses changed to mention
78148         fts_cycle.ht and fts_cycle.state.
78149         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78150         fts.c, with the following changes:
78151         (setup_dir, free_dir): New functions.
78152         (enter_dir): Now returns bool.  Return true if successful, false
78153         if memory exhausted.  All callers changed.
78154         Do not bother partly cleaning up on
78155         memory allocation failure; that is free_dir's job.
78156         However, free ad if hash_insert fails, to avoid memory leak.
78157         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78158         fts->fts_options to see which union member to use.
78159
78160 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78163         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78164
78165 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78168
78169 2005-05-20  Jim Meyering  <jim@meyering.net>
78170
78171         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78172         Now a macro, to pacify GCC.
78173
78174 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78175
78176         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78177         of -1.
78178
78179 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78180
78181         * lib/chown.c (rpl_chown): Return -1 on failure.
78182
78183 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78184
78185         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78186         Don't check for stddef.h.
78187         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78188         don't use its results.
78189         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78190         since we include them unconditionally.  Don't require
78191         AM_STDBOOL_H, since stdbool is a prerequisite.
78192         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78193         since we assume C89 or better.
78194         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78195         as we don't use their results.
78196         Don't check for fchdir, memmove, memset, strrchr, as we use
78197         them unconditionally.
78198         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78199         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78200
78201 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78202
78203         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78204         Include <stddef.h> unconditionally, since we assume C89 now.
78205         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78206         * lib/fts.c: Include fts_.h first, to check interface.
78207         Do not include intprops.h; no longer needed.
78208         Include cycle-check.h and hash.h, since fts_.h no longer does.
78209         Remove unnecessary casts of closedir to void.
78210         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78211         decide whether to decrement nlinks.
78212         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78213         (FTS): Use struct hash_table * instead of Hash_table, so that
78214         we no longer need to include hash.h here.
78215
78216 2005-05-18  Jim Meyering  <jim@meyering.net>
78217
78218         * modules/dirfd (License): Change to LGPL.  Most of the code
78219         is already in the public domain.
78220
78221 2005-05-18  Jim Meyering  <jim@meyering.net>
78222
78223         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78224         Reported by Yoann Vandoorselaere.
78225
78226 2005-05-17  Jim Meyering  <jim@meyering.net>
78227
78228         * m4/fts.m4: New file, from coreutils.
78229
78230 2005-05-17  Jim Meyering  <jim@meyering.net>
78231
78232         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78233
78234 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         Sync from coreutils.
78237         * m4/unlinkdir.m4: New file.
78238
78239 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78240
78241         Sync from coreutils.
78242         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78243         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78244         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78245         White space changes only.
78246         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78247         special.
78248         * lib/yesno.c: Include getline.h, not ctype.h.
78249         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78250         Use getline to remove arbitrary restriction on response length.
78251
78252 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78253
78254         * config/srclist-update: Spell out "Street" in FSF postal
78255         mail address; this is the style the FSF seems to prefer.
78256
78257         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78258         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78259         this updates FSF postal mail address.
78260
78261         Sync from coreutils.
78262         * modules/unlinkdir: New file.
78263         * modules/yesno (Depends-on): Add getline.
78264         * MODULES.html.sh (File system functions): Add unlinkdir.
78265
78266 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78267
78268         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78269         lib/strsep.h:
78270         Change the initial comment to refer to GPL, not LGPL.
78271         gnulib-tool will change it to LGPL as needed.
78272
78273         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78274         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78275         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78276         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78277         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78278         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78279         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78280         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78281         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78282         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78283         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78284         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78285         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78286         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78287         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78288         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78289         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78290         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78291         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78292         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78293         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78294         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78295         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78296         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78297         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78298         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78299         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78300         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78301         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78302         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78303         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78304         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78305         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78306         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78307         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78308         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78309         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78310         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78311         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78312         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78313         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78314         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78315         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78316         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78317         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78318         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78319         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78320         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78321         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78322         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78323         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78324         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78325         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78326         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78327         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78328         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78329         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78330         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78331         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78332         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78333         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78334         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78335         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78336         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78337         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78338         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78339         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78340         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78341         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78342         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78343         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78344         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78345         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78346         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78347         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78348         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78349         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78350         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78351         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78352         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78353         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78354         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78355         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78356         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78357         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78358         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78359         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78360         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78361         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78362         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78363         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78364         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78365         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78366         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78367         lib/yesno.c, lib/yesno.h:
78368         Update FSF postal mail address.
78369
78370 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78371
78372         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78373         tests/test-memmem.c, tests/test-stpncpy.c:
78374         Update FSF postal mail address.
78375
78376 2005-05-13  Bruno Haible  <bruno@clisp.org>
78377
78378         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78379         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78380         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78381         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78382         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78383         Add support for 64-bit integers in the MSVC compiler.
78384
78385 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78386
78387         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78388
78389 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78390
78391         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78392
78393 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * doc/getdate.texi (General date syntax): Don't say that date
78396         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78397         Problem reported by Nic Ferrier.
78398
78399 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78400
78401         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78402         specified in ai_socktype. Fix invalid ai_protocol
78403         check. ai_protocol is usually set to 0 or depending on
78404         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78405         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78406         ai_socktype / ai_protocol in the returned addrinfo structure.
78407
78408 2005-05-10  Simon Josefsson  <jas@extundo.com>
78409
78410         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78411         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78412
78413 2005-05-10  Karl Berry  <karl@gnu.org>
78414
78415         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78416         (from http://www.gnu.org/licenses).
78417         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78418         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78419         fdl.texi suffices.
78420
78421 2005-05-10  Karl Berry  <karl@gnu.org>
78422
78423         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78424         (COPYING.DOC): remove.
78425
78426         * config/srclist-update: new FSF address.
78427
78428 2005-05-10  Derek Price  <derek@ximbiot.com>
78429
78430         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78431         possible.
78432
78433 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78434             Bruno Haible  <bruno@clisp.org>
78435
78436         * modules/inet_ntop: New file.
78437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78438         inet_ntop.
78439
78440 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78441             Bruno Haible  <bruno@clisp.org>
78442
78443         * m4/inet_ntop.m4: New file.
78444
78445 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78446             Bruno Haible  <bruno@clisp.org>
78447
78448         * lib/inet_ntop.h: New file.
78449         * lib/inet_ntop.c: New file, from glibc with modifications.
78450
78451 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * modules/time_r (License): Change to LGPL.
78454         * modules/extensions (License): Change to LGPL.  Actually,
78455         the license is more permissive than that, but currently gnulib-tool
78456         doesn't know how to handle more-permissive licenses.
78457
78458         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78459         Problem reported by Dave Love.
78460
78461 2005-05-08  Jim Meyering  <jim@meyering.net>
78462
78463         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78464         blank.
78465
78466 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * modules/argmatch (Depends-on): Add stdbool.
78469         * modules/backupfile (Depends-on): Likewise.
78470         * modules/chdir-long (Depends-on): Likewise.
78471         * modules/closeout (Depends-on): Likewise.
78472         * modules/cycle-check (Depends-on): Likewise.
78473         * modules/dirname (Depends-on): Likewise.
78474         * modules/fnmatch (Depends-on): Likewise.
78475         * modules/fsusage (Depends-on): Likewise.
78476         * modules/fwriteerror (Depends-on): Likewise.
78477         * modules/getcwd (Depends-on): Likewise.
78478         * modules/getloadavg (Depends-on): Likewise.
78479         * modules/hard-locale (Depends-on): Likewise.
78480         * modules/makepath (Depends-on): Likewise.
78481         * modules/mountlist (Depends-on): Likewise.
78482         * modules/nanosleep (Depends-on): Likewise.
78483         * modules/posixtm (Depends-on): Likewise.
78484         * modules/quotearg (Depends-on): Likewise.
78485         * modules/readtokens (Depends-on): Likewise.
78486         * modules/readtokens0 (Depends-on): Likewise.
78487         * modules/readutmp (Depends-on): Likewise.
78488         * modules/save-cwd (Depends-on): Likewise.
78489         * modules/strftime (Depends-on): Likewise.
78490         * modules/userspec (Depends-on): Likewise.
78491         * modules/utimecmp (Depends-on): Likewise.
78492         * modules/xgetcwd (Depends-on): Likewise.
78493         * modules/xnanosleep (Depends-on): Likewise.
78494         * modules/xstrtod (Depends-on): Likewise.
78495         * modules/yesno (Depends-on): Likewise.
78496
78497 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78498
78499         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78500         needless checks.
78501
78502 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         Merge from coreutils.  Among other things,
78505         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78506         * lib/fd-safer.c: New file.
78507         * lib/fcntl-safer.h, open-safer.c: Remove.
78508         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78509         * lib/dup-safer.c: Include unistd-safer.h first.
78510         Don't include errno.h.
78511         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78512         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78513         * lib/file-type.c: Rely on file-type.h change.
78514         * lib/getloadavg.c: Include unistd-safer.h.
78515         (getloadavg): Use safer open.
78516         * lib/getusershell.c: Include "stdio-safer.h".
78517         (getusershell): Use safer fopen.
78518         * lib/long-options.c (long_options): Use NULL rather than 0.
78519         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78520         'free'.
78521         * lib/modechange.c: Likewise.
78522         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78523         (MODE_DONE): New constant.
78524         (struct mode_change): Remove 'next' member.
78525         (make_node_op_equals): New function; like the old one of the
78526         same name, except it allocates an array.
78527         (mode_compile, mode_create_from_ref): Use it.
78528         (mode_compile): Allocate result as an array, not a linked list.
78529         Parse octal string ourself, so that we catch mistakes like "+0".
78530         (mode_adjust): Arg is an array, not a linked list.
78531         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78532         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78533         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78534         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78535         Remove.  This is now stat-macros.h's job.
78536         (talloc): Remove.  All callers replaced by xalloc, so that
78537         our invokers don't have to worry about reporting memory failures.
78538         (make_node_op_equals): Remove.
78539         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78540         New constants.
78541         (struct mode_change): Moved here from modechange.h.
78542         (mode_append_entry): Remove.
78543         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78544         apps to have incorrect behavior.  Use simpler algorithm for head
78545         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78546         Detect more invalid usages rather than having somewhat-random behavior.
78547         Don't insert an "a=" action, as that leads to incorrect behavior.
78548         (mode_compile, mode_create_from_ref): Return NULL on error instead
78549         of an enum, since now there's only one way to have an error.  All
78550         callers changed.
78551         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78552         at the correct time.  Simplify calculation of "+u" and its ilk.
78553         Don't mishandle "+X".
78554         (mode_free): Remove "register" and localize decls.
78555         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78556         (struct mode_change): Move to modechange.c; callers don't
78557         need to see this stuff.
78558         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78559         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78560         (mode_change, mode_adjust): Reflect the new signatures noted above.
78561         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78562         that might redefine system include files.
78563         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78564         (my_usleep): Use NULL rather than (void *) 0.
78565         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78566         Use siginterrupt to specify that system calls should be interrupted.
78567         (rpl_nanosleep): Move initialization of suspended closer to call of
78568         my_usleep.
78569         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78570         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78571         (desirable_utmp_entry): New function.
78572         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78573         using x2nrealloc, to simplify logic.
78574         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78575         size calculation.  Do not assume utmp file is a regular file.
78576         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78577         (READ_UTMP_CHECK_PIDS): New constant.
78578         * lib/save-cwd.c: Include unistd-safer.h.
78579         (save_cwd): Use fd_safer.
78580         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78581         [!_LIBC] Include "stat-macros.h" instead.
78582         * lib/unistd-safer.h (fd_safer): New decl.
78583
78584 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * modules/getloadavg (Depends-on): Add unistd-safer.
78587         * modules/getusershell (Depends-on): Add stdio-safer.
78588         * modules/lstat (Depends-on): Remove xalloc.
78589         * modules/mkstemp (Depends-on): Add stat-macros.
78590         * modules/modechange (Depends-on): Remove xstrtol.
78591         Add stat-macros, xalloc.
78592         * modules/save-cwd (Depends-on): Add unistd-safer.
78593         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78594         * modules/unistd-safer (Files): Add lib/fd-safer.c
78595         (Makefile.am): Remove lib_SOURCES.
78596
78597         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78598         Remove fcntl-safer; unistd-safer supersedes it.
78599
78600 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78603         AC_HEADER_STAT.
78604         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78605         (gl_PREREQ_CHOWN): Remove.
78606         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78607         it.  Don't require AC_HEADER_STAT.
78608         (gl_PREREQ_LSTAT): Remove.
78609         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78610         Don't require AC_HEADER_STAT.
78611         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78612         (gl_PREREQ_RMDIR): Remove.
78613         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78614         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78615         the stat-macros module a prerequisite.
78616         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78617         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78618         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78619         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78620         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78621         variable names.
78622         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78623         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78624         variable prefixes.
78625         * m4/fcntl-safer.m4: Remove.
78626         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78627         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78628         Invoke gl_PREREQ_FD_SAFER.
78629         (gl_PREREQ_FD_SAFER): New macro.
78630         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78631         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78632         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78633         Remove duplicate call to AC_LIBOBJ(readutmp).
78634         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78635
78636         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78637         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78638
78639 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78640
78641         * MODULES.html.sh (Misc): Add byteswap.
78642
78643 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78644
78645         * modules/getcwd (Depends-on): Add extensions.
78646         * modules/openat (Depends-on): Likewise.
78647
78648 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78649
78650         * modules/byteswap: New file.
78651
78652 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78653
78654         * m4/byteswap.m4: New file.
78655
78656 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78657
78658         * lib/byteswap_.h: New file.
78659
78660 2005-04-25  Karl Berry  <karl@gnu.org>
78661
78662         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78663
78664 2005-04-25  Albert Chin  <china@thewrittenword.com>
78665
78666         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78667         Toolkit C bug.
78668
78669 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78670
78671         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78672         (func_ln_if_changed): Remove forcibly for no error message
78673         in case file does not exist.
78674
78675 2005-04-19  Simon Josefsson  <jas@extundo.com>
78676
78677         * gnulib-tool (Options): Make --symlink mean --symbolic.
78678
78679 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78680
78681         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78682
78683 2005-04-16  Simon Josefsson  <jas@extundo.com>
78684
78685         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78686
78687 2005-04-15  Simon Josefsson  <jas@extundo.com>
78688
78689         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78690
78691 2005-04-15  Simon Josefsson  <jas@extundo.com>
78692
78693         * gnulib-tool: Rename --symlink to --symbolic.
78694
78695 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78696
78697         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78698         symbolic links to files instead of copying/moving.  Add --aux-dir,
78699         specifying directory relative --dir where auxiliary build tools
78700         are placed.
78701
78702 2005-04-14  Bruno Haible  <bruno@clisp.org>
78703
78704         * modules/allocsa (License): Change to LGPL.
78705         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78706
78707 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78710         that "UTC +1 second" continues to work.  Problem reported
78711         by Dmitry V. Levin.
78712         (relunit_snumber): New rule.
78713         (relunit): Use it.
78714
78715 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * lib/getdate.y (universal_time_zone_table): New constant.
78718         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78719         universal_time_zone_table.
78720         (lookup_zone): Prefer universal_time_zone_table to
78721         local_time_zone_table, so that "GMT" time stamps are allowed in
78722         London during the summer.  Problem reported by Ian Abbott.
78723
78724 2005-04-12  Jim Meyering  <jim@meyering.net>
78725
78726         * lib/human.c (humblock): Set *options even when returning due to
78727         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78728         warning from gcc-4.
78729
78730 2005-04-09  Jim Meyering  <jim@meyering.net>
78731
78732         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78733         -Wuninitialized: initialize tm0.tm_year.
78734
78735 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78736
78737         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78738         count, since there's no maximum.  All uses changed.
78739         Add member dsts_seen.
78740         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78741         not being INT_MAX.
78742         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78743         Use pc_rels_seen to decide whther a date is absolute.
78744
78745         * lib/getdate.y (number): Don't overwrite year.
78746         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78747         check.
78748
78749 2005-04-02  Simon Josefsson  <jas@extundo.com>
78750
78751         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78752         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78753
78754 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78755
78756         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78757         where no absolute path name can be longer than PATH_MAX.
78758
78759 2005-03-27  Jim Meyering  <jim@meyering.net>
78760
78761         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78762
78763 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78764
78765         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78766         "one's complement" -> "ones' complement" in comment, as per Knuth.
78767         "value of type" -> "type or expression" in comment.
78768         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78769
78770 2005-03-26  Jim Meyering  <jim@meyering.net>
78771
78772         Comment nits.
78773         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78774         Correct typos: s/or/of/.
78775
78776 2005-03-26  Jim Meyering  <jim@meyering.net>
78777
78778         * modules/check-include-files: Move to ../ and rename to...
78779         * check-module: ...this.
78780
78781 2005-03-25  Jim Meyering  <jim@meyering.net>
78782
78783         * modules/xvasprintf (Files): Add xalloc.h.
78784
78785 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78786
78787         * modules/gettext (Files): config/config.rpath ->
78788         build-aux/config.rpath
78789         * modules/iconv (Files): Likewise.
78790         Problem reported by Oskar Liljeblad.
78791
78792 2005-03-23  Jim Meyering  <jim@meyering.net>
78793
78794         * modules/check-include-files: New script to check for
78795         missing dependencies, multiple includes, etc.
78796
78797         * modules/c-strtold (Depends-on): Add xalloc.
78798         * modules/c-strtod (Depends-on): Add xalloc.
78799         * modules/hash (Depends-on): Add xalloc.
78800         (Files): Remove lib/xalloc.h.
78801
78802         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78803         * modules/userspec (Files): Add lib/inttostr.h.
78804
78805 2005-03-23  Jim Meyering  <jim@meyering.net>
78806
78807         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78808
78809 2005-03-22  Jim Meyering  <jim@meyering.net>
78810
78811         * modules/stat-macros: New module.
78812         * modules/canonicalize, modules/euidaccess, modules/file-type,
78813         * modules/filemode, modules/lchown, modules/makepath,
78814         * modules/rmdir, modules/stat: Depend on new stat-macros module
78815         rather than listing lib/stat-macros.h manually.
78816         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78817
78818 2005-03-22  Jim Meyering  <jim@meyering.net>
78819
78820         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78821
78822 2005-03-22  Bruno Haible  <bruno@clisp.org>
78823
78824         * config/srclist.txt: Replace target directory 'config' with
78825         'build-aux'.
78826         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78827         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78828         ../build-aux/.
78829
78830 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         * modules/chdir-long (Depends-on): Add mempcpy.
78833
78834         * modules/acl, modules/backupfile, modules/c-strtod,
78835         modules/c-strtold, modules/canon-host, modules/canonicalize,
78836         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78837         modules/exclude, modules/exitfail, modules/file-type,
78838         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78839         modules/getdate, modules/getline, modules/getpagesize,
78840         modules/getpass, modules/getugroups, modules/group-member,
78841         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78842         modules/inttostr, modules/long-options, modules/makepath,
78843         modules/md5, modules/memcasecmp, modules/memcoll,
78844         modules/modechange, modules/mountlist, modules/path-concat,
78845         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78846         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78847         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78848         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78849         modules/strftime, modules/strndup, modules/strverscmp,
78850         modules/timespec, modules/unlocked-io, modules/userspec,
78851         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78852         modules/yesno:
78853         Remove lib_SOURCES line from Makefile.am section, as this is now
78854         done automatically by the corresponding Autoconf macro.
78855
78856 2005-03-21  Jim Meyering  <jim@meyering.net>
78857
78858         Changes imported from coreutils.
78859
78860         * lib/cycle-check.c: Don't include xalloc.h.
78861
78862         * lib/path-concat.c: Don't include assert.h.
78863         (path_concat): Remove assertion that would have triggered
78864         for ABASE starting with more than one slash.
78865         Reported by Andreas Schwab.
78866
78867         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78868         properly when ABASE is an absolute file name.
78869         Correct the description of this function.
78870         Include <assert.h>.
78871         Add an assertion and a test driver.
78872         This fixes a bug introduced on 2004-07-02.
78873         Andreas Schwab reported the resulting failure of cp --parents:
78874         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78875
78876 2005-03-21  Jim Meyering  <jim@meyering.net>
78877
78878         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78879         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78880
78881 2005-03-21  Jim Meyering  <jim@meyering.net>
78882         and  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78885         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78886         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78887         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78888         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78889         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78890         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78891         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78892         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78893         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78894         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78895         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78896         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78897         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78898         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78899         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78900         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78901         for these modules.
78902
78903 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78904
78905         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78906         (which shouldn't happen), generate nothing instead of returning 0
78907         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78908
78909 2005-03-16  Bruno Haible  <bruno@clisp.org>
78910
78911         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78912         HAVE_LONGLONG_64BIT.
78913
78914 2005-03-16  Bruno Haible  <bruno@clisp.org>
78915
78916         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78917         HAVE_LONGLONG_64BIT.
78918
78919 2005-03-16  Bruno Haible  <bruno@clisp.org>
78920
78921         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78922         HAVE_LONGLONG_64BIT.
78923
78924 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78925
78926         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78927         reliably distinguish strftime failure from empty output on POSIX
78928         hosts.
78929
78930 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78933         (iconv_string): Don't guess a size-zero buffer, as that might cause
78934         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78935         result would be 'too large', where 'too large' is (heuristically)
78936         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78937         overflow concerns.  This will prevent some unwanted malloc failures
78938         when the inputs are very large.
78939
78940 2005-03-15  Karl Berry  <karl@gnu.org>
78941
78942         * config/srclist.txt (config.rpath): from gettext.
78943         * config/config.rpath: update.
78944
78945 2005-03-15  Bruno Haible  <bruno@clisp.org>
78946
78947         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78948         to 'negate'.
78949
78950         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78951         variable.
78952
78953         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78954         results.
78955
78956 2005-03-14  Simon Josefsson  <jas@extundo.com>
78957
78958         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78959         <fx@gnu.org>.
78960
78961 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78962
78963         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78964         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78965         intprops.h.
78966         * lib/strtol.c: Likewise.
78967
78968 2005-03-14  Jim Meyering  <jim@meyering.net>
78969
78970         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78971         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78972         to be nonzero so that we (and caller) can detect the difference
78973         between a valid zero-length expansion and an error return, even
78974         when the underlying strftime fails before writing anything into
78975         that location.
78976
78977 2005-03-14  Bruno Haible  <bruno@clisp.org>
78978
78979         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78980         Update from GNU gettext 0.14.3.
78981
78982 2005-03-10  Jim Meyering  <jim@meyering.net>
78983
78984         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78985
78986 2005-03-10  Jim Meyering  <jim@meyering.net>
78987
78988         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78989         so that this module works on systems without fchdir.
78990
78991 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         Factor int-properties macros into a single file, except for
78994         glibc-related files.
78995         * lib/intprops.h: New file.
78996         * lib/getloadavg.c: Include it instead of limits.h.
78997         (INT_STRLEN_BOUND): Remove.
78998         * lib/human.c: Include intprops.h.
78999         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79000         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79001         302/1000.
79002         * lib/inttostr.h: Include intprops.h instead of limits.h.
79003         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79004         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79005         for consistency with intprops.h.
79006         (time_t_is_integer, twos_complement_arithmetic): Use them.
79007         * lib/sig2str.h: Include <signal.h>, intprops.h.
79008         (INT_STRLEN_BOUND): Remove.
79009         * lib/strftime.c (TYPE_SIGNED): Remove.
79010         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79011         * lib/strtol.c: Adjust comments to match intprops.h.
79012         * lib/userspec.c: Include intprops.h.
79013         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79014         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79015         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79016         instead of rolling our own expressions.
79017         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79018
79019         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79020         instead of int.
79021         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79022         the right thing even if adding 1900 would overflow.  Similarly
79023         for tm_mon + 1 and tm_yday + 1.
79024         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79025         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79026         (DO_SIGNED_NUMBER): New macro.
79027         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79028
79029 2005-03-07  Bruno Haible  <bruno@clisp.org>
79030
79031         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79032
79033 2005-03-07  Bruno Haible  <bruno@clisp.org>
79034
79035         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79036
79037 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79038
79039         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79040         (func_import): Only replace files via --import when they have actually
79041         changed.
79042
79043 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79044
79045         * m4/mmap-anon.m4: New file.
79046         * m4/pagealign_alloc.m4: New file.
79047
79048 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79049             Bruno Haible  <bruno@clisp.org>
79050
79051         * modules/pagealign_alloc: New file.
79052         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79053
79054 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79055             Bruno Haible  <bruno@clisp.org>
79056
79057         * lib/pagealign_alloc.h: New file.
79058         * lib/pagealign_alloc.c: New file.
79059
79060 2005-03-03  Bruno Haible  <bruno@clisp.org>
79061
79062         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79063         Use an all-permissive copyright notice, recommended by RMS.
79064
79065 2005-03-02  Bruno Haible  <bruno@clisp.org>
79066
79067         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79068         of AIX, the replacement has to be done only after <string.h> is
79069         included, therefore not in config.h. stpncpy.h does the replacement,
79070         and stpncpy.c uses it.
79071
79072 2005-03-02  Bruno Haible  <bruno@clisp.org>
79073
79074         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79075         stpncpy.c uses it.
79076
79077 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79080         The workaround isn't strictly needed for POSIX conformance, and
79081         it's too much of a pain to configure and maintain.  We'll ask
79082         people to fix their kernels instead.
79083         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79084         (NANOSLEEP_BUG_WORKAROUND): Remove.
79085         (xnanosleep): Remove the workaround.
79086
79087 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79090         Reported by Derek Price.
79091         (Include): Add "timespec.h".
79092
79093         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79094
79095 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79098         to detect nanosleep bug.
79099
79100 2005-03-01  Bruno Haible  <bruno@clisp.org>
79101
79102         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79103
79104 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * modules/gethrxtime: New file.
79107         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79108         (Depends-on): Add gethrxtime.
79109         (configure.ac): Add gl_XNANOSLEEP.
79110         (Makefile.am): Remove lib_SOURCES line.
79111
79112 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79113
79114         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79115         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79116
79117 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79118
79119         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79120         * lib/timespec.h (gettime): Return void, since it always
79121         succeeds now.  All uses changed.
79122         * lib/gettime.c (gettime): Likewise.
79123         [HAVE_NANOTIME]: Prefer nanotime.
79124         Assume gettimeofday succeeds, as POSIX requires.
79125         Assime time () succeeds, since other code already does.
79126         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79127         (timespec_subtract): Remove.
79128         (NANOSLEEP_BUG_WORKAROUND): New constant.
79129         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79130         things considerably.  Use it only on GNU/Linux hosts, since the
79131         workaround shouldn't be needed elsewhere.
79132
79133 2005-02-24  Bruno Haible  <bruno@clisp.org>
79134
79135         * modules/gettext (Files): Add m4/glibc2.m4.
79136
79137 2005-02-24  Bruno Haible  <bruno@clisp.org>
79138
79139         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79140         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79141         * m4/progtest.m4:
79142         Update from GNU gettext 0.14.2.
79143         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79144
79145 2005-02-24  Bruno Haible  <bruno@clisp.org>
79146
79147         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79148         * lib/config.charset: Update from GNU gettext 0.14.2.
79149
79150 2005-02-24  Bruno Haible  <bruno@clisp.org>
79151
79152         * lib/gettext.h: Update from GNU gettext 0.14.2.
79153
79154 2005-02-23  Simon Josefsson  <jas@extundo.com>
79155
79156         * m4/iconvme.m4: New file.
79157
79158 2005-02-23  Jim Meyering  <jim@meyering.net>
79159
79160         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79161         change.
79162         Thanks to Bruno Haible for catching it.
79163
79164 2005-02-22  Simon Josefsson  <jas@extundo.com>
79165
79166         * modules/iconvme: New file.
79167
79168         * MODULES.html.sh: Add iconvme.
79169
79170 2005-02-22  Simon Josefsson  <jas@extundo.com>
79171
79172         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79173
79174 2005-02-22  Simon Josefsson  <jas@extundo.com>
79175
79176         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79177
79178 2005-02-22  Jim Meyering  <jim@meyering.net>
79179
79180         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79181         s/ifndef/ifdef/.
79182
79183 2005-02-20  Neil Conway  <neilc@samurai.com>
79184
79185         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79186         returned by OSX/Darwin if the specified buffer is not large
79187         enough for the hostname.
79188
79189 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79190
79191         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79192         pass it to _help, otherwise the latter coredumps trying to
79193         dereference state.root_argp.
79194
79195 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * modules/chdir-long (Depends-on): Add memrchr.
79198         * modules/memrchr (Files): Add lib/memrchr.h.
79199         (Include): "memrchr.h".
79200
79201 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79204
79205 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * lib/memrchr.h: New file.
79208         * lib/chdir-long.c: Include it.
79209         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79210         Don't bother including stddef.h.
79211
79212 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79213
79214         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79215         inclusion.
79216         Include <sys/types.h>, for dev_t.
79217         (ME_DUMMY, ME_REMOTE): Move from here....
79218         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79219         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79220         Dmitry V. Levin.
79221         Include mountlist.h first, to test the interface.
79222
79223 2005-01-29  Bruno Haible  <bruno@clisp.org>
79224
79225         * lib/progname.c (program_name): Initialize.
79226         Needed when linking statically on MacOS X.
79227
79228 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         Sync from coreutils.
79231         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79232         (Depends-on): Add c-strtod.
79233         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79234
79235 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79236
79237         Sync from coreutils.
79238         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79239
79240         Remove files that are specific to coreutils.
79241         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79242
79243 2005-01-28  Bruno Haible  <bruno@clisp.org>
79244
79245         * modules/javacomp: New file.
79246         * MODULES.html.sh (Java): Add javacomp.
79247
79248 2005-01-28  Bruno Haible  <bruno@clisp.org>
79249
79250         * m4/javacomp.m4: New file, from GNU gettext.
79251
79252 2005-01-28  Bruno Haible  <bruno@clisp.org>
79253
79254         * lib/javacomp.sh.in: New file, from GNU gettext.
79255         * lib/javacomp.h: New file, from GNU gettext.
79256         * lib/javacomp.c: New file, from GNU gettext.
79257
79258 2005-01-26  Simon Josefsson  <jas@extundo.com>
79259
79260         * lib/gai_strerror.c: Use GPL in header.
79261
79262 2005-01-26  Bruno Haible  <bruno@clisp.org>
79263
79264         * modules/javaexec: New file.
79265         * MODULES.html.sh (Java): Add javaexec.
79266
79267 2005-01-26  Bruno Haible  <bruno@clisp.org>
79268
79269         * m4/javaexec.m4: New file, from GNU gettext.
79270
79271 2005-01-26  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/javaexec.sh.in: New file, from GNU gettext.
79274         * lib/javaexec.h: New file, from GNU gettext.
79275         * lib/javaexec.c: New file, from GNU gettext.
79276
79277 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79278
79279         * modules/lchown (Depends-on): Remove lchown.h
79280
79281 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79282
79283         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79284         must be defined if the header file was not found, in order
79285         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79286
79287 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79288
79289         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79290         initializers for struct pentry_state.
79291         (__argp_error): Check return value of __asprintf
79292         (__argp_failure): Translate error message
79293
79294         * lib/argp-parse.c: Removed braces around the expansion of N_()
79295
79296 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79297
79298         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79299         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79300         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79301         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79302         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79303         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79304         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79305         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79306         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79307         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79308         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79309         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79310         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79311         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79312         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79313         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79314         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79315         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79316         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79317         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79318         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79319         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79320         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79321         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79322         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79323         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79324         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79325         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79326         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79327         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79328         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79329         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79330         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79331         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79332         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79333         Use an all-permissive copyright notice, recommended by RMS.
79334
79335 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         * modules/chdir-long (Depends-on): Remove mempcpy.
79338
79339 2005-01-21  Jim Meyering  <jim@meyering.net>
79340
79341         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79342         same value as for Solaris 9.
79343
79344         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79345         component length.  This included changing the parameter to be
79346         of type `char *' rather than `char const *'.
79347         * lib/chdir-long.h (chdir_long): Update prototype.
79348
79349         * lib/openat.c (fdopendir, fstatat): New functions.
79350         * lib/openat.h: Include headers required for use of DIR and struct
79351         stat.
79352         [AT_SYMLINK_NOFOLLOW]: Define.
79353         (fdopendir, fstatat): Add prototypes.
79354
79355 2005-01-21  Bruno Haible  <bruno@clisp.org>
79356
79357         * modules/classpath: New file.
79358         * MODULES.html.sh (Java): Add classpath.
79359
79360 2005-01-21  Bruno Haible  <bruno@clisp.org>
79361
79362         * lib/classpath.h: New file, from GNU gettext.
79363         * lib/classpath.c: New file, from GNU gettext.
79364
79365 2005-01-20  Simon Josefsson  <jas@extundo.com>
79366
79367         * modules/version-etc-fsf: New file.
79368
79369 2005-01-20  Simon Josefsson  <jas@extundo.com>
79370
79371         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79372         * lib/version-etc.c: Remove version_etc_copyright.
79373         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79374         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79375
79376 2005-01-20  Simon Josefsson  <jas@extundo.com>
79377
79378         * lib/base64.h (isbase64): Add.
79379
79380         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79381         using a unsigned prototype, don't inline.
79382         (base64_decode): Use it.
79383
79384 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79385
79386         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79387         it.
79388
79389 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * lib/save-cwd.c (save_cwd): Remove code to support the case
79392         where fchdir is missing or flaky.
79393
79394 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79395
79396         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79397
79398 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79399
79400         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79401         AC_LIBSOURCES now does this.
79402         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79403         with new ullong_max module.
79404
79405 2005-01-19  Bruno Haible  <bruno@clisp.org>
79406
79407         * modules/sh-quote: New file.
79408         * MODULES.html.sh (Executing programs): Add sh-quote.
79409
79410 2005-01-19  Bruno Haible  <bruno@clisp.org>
79411
79412         * lib/sh-quote.h: New file, from GNU gettext.
79413         * lib/sh-quote.c: New file, from GNU gettext.
79414
79415 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         Merge from coreutils.
79418         * m4/ullong_max.m4: New file.
79419         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79420         (gl_MACROS): Assume localeconv exists.
79421
79422 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         Merge changes from coreutils, as described below in several
79425         changelogs dated today.
79426
79427         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79428         (O_DIRECTORY): Remove; not needed here, since "." must be
79429         a directory.  All uses removed.
79430         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79431         universal on Suns, and we also need to test for IRIX.
79432         Revamp code to use 'if' rather than '#if'.
79433         Avoid unnecessary comparison of cwd->desc to 0.
79434
79435         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79436         for known valid error numbers rather than observed invalid ones.
79437
79438 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79439
79440         * modules/ullong_max: New file.
79441
79442         * modules/chdir-long, modules/openat: New files.
79443         * modules/save-cwd (Depends-on): Depend on chdir-long.
79444         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79445
79446 2005-01-18  Jim Meyering  <jim@meyering.net>
79447
79448         Merge from coreutils.
79449         * m4/chdir-long.m4, m4/openat.m4: New files.
79450         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79451         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79452         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79453         is sane and DOES follow symlinks.  Besides, testing 20 different
79454         systems found no broken chown implementations.
79455         Prompted by a change in rsync's copy of this macro.
79456         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79457
79458         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79459
79460         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79461         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79462         NULL-means-set-to-current-time semantics.
79463         Remove temporary file immediately, rather than waiting
79464         for configure's at-exit trap code to do it.
79465
79466 2005-01-18  Jim Meyering  <jim@meyering.net>
79467
79468         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79469
79470         * lib/utimens.c (futimens): Account for the fact that futimes
79471         can also fail with errno == ENOSYS or errno == ENOENT.
79472         Patch from Dmitry V. Levin.
79473
79474         Change the name of the robust chdir function from chdir to chdir_long.
79475         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79476         (restore_cwd): Use chdir_long, not chdir.
79477         * lib/chdir-long.c: Renamed from chdir.c.
79478         * lib/chdir-long.h: Renamed from chdir.h.
79479         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79480         Hurd.
79481
79482 2005-01-18  Bruno Haible  <bruno@clisp.org>
79483
79484         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79485         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79486         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79487         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79488         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79489         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79490         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79491         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79492         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79493         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79494         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79495         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79496         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79497         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79498         Use an all-permissive copyright notice, recommended by RMS.
79499
79500 2005-01-18  Bob Proulx  <bob@proulx.com>
79501
79502         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79503         simplify offsetof() macro construct to avoid compile failure with
79504         native HP-UX 11.0 ANSI C compiler.
79505
79506 2005-01-17  Bruno Haible  <bruno@clisp.org>
79507
79508         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79509         redundant because stpncpy.m4 takes care of it.
79510
79511 2005-01-17  Bruno Haible  <bruno@clisp.org>
79512
79513         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79514
79515 2005-01-17  Bruno Haible  <bruno@clisp.org>
79516
79517         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79518         used.
79519
79520 2005-01-17  Bruno Haible  <bruno@clisp.org>
79521
79522         * lib/fwriteerror.h (fwriteerror): Change specification to include
79523         fclose.
79524         * lib/fwriteerror.c: Include <stdbool.h>.
79525         (fwriteerror): At the end, close the file stream. Record whether
79526         stdout was already closed.
79527
79528 2005-01-17  Bruno Haible  <bruno@clisp.org>
79529
79530         * lib/execute.c (environ): Declare if needed.
79531         * lib/pipe.c (environ): Likewise.
79532         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79533
79534 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79535
79536         * modules/argp: Depend on vsnprintf
79537
79538 2005-01-10  Jim Meyering  <jim@meyering.net>
79539
79540         * modules/closeout (Depends-on): Add atexit.
79541
79542 2005-01-06  Bruno Haible  <bruno@clisp.org>
79543
79544         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79545
79546 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79547
79548         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79549         definitions to be after all include files, to avoid collisions.
79550         Problem reported by Bob Proulx.
79551
79552 2005-01-04  Jim Meyering  <jim@meyering.net>
79553
79554         Changes imported from coreutils.
79555         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79556         as the mkstemp template, use a temporary directory and an
79557         8.3-friendly template to avoid trouble on systems like DJGPP.
79558         Reported by Juan M. Guerrero via Stepan Kasal.
79559         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79560         close. Remove the temporary directory right away, rather than waiting
79561         for configure's at-exit trap code to do it.
79562         Suggestion from Stepan Kasal.
79563
79564 2005-01-01  Simon Josefsson  <jas@extundo.com>
79565
79566         * gnulib-tool: Print #include directives when --import'ing.
79567
79568 2004-12-28  Simon Josefsson  <jas@extundo.com>
79569
79570         * tests/test-base64.c: Include required header files.  Remove
79571         unused variables.
79572
79573 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79574
79575         * modules/error (Depends-on): Remove gettext.
79576
79577 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79578
79579         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79580         not needed.  This removes a dependency on the gettext module.
79581         [defined _LIBC]: Do not include <libintl.h>; not needed.
79582
79583 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79586         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79587
79588 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79591         HAVE_DECL_STRTOLD.
79592
79593 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79594
79595         * modules/getdate (Depends-on): Remove alloca-opt.
79596
79597 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79598
79599         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79600
79601 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79602
79603         * lib/argp-parse.c: Include <stddef.h>.
79604         (alignof, alignto): New macros.
79605         (parser_init): Don't assume that void * is aligned sufficiently
79606         for struct option.
79607
79608         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79609         need to extend the stack.
79610         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79611         large.
79612
79613 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79614
79615         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79616
79617 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79618
79619         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79620         (2004-10-24) change.  Apparently this was a false alarm.
79621
79622         * modules/getdate: Depend on alloca-opt, not alloca.
79623
79624 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79627         Remove now-obsolete comment about AIX.
79628         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79629         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79630         (YYMAXDEPTH): New macro.
79631
79632 2004-12-18  Simon Josefsson  <jas@extundo.com>
79633
79634         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79635
79636 2004-12-18  Bruno Haible  <bruno@clisp.org>
79637
79638         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79639
79640 2004-12-18  Bruno Haible  <bruno@clisp.org>
79641
79642         * lib/fatal-signal.c (fatal_signals): Make non-const.
79643         (init_fatal_signals): New function.
79644         (uninstall_handlers, install_handlers): Ignore signals that were set to
79645         SIG_IGN.
79646         (at_fatal_signal): Call init_fatal_signals.
79647         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79648         SIG_IGN.
79649         Reported by Paul Eggert.
79650
79651 2004-12-18  Bruno Haible  <bruno@clisp.org>
79652
79653         * doc/alloca.texi: New file.
79654         * doc/alloca-opt.texi: New file.
79655
79656 2004-12-17  Jim Meyering  <jim@meyering.net>
79657
79658         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79659         Otherwise, install-sh could exit with improper exit status when
79660         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79661
79662 2004-12-16  Simon Josefsson  <jas@extundo.com>
79663
79664         * tests/test-base64.c: Add license.
79665
79666 2004-12-15  Stepan Kasal  <address@hidden>
79667
79668         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79669
79670 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79671
79672         * modules/getcwd (Files): Add m4/d-ino.m4.
79673         Suggested by Mark D. Baushke.
79674
79675 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * lib/getdate.y (textint): New member "negative".
79678         (time_zone_hhmm): New function.
79679         Expect 14 shift-reduce conflicts, not 13.
79680         (o_colon_minutes): New rule.
79681         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79682         (yylex): Set the "negative" member of signed numbers.
79683
79684 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79685
79686         * doc/getdate.texi (Time of day items, Time zone items):
79687         Describe new formats +00:00, UTC+00:00.
79688
79689 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79692         spurious "-l"s.  Problem reported by Stepan Kasal.
79693
79694 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79697         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79698
79699 2004-12-04  Simon Josefsson  <jas@extundo.com>
79700
79701         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79702         Vandoorselaere <yoann@prelude-ids.org>.
79703
79704 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         Changes imported from coreutils.
79707         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79708         exist.
79709         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79710
79711 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         Changes imported from coreutils.
79714         * lib/hard-locale.c: Assume <locale.h> exists.
79715         Include "strdup.h".
79716         (GLIBC_VERSION): New macro.
79717         (hard_locale): Assume setlocale exists.
79718         Rewrite to avoid #ifdef.
79719         Use strdup rather than malloc + strcpy.
79720         * lib/human.c: Assume <locale.h> exists.
79721         (human_readable): Assume localeconv exists.
79722
79723 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79724
79725         * modules/hard-locale (Depends-on): Add strdup.
79726
79727 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79728
79729         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79730         convert T2, not T.  (Imported from libc.)
79731
79732 2004-11-30  Simon Josefsson  <jas@extundo.com>
79733
79734         * modules/restrict (License): Change to LGPL.
79735
79736 2004-11-30  Simon Josefsson  <jas@extundo.com>
79737
79738         * m4/restrict.m4: Add copyright and copying conditions.
79739
79740 2004-11-30  Simon Josefsson  <jas@extundo.com>
79741
79742         * m4/base64.m4: New file.
79743
79744 2004-11-30  Simon Josefsson  <jas@extundo.com>
79745
79746         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79747         base64.
79748
79749         * tests/test-base64.c: New file.
79750
79751         * modules/base64: New file.
79752
79753 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79754
79755         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79756         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79757
79758         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79759
79760 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79763         (__getcwd.c): Don't restore errno; glibc doesn't.
79764         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79765         first, falling back to our code only if its results look suspicious.
79766         Ensure that the resulting buffer is only as large as necessary.
79767
79768         * lib/readutmp.c: Include readutmp.h first.
79769         Include <errno.h>, since readutmp.h no longer does that.
79770         * lib/readutmp.h: Don't include <errno.h>,
79771         <sys/param.h>, <time.h>; not needed to establish interface.
79772         (errno): Remove decl.
79773         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79774         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79775         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79776
79777 2004-11-28  Simon Josefsson  <jas@extundo.com>
79778
79779         * lib/base64.h, base64.c: New file.
79780
79781 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79782
79783         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79784
79785 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79788         (Depends-on): Remove pathmax, same.  Add mempcpy.
79789         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79790         (Makefile.am): Append getcwd.h to lib_SOURCES.
79791         (Include): Add getcwd.h.
79792         (Maintainer): Change from Jim Meyering to "all, glibc",
79793         since getdate now uses intended-for-glibc code.
79794         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79795         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79796
79797 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79798
79799         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79800         HP's ANSI C compiler.
79801         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79802         Declaring int functions causes warnings on some modern systems and
79803         shouldn't be needed to compile on ancient ones.
79804         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79805         defined.
79806
79807         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79808         with the following changes.
79809         (__set_errno): Parenthesize properly.
79810         Include <stdbool.h>.
79811         (MIN, MAX, MATCHING_INO): New macros.
79812         (__getcwd): Define with prototype, not K&R form.
79813         Use heuristics to allocate default buffer on stack if possible.
79814         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79815         behavior, and to avoid the PATH_MAX limit when computing
79816         ../../../../...
79817         Use MATCHING_INO to compare inode number to file.
79818         Check for arithmetic overflow in size calculations.
79819         Fix bug in reallocation of dot array that caused getcwd to fail
79820         on directories nested deeper than 75.
79821         Be more careful about saving errno on error.
79822         Do not use realloc; use only free+malloc, as this is a bit
79823         more flexible and avoids a needless copy operation.
79824         Do not inspect st_dev and st_ino for symbolic links; POSIX
79825         doesn't specify the latter.
79826         Check for closedir errors.
79827         Avoid needless casts.
79828         Use "#ifdef weak_alias" around weak_alias, to be like other
79829         glibc code.
79830         The following changes to getcwd.c have effect only when used in
79831         gnulib; they have no effect inside glibc proper.
79832         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79833         as alloca isn't used.
79834         (alloca, __alloca): Likewise.
79835         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79836         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79837         unconditionally, as gnulib assumes C89 or better.
79838         Do not include <sys/param.h>.
79839         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79840         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79841         better.
79842         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79843         Include <dirent.h> in a way that is compatible with modern Autoconf.
79844         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79845         New macros, if not already defined.
79846         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79847         Use "_LIBC", not "defined _LIBC", for consistency.
79848         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79849         a mempcpy module.
79850         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79851         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79852         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79853         credit only to Jim Meyering and adjust the copyright dates.
79854         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79855         <stdlib.h>, <unistd.h>, "pathmax.h".
79856         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79857         (INITIAL_BUFFER_SIZE): Remove.
79858         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79859
79860 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79861
79862         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79863         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79864         Use the _ONCE methods, for efficiency.
79865         Check for fcntl.h.  In test program, include <errno.h>
79866         and <fcntl.h> if available.  Remove old K&R cruft from
79867         test program.  Check for common errors in GNU/Linux,
79868         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79869         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79870         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79871         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79872         name accordingly.
79873         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79874         accommodate new getcwd.c.
79875         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79876         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79877         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79878         that's all we need now.
79879
79880 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79881
79882         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79883         argp-parse.c depends on getopt internals, that means we should
79884         always use our getopt, to be on the safe side.
79885         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79886         order not to spoil the result of an eventual previous invocation
79887         of gl_GETOPT_SUBSTITUTE.
79888
79889 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79890
79891         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79892         redefinition warnings. To avoid them, include the defines
79893         in `#if !defined __need_getopt ... #endif'. The only place
79894         where __getopt_argv_const is used is in definitions
79895         of getopt_long and getopt_long_only below, which are as well
79896         protected by `#ifndef __need_getopt'.
79897         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79898         __need_getopt after including <stdio.h> and <unistd.h> These
79899         headers might have defined it.
79900
79901 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79904
79905 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79908         (futimens): New function, which uses futimes if available.
79909         (futimens, utimens): Support timespec==NULL, with same semantics
79910         as utime and utimens.
79911         * lib/utimens.h (futimens): New decl.
79912
79913 2004-11-23  Jim Meyering  <jim@meyering.net>
79914
79915         * lib/getopt_.h: Remove trailing blanks.
79916
79917 2004-11-23  Jim Meyering  <jim@meyering.net>
79918
79919         * lib/__fpending.c: Add comment.
79920
79921 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79922
79923         * modules/canonicalize (Depends-on): Add xreadlink.
79924         Problem reported by James Youngman.
79925
79926 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79927
79928         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79929         New macros.
79930         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79931         optopt): Use them instead of invoking ## directly; otherwise, the
79932         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79933
79934 2004-11-19  Bruno Haible  <bruno@clisp.org>
79935
79936         * lib/strtok_r.c: Move comments from here...
79937         * lib/strtok_r.h: ... to here.
79938
79939 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79942         implementations that mishandle size_t overflow.
79943
79944 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79947         might fail.  Problem reported by Yoann Vandoorselaere.
79948         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79949         implementations that mishandle size_t overflow.
79950
79951 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79952
79953         * modules/canon-host (Depends-on): Add strdup.
79954
79955 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79958
79959 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * lib/canon-host.c: Include "strdup.h".
79962         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79963         Use strdup instead of malloc/strcpy to duplicate strings.
79964
79965         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79966         (human_space_before_unit): New constant.
79967         * lib/human.c (human_readable): Support it.
79968
79969         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79970         (xgetcwd): Set errno correctly when failing.
79971         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79972         the failure is actually due to a PATH_MAX problem.
79973
79974         Further getopt changes to make it more likely that glibc will
79975         buy the changes back.
79976         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79977         (getopt): Use it, so to preserve glibc semantic
79978         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79979         when compiling for libc.
79980         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79981         (getopt_long, getopt_long_only): Use it.
79982
79983         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79984         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79985         (getopt): Argv is now char * const *, as per standard.
79986         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79987         not char *__getopt_argv_const *.
79988         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79989         _getopt_long_only_r): Likewise.
79990         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79991         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79992         _getopt_long_r, _getopt_long_only_r): Likewise.
79993         * lib/getopt_.h (__getopt_argv_const): Remove.
79994         (getopt): Argv is now char * const *, as per standard.
79995
79996         * lib/getdate.y (tORDINAL): New token.
79997         (day, relunit): Allow it for relative times.
79998         (relative_time_table): Use tORDINAL for ordinals.
79999
80000 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80003         Document that "second" isn't allowed as an ordinal number.
80004
80005 2004-11-16  Jim Meyering  <jim@meyering.net>
80006
80007         * modules/closeout (Depends-on): Add fpending.
80008
80009 2004-11-15  Jim Meyering  <jim@meyering.net>
80010
80011         * lib/closeout.c: Include "__fpending.h" once again.
80012         Include <stdbool.h>.
80013         (close_stdout): Don't fail just because stdout was closed initially,
80014         since some programs don't write to stdout in the normal course of
80015         operation (other than --version and --help), and we don't want this
80016         function to make e.g. `touch file >&-' fail.
80017         But do fail if it was closed and someone has tried to write to it.
80018         E.g., `printf foo >&-' must fail.
80019
80020 2004-11-13  Jim Meyering  <jim@meyering.net>
80021
80022         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80023
80024 2004-11-12  Simon Josefsson  <jas@extundo.com>
80025
80026         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80027         small doc fix is still pending.
80028
80029 2004-11-11  Simon Josefsson  <jas@extundo.com>
80030
80031         * modules/strtok_r: New file.
80032
80033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80034         strtok_r.
80035
80036 2004-11-11  Simon Josefsson  <jas@extundo.com>
80037
80038         * m4/strtok_r.m4: New file.
80039
80040         * m4/getopt.m4: Replace opterr.
80041
80042 2004-11-11  Simon Josefsson  <jas@extundo.com>
80043
80044         * lib/strtok_r.h, strtok_r.c: New file.
80045
80046 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80049         of replacing opterr, getopt, etc.  This should handle the
80050         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80051
80052 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80055         we can stop lying to compilers about the constness of argv when we
80056         are compiled outside glibc.
80057         (getopt, getopt_long, getopt_long_only): Use it.
80058         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80059         _getopt_internal, getopt): Likewise.
80060         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80061         _getopt_long_only_r): Likewise.
80062         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80063         _getopt_long_r, _getopt_long_only_r): Likewise.
80064
80065         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80066         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80067         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80068         the other external symbols.
80069         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80070         declaration, since the above renaming now works around collisions.
80071
80072 2004-11-11  Jim Meyering  <jim@meyering.net>
80073
80074         * lib/linebreak.c: Remove trailing blanks.
80075         * lib/alloca_.h: Likewise.
80076         * lib/acosl.c: Likewise.
80077         * lib/euidaccess.c: Likewise.
80078         * lib/allocsa.h: Likewise.
80079
80080 2004-11-10  Simon Josefsson  <jas@extundo.com>
80081
80082         * m4/getaddrinfo.m4: New file.
80083
80084 2004-11-10  Simon Josefsson  <jas@extundo.com>
80085
80086         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80087
80088 2004-11-10  Simon Josefsson  <jas@extundo.com>
80089
80090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80091         getaddrinfo.
80092
80093         * modules/getaddrinfo: New file.
80094
80095 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80096
80097         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80098
80099 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * lib/mktime.c (SHR): New macro, which is a portable
80102         substitute for >> that should work even on Crays.
80103         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80104         Problem reported by Mark D. Baushke in
80105         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80106         * lib/getdate.y (SHR): Likewise.
80107         (tm_diff): Use it.
80108         * lib/strftime.c (SHR): Likewise.
80109         (tm_diff): Use it.
80110         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80111         quote_these_too, so that right shifts are well defined.  All uses
80112         changed.
80113
80114 2004-11-10  Jim Meyering  <jim@meyering.net>
80115
80116         Ensure that no close failure goes unreported.
80117         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80118         return early when it seems there's nothing to flush.
80119         Don't include __fpending.h.
80120
80121 2004-11-10  Jim Meyering  <jim@meyering.net>
80122
80123         * modules/closeout (Depends-on): Remove fpending.
80124
80125 2004-11-10  Jim Meyering  <jim@meyering.net>
80126
80127         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80128
80129 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80132         gl_FUNC_STRFTIME.
80133         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80134         and AC_REQUIRE when possible, to avoid duplicate checks.
80135         Check for <wchar.h>.
80136
80137 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80138
80139         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80140
80141 2004-11-09  Bruno Haible  <bruno@clisp.org>
80142
80143         * m4/sockpfaf.m4: New file.
80144
80145 2004-11-05  Bruno Haible  <bruno@clisp.org>
80146
80147         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80148         Reported by Mark D. Baushke <mdb@cvshome.org>.
80149
80150 2004-11-04  Bruno Haible  <bruno@clisp.org>
80151
80152         2004-09-11  Bruno Haible  <bruno@clisp.org>
80153                 * allocsa.valgrind: New file.
80154         2004-02-06  Bruno Haible  <bruno@clisp.org>
80155                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80156                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80157                 Reported by Christopher Seip <chris.seip@hp.com>.
80158
80159 2004-11-04  Bruno Haible  <bruno@clisp.org>
80160
80161         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80162         (Makefile.am): Distribute it.
80163
80164 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80165
80166         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80167         with errno == ERANGE if the buffer is too small.
80168         Problem reported by Mark D. Baushke.
80169
80170 2004-11-03  Albert Chin  <china@thewrittenword.com>
80171             Paul Eggert  <eggert@cs.ucla.edu>
80172
80173         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80174         equivalent, substitute $ac_type for equivalent type rather than
80175         blindly using uint32_t *always* which won't work if uint32_t is not
80176         available.  Define _UINT32_T to work around typedef of uint32_t if
80177         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80178         2.5.1.
80179
80180 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * m4/jm-macros.m4: Sync from coreutils.
80183         (gl_MACROS): Check for mbrlen, for pathchk.
80184         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80185
80186 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * lib/xreadlink.c (MAXSIZE): New macro.
80189         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80190         size does not exceed MAXSIZE.  Avoid cast.
80191         As suggested by Mark D. Baushke in
80192         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80193         if readlink fails with buffer size just under MAXSIZE, try again
80194         with MAXSIZE.
80195
80196 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80199
80200 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80201         and  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80204         (get_date): Overparenthesize to avoid GCC warning.
80205
80206 2004-11-02  Bruno Haible  <bruno@clisp.org>
80207
80208         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80209         returns void.
80210
80211 2004-11-02  Bruno Haible  <bruno@clisp.org>
80212
80213         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80214         function returns void.
80215
80216 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80217
80218         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80219         fflush_unlocked, flockfile, funlockfile, funlockfile,
80220         fputs_unlocked, putc_unlocked.
80221
80222 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80223
80224         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80225         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80226         already declared.
80227
80228 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80229
80230         * modules/getdate (Files): Add doc/getdate.texi.
80231         (Depends-on): Add setenv, xalloc.
80232
80233 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * lib/getdate.y: Add support for TZ="foo" within a date string.
80236         Fix some bugs near time_t boundaries.  Reject dates with
80237         out-of-range components, e.g., "Sept 31".
80238         Include <stdlib.h>, "setenv.h", "xalloc.h".
80239         (ISDIGIT_LOCALE): Remove; unused.
80240         Note that the TZ and time functions used here are not reentrant.
80241         (mktime_ok, get_tz): New functions.
80242         (TZBUFSIZE): New constant.
80243         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80244         This requires that we sometimes generate our own TZ="XXX..." setting.
80245
80246 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * doc/getdate.texi: New file, from coreutils with modifications for
80249         the new TZ parsing.
80250
80251 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80252
80253         * lib/mktime.c (not_equal_tm): Remove redundant check.
80254
80255 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80256
80257         * modules/regex (lib_SOURCES): Add regex.c.
80258         Reported by James Youngman in
80259         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80260
80261 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80262
80263         * lib/getdate.y: Use Bison 1.875 features, and some minor
80264         code cleanups.  This change does not affect semantics.
80265         Don't include <stdlib.h>; no longer needed.
80266         Don't include unlocked-io.h; only the "#if TEST" code uses
80267         stdio, and performance isn't crucial there.
80268         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80269         Bison 1.875 features as described below.
80270         All uses of "PC." replaced by "pc->".
80271         (YYSTYPE): Add a forward declaration.
80272         (yylex, yyerror): Use full prototypes in forward decls.
80273         Use "%pure-parser" rather than obsolescent "%pure_parser".
80274         Use %parse-param and %lex-param instead of obsolescent
80275         YYPARSE_PARAM and YYLEX_PARAM.
80276         (meridian_table, month_and_day_table, time_units_table,
80277         relative_time_table, time_zone_table, military_table,
80278         lookup_zone, lookup_word, get_date):
80279         Use NULL instead of 0 where appropriate.
80280         (to_hour): Avoid abort (), to avoid a dependency on
80281         stdlib.h.
80282         (yyerror, yylex): Now accepts parser_control * arg.
80283         (main) [TEST]: Use '\0' rather than 0 for char.
80284
80285 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80286
80287         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80288
80289 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80290
80291         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80292         It's now the caller's responsibility to handle the case where
80293         !HAVE_GETPAGESIZE && !defined getpagesize.
80294
80295         * lib/mktime.c (leapyear): Arg is long int, not int.
80296
80297 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80298
80299         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80300
80301 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80304         missing.  Problem reported by James Youngman.
80305
80306 2004-10-16  Simon Josefsson  <jas@extundo.com>
80307
80308         * gnulib-tool: Fix comments.  Fix parse problem.
80309         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80310
80311 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80312
80313         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80314         implementation of getopt_long.  Problem reported by Alexander Taler in:
80315         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80316
80317 2004-10-15  Bruno Haible  <bruno@clisp.org>
80318
80319         * gnulib-tool: Untabify. Initialize supplied_libname.
80320         (func_usage): More homogenous output.
80321         (func_modules_transitive_closure, func_modules_to_filelist,
80322         func_emit_lib_Makefile_am): New functions.
80323         (func_import): New function, extracted from big case statement. Use
80324         func_get_license, func_modules_transitive_closure,
80325         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80326         opt_lgpl. Don't use test -a, as it's not portable.
80327         (func_create_testdir): Use func_modules_transitive_closure,
80328         func_modules_to_filelist, func_emit_lib_Makefile_am.
80329
80330 2004-10-15  Bruno Haible  <bruno@clisp.org>
80331
80332         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80333
80334 2004-10-15  Bruno Haible  <bruno@clisp.org>
80335
80336         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80337         the portions belonging to each module.
80338         Suggested by Derek Robert Price <derek@ximbiot.com>.
80339
80340 2004-10-12  Simon Josefsson  <jas@extundo.com>
80341
80342         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80343         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80344         to real functions.
80345
80346 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80347
80348         * modules/vsnprintf: New file.
80349
80350 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80351
80352         * m4/vsnprintf.m4: New file.
80353
80354 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80355
80356         * lib/vsnprintf.h: New file.
80357         * lib/vsnprintf.c: New file.
80358
80359 2004-10-11  Bruno Haible  <bruno@clisp.org>
80360
80361         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80362         vsnprintf.
80363
80364 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80365
80366         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80367
80368 2004-10-07  Bruno Haible  <bruno@clisp.org>
80369
80370         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80371         fits into the provided buffer.
80372
80373 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80374
80375         * lib/diacrit.c, diacrit.h: Add GPL notice.
80376
80377         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80378         notice.
80379         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80380         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80381         This avoids a potential constant-folding bug.
80382
80383 2004-10-05  Bruno Haible  <bruno@clisp.org>
80384
80385         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80386         for the declaration of strsep.
80387
80388 2004-10-05  Bruno Haible  <bruno@clisp.org>
80389
80390         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80391
80392 2004-10-04  Simon Josefsson  <jas@extundo.com>
80393
80394         * modules/memmem: New file.
80395         * tests/test-memmem.c: New file.
80396         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80397
80398 2004-10-04  Simon Josefsson  <jas@extundo.com>
80399
80400         * m4/memmem.m4: New file.
80401
80402 2004-10-04  Simon Josefsson  <jas@extundo.com>
80403
80404         * lib/memmem.h: New file.
80405         * lib/memmem.c: New file, taken from glibc.
80406
80407 2004-10-04  Simon Josefsson  <jas@extundo.com>
80408
80409         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80410         '#ifdef USE_UNLOCKED_IO'.
80411
80412 2004-10-04  Simon Josefsson  <jas@extundo.com>
80413
80414         * config/srclist.txt: Add memmem from glibc.
80415
80416 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80419
80420         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80421         modules/exclude, modules/getdate, modules/getline,
80422         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80423         modules/getusershell, modules/linebuffer, modules/md5,
80424         modules/mountlist, modules/posixtm, modules/readtokens,
80425         modules/readutmp, modules/regex, modules/sha1,
80426         modules/version-etc, modules/yesno:
80427         Remove dependency on unlocked-io.
80428
80429 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80430
80431         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80432
80433         * m4/unlocked-io.m4: Add copyright notice.
80434         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80435
80436 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80439         * lib/xmalloc.c (xmemdup): Likewise.
80440         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80441         XFREE): Remove these long-obsolescent macros.
80442         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80443         * lib/xstrdup.c: Remove.
80444
80445         * lib/regex.c (re_comp): Cast gettext return value to char *,
80446         Problem reported by Martin Neitzel via Mark D. Baushke.
80447
80448 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80451         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80452         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80453         regex.c, sha1.c, version-etc.c, yesno.c:
80454         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80455         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80456         the includer's responsibility.
80457
80458         Sync from coreutils.
80459
80460         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80461         points to the start of a string, as the C Standard says the
80462         resulting behavior is undefined.
80463
80464         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80465         simple -> simple_backups, numbered_existing ->
80466         numbered_existing_backups, numbered -> numbered_backups
80467         to avoid shadowing problems.  All uses changed.
80468         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80469         * lib/backupfile.c (check_extension, numbered_backup):
80470         Rename locals to avoid shadowing 'basename'.
80471         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80472         once.
80473
80474         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80475         * lib/.cvsignore: Add getopt.h.
80476
80477 2004-10-04  Bruno Haible  <bruno@clisp.org>
80478
80479         * modules/README: New file.
80480         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80481         not a module.
80482
80483 2004-10-02  Jim Meyering  <jim@meyering.net>
80484
80485         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80486
80487 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80488
80489         * modules/strsep: New file.
80490
80491 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80492
80493         * m4/strsep.m4: New file.
80494
80495 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80496
80497         * lib/strsep.h: New file.
80498         * lib/strsep.c: New file.
80499
80500 2004-10-01  Simon Josefsson  <jas@extundo.com>
80501
80502         * lib/snprintf.c (snprintf): Handle size==0.
80503
80504 2004-10-01  Simon Josefsson  <jas@extundo.com>
80505             Bruno Haible  <bruno@clisp.org>
80506
80507         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80508         (snprintf): Declare 'args'.
80509
80510 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80511
80512         * lib/snprintf.c: Remove comments as to why each header is needed.
80513
80514 2004-10-01  Bruno Haible  <bruno@clisp.org>
80515
80516         * MODULES.html.sh: Add strsep.
80517
80518 2004-09-30  Simon Josefsson  <jas@extundo.com>
80519
80520         * modules/snprintf: New file.
80521
80522 2004-09-30  Simon Josefsson  <jas@extundo.com>
80523
80524         * m4/snprintf.m4: New file.
80525
80526 2004-09-30  Simon Josefsson  <jas@extundo.com>
80527
80528         * lib/snprintf.h, lib/snprintf.c: New files.
80529
80530 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80531
80532         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80533         (hol_entry_help): Never translate an empty string.
80534         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80535         * lib/argp.h (OPTION_NO_TRANS): New option.
80536
80537 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         * modules/argp (Maintainer): Replace Simon Josefsson
80540         by Sergey Poznyakoff.
80541
80542 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80543
80544         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80545         changes merged back into glibc.
80546
80547 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80548
80549         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80550
80551 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80552
80553         * lib/xvasprintf.c: Include xalloc.h.
80554         (xvasprintf): Use xalloc_die, not xmalloc_die.
80555
80556 2004-09-29  Bruno Haible  <bruno@clisp.org>
80557
80558         * modules/alloca-opt: New file, derived from modules/alloca.
80559         * modules/allocsa: Depend on alloca-opt instead of alloca.
80560         * modules/setenv: Likewise.
80561         * modules/vasnprintf: Likewise.
80562         * MODULES.html.sh: Add alloca-opt.
80563
80564 2004-09-28  Simon Josefsson  <jas@extundo.com>
80565
80566         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80567         LGPL, and to replace license template from GPL to LGPL.
80568
80569 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * modules/dummy: Change license to LGPL.
80572
80573 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80574
80575         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80576
80577 2004-09-24  Simon Josefsson  <jas@extundo.com>
80578
80579         * modules/minmax (License): Change from GPL to LGPL.
80580
80581 2004-09-23  Simon Josefsson  <jas@extundo.com>
80582
80583         * gnulib-tool (--import): Typo.
80584
80585 2004-09-23  Simon Josefsson  <jas@extundo.com>
80586
80587         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80588
80589 2004-09-22  Bruno Haible  <bruno@clisp.org>
80590
80591         * modules/*: Add 'License' field.
80592         * gnulib-tool: Accept --extract-license option.
80593         (func_get_license): New function.
80594
80595 2004-09-21  Bruno Haible  <bruno@clisp.org>
80596
80597         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80598         Reported by Simon Josefsson.
80599
80600 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80603         gl_AC_TYPE_LONG_LONG.
80604
80605 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80608
80609 2004-09-18  Simon Josefsson  <jas@extundo.com>
80610         and  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80613         calls with autoreconf.  Define GL_LIB.
80614
80615 2004-09-14  Karl Berry  <karl@gnu.org>
80616
80617         * config/srclist.txt: unsync setenv.c, sigh.
80618
80619 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80620
80621         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80622         Problem reported by Bruno Haible in:
80623         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80624
80625 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80626
80627         * config/srclist.txt: Comment out argp-pvh.c.
80628
80629 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80632         in case some system header has #define'd it.  Problem reported by
80633         Soeren D. Schulze in
80634         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80635
80636 2004-09-09  Karl Berry  <karl@gnu.org>
80637
80638         * regex.[ch]: delete from the root.  These were supposed to be
80639                 synced with emacs cvs, but this has not happened for about
80640                 a year, and anyway nothing else uses emacs regex.[ch].
80641                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80642                 lib/regex[.ch] is untouched.
80643
80644 2004-09-09  Bruno Haible  <bruno@clisp.org>
80645
80646         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80647
80648 2004-09-09  Bruno Haible  <bruno@clisp.org>
80649
80650         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80651         modifications.
80652         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80653
80654 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80655
80656         * modules/xvasprintf: New file.
80657         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80658
80659 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80660
80661         * lib/xvasprintf.h: New file.
80662         * lib/xvasprintf.c: New file.
80663         * lib/xasprintf.c: New file.
80664
80665 2004-09-08  Bruno Haible  <bruno@clisp.org>
80666
80667         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80668
80669 2004-09-08  Bruno Haible  <bruno@clisp.org>
80670
80671         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80672         length is > INT_MAX.
80673         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80674         more.
80675
80676 2004-09-08  Bruno Haible  <bruno@clisp.org>
80677
80678         * lib/stdint_.h: New file, taken from GNU clisp.
80679
80680 2004-09-08  Bruno Haible  <bruno@clisp.org>
80681             Oskar Liljeblad  <oskar@osk.mine.nu>
80682
80683         * modules/stdint: New file.
80684         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80685
80686 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80687
80688         Import from coreutils.
80689         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80690         strings on unbounded length.  alloca's performance benefits aren't
80691         that important here.
80692         (V_STRDUP): Remove.
80693         (parse_with_separator): New function, with most of the internals
80694         of the old parse_user_spec.  Allow user to omit both user and group,
80695         for compatibility with FreeBSD.
80696         Clone only the user name, not the entire spec.
80697         Do not set *uid, *gid unless entirely successful.
80698         Avoid memory leak in some failing cases.
80699         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80700         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80701         (parse_user_spec): Rewrite to use parse_with_separator.
80702
80703 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * modules/userspec: Don't depend on alloca.
80706
80707 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80708
80709         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80710
80711 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80712
80713         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80714         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80715         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80716
80717 2004-08-16  Simon Josefsson  <jas@extundo.com>
80718
80719         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80720         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80721         Add --dry-run for --import.
80722         Let user provided command line parameters override configure.ac
80723         settings.
80724
80725 2004-08-12  Simon Josefsson  <jas@extundo.com>
80726
80727         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80728         as discussed with Paul Eggert in threads rooted at
80729         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80730         and
80731         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80732         Before, the test was empty, and relied on ELIDE_CODE in source
80733         code.)
80734         (gl_PREREQ_GETOPT): New macro.
80735         (gl_GETOPT): Use them.
80736
80737 2004-08-12  Simon Josefsson  <jas@extundo.com>
80738
80739         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80740         * lib/getopt_.h: Renamed from getopt.h.
80741
80742 2004-08-12  Simon Josefsson  <jas@extundo.com>
80743
80744         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80745         Change default library name from libfoo to libgnu.
80746         Now, if you have a configure.ac that says:
80747                 gl_SOURCE_BASE(gl)
80748                 gl_M4_BASE(gl/m4)
80749                 gl_MODULES(error getopt etcetera)
80750                 gl_INIT
80751         you can import all you need by running:
80752                 ../gnulib/gnulib-tool --import
80753
80754         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80755         (Makefile.am): Rewrite, use logic from argz.
80756         (Include): Use <getopt.h> instead of "getopt.h".
80757
80758 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80759
80760         * modules/argp (Files): Add m4/unlocked-io.m4.
80761         (Depends-on): Add extensions.
80762
80763 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80764
80765         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80766         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80767         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80768         Check for program_invocation_name, program_invocation_short_name,
80769         flockfile, funlockfile, features.h, _getopt_long_only_r.
80770
80771 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80774         its complicated substitute.
80775         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80776         and program_invocation_name.
80777         (__argp_basename) [!_LIBC]: Remove; the only use was
80778         replaced by its body.
80779         (__argp_short_program_name): Change condition from
80780         !defined __argp_short_program_name to
80781         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80782         to match argp-namefrob.h.
80783         (__argp_failure): Don't assume strerror_r returns char *.
80784         * lib/argp-parse.c (N_): Define unconditionally.
80785         (argp_default_options): Fill out initializers with 0 to avoid
80786         gcc warnings.
80787
80788 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80789
80790         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80791         getopt1.c.
80792
80793 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80794
80795         Merge from coreutils.
80796
80797         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80798
80799         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80800         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80801
80802 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80803
80804         Merge from coreutils.
80805
80806         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80807         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80808         for Reliant Unix 5.43.
80809
80810         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80811         (union fooround): Use uintmax_t, not long int.
80812         The rest is a merge from libc:
80813         [defined _LIBC]: Include <shlib-compat.h>.
80814         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80815
80816         * lib/settime.c (settime): Recode to avoid warning with
80817         Sun Forte C 6U2.
80818
80819         * lib/strverscmp.c: Convert to UTF-8.
80820
80821 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80824         m4/uintmax_t.m4.
80825
80826 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80827
80828         * modules/xalloc-die: New file.
80829         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80830
80831         * modules/md5 (Files): Add m4/uint32_t.m4.
80832         * modules/sha1: Renamed from modules/sha.
80833         (Files):
80834         Rename lib/sha.h to lib/sha1.h.
80835         Rename lib/sha.c to lib/sha1.c.
80836         Rename m4/sha.m4 to m4/sha1.m4.
80837         (lib_SOURCES): Likewise.
80838         (configure.ac): Rename gl_SHA to gl_SHA1.
80839         (Include): sha.h -> sha1.h.
80840
80841 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80844         * m4/sha1.m4: Renamed from sha.m4.
80845         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80846
80847 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80848
80849         * lib/obstack.h (obstack_empty_p):
80850         Don't assume that chunk->contents is suitably aligned.
80851         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80852         Likewise. Problem reported by Benno in
80853         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80854
80855         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80856         readable.  This could be improved further but it'd take some work.
80857
80858 2004-08-08  Simon Josefsson  <jas@extundo.com>
80859
80860         * modules/xgethostname (Depends-on): Remove exit and error (not
80861         used).
80862
80863         * modules/getpass-gnu: Add getpass.h.
80864         (Depends-on): Add stdbool.
80865         * modules/getpass: Add getpass.h.
80866
80867 2004-08-08  Simon Josefsson  <jas@extundo.com>
80868
80869         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80870         Check getpass declaration.
80871
80872 2004-08-08  Simon Josefsson  <jas@extundo.com>
80873
80874         * lib/xgethostname.c: Don't include error.h (not used).
80875
80876         * lib/getpass.h: Add.
80877         * lib/getpass.c: Include getpass.h first.
80878
80879 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         * lib/xalloc-die.c: New file.
80882         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80883         All uses removed.
80884         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80885         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80886         xalloc-die.c.
80887         (_, N_, xalloc_die): Move to xalloc-die.c.
80888         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80889         so that we needn't mess with xalloc_msg_memory_exhausted.
80890
80891         * lib/sha1.h: Renamed from sha.h.
80892         (SHA1_H): Renamed from _SHA_H.
80893         (sha1_ctx): Renamed from sha_ctx.
80894         (sha1_init_ctx): Renamed from sha_init_ctx.
80895         (sha1_process_block): Renamed from sha_process_block.
80896         (sha1_process_bytes): Renamed from sha_process_bytes.
80897         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80898         (sha1_read_ctx): Renamed from sha_read_ctx.
80899         (sha1_stream): Renamed from sha_stream.
80900         (sha1_buffer): Renamed from sha_buffer.
80901         * lib/sha1.c: Likewise; renamed from sha.c.
80902         Do not include <sys/types.h>.
80903         Include <stddef.h> rather than <stdlib.h>.
80904
80905 2004-08-08  Bruno Haible  <bruno@clisp.org>
80906
80907         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80908         FILESYSTEM_PREFIX_LEN.
80909         * lib/progreloc.c: Likewise.
80910         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80911
80912 2004-08-06  Simon Josefsson  <jas@extundo.com>
80913
80914         * modules/progname (Depends-on): Don't depend on stdbool.
80915
80916 2004-08-06  Simon Josefsson  <jas@extundo.com>
80917
80918         * modules/getsubopt: New file.
80919         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80920         getsubopt.
80921
80922 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80923
80924         More merge from coreutils.
80925
80926         * m4/utimens.m4, m4/utimecmp.m4: New files.
80927         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80928         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80929         prereq.m4, sha.m4: Import changes from coreutils.
80930
80931 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80932
80933         More merge from coreutils.
80934         * modules/raise, modules/readtokens0, modules/utimens:
80935         * modules/utimecmp, module/xnanosleep: New files.
80936         * modules/strftime: Add lib/strftime.h.
80937         Change include from <time.h> to "strftime.h".
80938         * modules/yesno: Add lib/yesno.h.
80939         * modules/backupfile: Remove lib/addext.c.
80940         * modules/euidaccess: Add stat-macros.h.
80941         * modules/canonicalize, modules/euidaccess,
80942         modules/filemode, modules/lchown, modules/makepath,
80943         modules/rmdir, modules/stat: Likewise.
80944
80945 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80946
80947         Merge from tar.
80948         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80949         SIZE_MAX is a valid preprocessor constant.
80950         (__argp_basename): Change from "#ifndef _LIBC"
80951         to "#ifndef __argp_short_program_name", so that
80952         we don't compile these functions for tar.
80953
80954         More merges from coreutils.
80955         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80956         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80957         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80958         * lib/addext.c: Remove; no longer needed.
80959         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80960         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80961         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80962         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80963         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80964         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80965         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80966         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80967         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80968         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80969         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80970         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80971         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80972         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80973         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80974         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80975         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80976         Import changes from coreutils.
80977
80978 2004-08-05  Simon Josefsson  <jas@extundo.com>
80979
80980         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80981
80982 2004-08-05  Simon Josefsson  <jas@extundo.com>
80983
80984         * m4/getsubopt.m4: New file.
80985
80986 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80987
80988         Merge from coreutils.
80989
80990         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80991         * m4/getcwd-path-max.m4: New files.
80992
80993         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80994         FILESYSTEM_PREFIX_LEN ->
80995         FILE_SYSTEM_PREFIX_LEN.
80996         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80997         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80998         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80999         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81000
81001         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81002         prerequisite modules now handle the DOS stuff.
81003         Don't check for unistd.h.
81004
81005 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81006
81007         Merge from coreutils.
81008
81009         * lib/.gdb-history: Remove; this doesn't belong here.
81010
81011         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81012         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81013         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81014         * lib/getcwd.c: New files.
81015
81016         * lib/dirname.h: Include <stdbool.h>.
81017         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81018         for consistency with POSIX terminology.  All uses changed.
81019         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81020         (strip_trailing_slashes): Use bool for booleans.
81021         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81022
81023         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81024         sometimes returns a positive errno value even when it succeeds.
81025         (print_errno_message) [!LIBC]: Fall back on strerror if
81026         __strerror_r fails.
81027
81028         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81029         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81030         (longest_relative_suffix): New function.
81031         (path_concat): Use it.  Assume first argument is not NULL.
81032         Port to DOS.  Omit redundant separators.
81033         Report an error instead of returning NULL.
81034         Use mempcpy instead of memcpy.
81035         (xpath_concat): Remove: not declared or used.
81036
81037         * lib/same.h: Include <stdbool.h>
81038         (same_name): Return bool, not int.
81039         * lib/same.c (same_name): Likewise.
81040         (errno): Don't declare; we assume C89 or better now.
81041
81042         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81043         if not already defined.
81044
81045         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81046         * lib/dup-safer.c (errno): Likewise.
81047
81048 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         Merge from coreutils.
81051         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81052         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81053         * modules/path-concat: Don't depend on strdup.
81054
81055 2004-08-03  Simon Josefsson  <jas@extundo.com>
81056
81057         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81058         * lib/progname.h: Don't include stdbool.h.
81059
81060 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81061
81062         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81063         * MODULES.html.sh (func_all_modules): Remove fatal.
81064
81065 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81066
81067         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81068
81069 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81070
81071         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81072         working.
81073
81074 2004-08-02  Simon Josefsson  <jas@extundo.com>
81075
81076         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81077         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81078         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81079
81080 2004-08-01  Simon Josefsson  <jas@extundo.com>
81081
81082         * lib/xgetdomainname.c: Include stdlib.h, for free().
81083
81084 2004-07-19  Bruno Haible  <bruno@clisp.org>
81085
81086         * MODULES.html.sh (func_all_modules): Add dummy.
81087
81088 2004-07-16  Simon Josefsson  <jas@extundo.com>
81089
81090         * modules/dummy: New file.
81091
81092 2004-07-16  Simon Josefsson  <jas@extundo.com>
81093
81094         * lib/dummy.c: New file.
81095
81096 2004-07-16  Bruno Haible  <bruno@clisp.org>
81097
81098         * lib/backupfile.h: Add extern "C" for C++.
81099         * lib/closeout.h: Likewise.
81100         * lib/copy-file.h: Likewise.
81101         * lib/findprog.h: Likewise.
81102         * lib/full-write.h: Likewise.
81103         * lib/pathname.h: Likewise.
81104         * lib/progname.h: Likewise.
81105         * lib/stpcpy.h: Likewise.
81106         * lib/stpncpy.h: Likewise.
81107         * lib/strcase.h: Likewise.
81108         * lib/strstr.h: Likewise.
81109         * lib/xalloc.h: Likewise.
81110
81111         * lib/mbswidth.h: Add extern "C" for C++.
81112         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81113
81114 2004-07-13  Robert Millan  <robertmh@gnu.org>
81115
81116         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81117
81118 2004-07-09  Simon Josefsson  <jas@extundo.com>
81119
81120         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81121         failed without this.)
81122
81123 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81124
81125         * modules/chown (Files): Add lib/fchown-stub.c, since
81126         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81127
81128 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * lib/fchown-stub.c: New file.
81131
81132 2004-06-24  Jim Meyering  <jim@meyering.net>
81133
81134         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81135
81136 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81137
81138         * modules/argz: Omit "#include".
81139
81140         * MODULES.html.sh (func_all_modules): Add calloc, to match
81141         2004-06-01 addition of calloc module.
81142
81143 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81144
81145         * m4/argz.m4: New file, which is autoupdated from libtool.
81146
81147 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81148
81149         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81150         libtool.
81151
81152 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81153
81154         * config/srclist-update: Don't insist on "USA." before the
81155         close-comment, as libtool omits the period and puts the */ on a
81156         separate line.
81157         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81158         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81159
81160 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81161
81162         * modules/argz: New file.
81163         * MODULES.html.sh (func_all_modules): Add argz.
81164
81165 2004-06-12  Jim Meyering  <jim@meyering.net>
81166         and  Paul Eggert  <eggert@cs.ucla.edu>
81167
81168         * modules/hash (Files): Add lib/xalloc.h.
81169         * modules/pipe (Depends-on): Add wait-process.
81170         * modules/stat (Depends-on): Add xalloc.
81171         * modules/userspec (Files): Add lib/userspec.h.
81172         * modules/xstrto
81173
81174         Upgrade from gettext-0.13.
81175         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81176         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81177         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81178
81179 2004-06-10  Jim Meyering  <jim@meyering.net>
81180
81181         * lib/calloc.c: New file.
81182
81183 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81184
81185         * lib/getdate.y (yylex): Allow space between sign and number.
81186         Problem reported by Dan Jacobson.
81187
81188 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81189
81190         Merge from coreutils CVS.
81191
81192         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81193         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81194         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81195         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81196         xstrtol.m4: Fix copyright date and/or serial number.
81197
81198         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81199         See if we need an fchown replacement.
81200         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81201         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81202         and use the replacement function if we detect either defect.
81203
81204         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81205         gl_UTIMECMP.
81206
81207 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81208         and  Jim Meyering  <jim@meyering.net>
81209
81210         Merge from coreutils CVS.
81211
81212         * lib/stat-macros.h: New file, with contents from file-type.h
81213         and coreutils' system.h.
81214         * lib/file-type.c: Include "stat-macros.h".
81215         * lib/file-type.h (file_type): Move all macro definitions to new file,
81216         stat-macros.h.
81217
81218         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81219         Wrap old code with this conditional.
81220         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81221         function that does not dereference symlinks.
81222         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81223
81224         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81225         dependency problems.
81226         (xreadlink): Accept new arg SIZE, for efficiency.
81227         All decls and uses changed.
81228         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81229
81230         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81231         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81232
81233         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81234         sysexits.h.
81235
81236 2004-06-01  Jim Meyering  <jim@meyering.net>
81237
81238         * m4/calloc.m4: New file.
81239
81240 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81241
81242         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81243         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81244         Also, fix a typo in a diagnostic.
81245
81246 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81247
81248         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81249         or AC_FUNC_REALLOC.
81250
81251 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81252
81253         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81254         macros to be defined.
81255         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81256         the allocator returns NULL because the requested size is zero.
81257
81258 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81259
81260         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81261         var.  Add comment explaining why libc still defines it.  This
81262         merges the following patch from glibc:
81263         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81264
81265 2004-05-20  Andreas Schwab  <schwab@suse.de>
81266
81267         * m4/free.m4: Replace free if it not known to work, not the other
81268         way round.
81269
81270 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81271
81272         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81273         present in glibc since revision 1.1 of this file.
81274         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81275         obstack_alignment_mask, obstack_alloc, obstack_base,
81276         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81277         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81278         obstack_grow0, obstack_init, obstack_int_grow,
81279         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81280         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81281         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81282         nonexistent functions.
81283
81284 2004-05-18  Karl Berry  <karl@gnu.org>
81285
81286         * config/srclist.txt: break link for vasnprintf.c.
81287
81288 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         Port obstack to the AS/400, where pointers are 16 bytes wide and
81291         you cannot cast an integer to a valid pointer.  This patch is
81292         currently waiting to be integrated into glibc; see
81293         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81294
81295         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81296         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81297         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81298         (struct obstack): temp member is now a union of a pointer and
81299         an integer, instead of an integer.  All integer uses changed.
81300         This does not affect the physical layout of struct obstack,
81301         except on hosts (like the AS/400) where the size or alignment of
81302         void * is greater than that of ptrdiff_t.
81303         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81304         __STDC__)]: Store temporary in pointer member of union, not
81305         integer member.
81306         * lib/obstack.c: Include <stddef.h>, for offsetof.
81307         (struct fooalign): Remove; it doesn't need a name.
81308         (union fooround): Change double to long double, and add void *.
81309         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81310         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81311         not a macro.  Hence the values are always int; so remove all
81312         casts-to-int in uses.
81313
81314 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81315
81316         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81317         we can get this patch merged into glibc.
81318
81319 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81320             Paul Eggert  <eggert@cs.ucla.edu>
81321
81322         * m4/argp: Depend on alloca.
81323
81324 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81325             Paul Eggert  <eggert@cs.ucla.edu>
81326
81327         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81328         freecoding.
81329
81330 2004-05-17  Bruno Haible  <bruno@clisp.org>
81331
81332         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81333         precision that consists of a '.' followed by an empty digit string.
81334         Patch by Tor Lillqvist <tml@iki.fi>.
81335
81336 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81339         for backward compatibility with older code.  We need our own
81340         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81341         it under some other name, and our alloca.h will define it.
81342
81343 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81344             Derek Price  <derek@ximbiot.com>
81345
81346         * lib/alloca.c: Include <alloca.h>, to get our interface.
81347         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81348         include <alloca.h> first.  Use C89 prototype for alloca; this
81349         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81350         Use #elif for simplicity, since we can assume C89 now.
81351         Don't try to source the system alloca.h since it will not be found
81352         and to prevent recursively including its replacement.
81353         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81354         * lib/regex.c: Likewise.
81355
81356 2004-05-16  Derek Price  <derek@ximbiot.com>
81357             Paul Eggert  <eggert@cs.ucla.edu>
81358
81359         getline cleanup.  This changes the getndelim2 API: both order of
81360         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81361         no delimiter).
81362
81363         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81364         interface does that.
81365         (getline): Always use getdelim, so that we don't have two
81366         copies of this code.
81367         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81368         if available.
81369         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81370         (GETNDELIM2_MAXIMUM): New macro.
81371         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81372         instead of the old practice of delim2==0.  All callers changed.
81373         Return -1 on overflow, instead of returning junk.
81374         Do not set *linesize unless allocation succeeds.
81375         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81376         that we include sys/types.h.
81377         * lib/getnline.h: Likewise.
81378         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81379         (getndelim2): Reorder arguments.
81380         * lib/getnline.c (getnline, getndelim):
81381         Don't discard the NMAX argument.
81382         (getnline): Invoke getndelim, to avoid code duplication.
81383         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81384         of (size_t) -1 by callers of the getnline family.
81385
81386 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81387
81388         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81389         Check for gettimeofday.
81390         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81391         Check for settimeofday, stime.
81392
81393 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81394
81395         * lib/nanosleep.c (suspended): Change its type from int to
81396         sig_atomic_t volatile.
81397         (first_call): Make it private to rpl_nanosleep, and have it
81398         be zero initially as that's a bit faster.
81399         (my_usleep): Round up fractional times instead of truncating them,
81400         as this is the usual meaning for 'sleep'.
81401
81402         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81403         doesn't work.
81404         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81405         (ENOSYS): Define if not defined.
81406         (settime): Fall back on stime if it exists and settimeofday fails.
81407         But don't bother with fallbacks if a method fails with errno == EPERM.
81408
81409 2004-05-11  Jim Meyering  <jim@meyering.net>
81410
81411         Prior to this change, the save_cwd caller required read access to the
81412         current directory on most systems (ones with the fchdir function).
81413
81414         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81415         fails, try write-only, and finally, resort to using xgetcwd.
81416
81417 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         * lib/obstack.c, obstack.h: Import changes from libc.
81420
81421 2004-04-28  Bruno Haible  <bruno@clisp.org>
81422
81423         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81424         also implicitly appends .exe to executables.
81425         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81426         accepts Windows pathnames.
81427         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81428         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81429         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81430         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81431         Reported by Derek Robert Price <derek@ximbiot.com>.
81432
81433 2004-04-21  Karl Berry  <karl@gnu.org>
81434
81435         * config/srclist.txt (localcharset.c): break sync.
81436
81437 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81438
81439         * m4/host-os.m4: Add a copyright notice.
81440
81441 2004-04-20  Jim Meyering  <jim@meyering.net>
81442
81443         Change UTILS_ to gl_ in AC_DEFINE'd names.
81444         Change utils_- and jm_-prefixed variables, too.
81445         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81446         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81447         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81448
81449         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81450         Don't emit trailing blanks.
81451         Also rename jm_-prefixed variables to have gl_ prefix.
81452
81453         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81454         Also rename jm_-prefixed variables to have gl_ prefix.
81455
81456         * m4/jm-macros.m4: Reflect the renamings.
81457         * m4/prereq.m4: Likewise.
81458
81459 2004-04-20  Jim Meyering  <jim@meyering.net>
81460
81461         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81462         memory.
81463
81464 2004-04-20  Jim Meyering  <jim@meyering.net>
81465             Bruno Haible  <bruno@clisp.org>
81466
81467         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81468         memory when realloc fails.
81469
81470 2004-04-19  Jim Meyering  <jim@meyering.net>
81471
81472         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81473         now that readutmp.c may call `free (0)'.
81474
81475 2004-04-19  Bruno Haible  <bruno@clisp.org>
81476
81477         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81478         * m4/inttypes_h.m4: Likewise.
81479         * m4/stdint_h.m4: Likewise.
81480         * m4/intmax_t.m4: Likewise.
81481         * m4/uintmax_t.m4: Likewise.
81482
81483 2004-04-18  Jim Meyering  <jim@meyering.net>
81484
81485         * m4/prereq.m4: Don't forbid jm_ prefix.
81486
81487         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81488         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81489         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81490         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81491         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81492         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81493         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81494         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81495         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81496         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81497         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81498         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81499         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81500         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81501         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81502         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81503         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81504         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81505         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81506
81507 2004-04-18  Jim Meyering  <jim@meyering.net>
81508
81509         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81510         failure, don't leak memory and do call END_UTMP_ENT.
81511
81512 2004-04-16  Jim Meyering  <jim@meyering.net>
81513
81514         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81515         coreutils' stat program.
81516         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81517
81518 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81519
81520         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81521         C89.
81522         (CHAR_BIT): Remove, since we assume C89.
81523         Include <stdint.h> if available, as per current Autoconf CVS advice.
81524
81525 2004-03-31  Jim Meyering  <jim@meyering.net>
81526
81527         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81528         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81529         * m4/xalloc.m4: Likewise.
81530
81531 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81532
81533         Merge from coreutils.
81534
81535         * m4/inttostr.m4: New file.
81536         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81537         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81538         Require gl_CLOCK_TIME.
81539         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81540
81541 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81542
81543         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81544         not bool, to be more consistent with Unix conventions.
81545         Suggested by Bruno Haible.
81546
81547         Merge from coreutils.
81548
81549         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81550         * lib/umaxtostr.c: New files.
81551
81552         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81553         the usual <time.h> dance.
81554         (get_date): Change signature to support fractional time stamps.
81555         All callers changed.
81556         * lib/getdate.y: Include "getdate.h" first, as we can now
81557         assume C89 and don't need to worry about 'const'.
81558         Similarly, include "unlocked-io.h" near start, not in middle.
81559         Include <limits.h>.
81560         (textint.value): Use long int rather than int.
81561         (textint.digits): Use size_t rather than int.
81562         (BILLION, LOG10_BILLION): New constants.
81563         (parser_control): New member rel_ns.  Members day_ordinal,
81564         time_zone, month, day, hour, minutes, rel_year, rel_month,
81565         rel_day, rel_hour, rel_minutes, rel_seconds
81566         are now long int, not int.  Member seconds is now struct timespec,
81567         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81568         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81569         not int.
81570         (%union.intval): Now long int, not int.
81571         New member timespec.
81572         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81573         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81574         (spec): Now is a timespec or an item list.
81575         (timespec, items): New nonterminals.
81576         (time, rel, relunit, number, get_date):
81577         Add support for fractional seconds.
81578         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81579         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81580         (to_hour): First arg is now long int, not int.
81581         (to_year): Returns long int, not int.
81582         Don't treat year -70 like 70.
81583         (tm_diff): Returns long int, not int.
81584         (lookup_word): Use bool instead of int when appropriate.
81585         (yylex): Use size_t for count, not int.
81586         Detect overflow when parsing large integer constants.
81587         Add support for fractions.
81588         (get_date): Make pointers 'const' if possible.
81589         Use more-portable code to detect integer overflow.
81590         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81591         Don't use ctime; it's not reliable if the year has >4 digits.
81592
81593         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81594         This is for compatibility with BSD.
81595
81596         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81597         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81598         From coreutils' system.h.
81599
81600         * lib/userspec.c: Don't include "posixver.h".
81601         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81602         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81603         compatible extension.  Simplify code by removing a boolean int
81604         that was always nonzero if a string was nonnull.
81605
81606 2004-03-30  Jim Meyering  <jim@meyering.net>
81607
81608         Merge from coreutils.
81609
81610         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81611         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81612         on some systems one must include <grp.h> before it.
81613         Reported by Christian Krackowizer.
81614
81615 2004-03-30  Jim Meyering  <jim@meyering.net>
81616
81617         Merge from coreutils.
81618
81619         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81620
81621         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81622         an empty input stream.
81623
81624         * lib/readtokens.c: Include <stdbool.h>.
81625         (readtoken): Use `size_t' rather than int/long.
81626         All callers adjusted.
81627         Use `bool' rather than `int' where appropriate.
81628         Use memset rather than an explicit loop.
81629         Use x2nrealloc rather than xrealloc.
81630         Allow the use of `\0' as a delimiter.
81631         (readtokens): Likewise.
81632         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81633
81634 2004-03-30  Jim Meyering  <jim@meyering.net>
81635
81636         * m4/realloc.m4: Remove file, since now it does no more than
81637         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81638         the `configure.ac' section of module/realloc.
81639         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81640
81641 2004-03-30  Bruno Haible  <bruno@clisp.org>
81642
81643         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81644         nonnull.
81645
81646 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81647
81648         Merge changes to getloadavg.c from coreutils and Emacs.
81649
81650         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81651         Define to an expression, not to the empty string.
81652         Include cloexec.h and xalloc.h.
81653         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81654         Use set_cloexec_flag rather than rolling our own.
81655         * lib/cloexec.c, lib/cloexec.h: New files.
81656
81657 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81658
81659         * m4/cloexec.m4: New file.
81660
81661 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81662
81663         * lib/getopt.h: Sync with libc CVS.
81664
81665 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81666             Bruno Haible  <bruno@clisp.org>
81667
81668         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81669         mbswidth.
81670
81671 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81672             Bruno Haible  <bruno@clisp.org>
81673
81674         * lib/mbswidth.h: Include <wchar.h> only if
81675         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81676         <wchar.h>.
81677         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81678
81679 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81680
81681         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81682         Sync with libc CVS.
81683         * lib/getopt_int.h: New file, also synced from libc.
81684
81685 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81686
81687         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81688         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81689         Bring back getopt.c, getopt.h, getopt1.c.
81690
81691 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81692
81693         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81694         All uses changed.  Check for sa_sigaction member; this fixes
81695         a bug first reported by Jason Andrade in
81696         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81697
81698 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81699
81700         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81701         '#if' expressions.  Unlike the code it replaces, it does not
81702         depend on (defined _SC_PAGESIZE).  However, it does depend on
81703         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81704         first reported by Jason Andrade in
81705         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81706
81707 2004-02-25  Simon Josefsson  <jas@extundo.com>
81708
81709         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81710
81711 2004-02-25  Simon Josefsson  <jas@extundo.com>
81712
81713         * lib/strdup.h: New file.
81714         * lib/strdup.c: Include it.
81715         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81716         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81717
81718 2004-02-23  Karl Berry  <karl@gnu.org>
81719
81720         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81721         (from fencepost.gnu.org:/gd/gnuorg).
81722
81723 2004-02-23  Karl Berry  <karl@gnu.org>
81724
81725         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81726         * config/srclist.txt: add maintain/standards documents.
81727
81728 2004-02-18  Bruno Haible  <bruno@clisp.org>
81729
81730         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81731         Reported by Derek Robert Price <derek@ximbiot.com>.
81732
81733 2004-02-16  Karl Berry  <karl@gnu.org>
81734
81735         * config/mkinstalldirs, install-sh: update from automake.
81736
81737 2004-02-06  Karl Berry  <karl@gnu.org>
81738
81739         * m4/po.m4: update from gettext 0.14.1.
81740
81741 2004-02-06  Karl Berry  <karl@gnu.org>
81742
81743         * lib/config.charset: update from gettext 0.14.1.
81744
81745 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81746
81747         Add comments and code, prompted by suggestions from Bruno Haible
81748         for sh-quote.
81749         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81750         describing the enum quoting_style values.
81751         * lib/quotearg.c (quotearg_alloc): New function.
81752         (quotearg_buffer_restyled): Treat lone { and } as special.
81753         Treat = as special.  Work around bug with older shells
81754         that "see" a '\' that is really the 2nd byte of a multibyte char.
81755         Quote empty string with shell_quoting_style.
81756
81757 2004-02-03  Bruno Haible  <bruno@clisp.org>
81758
81759         * m4/pipe.m4: New file, from GNU gettext.
81760
81761 2004-02-03  Bruno Haible  <bruno@clisp.org>
81762
81763         * lib/pipe.h: New file, from GNU gettext.
81764         * lib/pipe.c: New file, from GNU gettext.
81765
81766 2004-01-27  Bruno Haible  <bruno@clisp.org>
81767
81768         * m4/execute.m4: New file, from GNU gettext.
81769
81770 2004-01-27  Bruno Haible  <bruno@clisp.org>
81771
81772         * lib/execute.h: New file, from GNU gettext.
81773         * lib/execute.c: New file, from GNU gettext.
81774         * lib/w32spawn.h: New file, from GNU gettext.
81775
81776 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81777
81778         Merge from diffutils.
81779
81780         * lib/file-type.c (file_type): Add typed memory objects.
81781         * lib/file-type.h (S_TYPEISTMO): New macro.
81782
81783         * lib/c-stack.h (c_stack_action): Remove argv argument.
81784         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81785         (die): Don't calculate message unless segv_action returns.
81786         (get_stack_location, min_address_from_argv, max_address_from_argv,
81787         volatile stack_base, volatile_stack_size): Remove.
81788         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81789         that every segmentation violation is a stack overflow.  (Ouch!)
81790         See Debian bug 136249 (still outstanding) for more info about why
81791         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81792
81793 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81794
81795         Exit-status fix from coreutils.
81796
81797         Use exit_failure consistently in place of EXIT_FAILURE,
81798         so that program exit statuses are consistent on failure.
81799
81800         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81801         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81802         * lib/argmatch.h: Comment fix to match the above.
81803         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81804         Now a macro referring to exit_failure, instead of a separate
81805         variable.  Include "exitfail.h" to get it.
81806         * lib/xstrtol.h: Include "exitfail.h".
81807         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81808
81809         * lib/long-options.c (parse_long_options): Use prototype
81810         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81811         for clarity.
81812
81813 2004-01-21  Jim Meyering  <jim@meyering.net>
81814
81815         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81816         so as not to conflict with a different-sized __mktime_internal
81817         function in GNU libc.
81818         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81819         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81820
81821 2004-01-20  Karl Berry  <karl@gnu.org>
81822
81823         * config/config.guess: update from config.
81824
81825         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81826
81827 2004-01-20  Bruno Haible  <bruno@clisp.org>
81828
81829         Safer stack allocation.
81830         * lib/setenv.c: Include allocsa.h.
81831         (alloca): Remove fallback definition.
81832         (freea): Remove macro.
81833         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81834         instead of freea.
81835
81836 2004-01-20  Bruno Haible  <bruno@clisp.org>
81837
81838         * m4/eealloc.m4: New file, from GNU gettext.
81839
81840 2004-01-20  Bruno Haible  <bruno@clisp.org>
81841
81842         * m4/allocsa.m4: New file, from GNU gettext.
81843
81844 2004-01-20  Bruno Haible  <bruno@clisp.org>
81845
81846         * lib/xallocsa.h: New file, from GNU gettext.
81847         * lib/xallocsa.c: New file, from GNU gettext.
81848
81849 2004-01-20  Bruno Haible  <bruno@clisp.org>
81850
81851         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81852
81853 2004-01-20  Bruno Haible  <bruno@clisp.org>
81854
81855         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81856         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81857         specially.
81858
81859 2004-01-20  Bruno Haible  <bruno@clisp.org>
81860
81861         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81862         patch.
81863
81864 2004-01-20  Bruno Haible  <bruno@clisp.org>
81865
81866         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81867
81868 2004-01-20  Bruno Haible  <bruno@clisp.org>
81869
81870         * lib/eealloc.h: New file.
81871
81872 2004-01-20  Bruno Haible  <bruno@clisp.org>
81873
81874         * lib/binary-io.h: Avoid warnings on Cygwin.
81875
81876 2004-01-20  Bruno Haible  <bruno@clisp.org>
81877
81878         * lib/allocsa.h: New file, from GNU gettext.
81879         * lib/allocsa.c: New file, from GNU gettext.
81880
81881 2004-01-18  Karl Berry  <karl@gnu.org>
81882
81883         * doc/gpl.texi, doc/lgpl.texi: new files.
81884
81885 2004-01-18  Karl Berry  <karl@gnu.org>
81886
81887         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81888         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81889
81890 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81891
81892         Merge from coreutils.
81893
81894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81895         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81896         (gl_DEFAULT_POSIX2_VERSION): Move
81897         the documentation from 'configure' into 'config.hin',
81898         so that 'configure --help' isn't burdened by it and
81899         we don't have to worry about its formatting there.
81900         Reword the documentation so that it's more succinct
81901         and can be run together into a single paragraph.
81902         * m4/same.m4 (gl_SAME): Check for pathconf.
81903
81904 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81905
81906         Merge from coreutils.
81907
81908         * lib/posixver.c: Include posixver.h.
81909
81910         * lib/same.c: Include <stdbool.h>, <limits.h>.
81911         (_POSIX_NAME_MAX): Define if not defined.
81912         (MIN): New macro.
81913         (same_name): If file names are silently truncated, report
81914         that the file names are the same if they are the same after
81915         the silent truncation.
81916
81917         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81918         conversion function.
81919         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81920         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81921         longer needed.
81922
81923 2004-01-15  Jim Meyering  <jim@meyering.net>
81924
81925         Merge from coreutils.
81926
81927         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81928         if no library is required.
81929         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81930         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81931         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81932         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81933         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81934         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81935         value, $ac_cv_search_crypt, if it's "none required".
81936         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81937         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81938         not gl_FUNC_GETLOADAVG.
81939         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81940         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81941
81942 2004-01-15  Jim Meyering  <jim@meyering.net>
81943
81944         Merge from coreutils.
81945
81946         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81947         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81948         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81949
81950         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81951         optional configure-time default.
81952
81953         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81954
81955         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81956
81957 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81958
81959         Merge from coreutils.
81960
81961         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81962         value, $ac_cv_search_nanosleep, if it's "none required".
81963
81964 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81965
81966         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81967         with like-named macro in fnmatch.c.
81968         (EXT): Use an internal constant instead.
81969
81970         Merge fnmatch patches from glibc.
81971         * lib/fnmatch.c (mbsinit): Remove define.
81972         Add libc_hidden_ver (__fnmatch, fnmatch).
81973         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81974         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81975
81976 2004-01-14  Karl Berry  <karl@gnu.org>
81977
81978         * config/install-sh: update from automake.
81979
81980 2004-01-13  Karl Berry  <karl@gnu.org>
81981
81982         * config/install-sh: update from automake.
81983
81984 2004-01-09  Karl Berry  <karl@gnu.org>
81985
81986         * config/install-sh: update from automake.
81987
81988 2004-01-05  Karl Berry  <karl@gnu.org>
81989
81990         * config/config.{sub,guess}: update from config.
81991
81992 2003-12-31  Karl Berry  <karl@gnu.org>
81993
81994         * config/depcomp: update from automake.
81995
81996 2003-12-14  Karl Berry  <karl@gnu.org>
81997
81998         * lib/config.charset: update from gettext-runtime.
81999
82000 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82001
82002         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82003         Bug reported by Alfred M. Szmidt.
82004
82005 2003-12-03  Bruno Haible  <bruno@clisp.org>
82006
82007         * m4/gettext.m4: Upgrade from gettext-0.13.
82008         * m4/po.m4: Upgrade from gettext-0.13.
82009         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82010         * m4/intmax.m4: New file, from gettext-0.13.
82011         * m4/printf-posix.m4: New file, from gettext-0.13.
82012
82013 2003-11-29  Karl Berry  <karl@gnu.org>
82014
82015         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82016
82017 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82018             Bruno Haible  <bruno@clisp.org>
82019
82020         * lib/printf-parse.h: Don't include sys/types.h.
82021         (ARG_NONE): New macro.
82022         (char_directive): Change type of *arg_index fields to size_t.
82023         * lib/printf-parse.c: Don't include sys/types.h.
82024         (SSIZE_MAX): Remove macro.
82025         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82026         Remove unnecessary overflow check.
82027         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82028         fields.
82029
82030 2003-11-25  Bruno Haible  <bruno@clisp.org>
82031
82032         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82033
82034 2003-11-25  Bruno Haible  <bruno@clisp.org>
82035
82036         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82037         gt_TYPE_SSIZE_T.
82038
82039 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82040
82041         * modules/alloca: Remove dependency on xalloc.
82042
82043 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82044
82045         * lib/alloca.c: Remove dependency on xalloc module.
82046         (xalloc_die): Remove.
82047         (memory_full) [!defined emacs]: New macro.
82048         [!defined emacs]: Don't include xalloc.h.
82049         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82050         address arithmetic overflows.  Change datatypes a bit to avoid
82051         unnecessary casts.
82052
82053 2003-11-22  Jim Meyering  <jim@meyering.net>
82054
82055         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82056         s/size/size_t/.
82057
82058 2003-11-21  Karl Berry  <karl@gnu.org>
82059
82060         * config/config.{sub,guess}: update from config.
82061
82062 2003-11-18  Karl Berry  <karl@gnu.org>
82063
82064         * config/config.{sub,guess}: update from config.
82065
82066         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82067
82068 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82069
82070         * README: Mention that S+T cannot overflow if S is the size of
82071         an existing object and T is sufficiently small.
82072
82073 2003-11-17  Jim Meyering  <jim@meyering.net>
82074
82075         On systems without utime and without a utimes function capable of
82076         dealing with a NULL struct utimbuf* argument, this utime replacement
82077         could -- in unusual circumstances -- leak a file descriptor.
82078         * lib/utime.c: Include <unistd.h> and <errno.h>.
82079         (utime_null): Be sure to close `fd' and to preserve errno.
82080         Reported by Geoff Collyer via Arnold Robbins.
82081
82082 2003-11-17  Bruno Haible  <bruno@clisp.org>
82083
82084         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82085         (Depends-on): Add xsize.
82086
82087 2003-11-17  Bruno Haible  <bruno@clisp.org>
82088
82089         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82090
82091 2003-11-17  Bruno Haible  <bruno@clisp.org>
82092
82093         * lib/vasnprintf.c (alloca): Remove fallback definition.
82094         (freea): Remove definition.
82095         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82096         Reported by Paul Eggert.
82097
82098 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82099             Bruno Haible  <bruno@clisp.org>
82100
82101         Protect against address arithmetic overflow.
82102         * lib/printf-args.h: Include stddef.h.
82103         (arguments): Change type of field 'count' to size_t.
82104         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82105         'unsigned int' where appropriate.
82106         * lib/printf-parse.h: Include sys/types.h.
82107         (char_directive): Change type of *arg_index fields to ssize_t.
82108         (char_directives): Change type of fields 'count', max_*_length to
82109         size_t.
82110         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82111         (SSIZE_MAX): Define fallback value.
82112         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82113         instead of 'int' where appropriate. Check a_allocated, d_allocated
82114         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82115         * lib/vasnprintf.c: Include xsize.h.
82116         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82117         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82118         overflow. Avoid wraparound when converting a width or precision from
82119         decimal to binary.
82120
82121 2003-11-16  Bruno Haible  <bruno@clisp.org>
82122
82123         Update from GNU gettext.
82124         * lib/printf-parse.c: Generalize to it can be compiled for wide
82125         strings.
82126         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82127         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82128         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82129         SNPRINTF): New macros.
82130         Don't include <alloca.h> if the file is used inside libintl.
82131         (local_wcslen): New function, for Solaris 2.5.1.
82132         (VASNPRINTF): Use it instead of wcslen.
82133
82134 2003-11-16  Bruno Haible  <bruno@clisp.org>
82135
82136         * lib/xsize.h (xmax): New function.
82137         (xsum, xsum3, xsum4): Declare as "pure" functions.
82138
82139 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82140
82141         * modules/xalloc (Files): Undo latest change, since xalloc.h
82142         no longer needs SIZE_MAX or PTRDIFF_MAX.
82143
82144 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82145
82146         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82147         gl_PTRDIFF_MAX.
82148
82149 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82150
82151         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82152         "return", to pacify some unknown compiler.  Problem reported
82153         by Joerg Schilling.
82154
82155 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82156
82157         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82158         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82159         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82160         heuristic is just as accurate as far as we know, and it removes a
82161         dependency on size_max.m4 and ptrdiff_max.m4.
82162
82163 2003-11-11  Bruno Haible  <bruno@clisp.org>
82164
82165         * modules/xsize (Files): Add m4/size_max.m4.
82166         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82167
82168 2003-11-11  Bruno Haible  <bruno@clisp.org>
82169
82170         * m4/size_max.m4: New file.
82171         * m4/ptrdiff_max.m4: New file.
82172         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82173         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82174         (gl_XALLOC): Invoke it.
82175
82176 2003-11-11  Bruno Haible  <bruno@clisp.org>
82177
82178         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82179         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82180         defined.
82181
82182 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82183
82184         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82185         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82186         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82187         From Bruno Haible.
82188         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82189         not (size_t) -1, since it's defined here.
82190
82191 2003-11-09  Karl Berry  <karl@gnu.org>
82192
82193         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82194
82195 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82196
82197         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82198         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82199         Reject sizes of exactly SIZE_MAX bytes.
82200         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82201         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82202
82203 2003-11-05  Bruno Haible  <bruno@clisp.org>
82204
82205         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82206         SIZE_MAX defined in <limits.h> on Solaris.
82207
82208 2003-11-04  Jim Meyering  <jim@meyering.net>
82209
82210         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82211         variable names, rather than @VAR@.
82212         * modules/poll: Likewise.
82213
82214 2003-11-04  Bruno Haible  <bruno@clisp.org>
82215
82216         * modules/xsize: New file.
82217         * modules/linebreak: Depend on xsize.
82218         * MODULES.html.sh (func_all_modules): Add xsize.
82219
82220 2003-11-04  Bruno Haible  <bruno@clisp.org>
82221
82222         * m4/xsize.m4: New file.
82223
82224 2003-11-04  Bruno Haible  <bruno@clisp.org>
82225
82226         * lib/xsize.h: New file.
82227         * lib/linebreak.c: Include xsize.h.
82228         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82229         argument for overflow.
82230         Suggested by Paul Eggert.
82231
82232 2003-11-03  Karl Berry  <karl@gnu.org>
82233
82234         * config/config.{guess,sub}: update from config.
82235
82236 2003-11-03  Jim Meyering  <jim@meyering.net>
82237
82238         * modules/userspec (lib_SOURCES): Add userspec.h.
82239         (Include): Add "userspec.h".
82240         Improve description.
82241
82242 2003-11-03  Jim Meyering  <jim@meyering.net>
82243
82244         * lib/userspec.c: Include "userspec.h".
82245         * lib/userspec.h: New file.
82246
82247 2003-11-03  Bruno Haible  <bruno@clisp.org>
82248
82249         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82250
82251 2003-11-03  Bruno Haible  <bruno@clisp.org>
82252
82253         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82254         available, to avoid (extremely rare) race condition.
82255         Suggested by Paul Eggert.
82256
82257 2003-11-02  Karl Berry  <karl@gnu.org>
82258
82259         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82260
82261 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82262
82263         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82264         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82265         (read_filesystem_list): Set and use me_type_malloced.
82266         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82267         whatever the type happens to be), for brevity and consistency.
82268         Check for size calculation overflow on Alphas running OSF/1.
82269
82270 2003-10-31  Jim Meyering  <jim@meyering.net>
82271
82272         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82273
82274         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82275
82276 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82277             Bruno Haible  <bruno@clisp.org>
82278
82279         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82280         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82281
82282 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82285         netbsd*-gnu*.  Suggested by Robert Millan.
82286
82287 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82288
82289         * modules/group-member: Depend on stdbool.
82290
82291 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82292
82293         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82294
82295 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82296
82297         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82298         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82299         after the 'gnu' in these cases.  This fixes some bugs in the
82300         previous change, and is based on suggestions by Robert Millan.
82301
82302 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82303
82304         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82305         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82306         no longer needed.
82307         * lib/quotearg.c (quotearg_n_options): Use it.
82308         * lib/group-member.c: Include <stdbool.h>.
82309         (free_group_info): Arg is now const *; don't free arg.
82310         (get_group_info): Now returns bool and accepts struct group_info *,
82311         rather than returning a malloc'ed struct group_info *.
82312         All uses changed.  Check for overflow in internal size calculation.
82313
82314         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82315         rather than xmalloc/xrealloc.
82316         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82317         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82318         conformance bug: the old code used a pointer after freeing the
82319         storage that it addressed.
82320         * lib/hash.c (hash_initialize): Simplify the code by using
82321         xalloc_oversized rather than doing it by hand.
82322         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82323         the buffer preserved.  Use free and xmalloc instead.
82324         * lib/quotearg.c (quotearg_n_options): Likewise.
82325         Use a simpler test for size overflow.  Don't use xalloc_oversized
82326         because unsigned int might be wider than size_t (!); this suggests
82327         that we should switch from unsigned int to size_t for slot numbers.
82328
82329 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82330
82331         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82332         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82333         NetBSD kernels.  Requested by Richard Stallman.
82334
82335 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82336
82337         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82338         to allocate the returned structure.  Do not allocate a subarray,
82339         as x2nrealloc will do that.
82340         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82341         instead of xnrealloc.
82342         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82343
82344 2003-10-27  Bruno Haible  <bruno@clisp.org>
82345
82346         * lib/stdbool_.h: Better support for BeOS.
82347
82348 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82349
82350         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82351         now uses inline.
82352
82353 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82354
82355         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82356         callers that want to do their own size-overflow checking.  Include
82357         <stdbool.h>, since xalloc_oversized returns bool.
82358         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82359         to use xalloc_oversized.
82360
82361         Add two functions x2realloc, x2nrealloc, for programs that grow
82362         arrays dynamically by doubling their sizes.
82363         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82364         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82365         New functions.
82366
82367         Port to C99 semantics for 'inline' of external functions.
82368         Bug reported by Bruno Haible.
82369         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82370         with the old contents of xnmalloc.
82371         (xnmalloc, xmalloc): Use it.
82372         (xnrealloc_inline): New static inline function,
82373         with the old contents of xnrealloc.
82374         (xnrealloc, xrealloc): Use it.
82375
82376         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82377         that.
82378
82379 2003-10-26  Karl Berry  <karl@gnu.org>
82380
82381         * config/srclist.txt (COPYING.DOC): no longer available from
82382         /gd/gnuorg; don't know where the ultimate source is.
82383
82384 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82385
82386         Fix several address-calculation bugs in the hash modules,
82387         plus some minor code cleanup.
82388
82389         * lib/hash.h: Include <stdbool.h>, for bool.
82390         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82391         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82392         hash_get_n_entries, hash_get_max_bucket_length,
82393         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82394         hash_rehash): Use size_t rather than unsigned.
82395         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82396         hash_get_n_buckets_used, hash_get_n_entries,
82397         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82398         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82399         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82400         Likewise.
82401         (SIZE_MAX): Define if not defined.
82402         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82403         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82404         hash_print):
82405         Use const * when possible.
82406         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82407         (check_tuning): Fix bug: if tuning parameters were very close to
82408         0 or 1, rounding errors could have caused subscript violations.
82409         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82410         (hash_initialize): Add 'fail:' label
82411         to free table and return NULL, and use it to simplify code.
82412         Use calloc rather than clearing the storage ourself.
82413         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82414         buffer size calculations.
82415         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82416         Include <stddef.h>, for size_t.
82417         * lib/hash-pjw.c (hash_pjw): Likewise.
82418         Switch to method described by Bruno Haible.
82419         Include <limits.h>, for CHAR_BIT.
82420         (SIZE_BITS): New macro.
82421
82422 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82423
82424         * m4/getline.m4 (AM_FUNC_GETLINE):
82425         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82426         hosts.  Problem reported by Derek Robert Price in
82427         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82428         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82429         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82430
82431 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82432
82433         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82434         ceiling the allocation at NMAX bytes rather than silently
82435         discarding input bytes before NMAX is reached.  This makes
82436         a difference only if NMAX exceeds SIZE_MAX / 2.
82437
82438         * lib/obstack.c: Merge from glibc.
82439         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82440         Add libc_hidden_def (_obstack_newchunk).
82441         (_obstack_free) [! defined _LIBC]: Remove.
82442         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82443         a clone of the function body.
82444         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82445         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82446
82447         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82448         glibc.
82449         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82450         arg to memcpy.
82451
82452         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82453         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82454         Don't use lvalue casts, as GCC plans to remove support for them
82455         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82456         was also present in the non-GCC version, indicating that this
82457         code had always been buggy and had never been widely used.
82458         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82459         Use the fast variant of each macro, rather than copying the
82460         definiens of the fast variant; that way, we'll be more likely to
82461         catch future bugs in the fast variants.
82462
82463 2003-10-20  Bruno Haible  <bruno@clisp.org>
82464
82465         * modules/wait-process: New file.
82466         * MODULES.html.sh (func_all_modules): Add wait-process.
82467
82468 2003-10-20  Bruno Haible  <bruno@clisp.org>
82469
82470         * m4/wait-process.m4: New file.
82471
82472 2003-10-20  Bruno Haible  <bruno@clisp.org>
82473
82474         * lib/wait-process.h: New file, from GNU gettext.
82475         * lib/wait-process.c: New file, from GNU gettext.
82476
82477 2003-10-19  Jim Meyering  <jim@meyering.net>
82478
82479         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82480         HPUX 10.20.
82481
82482 2003-10-18  Karl Berry  <karl@gnu.org>
82483
82484         * config/config.guess: update from config.
82485
82486 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82487
82488         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82489         (getgroups): First arg is int, not size_t.
82490         Don't let 'free' mangle errno.
82491
82492 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82493
82494         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82495
82496 2003-10-16  Karl Berry  <karl@gnu.org>
82497
82498         * config/config.{guess,sub}: update from config.
82499
82500 2003-10-16  Jim Meyering  <jim@meyering.net>
82501
82502         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82503         memcpy.
82504
82505 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82506
82507         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82508         (SIZE_MAX): Remove.
82509         (new_exclude, add_exclude_file): Initial size no longer needs to
82510         be a power of 2.
82511         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82512         our own address arithmetic overflow checking.
82513
82514         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82515         (fnmatch): Do not alloca more than 2000 wide characters;
82516         instead, use malloc for large buffers.
82517         Check for address arithmetic overflow, and return -1
82518         with errno set to ENOMEM in that case.
82519         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82520         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82521         instead, return -1.  Check for address arithmetic overflow.
82522
82523 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82524
82525         Handle invalid suffixes and overflow independently, so that
82526         callers can treat them independently as needed.  Fix some bugs in
82527         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82528         suffix for a human-readable blocksize.  The major caller-visible
82529         change is the addition of a new
82530         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82531         that both overflow and suffix chars were found.
82532
82533         * lib/human.c (humblock): Don't check separately for invalid suffix
82534         char; that is xstrtoumax's job (now that its bug is fixed).
82535         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82536         INTMAX_MAX]: New macros.
82537         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82538         TYPE_MAXIMUM): New macros.
82539         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82540         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82541         if overflow occurs, as it's what __strtol does and it's more useful
82542         in practice.
82543         (__xstrtol): If __strtol reports some error other than ERANGE,
82544         reflect it to the caller as LONGINT_INVALID.  If it reports
82545         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82546         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82547         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82548         value.
82549         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82550         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82551         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82552         [defined UINTMAX_MAX]: New macros.
82553
82554 2003-10-14  Bruno Haible  <bruno@clisp.org>
82555
82556         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82557
82558 2003-10-14  Bruno Haible  <bruno@clisp.org>
82559
82560         * m4/sig_atomic_t: New file, from GNU gettext.
82561         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82562
82563 2003-10-14  Bruno Haible  <bruno@clisp.org>
82564
82565         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82566         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82567         Also use volatile where needed.
82568
82569 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82570
82571         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82572         Change maintainer from Bruno Haible to 'all'.
82573
82574 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82575
82576         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82577
82578 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82579
82580         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82581         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82582         and define in terms of the other primitives.
82583         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82584         (SIZE_MAX): Define if not already defined.
82585         (array_size_overflow): New function.
82586         (xalloc_die): Abort instead of exiting if 'error' returns.
82587         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82588         (xmalloc, xrealloc): Use them.
82589         (xcalloc): Check for address arithmetic overflow.
82590         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82591         a bit faster than strcpy.
82592
82593 2003-10-10  Simon Josefsson  <jas@extundo.com>
82594
82595         * modules/argp (Depends-on): Add restrict and strcase.
82596
82597 2003-10-10  Simon Josefsson  <jas@extundo.com>
82598
82599         * m4/argp.m4: Add AC_C_INLINE.
82600
82601 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82602
82603         Merge getpass from libc, plus a few fixes.
82604
82605         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82606         Include <stdbool.h>.
82607         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82608         __fsetlocking to empty.
82609         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82610         do include <bits/libc-lock.h>.
82611         Do not include <fcntl.h>; not needed.
82612         [_LIBC]: Include <wchar.h>.
82613         (NOTCANCEL_MODE): New macro.
82614         (flockfile, funlockfile) [_LIBC]: New macros.
82615         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82616         [!_LIBC]: New macros.
82617         (call_fclose): New function.
82618         (getpass): Use it.  Save tty stream separately; this simplifies the
82619         code and makes it more reliable if stdin happens to equal stdout.
82620         Invoke __fsetlocking on tty.
82621         Handle thread cancellation if needed.
82622         Namespace cleanup (use __tcgetattr, __getline).
82623         Use bool for Booleans.
82624         [USE_IN_LIBIO]: Handle wide streams.
82625         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82626         stream might go where.
82627
82628         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82629         doesn't have to include <stdio.h> before us.
82630         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82631         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82632         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82633         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82634         if not declared, so that we can use getpass.c code from libc without
82635         rewriting it.
82636         (flockfile, ftrylockfile, funlockfile): New macros.
82637
82638 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82639
82640         * modules/getpass: Depend on stdbool.
82641
82642 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82643
82644         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82645
82646 2003-10-07  Karl Berry  <karl@gnu.org>
82647
82648         * config/config.{guess,sub}: update from config.
82649
82650 2003-10-06  Jim Meyering  <jim@meyering.net>
82651             Bruno Haible  <bruno@clisp.org>
82652
82653         This lets translators provide better translations for the
82654         "Written by ..." part of --version output.
82655         * lib/version-etc.h: Include stdarg.h.
82656         (version_etc_copyright): Declare as readonly.
82657         (version_etc): Make this function variadic with a NULL-terminated list
82658         of author name strings.
82659         (version_etc_va): New declaration.
82660         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82661         (version_etc_copyright): Declare as readonly.
82662         (version_etc_va): New function. Provide a different translatable string
82663         for each possible number of authors < 10. Abbreviate when there are 10
82664         authors or more.
82665         (version_etc): Make this function variadic. Call version_etc_va.
82666         Suggestion from Gary V. Vaughan.
82667
82668         * lib/long-options.h (parse_long_options): Change prototype: the
82669         authors string is moved to the end and becomes variadic.
82670         * lib/long-options.c: Include stdarg.h.
82671         (parse_long_options): Make this function variadic, too.
82672         Call version_etc_va, not version_etc.
82673
82674 2003-10-06  Bruno Haible  <bruno@clisp.org>
82675
82676         * modules/version-etc-2: Remove file.
82677         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82678
82679 2003-10-06  Bruno Haible  <bruno@clisp.org>
82680
82681         * modules/fatal-signal: New file.
82682         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82683
82684 2003-10-06  Bruno Haible  <bruno@clisp.org>
82685
82686         * m4/fatal-signal.m4: New file.
82687         * m4/signalblocking.m4: New file, from GNU gettext.
82688
82689 2003-10-06  Bruno Haible  <bruno@clisp.org>
82690
82691         * lib/version-etc-2.h: Remove file.
82692         * lib/version-etc-2.c: Remove file.
82693
82694 2003-10-06  Bruno Haible  <bruno@clisp.org>
82695
82696         * lib/fatal-signal.h: New file, from GNU gettext.
82697         * lib/fatal-signal.c: New file, from GNU gettext.
82698
82699 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82700
82701         * README: Rework advice for preventing empty .o files.
82702         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82703         not <sys/types.h>.
82704
82705 2003-10-04  Karl Berry  <karl@gnu.org>
82706
82707         * lib/argp*: update from libc.
82708
82709 2003-10-04  Karl Berry  <karl@gnu.org>
82710
82711         * config/config.{guess,sub}: update from config.
82712
82713 2003-10-02  Bruno Haible  <bruno@clisp.org>
82714
82715         * modules/lchown (Include): Add lchown.h.
82716         * modules/time_r (Include): Use "..." syntax.
82717         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82718
82719 2003-10-01  Simon Josefsson  <jas@extundo.com>
82720
82721         * MODULES.html.sh (func_all_modules): Move gethostname from section
82722         'based on' to section 'lacking' POSIX:2001.
82723
82724 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82725
82726         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82727         to output mode on the same stream.
82728
82729 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82730
82731         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82732         Fix arg typo in previous patch.
82733
82734 2003-09-28  Jim Meyering  <jim@meyering.net>
82735
82736         * lib/error.c: Correct cpp indentation.
82737
82738 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82739
82740         * modules/free: New file.
82741
82742 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82743
82744         * m4/free.m4: New file.
82745
82746 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82747
82748         * lib/minmax.h (MIN, MAX)
82749         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82750         Omit the special code that used __typeof__, since we worry that
82751         it could be more trouble than it's worth.  See:
82752         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82753         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82754
82755         * lib/free.c: New file.
82756
82757 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82758
82759         Trivial fixes to Makefile.am parts of module listings.
82760         * modules/strstr: Append strstr.h to lib_SOURCES.
82761         * modules/strcase: Likewise, for strcase.h.
82762
82763 2003-09-27  Karl Berry  <karl@gnu.org>
82764
82765         * config/mkinstalldirs: update from automake.
82766
82767 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82768
82769         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82770         (error_tail): Do not loop, reallocating temporary buffer, since
82771         the output cannot contain more wide characters than the input
82772         contains bytes, the size must be big enough already.  This avoids
82773         one potential size overflow calculation.  Check for size overflow
82774         when calculating temporary buffer size.  Free temporary buffer
82775         when done, if it was allocated with malloc; this plugs a memory
82776         leak.  Remove casts from void * to pointers, that are no longer
82777         needed now that we're assuming C89 or better.
82778
82779         Merge error changes from glibc.
82780
82781         * lib/error.c, error.h: Update copyright notice header to match glibc.
82782         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82783         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82784         Disable cancellation while printing error.
82785         * lib/error.h: Prepend __ to parameter names.
82786
82787 2003-09-26  Jim Meyering  <jim@meyering.net>
82788
82789         * lib/error.c (error_tail): Move some declarations
82790         into inner scope where the local variables are used.
82791
82792 2003-09-26  Bruno Haible  <bruno@clisp.org>
82793
82794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82795         stpncpy().
82796         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82797
82798 2003-09-26  Bruno Haible  <bruno@clisp.org>
82799
82800         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82801         (stpncpy): Define as alias for gnu_stpncpy.
82802         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82803
82804 2003-09-25  Simon Josefsson  <jas@extundo.com>
82805
82806         * lib/xgetdomainname.h: New file.
82807         * lib/xgetdomainname.c: New file.
82808
82809 2003-09-25  Simon Josefsson  <jas@extundo.com>
82810             Bruno Haible  <bruno@clisp.org>
82811
82812         * modules/getdomainname: New file.
82813         * modules/xgetdomainname: New file.
82814         * MODULES.html.sh (func_all_modules): Add getdomainname,
82815         xgetdomainname.
82816
82817 2003-09-25  Simon Josefsson  <jas@extundo.com>
82818             Bruno Haible  <bruno@clisp.org>
82819
82820         * m4/getdomainname.m4: New file.
82821
82822 2003-09-25  Simon Josefsson  <jas@extundo.com>
82823             Bruno Haible  <bruno@clisp.org>
82824
82825         * lib/getdomainname.h: New file.
82826         * lib/getdomainname.c: New file.
82827
82828 2003-09-25  Karl Berry  <karl@gnu.org>
82829
82830         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82831
82832 2003-09-25  Karl Berry  <karl@gnu.org>
82833
82834         * config/install-sh: update from automake.
82835
82836 2003-09-25  Bruno Haible  <bruno@clisp.org>
82837
82838         * modules/version-etc-2: New file, from modules/version-etc with
82839         modifications.
82840         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82841
82842 2003-09-25  Bruno Haible  <bruno@clisp.org>
82843
82844         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82845         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82846
82847 2003-09-24  Simon Josefsson  <jas@extundo.com>
82848
82849         * modules/xgethostname: Add xgethostname.h.
82850
82851 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82852
82853         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82854         the buffer associated with the argument.  Bug reported by
82855         Simon Josefsson.
82856
82857 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82858
82859         * README: Document assumptions that 'int' is at least 32 bits
82860         wide, that integer arithmetic is 2's complement without overflow,
82861         that there are no holes in integer values, that adding sizes of
82862         two nonoverlapping objects can't overflow, and that all-bits-zero
82863         yields scalar zero.  Fix spelling and capitalization typos.
82864
82865 2003-09-19  Karl Berry  <karl@gnu.org>
82866
82867         * lib/argp.h: update from libc.
82868
82869 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82870
82871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82872         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82873         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82874
82875 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82876
82877         * gnulib-tool: Use "test -h", not "test -L", for portability
82878         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82879         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82880         (sed_extract_prog): Issue s commands one-by-one, rather than
82881         using \| in one s command.
82882
82883 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82884
82885         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82886         input error, instead of returning NULL the next time we are called
82887         (and therefore losing track of errno).
82888
82889 2003-09-16  Bruno Haible  <bruno@clisp.org>
82890
82891         * gnulib-tool (func_create_testdir): Warn about duplicated
82892         dependencies.
82893
82894 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82895
82896         * modules/argmatch, modules/fatal, modules/obstack,
82897         modules/xalloc, modules/xgethostname: Sort dependencies by
82898         importance, not alphabetically.
82899
82900 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82901
82902         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82903         fails, so that the caller gets the proper errno.
82904
82905         * lib/readutmp.c (read_utmp): Likewise.
82906         Check for fstat error.  Close stream and free storage
82907         when failing.
82908
82909 2003-09-14  Karl Berry  <karl@gnu.org>
82910
82911         * config/srclist.txt (strdup.c): disable for c89 changes.
82912
82913 2003-09-14  Jim Meyering  <jim@meyering.net>
82914
82915         * lib/getloadavg.c: Correct cpp indentation.
82916         * lib/strdup.c: Likewise.
82917         * lib/vasnprintf.c: Likewise.
82918
82919 2003-09-14  Bruno Haible  <bruno@clisp.org>
82920
82921         * modules/fwriteerror: New file.
82922         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82923
82924 2003-09-14  Bruno Haible  <bruno@clisp.org>
82925
82926         * lib/fwriteerror.h: New file.
82927         * lib/fwriteerror.c: New file.
82928
82929 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82930
82931         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82932         modules/xgethostname, modules/xalloc: Depend on exit.
82933
82934 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82935
82936         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82937
82938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82939         and AC_MINIX, too, so that their extensions are available.
82940
82941         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82942         This macro has been superseded by gl_BACKUPFILE.
82943
82944         More patches to assume C89 or better.
82945
82946         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82947
82948         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82949         unconditionally.
82950         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82951         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82952         Include <string.h>, <stdlib.h> unconditionally.
82953         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82954         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82955         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82956         headers or for string.h.
82957         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82958         or strtoul.
82959
82960         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82961         headers.
82962         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82963         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82964         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82965         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82966         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82967         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82968         memcpy, memset.
82969         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82970         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82971         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82972         strtol.
82973         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82974         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82975         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82976         strtoul.
82977
82978 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82979
82980         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82981         * lib/obstack.c [!defined _LIBC]: Likewise.
82982         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82983         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82984         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82985
82986         More changes to assume C89 or better.
82987
82988         * lib/error.c (error_tail): Assume vprintf.
82989
82990         * lib/argmatch.c (getenv): Remove decl.
82991         * lib/progreloc.c (get_full_program_name): Define via prototype.
82992         * lib/setenv.c (clearenv): Likewise.
82993         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82994         needed.
82995         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82996         (malloc, memcpy): Remove decls.
82997         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82998         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82999         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83000         (memcpy): Remove macro.
83001         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83002         (__P): Remove.  All uses removed.
83003         (PTR): Remove.  All uses changed to void *.
83004         (CHAR_BIT, NULL): Remove.
83005         (spaces, zeros, memset_space, memset_zero)
83006         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83007         Remove.
83008         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83009         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83010         Define with prototype.
83011         Remove now-unnecessary prototype decl.
83012         (extra_args_spec): Assume ANSI C.  All uses changed.
83013         (extra_args_spec_iso): Remove.
83014         (my_strftime, emacs_strftimeu): Define via prototype.
83015         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83016         unconditionally.
83017         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83018         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83019         (strtoul, strtol): Remove decls.
83020         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83021         LONG_MAX): Remove.
83022         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83023         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83024         (LOCALE_PARAM_PROTO): New macro.
83025         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83026         (INTERNAL (strtol), strtol): Define with a prototype.
83027         (PARAMS): Remove.  All uses removed.
83028         * lib/tempname.c: Include <string.h> unconditionally.
83029         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83030         * lib/xgethostname.c (main): Define with a prototype.
83031         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83032         Include <stdlib.h> unconditionally.
83033         (calloc, malloc, realloc, free): Remove decls.
83034         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83035         Include <stdlib.h> unconditionally.  Sort include file names.
83036         (strtod): Remove.
83037         (xstrtod): Define with a prototype.
83038         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83039         (strtol, strtoul): Remove decls.
83040
83041 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83042
83043         More patches to assume C89 or better.
83044         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83045         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83046         string.h, memchr, STDC_HEADERS.
83047
83048 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83049
83050         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83051         Include <stdlib.h>, <string.h> unconditionally.
83052         Remove now-unnecessary cast to char *.
83053         * lib/strnlen.c: Include <string.h> unconditionally.
83054         * lib/yesno.c (yesno): Define with a prototype.
83055
83056 2003-09-11  Bruno Haible  <bruno@clisp.org>
83057
83058         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83059
83060 2003-09-10  Jim Meyering  <jim@meyering.net>
83061
83062         * lib/error.c: Correct indentation of cpp directives.
83063
83064 2003-09-10  Bruno Haible  <bruno@clisp.org>
83065
83066         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83067         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83068         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83069         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83070         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83071         <stdlib.h> and <string.h> checks.
83072         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83073         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83074
83075 2003-09-10  Bruno Haible  <bruno@clisp.org>
83076
83077         * lib/strcspn.c: Include <string.h> unconditionally.
83078         * lib/strpbrk.c: Include <string.h> unconditionally.
83079         * lib/strstr.c: Include <string.h> unconditionally.
83080         * lib/unicodeio.c: Include <string.h> unconditionally.
83081         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83082         * lib/unsetenv.c: Likewise.
83083         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83084         * lib/yesno.c: Include <stdlib.h> unconditionally.
83085         (rpmatch): Add prototype.
83086
83087 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83088
83089         More patches to assume C89 or better.
83090         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83091         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83092         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83093         or for string.h.
83094         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83095         stdlib.h.
83096         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83097         C headers.
83098         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83099         string.h.
83100         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83101         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83102         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83103         or for string.h.
83104         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83105         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83106         C headers.
83107         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83108         memcpy.
83109         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83110         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83111         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83112         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83113         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83114         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83115         string.h, free.
83116         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83117         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83118         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83119         C headers, or for string.h.
83120         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83121         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83122         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83123         headers, memory.h, stdlib.h, string.h, strings.h.
83124         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83125         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83126         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83127         strchr.
83128         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83129         headers, memory.h, string.h.
83130         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83131         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83132         free.
83133         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83134         headers.
83135         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83136         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83137         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83138         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83139         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83140
83141 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83142
83143         More K&R removal.
83144
83145         * lib/acosl.c (main): Use a prototype.
83146         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83147         tanl.c: Likewise.
83148
83149         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83150
83151         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83152         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83153         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83154         with a prototype.
83155         * lib/getopt.c (const): Remove macro.
83156         Include <string.h> unconditionally.
83157         (my_index): Remove; all uses changed to strchr.
83158         (strlen): Remove decl.
83159         (exchange): Remove forward decl; no longer needed.
83160         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83161         Define with prototype.
83162         * lib/getopt1.c (const): Remove macro.
83163         (getopt_long, getopt_long_only, main): Define with prototype.
83164
83165         * lib/getugroups.c: Include <string.h> unconditionally.
83166
83167         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83168         (getusershell, setusershell, endusershell, readname, main):
83169         Define with prototypes.
83170
83171         * lib/group-member.c: Include group-member.h first.
83172         Include <stdlib.h> unconditionally.
83173
83174         * lib/hard-locale.c: Include hard-locale.h first.
83175         Include <stdlib.h>, <string.h> unconditionally.
83176
83177         * lib/hash.c (free, malloc): Remove decls.
83178         Include <stdlib.h> unconditionally.
83179
83180         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83181         (getenv): Do not declare.
83182
83183         * lib/idcache.c: Include <string.h> unconditionally.
83184
83185         * lib/long-options.c: Include long-options.h first, to test interface.
83186         Include <stdlib.h> unconditionally.
83187
83188         * lib/makepath.c: Include makepath.h first, to test interface.
83189         Include <stdlib.h> and <string.h> unconditionally.
83190
83191         * lib/linebuffer.c: Include <stdlib.h>.
83192         (free): Remove decl.
83193
83194         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83195         stddef.h. rpl_malloc returns void *, not char *.
83196         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83197         prototype.
83198
83199         * lib/md5.h: Include <limits.h> unconditionally.
83200         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83201         (__P): Remove; all uses removed.
83202         * lib/md5.c: Include "md5.h" first.
83203         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83204         md5_buffer, md5_process_bytes, md5_process_block):
83205         Define with prototypes.
83206         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83207         * lib/sha.c: Include "sha.h" first.
83208         Include <stdlib.h>, <string.h> unconditionally.
83209
83210         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83211         * lib/memcmp.c (__ptr_t): Likewise.
83212         * lib/memrchr.c (__ptr_t): Likewise.
83213         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83214         Include <string.h> unconditionally.
83215         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83216         * lib/memchr.c: Include <stdlib.h> unconditionally.
83217         * lib/memchr.c (LONG_MAX): Remove.
83218         * lib/memrchr.c (LONG_MAX): Likewise.
83219         * lib/memchr.c (__memchr): Define via a prototype.
83220         * lib/memrchr.c (__memrchr): Likewise.
83221         * lib/memcmp.c (__P): Remove, and remove all uses.
83222         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83223         Remove forward decls; no longer needed.
83224         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83225         Use types required by C89 in prototype.
83226
83227         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83228         * lib/savedir.c: Likewise.
83229         * lib/mkdir.c (free): Remove decl.
83230         * lib/rmdir.c (rmdir): Define with a prototype.
83231         * lib/savedir.c: Include savedir.h first, to test interface.
83232
83233         * lib/mktime.c (STDC_HEADERS): Remove.
83234         Include <stdlib.h>, <string.h> unconditionally.
83235
83236         * lib/modechange.c: Include <stdlib.h> unconditionally.
83237         (malloc): Remove decl.
83238
83239         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83240         (free): Remove decl.
83241
83242         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83243         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83244         (This type really should be intptr_t, but that's a C99ism.)
83245         (_obstack_memcpy): Remove: all uses changed to memcpy.
83246         Include <string.h> unconditionally.
83247         (struct obstack): Assume __STDC__ for types of members
83248         chunkfun, freefun, extra_arg.
83249         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83250         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83251         obstack_begin, obstack_specify_allocation,
83252         obstack_specify_allocation_with_arg, obstack_chunkfun,
83253         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83254         Remove unprototyped decls and the macros that use them.
83255         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83256         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83257         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83258         (defined __STDC__ && __STDC__)]:
83259         Remove nonprototyped code.
83260         Include <stdlib.h> unconditionally.
83261         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83262         _obstack_allocated_p, _obstack_free, obstack_free,
83263         _obstack_memory_used, print_and_abort):
83264         Define using prototypes.
83265         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83266         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83267         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83268         obstack_next_free, obstack_object_size, obstack_room) [0]:
83269         Remove unused, unprototyped code.
83270
83271         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83272
83273         * lib/physmem.c (physmem_total, physmem_available, main): Define
83274         with prototypes.
83275
83276         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83277         (main): Define with a prototype.
83278
83279         * lib/posixver.c (getenv): Remove decl.
83280
83281         * lib/putenv.c (malloc): Returns void *, not char *.
83282         Include <string.h> unconditionally.
83283         (strchr, memcpy, NULL): Do not define.
83284
83285         * lib/readtokens.c: Include readtokens.h first, to test interface.
83286         Include <stdlib.h>, <string.h> unconditionally.
83287         (init_tokenbuffer): Define with a prototype.
83288
83289         * lib/regex.c (PARAMS): Remove.  All uses removed.
83290         All uses of _RE_ARGS removed, too.
83291         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83292         unconditionally.
83293         (bzero): Assume memset exists.
83294         (memcmp, memcpy, NULL): Remove.
83295         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83296         char, or assignments to local vars of type signed char.
83297         (init_syntax_once, PREFIX(extract_number_and_incr),
83298         PREFIX(print_partial_compiled_pattern),
83299         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83300         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83301         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83302         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83303         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83304         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83305         wcs_compile_range, byte_compile_range, truncate_wchar,
83306         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83307         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83308         count_mbs_length, wcs_re_match_2_internal,
83309         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83310         PREFIX(alt_match_null_string_p),
83311         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83312         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83313         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83314         now-unnecessary declaration, if any.
83315         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83316         regcomp, regexec):
83317         Remove now-unnecessary casts among pointer types.
83318         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83319
83320         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83321         (free): Remove decl.
83322
83323         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83324
83325         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83326         (free): Remove decl.
83327
83328         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83329         * lib/xgetcwd.c: Likewise.
83330
83331         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83332         (free): Remove decl.
83333
83334         * lib/strchrnul.c (strchrnul): Define with a prototype.
83335         Fix bug: c_in was not converted to char before searching.
83336
83337         The following changes are not K&R related:
83338
83339         * lib/group-member.h: Include <sys/types.h>, so that this file is
83340         self-contained.
83341         * lib/makepath.h: Likewise.
83342
83343         * lib/getusershell.c (readname, default_index, line_size, readname):
83344         Use size_t, not int, for sizes.
83345         (readname): If the size overflows, report an error instead of
83346         looping forever.
83347
83348 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83349
83350         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83351         libc.
83352
83353 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83354
83355         * README: New section: portability guidelines.
83356
83357 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83358
83359         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83360         C89 spec.
83361
83362 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83363
83364         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83365
83366 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83367
83368         Assume C89 or better; remove K&R cruft.
83369         A few of these changes were first proposed by Derek Robert Price
83370         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83371
83372         * lib/addext.c: Include <string.h> unconditionally.
83373         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83374         Don't declare getenv or malloc.
83375
83376         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83377         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83378         (NULL): Remove.
83379         (find_stack_direction, alloca): Use prototypes.
83380
83381         * lib/atexit.c (atexit): Define using a prototype.
83382
83383         * lib/basename.c, dirname.c, stripslash.c:
83384         Include <string.h> unconditionally.
83385
83386         * lib/bcopy.c: Include <stddef.h>.
83387         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83388
83389         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83390
83391         * lib/error.h (error, error_at_line, error_print_progname)
83392         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83393         * lib/error.c: Include error.h first, to check interface.
83394         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83395         (VA_START): Remove; all uses changeed to va_start.
83396         (exit, strerror): Remove decls.
83397         (error_print_progname): Prototype uncondionally.
83398         Don't include <errno.h>; no longer needed.
83399         (private_strerror): Remove.
83400         (error_tail): Always define.
83401         (error, error_at_line): Assume C89 or better; always use prototypes.
83402         * lib/fatal.c: Include "fatal.h" first, to test interface.
83403         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83404         (VA_START): Remove; all uses changed to va_start.
83405         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83406         this case.
83407         (exit): Remove decl.
83408         (fatal): Prototype unconditionally.  Assume va_start works.
83409         Abort at end, to pacify gcc.
83410
83411         * lib/euidaccess.c (main): Define with a prototype.
83412
83413         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83414
83415         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83416
83417         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83418         prototypes.
83419         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83420         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83421         (getenv): Remove decl.
83422         (fnmatch): Define using a prototype.
83423         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83424         (FCT): Define using a prototype.
83425
83426         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83427
83428         * lib/gethostname.c: Include <stddef.h>.
83429         (gethostname): Define with prototype.  Length is size_t, not int.
83430
83431 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83432
83433         Assume C89 or better; remove K&R cruft.
83434         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83435         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83436         string.h, getenv, malloc.
83437         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83438         headers.
83439         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83440         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83441         do not check for strerror.
83442         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83443         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83444         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83445         do not check for doprnt or vprintf.
83446         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83447         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83448
83449 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83450
83451         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83452         getversion.c should have been removed then, but was accidentally
83453         preserved.
83454
83455         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83456         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83457
83458 2003-09-08  Karl Berry  <karl@gnu.org>
83459
83460         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83461                 config, forget about prep.
83462
83463         * config/depcomp, missing: update from automake.
83464
83465 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83466
83467         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83468         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83469
83470 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83471
83472         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83473         copy_tm_result.  Bug reported by Simon Josefsson in
83474         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83475
83476 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83477
83478         * m4/time_r.m4: New file.
83479         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83481         is. Check for timegm declaration.
83482         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83483         Do not check for gmtime_r.
83484         Replace mktime if __mktime_internal does not exist and if mktime
83485         hasn't been replaced already.
83486
83487 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83488
83489         * lib/time_r.c, lib/time_r.h: New files.
83490
83491         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83492         __localtime_r.
83493         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83494         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83495
83496         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83497         __gmtime_r.
83498         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83499         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83500         Include <time_r.h>.
83501
83502         * lib/timegm.c: Switch to glibc implementation, with the following
83503         changes:
83504         [defined HAVE_CONFIG_H]: Include <config.h>.
83505         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83506         (__mktime_internal) [!defined _LIBC]: New decl.
83507         (__gmtime_r) [!defined _LIBC]: New macro and function.
83508         (timegm): Use a prototype, since gnulib assumes C89.
83509         Do not bother declaring tmp to be const, as it's not really usefu.
83510         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83511         (timegm): Declare only if HAVE_DECL_TIMEGM.
83512
83513 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83514
83515         * MODULES.html.sh (func_all_modules): Add time_r.
83516         * modules/time_r: New file.
83517         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83518         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83519
83520 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83521
83522         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83523         Bug reported by Lute Kamstra in
83524         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83525
83526         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83527         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83528         course with correspondingly smaller numbers for tomorrow and
83529         yesterday.  From Tadayoshi Funaba.  Originally installed into
83530         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83531         coreutils merge?).
83532
83533 2003-08-31  Simon Josefsson  <jas@extundo.com>
83534
83535         * modules/timegm: New file.
83536         * MODULES.html.sh (func_all_modules): Add timegm.
83537
83538 2003-08-31  Simon Josefsson  <jas@extundo.com>
83539
83540         * m4/timegm.m4: New file.
83541
83542 2003-08-31  Simon Josefsson  <jas@extundo.com>
83543
83544         * lib/timegm.h: New file.
83545         * lib/timegm.c: New file.  Based on
83546         wget-1.8.2/src/http.c:mktime_from_utc.
83547
83548 2003-08-31  Karl Berry  <karl@gnu.org>
83549
83550         * lib/argp.h: update from libc.
83551
83552 2003-08-28  Bruno Haible  <bruno@clisp.org>
83553
83554         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83555         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83556         followed by '#define fnmatch fnmatch_posix' gives an error.
83557
83558 2003-08-28  Bruno Haible  <bruno@clisp.org>
83559
83560         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83561         warning on QNX, which defines O_BINARY to 000000.
83562
83563 2003-08-27  Jim Meyering  <jim@meyering.net>
83564
83565         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83566         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83567         would fail after 32.  Reported by Danny Levinson.  Details here:
83568         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83569
83570 2003-08-24  Bruno Haible  <bruno@clisp.org>
83571
83572         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83573         MSVC7 <stdio.h> is included later.
83574
83575 2003-08-22  Simon Josefsson  <jas@extundo.com>
83576
83577         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83578
83579 2003-08-20  Karl Berry  <karl@gnu.org>
83580
83581         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83582
83583 2003-08-20  Bruno Haible  <bruno@clisp.org>
83584
83585         * modules/progname: New file.
83586         * MODULES.html.sh (func_all_modules): Add progname.
83587
83588 2003-08-20  Bruno Haible  <bruno@clisp.org>
83589
83590         * lib/progname.h: New file, from GNU gettext.
83591         * lib/progname.c: New file, from GNU gettext.
83592         * lib/progreloc.c: New file, from GNU gettext.
83593
83594 2003-08-19  Jim Meyering  <jim@meyering.net>
83595
83596         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83597         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83598
83599 2003-08-19  Bruno Haible  <bruno@clisp.org>
83600
83601         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83602         more.
83603
83604 2003-08-19  Bruno Haible  <bruno@clisp.org>
83605
83606         * lib/xstrdup.c: Assume <string.h> exists.
83607
83608 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83609
83610         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83611         in makefile rules.
83612
83613 2003-08-18  Jim Meyering  <jim@meyering.net>
83614
83615         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83616         * m4/lib-ld.m4: Likewise.
83617
83618 2003-08-18  Jim Meyering  <jim@meyering.net>
83619
83620         * lib/setenv.h: Indent nested cpp directive.
83621         * lib/vasnprintf.c: Remove trailing blanks.
83622
83623 2003-08-17  Simon Josefsson  <jas@extundo.com>
83624
83625         * modules/xstrndup: New file.
83626         * MODULES.html.sh (func_all_modules): Add xstrndup.
83627
83628 2003-08-17  Simon Josefsson  <jas@extundo.com>
83629
83630         * modules/argp: Fix autoconf macro name. Add more dependencies.
83631
83632 2003-08-17  Simon Josefsson  <jas@extundo.com>
83633
83634         * m4/xstrndup.m4: New file.
83635
83636 2003-08-17  Simon Josefsson  <jas@extundo.com>
83637
83638         * m4/argp.m4: New file.
83639
83640 2003-08-17  Simon Josefsson  <jas@extundo.com>
83641             Bruno Haible  <bruno@clisp.org>
83642
83643         * lib/xstrndup.h: New file.
83644         * lib/xstrndup.c: New file.
83645
83646 2003-08-17  Bruno Haible  <bruno@clisp.org>
83647
83648         * modules/strndup (Files, Include): Add lib/strndup.h.
83649
83650 2003-08-17  Bruno Haible  <bruno@clisp.org>
83651
83652         * modules/euidaccess (Files): Add lib/euidaccess.h.
83653
83654 2003-08-17  Bruno Haible  <bruno@clisp.org>
83655
83656         * lib/strndup.h: New file.
83657
83658 2003-08-17  Bruno Haible  <bruno@clisp.org>
83659
83660         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83661         like AC_GNU_SOURCE.
83662         * modules/extensions (configure.ac): Comment out the invocation of
83663         gl_USE_SYSTEM_EXTENSIONS.
83664
83665 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83666
83667         Merges from coreutils, etc.
83668         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83669         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83670         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83671         fixing a typo.
83672         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83673         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83674
83675 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83676
83677         Document merge from coreutils.
83678         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83679         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83680         * modules/utime: Add m4/utimes-null.m4.
83681
83682 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83683
83684         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83685         space, undoing this 2003-08-12 change:
83686         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83687
83688 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83689
83690         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83691         strtoul.c from libc, undoing this 2003-08-12 change:
83692         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83693
83694 2003-08-16  Jim Meyering  <jim@meyering.net>
83695
83696         Merges from coreutils.
83697         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83698         prefix.  Adjust cache variables similarly.  Create 500 rather than
83699         just 300 files, to exercise bug on Darwin6.5, too.
83700         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83701         $missing_dir.
83702         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83703         AM_SYS_POSIX_TERMIOS.
83704         Reported by mkc@mathdogs.com.
83705         Also change use of $am_cv_sys_posix_termios
83706         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83707         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83708         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83709         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83710         in /proc/mounts until it finds one with matching device number.  This
83711         is unnecessary when the FILE argument *is* a mount point.  No stat call
83712         is necessary in that case.  So, disable the statvfs-testing code on
83713         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83714         as RedHat bug# 84846.
83715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83716         to 1MB, so as not to render systems with no stack size limit (e.g.,
83717         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83718         Include <unistd.h>.  On some systems,
83719         it is required for the definition of _SC_PAGESIZE.
83720
83721 2003-08-16  Jim Meyering  <jim@meyering.net>
83722
83723         Merge from coreutils.
83724         * lib/xstrtoimax.c: #else #if -> #elif.
83725         * lib/xstrtoumax.c: Likewise.
83726
83727 2003-08-16  Jim Meyering  <jim@meyering.net>
83728
83729         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83730         * m4/utimes.m4: Removed.
83731         * m4/utimes-null.m4: Renamed from utimes.m4.
83732
83733         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83734         to 1MB, so as not to render systems with no stack size limit (e.g.,
83735         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83736         Include <unistd.h>.  On some systems,
83737         it is required for the definition of _SC_PAGESIZE.
83738
83739 2003-08-16  Jim Meyering  <jim@meyering.net>
83740         and Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         Merges from coreutils, etc.
83743
83744         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83745         using the latest version from cvs.  This avoids problems with #line
83746         directives using a vendor (Sun) compiler.
83747         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83748         Don't set GETGROUPS_LIB here; now it's
83749         done via getgroups.m4's wrapper function.
83750         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83751         rather than just in sh-util/configure.in, so that the
83752         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83753         same.
83754         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83755         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83756         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83757         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83758         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83759         Remove code that is now done by the newly-required macros.
83760         Append $(EXEEXT) to DF_PROG.
83761         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83762         Do not invoke or require the following here,
83763         since prereq.m4 or some gnulib .m4 now does this for us:
83764         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83765         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83766         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83767         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83768         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83769         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83770         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83771         AC_FUNC_OBSTACK.
83772         Do not replace the following functions, as this is now the job
83773         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83774         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83775         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83776         atexit getpass, strdup, getpagesize.
83777         Replace 'raise'.
83778         Do not check for the following functions, as this is now the job
83779         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83780         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83781         setregid.
83782         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83783         Check for sys/sysctl.h.
83784         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83785         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83786         of checking for ssize_t ourselves.
83787
83788         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83789         Require every macro that gnulib/modules/* suggests for us.
83790         (jm_PREREQ_ADDEXT): New macro.
83791         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83792         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83793
83794         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83795         (gl_PHYSMEM): Use it.
83796         Also check for `table' function.
83797         Check for new headers and functions.
83798         Add check for sys/sysmp.h.
83799         With suggestions from Kaveh Ghazi.
83800         Ignore headers that are present but cannot be compiled.  This
83801         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83802         C 5.4.
83803
83804 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83805
83806         Document merge from coreutils.
83807         * modules/userspec: Depend on posixver.
83808         * modules/strftime: Depend on tzset.
83809
83810 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83811
83812         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83813         rather than tab, after '#' in shell-script copyright notices.
83814         Suggested by Bruno Haible.
83815
83816 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83817
83818         * config/srclist-update: Use three spaces, rather than tab, after '#'
83819         in shell-script copyright notices.  Suggested by Bruno Haible.
83820         Remove unnecessary parenthesization in regular expression.
83821
83822 2003-08-15  Jim Meyering  <jim@meyering.net>
83823
83824         Merge from coreutils.
83825         * lib/xgethostname.c: Include <stdlib.h>.
83826         (xghostname): Don't exit for anything other than memory-related
83827         failure; just return NULL.
83828         * lib/userspec.c: Include "posixver.h".
83829         (parse_user_spec): Accept `.' as a separator only
83830         in pre-POSIX-200112 mode.
83831         * lib/strtoimax.c: Use #elif rather than #else #if.
83832         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83833         Remove function, now that we can rely on a working tzset function.
83834         [!_LIBC]: Ensure that the required autoconf test has been run.
83835         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83836         Use underlying_strftime for %r.
83837         * lib/sha.c: Merge in some clean-up and optimization changes from
83838         glibc.
83839         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83840         Ensure that it is a multiple of 64.
83841         Rearrange loop exit tests so as to avoid performing an
83842         additional fread after encountering an error or EOF.
83843         * lib/realloc.c: Update copyright date.
83844
83845 2003-08-15  Jim Meyering  <jim@meyering.net>
83846         and Paul Eggert  <eggert@twinsun.com>
83847
83848         Merge from coreutils.
83849         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83850         member but strut utmpx does not.  Needed for AIX 4.3.3.
83851         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83852
83853 2003-08-15  Jim Meyering  <jim@meyering.net>
83854         and Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         Merges from coreutils, etc.
83857         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83858         Require gl_FUNC_TZSET_CLOBBER.
83859         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83860         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83861         members.
83862
83863 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83864
83865         Help the merge from coreutils.
83866         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83867         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83868         * m4/tzset.m4: Use it too.
83869
83870 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83871
83872         * modules/tzset: New file.
83873
83874 2003-08-14  Jim Meyering  <jim@meyering.net>
83875
83876         Merges from coreutils.
83877         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83878         variable names, rather than @FNMATCH_H@.
83879         * modules/alloca: Likewise for $(ALLOCA_H).
83880
83881         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83882         the three copies of the literal target, `fnmatch.h'.
83883         * modules/alloca (alloca.h): Likewise.
83884
83885 2003-08-14  Jim Meyering  <jim@meyering.net>
83886
83887         Merge from coreutils.
83888         * m4/tzset.m4: New file.
83889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83890         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83891         otherwise, AIX 5.1 systems would end up using the latter.
83892         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83893         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83894         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83895         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83896
83897 2003-08-14  Jim Meyering  <jim@meyering.net>
83898
83899         Merge from coreutils.
83900         * lib/obstack.h: Whitespace changes.
83901         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83902         and xcalloc return values.
83903         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83904         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83905         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83906         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83907         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83908         error from mntctl.
83909         Use mntctl's return value to drive the entry-processing loop, since
83910         we can't rely on the value of the vmt_length member in the last
83911         entry.  On some systems doing so could result in exhausting
83912         virtual memory.  Based in part on a patch from Mike Jetzer.
83913
83914 2003-08-14  Jim Meyering  <jim@meyering.net>
83915         and Paul Eggert  <eggert@twinsun.com>
83916
83917         Merges from coreutils, plus other fixes.
83918         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83919         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83920         for credits and details.  Thanks to Kaveh Ghazi for helping
83921         to keep these files in sync.
83922         (ARRAY_SIZE): Define it.
83923         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83924         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83925         (memcasecmp): Don't assume size_t fits in unsigned int.
83926         Remove casts and duplicate code.
83927         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83928         (memcpy): Remove definition.
83929         Merge in some clean-up and optimization changes from glibc.
83930         [BLOCKSIZE]: Move definition to top of file.
83931         Ensure that it is a multiple of 64.
83932         Rearrange loop exit tests so as to avoid performing an
83933         additional fread after encountering an error or EOF.
83934         * lib/md5.h (md5_uintptr): Define.
83935         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83936         return to the initial working directory.  Preserve errno
83937         for caller.
83938         * lib/idcache.c: Include "xalloc.h".
83939         (xmalloc, xrealloc): Remove decls.
83940         (getuser): Remove casts no longer required in C89.
83941         * lib/human.c: Include stdio.h, for sprintf.
83942         * lib/group-member.c: Include "xalloc.h".
83943         (xmalloc, xrealloc): Remove decls.
83944         (get_group_info): Remove casts no longer required in C89.
83945         * lib/getusershell.c (readname): Remove casts no longer required in
83946         C89.
83947         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83948         * lib/getline.c: Whitespace fix, from coreutils.
83949
83950 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83951
83952         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83953         Check for isascii.
83954
83955         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83956         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83957         Undo previous (whitespace-only) change.
83958
83959 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83960
83961         * lib/exclude.c: Include <ctype.h>
83962         (IN_CTYPE_DOMAIN): New macro.
83963         (is_space): New fn.
83964         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83965         and empty lines.
83966
83967         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83968         Undo previous (whitespace-only) change.
83969
83970 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83971
83972         * config/srclist-update: Change update back to the old behavior,
83973         leaving whitespace alone.  Use one 'sed' command rather than a
83974         pipeline.
83975         (fixlicense): Now a variable, not a function.
83976         (remove_trailing_blanks): Remove.
83977         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83978         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83979         Undo previous (whitespace-only) change.
83980
83981 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83982
83983         Merge from coreutils.
83984         * modules/euidaccess: Add lib_SOURCES, include for new
83985         file euidaccess.h
83986
83987 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83988
83989         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83990         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83991         Normalize leading white space and remove trailing white space.
83992
83993         Merge from coreutils
83994         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83995
83996         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83997         0.12.1.  These files are now being upgraded automatically by
83998         ../config/srclist-update.
83999
84000 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84001
84002         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84003         Normalize leading white space and remove trailing white space.
84004         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84005         notice, as per ../config/srclist-update.
84006
84007         Merge from coreutils.
84008         * lib/euidaccess.h: New file.
84009         * lib/euidaccess.c: Include it.
84010         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84011         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84012         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84013
84014 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84015
84016         * config/srclist-update: Add copyright notice.
84017         (remove_id_lines, remove_trailing_blanks): New constants.
84018         (fixfile): Use them to normalize spacing a bit in copied files.
84019         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84020         Normalize leading white space and remove trailing white space.
84021
84022         * config/texinfo.tex: Sync with texinfo.
84023
84024         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84025         strtoul.c from libc, to merge coreutils whitespace changes.
84026
84027         * config/srclist.txt: Get the following m4 files from gettext:
84028         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84029         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84030         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84031         wint_t.m4.
84032
84033 2003-08-12  Karl Berry  <karl@gnu.org>
84034
84035         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84036         been made.
84037
84038 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84039
84040         * modules/gnu-source, m4/gnu-source.m4:
84041         Remove; we're assuming Autoconf 2.54 or later now.
84042         Suggested by Bruno Haible.
84043         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84044
84045 2003-08-11  Bruno Haible  <bruno@clisp.org>
84046
84047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84048
84049 2003-08-11  Bruno Haible  <bruno@clisp.org>
84050
84051         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84052         (vasnprintf): Use it instead of wcslen.
84053
84054 2003-08-11  Bruno Haible  <bruno@clisp.org>
84055
84056         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84057         value to ensure that _Bool promotes to int. Use #define for _Bool when
84058         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84059
84060 2003-08-10  Karl Berry  <karl@gnu.org>
84061
84062         * lib/regex.h: update from libc (whitespace fix).
84063
84064 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84065
84066         Merge some files from coreutils.  These changes were
84067         originally made by Jim Meyering.
84068         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84069         many older Unixes require this.
84070         * lib/alloca.c (alloca): Remove cast to argument of free;
84071         no longer needed in C89.
84072         * lib/alloca_.h, regex.h: Fix white space to match
84073         what GNU indent does.
84074
84075 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84076
84077         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84078         apparently Emacs's Unicode mode got confused before my 2003-08-05
84079         checkin.
84080
84081 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84082
84083         * m4/extensions.m4: New file.
84084         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84085         Require gl_USE_SYSTEM_EXTENSIONS.
84086         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84087         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84088
84089 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84090
84091         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84092         * modules/extensions, modules/gnu-source: New files.
84093         * modules/timespec, modules/unlocked-io: Depend on extensions.
84094
84095 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84096
84097         * modules/restrict: New file.
84098         * MODULES.html.sh (func_all_modules): Add restrict.
84099         * modules/regex: Depend on restrict.
84100
84101 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84102
84103         * m4/restrict.m4: New file.
84104         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84105
84106 2003-08-07  Bruno Haible  <bruno@clisp.org>
84107
84108         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84109         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84110
84111 2003-08-07  Bruno Haible  <bruno@clisp.org>
84112
84113         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84114         makes the module 'getndelim2' compatible with the module 'getline'.
84115
84116 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84117
84118         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84119         byte with "\201" to avoid glitches when editing that source file
84120         with multi-gnome-terminal.
84121
84122 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84123
84124         * lib/bumpalloc.h: Remove.
84125
84126 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84127
84128         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84129         * modules/bumpalloc: Remove.
84130
84131 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84132
84133         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84134         GNU coding style.
84135
84136         Merge from coreutils.
84137         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84138         1. From glibc.
84139         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84140         from Karl Berry, implemented by Jim Meyering.
84141         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84142         from Dmitry V. Levin.
84143         Remove anachronistic cast of xrealloc.
84144         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84145         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84146         type. Otherwise, it wouldn't compile with at least /bin/cc on
84147         ymp-cray-unicos9.0.2.X.
84148         Combine two mostly-identical uses of alloca into one.
84149         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84150
84151 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84152
84153         [From Emacs.]
84154
84155         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84156         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84157         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84158         obsolete NLIST_NAME_UNION.
84159         [__GNU__]: Undef BSD and FSCALE.
84160         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84161
84162 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84163
84164         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84165         an enum type, so that it's guaranteed to promote to int.  See:
84166         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84167
84168 2003-08-03  Karl Berry  <karl@gnu.org>
84169
84170         * config/depcomp: update from automake.
84171
84172 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84173
84174         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84175         (strerror): Don't assume that a printable int fits in 14 bytes.
84176
84177 2003-07-31  Bruno Haible  <bruno@clisp.org>
84178
84179         * modules/getpass-gnu: New file.
84180         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84181
84182 2003-07-31  Bruno Haible  <bruno@clisp.org>
84183
84184         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84185
84186 2003-07-24  Karl Berry  <karl@gnu.org>
84187
84188         * config/missing: update from automake.
84189
84190 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84191             Bruno Haible  <bruno@clisp.org>
84192
84193         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84194         * lib/getline.c (getline, getdelim): Likewise.
84195         Remove _GNU_SOURCE define; now it's defined in config.h through
84196         m4/getline.m4.
84197
84198 2003-07-23  Karl Berry  <karl@gnu.org>
84199
84200         * config/config.sub: update from prep.
84201
84202 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84203
84204         * modules/xalloc (Depends-on): Add exitfail.
84205         * modules/xmemcoll: Likewise.
84206
84207 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84208
84209         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84210         over-parenthesization in macros.
84211
84212         Sync with coreutils.
84213
84214         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84215         required by C99.
84216
84217         Use `exit_failure' for xalloc and xmemcoll instead of their own
84218         private exit-failure variables.
84219         * lib/xalloc.h (xalloc_exit_failure): Remove.
84220         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84221         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84222         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84223         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84224         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84225
84226 2003-07-20  Jim Meyering  <jim@meyering.net>
84227
84228         * modules/closeout (Depends-on): Add exitfail.
84229         Suggestion from Bruno Haible.
84230
84231 2003-07-19  Karl Berry  <karl@gnu.org>
84232
84233         * config/config.sub: update from prep.
84234
84235 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84236
84237         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84238         Remove.
84239         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84240         to test that it can stand by itself.  Include "exitfail.h".
84241         Clients should set exit_failure instead.
84242         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84243
84244 2003-07-18  Bruno Haible  <bruno@clisp.org>
84245
84246         * modules/getndelim2: New file.
84247         * modules/getline: Share files with module getndelim2.
84248         * modules/getnline: Depend on getndelim2 instead of sharing files with
84249         it. Add getnline.c to lib_SOURCES.
84250         * MODULES.html.sh (func_all_modules): Add getndelim2.
84251
84252 2003-07-18  Bruno Haible  <bruno@clisp.org>
84253
84254         * m4/getndelim2.m4: New file.
84255         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84256         invoke gl_PREREQ_GETNDELIM2.
84257         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84258         gl_PREREQ_GETNDELIM2.
84259         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84260         gl_GETNDELIM2.
84261
84262 2003-07-18  Bruno Haible  <bruno@clisp.org>
84263
84264         * lib/getndelim2.h: New file.
84265         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84266         getndelim2.h.
84267         (getndelim2): Make non-static. Change return type to ssize_t.
84268         * lib/getline.h: Change argument names.
84269         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84270         * lib/getnline.c: Include getndelim2.h.
84271
84272 2003-07-18  Andreas Schwab  <schwab@suse.de>
84273
84274         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84275
84276 2003-07-17  Karl Berry  <karl@gnu.org>
84277
84278         * config/config.sub: update from prep.
84279
84280 2003-07-17  Bruno Haible  <bruno@clisp.org>
84281
84282         * modules/getnline: New file.
84283         * modules/getline: Add lib/getndelim2.c to source file list.
84284         * MODULES.html.sh (func_all_modules): Add getnline.
84285
84286 2003-07-17  Bruno Haible  <bruno@clisp.org>
84287
84288         * m4/getnline.m4: New file.
84289
84290 2003-07-17  Bruno Haible  <bruno@clisp.org>
84291
84292         * m4/Makefile.am.in: Remove file.
84293         * m4/Makefile.am: Remove file.
84294         * m4/Makefile.in: Remove file.
84295
84296 2003-07-17  Bruno Haible  <bruno@clisp.org>
84297
84298         * lib/getnline.h: New file.
84299         * lib/getnline.c: New file.
84300         * lib/getndelim2.c: New file, extracted from getline.c.
84301         (getndelim2): Renamed from getdelim2, with added nmax argument.
84302         * lib/getline.c: Include getndelim2.c.
84303         (getdelim2): Moved out to getndelim2.c.
84304         (getline, getdelim): Update.
84305
84306 2003-07-17  Bruno Haible  <bruno@clisp.org>
84307
84308         * lib/Makefile.am: Remove file.
84309         * lib/Makefile.in: Remove file.
84310
84311 2003-07-17  Bruno Haible  <bruno@clisp.org>
84312
84313         * configure.in: Remove file.
84314         * Makefile.in: Remove file.
84315
84316 2003-07-17  Bruno Haible  <bruno@clisp.org>
84317
84318         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84319
84320 2003-07-16  Karl Berry  <karl@gnu.org>
84321
84322         * config/srclist-update: was running fixlicense twice, which caused
84323                 texinfo.tex to be nullified for some reason.  Simplify,
84324                 $gplsrc is no longer needed as far as I can see?
84325
84326 2003-07-16  Jim Meyering  <jim@meyering.net>
84327
84328         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84329
84330 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84331
84332         * config/srclist.txt: Get the following files from gettext-runtime/intl
84333         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84334         ref-del.sin.  From Bruno Haible.
84335         * config/srclist-update (fixfile): Change grep pattern again, since the
84336         previous fix didn't work (there was another trailing $).  Use
84337         '[$]' to escape the $s.
84338
84339 2003-07-15  Karl Berry  <karl@gnu.org>
84340
84341         * lib/vasnprintf.c: update from gettext.
84342
84343 2003-07-15  Karl Berry  <karl@gnu.org>
84344
84345         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84346         gets expanded when surrounded by '$'.
84347
84348 2003-07-15  Jim Meyering  <jim@meyering.net>
84349
84350         * modules/save-cwd: Don't depend on error.  From Derek Price.
84351
84352 2003-07-15  Jim Meyering  <jim@meyering.net>
84353
84354         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84355
84356 2003-07-14  Simon Josefsson  <jas@extundo.com>
84357
84358         * modules/mempcpy: New file.
84359         * MODULES.html.sh (func_all_modules): Add mempcpy.
84360
84361 2003-07-14  Simon Josefsson  <jas@extundo.com>
84362
84363         * m4/mempcpy.m4: New file.
84364
84365 2003-07-14  Simon Josefsson  <jas@extundo.com>
84366
84367         * lib/mempcpy.h: New file.
84368         * lib/mempcpy.c: New file.
84369
84370 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84371
84372         * modules/getdate, modules/posixtm: Depend on mktime.
84373
84374 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84375
84376         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84377         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84378         unicodeio.c, unicodeio.h, unlocked-io.h:
84379         Switch from LGPL to GPL.
84380
84381 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84382
84383         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84384         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84385         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84386         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84387         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84388         updated automatically by ../config/srclist-update.  This changes
84389         their license from LPGL to GPL.
84390
84391 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84392
84393         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84394         assumed to refer to the root of the most recent stable gettext version.
84395         * config/srclistvars.sh: Add defaults for eggert.
84396         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84397         Match "This program" as well as "The program".  This is needed
84398         for gettext.
84399
84400 2003-07-14  Jim Meyering  <jim@meyering.net>
84401
84402         Don't emit diagnostics.  Let callers do that.
84403         * lib/save-cwd.c: Don't include "error.h".
84404         (save_cwd): Don't call error.  Ensure that errno is valid
84405         when returning nonzero.
84406
84407         * lib/save-cwd.h (restore_cwd): Update prototype.
84408         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84409         Simplify.  Don't call error upon failure.  Let callers do that.
84410         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84411         when auditing is enabled.  But don't bother updating the #if.
84412
84413 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84414
84415         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84416         it breaks C++ compilation.
84417         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84418
84419 2003-07-10  Simon Josefsson  <jas@extundo.com>
84420
84421         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84422
84423 2003-07-10  Jim Meyering  <jim@meyering.net>
84424
84425         * m4/clock_time.m4: Remove trailing blank.
84426         * m4/intmax_t.m4: Likewise.
84427
84428 2003-07-10  Jim Meyering  <jim@meyering.net>
84429
84430         * lib/vasnprintf.c: Remove trailing blanks.
84431         Make cpp indentation consistent.
84432
84433 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84434
84435         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84436         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84437         Switch from LGPL to GPL.
84438
84439 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84440
84441         * config/srclist.txt: Sort sublists.  Add
84442         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84443         that differ from gnulib for one reason or another; we'd like this list
84444         to be smaller but for now let's document what we have.
84445
84446 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84447
84448         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84449         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84450         and sweeter "eval x=$x".
84451         * config/srclist.txt: Get lib/argp* from glibc.
84452
84453 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84454
84455         * lib/mktime.c: Fix some boundary cases and remove need for floating
84456         point.
84457
84458         Issue a compile-time diagnostic if time_t is floating point, or if
84459         two's complement arithmetic is not in effect, or if arithmetic
84460         right shift does not propagate the sign.  These assumptions were
84461         all in the original code but they weren't checked.
84462
84463         (TIME_T_MIDPOINT, verify): New macros.
84464         (__isleap): Remove; it has integer overflow problems.
84465         (leapyear): New function, without those problems.
84466         (ydhms_tm_diff): Remove; splitting into two parts.
84467         (ydhms_diff): New function, containing the arithmetic part of
84468         the old ydhms_tm_diff function.  Issue a compile-time
84469         diagnostic if we are not using C99 integer division.
84470         Avoid casts when possible.
84471         (guess_time_tm): New function, containing the checking part of
84472         the old ydhms_tm_diff function.  Return the new value, rather than
84473         the difference between it and the old.  Accept a new argument T
84474         so that *T specifies the old value.  Check for overflow in the result.
84475
84476         (__mktime_internal): Use a time_t offset, not a long int offset.
84477         This undoes the 2003-06-04 change, which is no longer needed now
84478         that we have better overflow checking.
84479         (localtime_offset): Likewise.
84480
84481         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84482         and long are 64-bit but int is only 32-bit.
84483         (ydhms_diff): Use long int to store year1 and yday1.
84484         Issue a compile-time diagnostic if long int is not wide enough.
84485
84486         (__mktime_internal): Use long int to store adjusted year and yday.
84487         Use plain C rather than preprocessor commands, if that doesn't
84488         affect efficiency.
84489         Check for overflow (and try to repair) after each probe
84490         rather than checking only at the very end.  This avoids some bugs
84491         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84492         does not equal GMT offset at maximum time).
84493         Use integer to check for overflow rather than floating point; this
84494         is more portable to non-IEEE hosts, and is a tad faster.
84495         When we detect that we are oscillating between two values,
84496         don't check whether tm_isdst has the requested value, since
84497         we already know the answer.  When tm_isdst has the wrong value,
84498         use a different heuristic to find the right one, based on the
84499         extreme values actually observed in practice in tz2003a,
84500         rather than the (overly optimistic) "previous 3 calendar quarters".
84501
84502         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84503         "T const" to accommodate glibc style.
84504         (check_result): Use less-confusing report format.  "long" -> "long int.
84505         (main): Likewise.
84506         Don't loop if the iteration overflows time_t.
84507         Allow a negative step in the iteration.
84508
84509 2003-07-06  Karl Berry  <karl@gnu.org>
84510
84511         * config/depcomp: update from automake.
84512         * config/config.sub: update from prep.
84513
84514 2003-07-03  Karl Berry  <karl@gnu.org>
84515
84516         * config/config.guess: update from prep.
84517
84518 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84519
84520         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84521         xreadlink.c now includes it unconditionally.
84522
84523 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84524
84525         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84526         having it depend on HAVE_SYS_TYPES_H.
84527
84528 2003-07-01  Bruno Haible  <bruno@clisp.org>
84529
84530         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84531         <sys/types.h> should be sufficient.
84532         Reported by Paul Eggert.
84533
84534 2003-06-26  Karl Berry  <karl@gnu.org>
84535
84536         * config/depcomp: update from automake.
84537
84538 2003-06-26  Bruno Haible  <bruno@clisp.org>
84539
84540         * modules/human: Depend on module stdbool.
84541
84542 2003-06-25  Bruno Haible  <bruno@clisp.org>
84543
84544         * modules/readlink: New file.
84545         * modules/xreadlink: Depend on it.
84546         * MODULES.html.sh (func_all_modules): Add readlink.
84547
84548 2003-06-25  Bruno Haible  <bruno@clisp.org>
84549
84550         * m4/readlink.m4: New file.
84551
84552 2003-06-25  Bruno Haible  <bruno@clisp.org>
84553
84554         * lib/readlink.c: New file.
84555
84556 2003-06-22  Karl Berry  <karl@gnu.org>
84557
84558         * config/srclist.txt: update mkinstalldirs from automake.
84559         * config/mkinstalldirs: update.
84560
84561 2003-06-22  Bruno Haible  <bruno@clisp.org>
84562
84563         Portability to mingw32.
84564         * m4/ssize_t.m4: New file, from GNU gettext.
84565         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84566         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84567
84568 2003-06-22  Bruno Haible  <bruno@clisp.org>
84569
84570         * modules/safe-read: Add m4/ssize_t.m4.
84571         * modules/xreadlink: Add m4/ssize_t.m4.
84572
84573 2003-06-20  Bruno Haible  <bruno@clisp.org>
84574
84575         Assume C89, so PARAMS isn't needed.
84576         * lib/unicodeio.h (PARAMS): Remove.
84577         * lib/unicodeio.c: Don't use PARAMS.
84578
84579 2003-06-18  Karl Berry  <karl@gnu.org>
84580
84581         * config/config.{guess,sub}: update from prep.
84582
84583 2003-06-18  Jim Meyering  <jim@meyering.net>
84584
84585         Merge changes from coreutils.
84586         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84587         Remove explicit declarations of xmalloc and realloc.
84588         Include xalloc.h.
84589         (read_utmp): Remove anachronistic cast of xmalloc.
84590
84591 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84592
84593         Assume C89, so PARAMS isn't needed.
84594         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84595         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84596         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84597         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84598         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84599         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84600         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84601         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84602         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84603         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84604         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84605         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84606         no longer needed. Anyway, config.h should always be included before any
84607         other file.
84608
84609 2003-06-11  Simon Josefsson  <jas@extundo.com>
84610
84611         * modules/sysexits: New file.
84612         * MODULES.html.sh (func_all_modules): Add sysexits.
84613
84614 2003-06-11  Simon Josefsson  <jas@extundo.com>
84615
84616         * lib/sysexit_.h: New file.
84617
84618 2003-06-11  Derek Price  <derek@ximbiot.com>
84619
84620         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84621         necessary.
84622
84623 2003-06-11  Bruno Haible  <bruno@clisp.org>
84624
84625         * m4/sysexits.m4: New file.
84626
84627 2003-06-10  Simon Josefsson  <jas@extundo.com>
84628
84629         * lib/argp.h: New file, from glibc.
84630         * lib/argp-ba.c: New file, from glibc.
84631         * lib/argp-eexst.c: New file, from glibc.
84632         * lib/argp-fmtstream.c: New file, from glibc.
84633         * lib/argp-fmtstream.h: New file, from glibc.
84634         * lib/argp-fs-xinl.c: New file, from glibc.
84635         * lib/argp-help.c: New file, from glibc.
84636         * lib/argp-namefrob.h: New file, from glibc.
84637         * lib/argp-parse.c: New file, from glibc.
84638         * lib/argp-pv.c: New file, from glibc.
84639         * lib/argp-pvh.c: New file, from glibc.
84640         * lib/argp-xinl.c: New file, from glibc.
84641
84642 2003-06-10  Simon Josefsson  <jas@extundo.com>
84643
84644         * modules/strchrnul: New file.
84645
84646 2003-06-10  Simon Josefsson  <jas@extundo.com>
84647
84648         * modules/argp: New file.
84649
84650 2003-06-10  Simon Josefsson  <jas@extundo.com>
84651
84652         * m4/strchrnul.m4: New file.
84653
84654 2003-06-10  Simon Josefsson  <jas@extundo.com>
84655
84656         * lib/strchrnul.h: New file.
84657         * lib/strchrnul.c: New file.
84658
84659 2003-06-10  Bruno Haible  <bruno@clisp.org>
84660
84661         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84662
84663 2003-06-07  Karl Berry  <karl@gnu.org>
84664
84665         * config/config.{guess,sub}: update from prep.
84666
84667 2003-06-07  Jim Meyering  <jim@meyering.net>
84668
84669         * modules/strtod: Use $(...) notation, not @...@ for
84670         AC_REPLACE'd variables.
84671         * modules/localcharset: Likewise.
84672
84673 2003-06-07  Jim Meyering  <jim@meyering.net>
84674
84675         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84676         in place of my name in the copyright comment.
84677         Remove definition and uses of __P.
84678
84679         From coreutils.
84680         * lib/stat.c: Don't declare xmalloc explicitly.
84681         Instead, include "xalloc.h".
84682         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84683         xrealloc, and xcalloc return values.
84684         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84685         Improve comment.
84686         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84687
84688 2003-06-07  Bruno Haible  <bruno@clisp.org>
84689
84690         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84691         avoid AC_CONFIG_LINKS.
84692         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84693         fnmatch.h, to avoid AC_CONFIG_LINKS.
84694         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84695
84696 2003-06-07  Bruno Haible  <bruno@clisp.org>
84697
84698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84699         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84700         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84701         directory.
84702         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84703         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84704         directory.
84705
84706 2003-06-06  Jim Meyering  <jim@meyering.net>
84707
84708         Merge from coreutils.
84709         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84710         Consolidate declarations and initializations of *_base* locals.
84711
84712         Merge from coreutils.
84713         This avoids a core dump on systems without GNU putenv,
84714         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84715         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84716         (unsetenv): New static function, from GNU libc.
84717         (rpl_putenv): Use it.
84718
84719         * lib/modechange.c: Remove trailing blanks.
84720
84721         Merge from coreutils.
84722         * lib/fsusage.c: Remove declaration of statfs.
84723         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84724
84725         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84726
84727 2003-06-06  Jim Meyering  <jim@meyering.net>
84728
84729         * lib/stdbool_.h: Renamed from stdbool.h.in.
84730
84731 2003-06-06  Jim Meyering  <jim@meyering.net>
84732             Bruno Haible  <bruno@clisp.org>
84733
84734         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84735         Adjust Makefile.am snippet not to redirect directly to target.
84736         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84737
84738 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84739
84740         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84741         mismatch, look in future quarters as well as past.  This fixes a
84742         bug when processing fall-backwards gaps immediately after a long
84743         period of daylight-saving time.
84744
84745         * lib/mktime.c: Assume freestanding C89 or better.
84746         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84747         (__P): Remove; not used.
84748         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84749         (mktime, not_equal_tm, print_tm, check_result,
84750         main): Use prototypes.  Use const * where appropriate.
84751         (main): Fix typo in testing code that uncovered by above changes.
84752         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84753
84754 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84755
84756         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84757         locale.h, localeconv.  This merges changes from coreutils.
84758
84759         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84760         It can be removed after the next Autoconf is released.
84761         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84762         needed.
84763
84764 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84765
84766         * lib/mktime.c: Fix Debian bug 177940
84767         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84768         (localtime_offset): Now long int, not time_t, because we want it
84769         to be guaranteed to be signed.  All uses changed.
84770         (__mktime_internal): If overflow would occur when adding offset,
84771         don't add it.
84772
84773         Merge 'human' changes from coreutils.  Rewrite to support
84774         locale-specific notations like thousands separators.
84775         * lib/human.c: Simplify authorship notice.
84776         Include human.h immediately after config.h.
84777         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84778         <limits.h>: Do not include, since human.h does.
84779         (SIZE_MAX, UINTMAX_MAX): New macros.
84780         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84781         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84782         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84783         (power_letter): Renamed from suffixes.
84784         (generate_suffix_backwards): Remove.
84785         (adjust_value): Now takes int style (because of human.h changes)
84786         and long double value (for greater precision on some platforms).
84787         (group_number): New function.
84788         (human_readable): Use it.  Use integer options, not enum.
84789         Put the options before the sizes in the arg list.
84790         Support all the new options.
84791         The old human_readable function has been removed;
84792         use inttostr.h instead.
84793         (human_readable, default_block_size, humblock):
84794         Use uintmax_t, not int, for block sizes.
84795         (human_readable_inexact, block_size_types): Remove.
84796         (block_size_opts): New constant.
84797         (human_options): Renamed from human_block_size, with new signature
84798         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84799         * lib/human.h: Add copyright and authorship notice.
84800         Include <limits.h> and <stdbool.h> unconditionally.
84801         (PARAMS): Remove.  All uses removed.
84802         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84803         (enum human_inexact_style): Remove tag; now a nameless enum.
84804         (human_floor, human_ceiling, human_round_to_even): Now have
84805         values 2, 0, 1 rather than -1, 1, 0.
84806         (human_group_digits, human_suppress_point_zero, human_autoscale,
84807         human_base_1024, human_SI, human_B): New constants.
84808         (human_readable_inexact, human_block_size): Remove.
84809         (human_readable): Size args are now uintmax_t, not int.
84810         (human_options): New decl.
84811
84812         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84813         unnecessary now that we assume C89 or better.  This change
84814         imported from coreutils.
84815
84816         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84817         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84818         in the 2003-05-30 sync from glibc.
84819
84820         .h files should stand alone, but we shouldn't include <sys/types.h>
84821         if we can get away with just <stddef.h>.
84822
84823         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84824         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84825         rather than <sys/types.h>, as we merely need size_t.
84826         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84827         to get size_t.
84828         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84829         Include <stdio.h>, to get FILE.
84830         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84831         memcasecmp.h has included <stddef.h> and all we need is size_t.
84832         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84833         our interface, instead of including <sys/types.h>
84834
84835 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84836
84837         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84838         now, as glibc mktime is buggy on non-glibc systems.
84839
84840 2003-06-03  Karl Berry  <karl@gnu.org>
84841
84842         * config/config.sub: update from prep.
84843
84844 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84845
84846         [from coreutils]
84847         Fix some minor time-related bugs with POSIX time arguments.
84848         Some valid time stamps were being rejected (notably -1, and
84849         time stamps before 1900 on 64-bit hosts).  And some invalid
84850         time stamps were being accepted, e.g. September 31.
84851
84852         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84853         that we can return (time_t) -1 successfully.
84854         * lib/posixtm.c: Likewise.
84855         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84856         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84857         (t): Remove static var.
84858         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84859         of static var.  All uses changed.
84860         (year): Do not reject years before 1900; they can occur with
84861         64-bit time_t.
84862         (posix_time_parse): Do not check for out-of-range components;
84863         that is now the caller's responsibility, since our checks were
84864         only approximations.
84865         (posixtime): Use mktime to check for out-of-range components,
84866         since it knows them exactly.
84867         If mktime returns (time_t) -1, check whether an error actually occurred
84868         by invoking localtime on -1.
84869         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84870         posixtime failures better.
84871         Improve the test data (in comments only).
84872
84873 2003-06-02  Karl Berry  <karl@gnu.org>
84874
84875         * config/mkinstalldirs (version): new variable.
84876         (--version): new option.
84877         (usage): improve message.
84878
84879 2003-05-30  Karl Berry  <karl@gnu.org>
84880
84881         * lib/mktime.c: update from libc.
84882
84883 2003-05-30  Bruno Haible  <bruno@clisp.org>
84884
84885         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84886         * config/config.rpath: Upgrade to gettext-0.12.1.
84887
84888 2003-05-30  Bruno Haible  <bruno@clisp.org>
84889
84890         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84891         * m4/nls.m4: New file, from gettext-0.12.1.
84892         * m4/po.m4: New file, from gettext-0.12.1.
84893         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84894
84895 2003-05-30  Bruno Haible  <bruno@clisp.org>
84896
84897         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84898         * lib/localcharset.h: Likewise.
84899         * lib/localcharset.c: Likewise.
84900
84901 2003-05-29  Karl Berry  <karl@gnu.org>
84902
84903         * config/config.rpath: update from gettext.
84904
84905 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84906
84907         Assume the headers required for C89 freestanding compilers.
84908         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84909         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84910         * m4/human.m4 (gl_HUMAN): Likewise.
84911         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84912         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84913         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84914         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84915         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84916         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84917
84918 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84919
84920         Assume the headers required for C89 freestanding compilers.
84921         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84922         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84923         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84924         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84925         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84926         define, since <limits.h> is guaranteed to do that.
84927         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84928         * lib/exclude.c: Include <stdbool.h> unconditionally.
84929         * lib/tempname.c: Include <stddef.h> unconditionally.
84930         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84931         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84932         <stddef.h> does that.
84933         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84934         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84935         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84936         needed.
84937         * lib/xstrtol.c: Likewise.
84938         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84939         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84940
84941         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84942         warnings on some platforms.
84943
84944         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84945         arbitrarily.
84946
84947 2003-05-26  Jim Meyering  <jim@meyering.net>
84948
84949         Merge in a change from coreutils:
84950         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84951         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84952         that condition, rather than `-1' which is slightly misleading.
84953         Change the name of the cache variable to have the gl_ prefix.
84954         Prompted by a patch from Richard Dawe for DJGPP.
84955
84956 2003-05-24  Karl Berry  <karl@gnu.org>
84957
84958         * config/config.guess: update from prep.
84959
84960 2003-05-22  Karl Berry  <karl@gnu.org>
84961
84962         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84963
84964 2003-05-20  Karl Berry  <karl@gnu.org>
84965
84966         * config/config.guess: update from prep.
84967
84968 2003-05-18  Karl Berry  <karl@gnu.org>
84969
84970         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84971         might actually be set by the user.
84972
84973         * config/depcomp, install-sh, mdate-sh: update from automake.
84974
84975 2003-05-17  Bruno Haible  <bruno@clisp.org>
84976
84977         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84978         invalid expansion for AC_EGREP_CPP.
84979         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84980         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84981         Suggested by Akim Demaille <akim@epita.fr> in
84982         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84983
84984 2003-05-12  Jim Meyering  <jim@meyering.net>
84985
84986         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84987         the space-padded-by-default conversion specifiers, %e, %k, %l.
84988
84989 2003-05-12  Bruno Haible  <bruno@clisp.org>
84990
84991         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84992         the string is longer than 4 KB.
84993
84994 2003-05-11  Karl Berry  <karl@gnu.org>
84995
84996         * config/config.{guess,sub}: update from prep.
84997
84998 2003-05-09  Bruno Haible  <bruno@clisp.org>
84999
85000         * modules/error: Add m4/strerror_r.m4 to file list.
85001
85002 2003-05-03  Bruno Haible  <bruno@clisp.org>
85003
85004         Upgrade to Unicode-4.0.
85005         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85006         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85007         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85008         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85009         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85010         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85011         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85012         Change width of U+E0100..U+E01EF from 1 to 0.
85013
85014 2003-04-25  Jim Meyering  <jim@meyering.net>
85015
85016         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85017         of type size_t, not int.
85018
85019 2003-04-25  Bruno Haible  <bruno@clisp.org>
85020
85021         * lib/copy-file.c: Include <stddef.h>, for size_t.
85022
85023 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85024
85025         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85026         code which expansion is under static control.  Patch imported from
85027         Akim Demaille's patch to Bison; see
85028         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85029
85030 2003-04-14  Bruno Haible  <bruno@clisp.org>
85031
85032         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85033
85034 2003-04-11  Jim Meyering  <jim@meyering.net>
85035
85036         Merge changes from Coreutils.
85037
85038         2003-03-22  Jim Meyering  <jim@meyering.net>
85039
85040         * lib/strftime.c (widen): Cast alloca return value to proper type.
85041
85042         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85043
85044         From GNU libc.
85045         * lib/strftime.c (my_strftime): Handle very large width
85046         specifications for numeric values correctly.  Improve checks for
85047         overflow.
85048
85049         2003-01-19  Jim Meyering  <jim@meyering.net>
85050
85051         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85052         definitions.
85053         (nl_get_alt_digit) [! defined my_strftime]: Define.
85054         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85055         _nl_get_alt_digit and _nl_get_walt_digit.
85056
85057         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85058         libc. These changes have no effect outside of _LIBC.
85059
85060 2003-04-10  Bruno Haible  <bruno@clisp.org>
85061
85062         * modules/findprog: New file.
85063         * MODULES.html.sh (func_all_modules): Add it.
85064
85065 2003-04-10  Bruno Haible  <bruno@clisp.org>
85066
85067         * m4/findprog.m4: New file.
85068         * m4/eaccess.m4: New file.
85069
85070 2003-04-10  Bruno Haible  <bruno@clisp.org>
85071
85072         * lib/findprog.h: New file, from GNU gettext.
85073         * lib/findprog.c: New file, from GNU gettext.
85074
85075 2003-04-05  Jim Meyering  <jim@meyering.net>
85076
85077         Merge changes from Coreutils.
85078
85079         * lib/exclude.h (PARAMS): Remove definition and uses.
85080         * lib/exclude.c: Remove uses of `PARAMS'.
85081
85082         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85083         Add test-cases for DOS filenames. Declare program_name.
85084         (main): Set up program_name.  Patch by Rich Dawe.
85085
85086         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85087         error from mntctl.
85088         Use mntctl's return value to drive the entry-processing loop, since
85089         we can't rely on the value of the vmt_length member in the last
85090         entry.  On some systems doing so could result in exhausting
85091         virtual memory.  Based in part on a patch from Mike Jetzer.
85092
85093 2003-04-04  Bruno Haible  <bruno@clisp.org>
85094
85095         * modules/linebreak: New file.
85096         * MODULES.html.sh (func_all_modules): Add it.
85097
85098 2003-04-04  Bruno Haible  <bruno@clisp.org>
85099
85100         * m4/linebreak.m4: New file.
85101
85102 2003-04-04  Bruno Haible  <bruno@clisp.org>
85103
85104         * lib/linebreak.h: New file, from GNU gettext.
85105         * lib/linebreak.c: New file, from GNU gettext with slight
85106         modifications.
85107         * lib/lbrkprop.h: New file, from GNU gettext.
85108
85109 2003-04-03  Bruno Haible  <bruno@clisp.org>
85110
85111         * modules/utf8-ucs4: New file.
85112         * modules/utf16-ucs4: New file.
85113         * modules/ucs4-utf8: New file.
85114         * modules/ucs4-utf16: New file.
85115         * MODULES.html.sh (func_all_modules): Add them.
85116
85117 2003-04-03  Bruno Haible  <bruno@clisp.org>
85118
85119         * m4/utf-ucs4.m4: New file.
85120         * m4/ucs4-utf.m4: New file.
85121
85122 2003-04-03  Bruno Haible  <bruno@clisp.org>
85123
85124         * lib/utf8-ucs4.h: New file, from GNU gettext.
85125         * lib/utf16-ucs4.h: New file, from GNU gettext.
85126         * lib/ucs4-utf8.h: New file, from GNU gettext.
85127         * lib/ucs4-utf16.h: New file, from GNU gettext.
85128
85129 2003-04-02  Bruno Haible  <bruno@clisp.org>
85130
85131         * modules/binary-io: New file.
85132         * MODULES.html.sh (func_all_modules): Add it.
85133
85134 2003-04-02  Bruno Haible  <bruno@clisp.org>
85135
85136         * lib/binary-io.h: New file, from GNU gettext.
85137
85138 2003-04-01  Bruno Haible  <bruno@clisp.org>
85139
85140         * modules/pathname: New file.
85141         * MODULES.html.sh (func_all_modules): Add it.
85142
85143 2003-04-01  Bruno Haible  <bruno@clisp.org>
85144
85145         * lib/pathname.h: New file, from GNU gettext.
85146         * lib/concatpath.c: New file, from GNU gettext.
85147
85148 2003-03-30  Bruno Haible  <bruno@clisp.org>
85149
85150         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85151
85152 2003-03-30  Bruno Haible  <bruno@clisp.org>
85153
85154         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85155         function chown() doesn't exist.
85156
85157 2003-03-28  Bruno Haible  <bruno@clisp.org>
85158
85159         * modules/copy-file: New file.
85160         * MODULES.html.sh (func_all_modules): Add it.
85161
85162 2003-03-28  Bruno Haible  <bruno@clisp.org>
85163
85164         * m4/copy-file.m4: New file.
85165
85166 2003-03-28  Bruno Haible  <bruno@clisp.org>
85167
85168         * lib/copy-file.h: New file, from GNU gettext.
85169         * lib/copy-file.c: New file, from GNU gettext.
85170
85171 2003-03-18  Jim Meyering  <jim@meyering.net>
85172
85173         * lib/quote.c (quote_n): Fix typo in comment.
85174
85175 2003-03-18  Bruno Haible  <bruno@clisp.org>
85176
85177         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85178         checking.
85179         * m4/onceonly_2_57.m4: Likewise.
85180
85181 2003-03-17  Bruno Haible  <bruno@clisp.org>
85182
85183         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85184         (m4_quote): Remove macro.
85185         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85186
85187 2003-03-14  Jim Meyering  <jim@meyering.net>
85188
85189         Merge changes from Coreutils.
85190         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85191         to be const, in order to avoid warnings.
85192         (obstack_room): Likewise.
85193         (obstack_empty_p): Likewise.
85194
85195 2003-03-14  Bruno Haible  <bruno@clisp.org>
85196
85197         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85198         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85199
85200 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85201
85202         Merge changes from Bison.
85203         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85204         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85205         when compiling Bison 1.875's `bitset bset = obstack_alloc
85206         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85207         * lib/hash.c: Include <stdbool.h> unconditionally.
85208
85209 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85210
85211         * m4/onceonly.m4 (m4_quote): New macro.
85212         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85213         Quote AC_FOREACH variable-expansions properly.
85214
85215 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85216
85217         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85218
85219 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85220
85221         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85222         Reported by Bruce Becker; see:
85223         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85224
85225 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85226             Bruno Haible  <bruno@clisp.org>
85227
85228         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85229         Reported by John Hughes, see
85230         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85231
85232 2003-02-20  Bruno Haible  <bruno@clisp.org>
85233
85234         * MODULES.html.sh (func_all_modules): Add poll.
85235
85236 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85237
85238         * modules/poll: New file.
85239
85240 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85241
85242         * lib/poll_.h: New file.
85243         * lib/poll.c: New file.
85244
85245 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85246
85247         * m4/poll.m4: New file.
85248
85249 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85250
85251         * modules/mathl: New file.
85252
85253 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85254
85255         * lib/mathl.h: New file.
85256         * lib/acosl.c: New file.
85257         * lib/asinl.c: New file.
85258         * lib/atanl.c: New file.
85259         * lib/ceill.c: New file.
85260         * lib/cosl.c: New file.
85261         * lib/expl.c: New file.
85262         * lib/floorl.c: New file.
85263         * lib/frexpl.c: New file.
85264         * lib/ldexpl.c: New file.
85265         * lib/logl.c: New file.
85266         * lib/sincosl.c: New file.
85267         * lib/sinl.c: New file.
85268         * lib/sqrtl.c: New file.
85269         * lib/tanl.c: New file.
85270         * lib/trigl.c: New file.
85271         * lib/trigl.h: New file.
85272
85273 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85274
85275         * m4/mathl.m4: New file.
85276
85277 2003-02-18  Bruno Haible  <bruno@clisp.org>
85278
85279         * MODULES.html.sh (func_all_modules): Add mathl.
85280
85281 2003-02-17  Bruno Haible  <bruno@clisp.org>
85282
85283         * modules/mkdtemp: New module.
85284         * MODULES.html.sh (func_all_modules): Add it.
85285
85286 2003-02-17  Bruno Haible  <bruno@clisp.org>
85287
85288         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85289
85290 2003-02-17  Bruno Haible  <bruno@clisp.org>
85291
85292         * lib/mkdtemp.h: New file, from GNU gettext.
85293         * lib/mkdtemp.c: New file, from GNU gettext.
85294
85295 2003-02-02  Jim Meyering  <jim@meyering.net>
85296
85297         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85298         e.g. glibc-2.2.93.
85299
85300 2003-01-31  Bruno Haible  <bruno@clisp.org>
85301
85302         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85303         'rpl_rename'.
85304         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85305         'rpl_strnlen'.
85306         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85307         'rpl_strtod'.
85308         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85309         'rpl_utime'.
85310
85311 2003-01-31  Bruno Haible  <bruno@clisp.org>
85312
85313         * lib/rename.c: #undef rename before defining rpl_rename.
85314         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85315
85316 2003-01-30  Bruno Haible  <bruno@clisp.org>
85317
85318         * modules/vasnprintf, modules/vasprintf: New modules.
85319         * MODULES.html.sh (func_all_modules): Add them.
85320
85321 2003-01-30  Bruno Haible  <bruno@clisp.org>
85322
85323         * m4/signed.m4: New file, from GNU gettext.
85324         * m4/longdouble.m4: New file, from GNU gettext.
85325         * m4/wchar_t.m4: New file, from GNU gettext.
85326         * m4/wint_t.m4: New file, from GNU gettext.
85327         * m4/vasnprintf.m4: New file.
85328         * m4/vasprintf.m4: New file.
85329
85330 2003-01-30  Bruno Haible  <bruno@clisp.org>
85331
85332         * lib/printf-args.h: New file, from GNU gettext.
85333         * lib/printf-args.c: New file, from GNU gettext.
85334         * lib/printf-parse.h: New file, from GNU gettext.
85335         * lib/printf-parse.c: New file, from GNU gettext.
85336         * lib/vasnprintf.h: New file, from GNU gettext.
85337         * lib/vasnprintf.c: New file, from GNU gettext.
85338         * lib/asnprintf.c: New file, from GNU gettext.
85339         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85340         * lib/vasprintf.c: New file, from GNU gettext.
85341         * lib/asprintf.c: New file, from GNU gettext.
85342
85343 2003-01-29  Bruno Haible  <bruno@clisp.org>
85344
85345         * modules/stpncpy: New module.
85346         * MODULES.html.sh (func_all_modules): Add it.
85347
85348 2003-01-29  Bruno Haible  <bruno@clisp.org>
85349
85350         * m4/stpncpy.m4: New file.
85351
85352 2003-01-29  Bruno Haible  <bruno@clisp.org>
85353
85354         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85355         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85356
85357 2003-01-28  Bruno Haible  <bruno@clisp.org>
85358
85359         * modules/c-ctype: New module.
85360         * MODULES.html.sh (func_all_modules): Add it.
85361
85362 2003-01-28  Bruno Haible  <bruno@clisp.org>
85363
85364         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85365         Paul Eggert.
85366         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85367         Paul Eggert.
85368
85369 2003-01-27  Bruno Haible  <bruno@clisp.org>
85370
85371         * modules/xsetenv: New module.
85372         * MODULES.html.sh (func_all_modules): Add it.
85373
85374 2003-01-27  Bruno Haible  <bruno@clisp.org>
85375
85376         * lib/xsetenv.h: New file, from GNU gettext.
85377         * lib/xsetenv.c: New file, from GNU gettext.
85378
85379 2003-01-23  Jim Meyering  <jim@meyering.net>
85380
85381         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85382         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85383
85384 2003-01-23  Bruno Haible  <bruno@clisp.org>
85385
85386         * modules/minmax: New module.
85387         * MODULES.html.sh (func_all_modules): Add it.
85388
85389 2003-01-23  Bruno Haible  <bruno@clisp.org>
85390
85391         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85392         Eggert.
85393
85394 2003-01-22  Bruno Haible  <bruno@clisp.org>
85395
85396         * modules/exit: New module.
85397         * MODULES.html.sh (func_all_modules): Add it.
85398
85399 2003-01-22  Bruno Haible  <bruno@clisp.org>
85400
85401         * lib/exit.h: New file, from GNU gettext.
85402
85403 2003-01-19  Bruno Haible  <bruno@clisp.org>
85404
85405         * gnulib-tool: Recognize option --extract-maintainer.
85406         (func_get_maintainer): New function.
85407         * modules/*: Add Maintainer entry.
85408
85409 2003-01-16  Jim Meyering  <jim@meyering.net>
85410
85411         * m4/regex.m4: The `regex' struct is both input and output.
85412         Initialize it before each use.  Patch by Tim Waugh.
85413
85414 2003-01-16  Bruno Haible  <bruno@clisp.org>
85415
85416         * MODULES.html.sh: Add a table of contents. Add the module name as
85417         leftmost column. Add hyperlinks.
85418
85419 2003-01-15  Bruno Haible  <bruno@clisp.org>
85420
85421         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85422
85423 2003-01-15  Bruno Haible  <bruno@clisp.org>
85424
85425         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85426         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85427         suffix.
85428
85429 2003-01-15  Bruno Haible  <bruno@clisp.org>
85430
85431         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85432
85433 2003-01-15  Bruno Haible  <bruno@clisp.org>
85434
85435         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85436         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85437
85438 2003-01-14  Jim Meyering  <jim@meyering.net>
85439
85440         * lib/same.c (same_name): Tweak a comment.
85441
85442 2003-01-14  Bruno Haible  <bruno@clisp.org>
85443
85444         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85445         when a string comparison is sufficient.
85446
85447 2003-01-14  Bruno Haible  <bruno@clisp.org>
85448
85449         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85450         'unsigned int'.
85451
85452 2003-01-14  Bruno Haible  <bruno@clisp.org>
85453
85454         * lib/hash-pjw.c: Add comment about low quality of this function.
85455
85456 2003-01-13  Bruno Haible  <bruno@clisp.org>
85457
85458         * modules/stpcpy: Distribute lib/stpcpy.h.
85459         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85460
85461 2003-01-13  Bruno Haible  <bruno@clisp.org>
85462
85463         * modules/*: Add a description.
85464         * modules/strpbrk: Fix Makefile.am snippet.
85465         * modules/strtoimax: Fix dependencies.
85466         * modules/strtoumax: Likewise.
85467
85468 2003-01-13  Bruno Haible  <bruno@clisp.org>
85469
85470         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85471         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85472         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85473
85474 2003-01-13  Bruno Haible  <bruno@clisp.org>
85475
85476         * gnulib-tool (func_create_testdir): Store config/* files in the main
85477         directory.
85478         * config.rpath: Move to ...
85479         * config/config.rpath: ... here.
85480         * modules/gettext: Contains config/config.rpath, not config.rpath.
85481         * modules/iconv: Likewise.
85482
85483 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85484
85485         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85486         to avoid collisions with libcurses and libreadline.
85487
85488         * m4/getstr.m4: Remove.
85489         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85490
85491 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85492
85493         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85494         to avoid collisions with libcurses and libreadline.
85495
85496         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85497         * lib/getstr.h, getstr.c: Remove.
85498         * lib/getline.c: Include "getline.h", to check interface.
85499         Move body of old getstr.c here: this defines MIN_CHUNK and
85500         declares getdelim2, which is renamed from getstr.
85501         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85502
85503         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85504         All uses changed.
85505         * lib/linebuffer.h: Likewise.
85506         (readline): Remove backward-compatibility macro.
85507
85508 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85509
85510         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85511         to avoid collisions with libcurses and libreadline.
85512         * getstr: Remove.
85513         * MODULES.html.sh: Remove getstr.
85514         * modules/getline: Depend on unlocked-io, not getstr.
85515
85516 2003-01-12  Jim Meyering  <jim@meyering.net>
85517
85518         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85519
85520 2003-01-10  Bruno Haible  <bruno@clisp.org>
85521
85522         * modules/alloca: Change Makefile.am requirements. Simplify Include
85523         requirements. Add lib/alloca_.h to file list.
85524
85525 2003-01-10  Bruno Haible  <bruno@clisp.org>
85526
85527         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85528
85529 2003-01-10  Bruno Haible  <bruno@clisp.org>
85530
85531         * lib/alloca_.h: New file.
85532         * lib/getdate.y: Unconditionally include alloca.h.
85533         * lib/makepath.c: Likewise.
85534         * lib/setenv.c: Likewise.
85535         * lib/userspec.c: Likewise.
85536
85537 2003-01-09  Karl Berry  <karl@gnu.org>
85538
85539         * MODULES.html.sh: include `dirname $0` in PATH, to find
85540         gnulib-tool.
85541
85542 2003-01-09  Bruno Haible  <bruno@clisp.org>
85543
85544         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85545         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85546
85547 2003-01-09  Bruno Haible  <bruno@clisp.org>
85548
85549         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85550
85551 2003-01-09  Bruno Haible  <bruno@clisp.org>
85552
85553         * lib/stdbool.h.in: New file.
85554
85555 2003-01-09  Bruno Haible  <bruno@clisp.org>
85556
85557         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85558         * MODULES.html.sh: Likewise.
85559
85560 2003-01-08  Jim Meyering  <jim@meyering.net>
85561
85562         * lib/full-write.c: Undefine and define-away `const' after inclusion
85563         of errno.h, not before.  Suggestion from Bruno Haible.
85564
85565 2003-01-08  Bruno Haible  <bruno@clisp.org>
85566
85567         * modules/full-read: Depend on full-write.
85568
85569 2003-01-08  Bruno Haible  <bruno@clisp.org>
85570
85571         * lib/safe-read.c: Include specification header first, to ensure its
85572         selfcontainedness.
85573         * lib/full-write.c: Likewise.
85574
85575 2003-01-07  Jim Meyering  <jim@meyering.net>
85576
85577         * lib/full-write.c: Rework so that it may serve to define full_read,
85578         too.
85579         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85580
85581 2003-01-07  Bruno Haible  <bruno@clisp.org>
85582
85583         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85584         <inttypes.h>.
85585         * lib/xstrtol.h: Likewise.
85586         * lib/xstrtoimax.c: Likewise.
85587         * lib/xstrtoumax.c: Likewise.
85588         * lib/human.h: Likewise.
85589
85590         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85591         on systems that have <inttypes.h> but not <stdint.h>.
85592
85593 2003-01-07  Bruno Haible  <bruno@clisp.org>
85594
85595         * MODULES.html.sh: Add copyright notice.
85596         (missed_files): Omit CVS directory entries.
85597         (func_module): Make it work with sed-3.02.
85598         * MODULES.txt: Remove file.
85599
85600 2003-01-06  Jim Meyering  <jim@meyering.net>
85601
85602         * lib/version-etc.c: Update year in translatable copyright string.
85603
85604 2003-01-03  Karl Berry  <karl@gnu.org>
85605
85606         * config/config.{guess,sub}: update from prep.
85607
85608 2003-01-02  Karl Berry  <karl@gnu.org>
85609
85610         * doc/COPYING.DOC: belatedly updated to 1.2.
85611
85612 2003-01-01  Karl Berry  <karl@gnu.org>
85613
85614         * gnulib-tool (func_verify_module): report module name $module in
85615         error message, not $1.
85616         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85617         be created, only if it doesn't exist.
85618         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85619
85620 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85621
85622         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85623
85624 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85625
85626         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85627         memcmp if strcoll doesn't work.
85628
85629 2002-12-31  Bruno Haible  <bruno@clisp.org>
85630
85631         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85632         nonempty.
85633
85634 2002-12-31  Bruno Haible  <bruno@clisp.org>
85635
85636         * lib/memcoll.c (STRCOLL): New macro.
85637         (memcoll): Use it.
85638
85639 2002-12-31  Bruno Haible  <bruno@clisp.org>
85640
85641         * lib/localcharset.h: New file.
85642         * lib/localcharset.c: Include it.
85643         * lib/unicodeio.c: Likewise.
85644
85645 2002-12-31  Bruno Haible  <bruno@clisp.org>
85646
85647         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85648         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85649
85650 2002-12-31  Bruno Haible  <bruno@clisp.org>
85651
85652         * lib/getline.h: Include <stddef.h>, for size_t.
85653
85654         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85655         * lib/unicodeio.c: Don't include <stddef.h>.
85656
85657 2002-12-31  Bruno Haible  <bruno@clisp.org>
85658
85659         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85660         HAVE_TM_ZONE.
85661
85662 2002-12-24  Karl Berry  <karl@gnu.org>
85663
85664         * config/config.guess: update from prep.
85665
85666 2002-12-24  Bruno Haible  <bruno@clisp.org>
85667
85668         General infrasructure.
85669         * m4/README: Rewritten.
85670         * m4/onceonly.m4: New file.
85671         * m4/onceonly_2_57.m4: New file.
85672
85673         Module atexit.
85674         * m4/atexit.m4: New file.
85675
85676         Module strtod.
85677         * m4/strtod.m4: New file.
85678
85679         Module strtol.
85680         * m4/strtol.m4: New file.
85681
85682         Module strtoul.
85683         * m4/strtoul.m4: New file.
85684
85685         Module memchr.
85686         * m4/memchr.m4: New file.
85687
85688         Module memcmp.
85689         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85690         (jm_FUNC_MEMCMP): Invoke it.
85691
85692         Module memcpy.
85693         * m4/memcpy.m4: New file.
85694
85695         Module memmove.
85696         * m4/memmove.m4: New file.
85697
85698         Module memset.
85699         * m4/memset.m4: New file.
85700
85701         Module strcspn.
85702         * m4/strcspn.m4: New file.
85703
85704         Module strpbrk.
85705         * m4/strpbrk.m4: New file.
85706
85707         Module strstr.
85708         * m4/strstr.m4: New file.
85709
85710         Module strerror.
85711         * m4/strerror.m4: New file.
85712
85713         Module mktime.
85714         * m4/mktime.m4: Renamed from jm-mktime.m4.
85715         (gl_PREREQ_MKTIME): New macro.
85716         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85717
85718         Module malloc.
85719         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85720         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85721         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85722
85723         Module realloc.
85724         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85725         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85726         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85727
85728         Module strftime.
85729         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85730         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85731         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85732         gl_TM_GMTOFF.
85733         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85734
85735         Module xalloc.
85736         * m4/xalloc.m4: New file.
85737
85738         Module alloca.
85739         * m4/alloca.m4: New file.
85740
85741         Module putenv.
85742         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85743         (jm_FUNC_PUTENV): Invoke it.
85744
85745         Module setenv.
85746         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85747         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85748         when invoked twice.
85749         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85750         gt_FUNC_SETENV.
85751
85752         Module memrchr.
85753         * m4/memrchr.m4: New file.
85754
85755         Module stpcpy.
85756         * m4/stpcpy.m4: New file.
85757
85758         Module strcase.
85759         * m4/strcase.m4: New file.
85760
85761         Module strdup.
85762         * m4/strdup.m4: New file.
85763
85764         Module strnlen.
85765         * m4/strnlen.m4: New file.
85766
85767         Module strndup.
85768         * m4/strndup.m4: New file.
85769
85770         Module xstrtod.
85771         * m4/xstrtod.m4: New file.
85772
85773         Module xstrtol.
85774         * m4/xstrtol.m4: New file.
85775
85776         Module getdate.
85777         * m4/getdate.m4: New file.
85778
85779         Module unlocked-io.
85780         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85781         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85782         * m4/jm-glibc-io.m4n: Remove file.
85783
85784         Module long-options.
85785         * m4/long-options.m4: New file.
85786
85787         Module md5.
85788         * m4/md5.m4: New file.
85789
85790         Module sha.
85791         * m4/sha.m4: New file.
85792
85793         Module getstr.
85794         * m4/getstr.m4: New file.
85795
85796         Module getline.
85797         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85798         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85799         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85800         simply getline. Infoke gl_PREREQ_GETLINE.
85801
85802         Module obstack.
85803         * m4/obstack.m4: New file.
85804
85805         Module hash.
85806         * m4/hash.m4: New file.
85807
85808         Module readtokens.
85809         * m4/readtokens.m4: New file.
85810
85811         Module strverscmp.
85812         * m4/strverscmp.m4: New file.
85813
85814         Module stdbool.
85815         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85816         OSF/1.
85817
85818         Module strtoll.
85819         * m4/strtoll.m4: New file.
85820
85821         Module strtoull.
85822         * m4/strtoull.m4: New file.
85823
85824         Module strtoimax.
85825         * m4/strtoimax.m4: New file.
85826
85827         Module strtoumax.
85828         * m4/strtoumax.m4: New file.
85829
85830         Module xstrtoimax.
85831         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85832         jm_AC_PREREQ_XSTRTOIMAX.
85833         Moved the strtol prerequisites to strtol.m4.
85834         Moved the strtoll prerequisites to strtoll.m4.
85835         Moved the strtoimax prerequisites to strtoimax.m4.
85836
85837         Module xstrtoumax.
85838         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85839         jm_AC_PREREQ_XSTRTOUMAX.
85840         Moved the strtoul prerequisites to strtoul.m4.
85841         Moved the strtoull prerequisites to strtoull.m4.
85842         Moved the strtoumax prerequisites to strtoumax.m4.
85843
85844         Module chown.
85845         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85846         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85847
85848         Module dup2.
85849         * m4/dup2.m4: New file.
85850
85851         Module ftruncate.
85852         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85853         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85854
85855         Module getgroups.
85856         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85857         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85858
85859         Module gettimeofday.
85860         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85861         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85862         gl_PREREQ_GETTIMEOFDAY.
85863
85864         Module mkdir.
85865         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85866         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85867
85868         Module mkstemp.
85869         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85870         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85871         jm_AC_TYPE_UINTMAX_T.
85872         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85873
85874         Module stat.
85875         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85876         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85877
85878         Module lstat.
85879         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85880         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85881
85882         Module timespec.
85883         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85884         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85885         * m4/st_mtim.m4: Indentation.
85886
85887         Module nanosleep.
85888         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85889         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85890         gl_PREREQ_NANOSLEEP.
85891
85892         Module regex.
85893         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85894         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85895         (gl_REGEX): New macro.
85896
85897         Module rename.
85898         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85899         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85900
85901         Module rmdir.
85902         * m4/rmdir.m4: New file.
85903
85904         Module utime.
85905         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85906         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85907         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85908
85909         Module dirname.
85910         * m4/dirname.m4: New file.
85911
85912         Module getopt.
85913         * m4/getopt.m4: New file.
85914
85915         Module unistd-safer.
85916         * m4/unistd-safer.m4: New file.
85917
85918         Module fnmatch.
85919         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85920         declaration.
85921         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85922         (gl_FUNC_FNMATCH_POSIX): New macro.
85923         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85924         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85925         simply fnmatch.
85926
85927         Module exclude.
85928         * m4/exclude.m4: New file.
85929
85930         Module human.
85931         * m4/human.m4: New file.
85932
85933         Module acl.
85934         * m4/acl.m4: Nop.
85935
85936         Module backupfile.
85937         * m4/backupfile.m4: New file.
85938         * m4/d-ino.m4: Indentation.
85939
85940         Module fsusage.
85941         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85942         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85943         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85944
85945         Module dirfd.
85946         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85947         requirements.
85948
85949         Module euidaccess.
85950         * m4/euidaccess.m4: New file.
85951
85952         Module file-type.
85953         * m4/file-type.m4: New file.
85954
85955         Module fileblocks.
85956         * m4/fileblocks.m4: New file.
85957
85958         Module filemode.
85959         * m4/filemode.m4: New file.
85960
85961         Module isdir.
85962         * m4/isdir.m4: New file.
85963
85964         Module lchown.
85965         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85966         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85967
85968         Module makepath.
85969         * m4/makepath.m4: New file.
85970
85971         Module modechange.
85972         * m4/modechange.m4: New file.
85973
85974         Module mountlist.
85975         * m4/mountlist.m4: New file.
85976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85977         Indentation.
85978
85979         Module path-concat.
85980         * m4/path-concat.m4: New file.
85981
85982         Module pathmax.
85983         * m4/pathmax.m4: New file.
85984
85985         Module same.
85986         * m4/same.m4: New file.
85987
85988         Module save-cwd.
85989         * m4/save-cwd.m4: New file.
85990
85991         Module savedir.
85992         * m4/savedir.m4: New file.
85993
85994         Module xgetcwd.
85995         * m4/xgetcwd.m4: New file.
85996         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85997
85998         Module xreadlink.
85999         * m4/xreadlink.m4: New file.
86000
86001         Module safe-read.
86002         * m4/safe-read.m4: New file.
86003
86004         Module safe-write.
86005         * m4/safe-write.m4: New file.
86006
86007         Module closeout.
86008         * m4/closeout.m4: New file.
86009
86010         Module stdio-safer.
86011         * m4/stdio-safer.m4: New file.
86012
86013         Module getpass.
86014         * m4/getpass.m4: New file.
86015
86016         Module getugroups.
86017         * m4/getugroups.m4: New file.
86018
86019         Module group-member.
86020         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86021         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86022
86023         Module idcache.
86024         * m4/idcache.m4: New file.
86025
86026         Module userspec.
86027         * m4/userspec.m4: New file.
86028
86029         Module gettime.
86030         * m4/clock_time.m4: New file.
86031         * m4/gettime.m4: New file.
86032
86033         Module settime.
86034         * m4/settime.m4: New file.
86035
86036         Module posixtm.
86037         * m4/posixtm.m4: New file.
86038
86039         Module gethostname.
86040         * m4/gethostname.m4: New file.
86041
86042         Module canon-host.
86043         * m4/canon-host.m4: New file.
86044
86045         Module gettext.
86046         * m4/codeset.m4: New file, from gettext-0.11.5.
86047         * m4/gettext.m4: New file, from gettext-0.11.5.
86048         * m4/glibc21.m4: New file, from gettext-0.11.5.
86049         * m4/iconv.m4: New file, from gettext-0.11.5.
86050         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86051         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86052         * m4/inttypes.m4: New file, from gettext-0.11.5.
86053         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86054         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86055         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86056         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86057         * m4/lib-link.m4: New file, from gettext-0.11.5.
86058         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86059         * m4/progtest.m4: New file, from gettext-0.11.5.
86060         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86061         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86062         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86063
86064         Module localcharset.
86065         * m4/localcharset.m4: New file.
86066
86067         Module hard-locale.
86068         * m4/hard-locale.m4: New file.
86069
86070         Module mbswidth.
86071         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86072         onceonly macros.
86073         * m4/mbrtowc.m4: Add comment.
86074
86075         Module memcasecmp.
86076         * m4/memcasecmp.m4: New file.
86077
86078         Module memcoll.
86079         * m4/memcoll.m4: New file.
86080
86081         Module unicodeio.
86082         * m4/unicodeio.m4: New file.
86083
86084         Module rpmatch.
86085         * m4/rpmatch.m4: New file.
86086
86087         Module yesno.
86088         * m4/yesno.m4: New file.
86089
86090         Module exitfail.
86091         * m4/exitfail.m4: New file.
86092
86093         Module c-stack.
86094         * m4/c-stack.m4 (gl_C_STACK): New macro.
86095         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86096
86097         Module error.
86098         * m4/error.m4 (gl_ERROR): New macro.
86099         (jm_PREREQ_ERROR): Use onceonly macros.
86100
86101         Module fatal.
86102         * m4/fatal.m4: New file.
86103
86104         Module getloadavg.
86105         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86106         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86107
86108         Module getpagesize.
86109         * m4/getpagesize.m4: New file.
86110
86111         Module getusershell.
86112         * m4/getusershell.m4: New file.
86113
86114         Module physmem.
86115         * m4/physmem.m4: New file.
86116
86117         Module posixver.
86118         * m4/posixver.m4: New file.
86119
86120         Module quotearg.
86121         * m4/quotearg.m4: New file.
86122
86123         Module quote.
86124         * m4/quote.m4: New file.
86125
86126         Module readutmp.
86127         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86128
86129         Module sig2str.
86130         * m4/sig2str.m4: New file.
86131
86132         Other.
86133         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86134         ulonglong.m4.
86135         * m4/intmax_t.m4: New file.
86136         * m4/d-type.m4: Indentation.
86137         * m4/jm-macros.m4: Update.
86138         * m4/prereq.m4 (jm_PREREQ): Update.
86139         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86140         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86141         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86142         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86143         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86144         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86145         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86146         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86147         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86148         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86149         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86150         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86151         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86152         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86153         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86154         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86155         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86156         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86157         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86158
86159 2002-12-24  Bruno Haible  <bruno@clisp.org>
86160
86161         * MODULES.txt: Update according to m4/ changes.
86162
86163         Module gettext.
86164         * config.rpath: New file, from gettext-0.11.5.
86165
86166         * modules/*: New module descriptions.
86167         * gnulib-tool: New file.
86168         * MODULES.html.sh: New file.
86169
86170 2002-12-21  Karl Berry  <karl@gnu.org>
86171
86172         * doc/fdl.texi: update to version 1.2.
86173
86174 2002-12-19  Karl Berry  <karl@gnu.org>
86175
86176         * config/config.guess: update from prep.
86177
86178 2002-12-18  Bruno Haible  <bruno@clisp.org>
86179
86180         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86181         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86182
86183 2002-12-17  Bruno Haible  <bruno@clisp.org>
86184
86185         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86186         stdlib.h, string.h.
86187
86188 2002-12-17  Bruno Haible  <bruno@clisp.org>
86189
86190         * lib/canon-host.c (strdup): Remove unused declaration.
86191
86192         * lib/fsusage.c: Include full_read.h.
86193         (get_fs_usage): Use full_read instead of safe_read.
86194
86195         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86196
86197 2002-12-12  Karl Berry  <karl@gnu.org>
86198
86199         * config/config.guess: update from prep.
86200
86201 2002-12-11  Bruno Haible  <bruno@clisp.org>
86202
86203         * m4/setenv.m4: New file, from gettext-0.11.5.
86204
86205 2002-12-11  Bruno Haible  <bruno@clisp.org>
86206
86207         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86208         not unsetenv().
86209         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86210         modifications:
86211
86212         2002-12-11  Bruno Haible  <bruno@clisp.org>
86213
86214                 * setenv.c (alloca): Fall back to malloc.
86215                 (freea): New macro.
86216                 (setenv): Use freea() to free memory allocated with alloca().
86217
86218         2002-11-13  Bruno Haible  <bruno@clisp.org>
86219
86220                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86221                 function declarations.
86222                 * unsetenv.c (unsetenv): Likewise.
86223
86224         2002-03-04  Bruno Haible  <bruno@clisp.org>
86225
86226                 Portability to AIX 4.3.3.
86227                 * unsetenv.c: New file, extracted from setenv.c.
86228                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86229
86230         2001-12-20  Bruno Haible  <bruno@clisp.org>
86231
86232                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86233                 use malloc instead. For SunOS 4.
86234
86235         2001-12-11  Bruno Haible  <bruno@clisp.org>
86236
86237                 * setenv.c: Declare alloca.
86238                 (compar_fn_t): New typedef.
86239                 (KNOWN_VALUE, STORE_VALUE): Use it.
86240
86241         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86242         setenv.h.
86243
86244 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86245
86246         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86247         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86248         Choose values that are less likely to collide with system fnmatch
86249         options.
86250         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86251         defined (e.g., a pure POSIX system).
86252         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86253         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86254
86255 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86256
86257         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86258         a pain in practice to deal with generated m4 files.  This change
86259         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86260
86261         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86262         and jm-glibc-io.m4, as they are no longer a special case.
86263         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86264         kludge and the auto-generation stuff.  Check only whether the
86265         functions are declared, not whether they exist, since older hosts
86266         that don't declare the functions can't use the optimization anyway.
86267
86268 2002-12-06  Jim Meyering  <jim@meyering.net>
86269
86270         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86271
86272         Merge in changes from libc's misc/error.c, in preparation
86273         for the merge of gnulib's changes back into libc.
86274
86275         * lib/error.c (_): Define only if not already defined.
86276         Move definition to follow all #include directives.
86277         Include unlocked-io.h only if !_LIBC.
86278         [_LIBC]: Include <libio/libioP.h>.
86279         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86280         (fflush): Tweak definition to use INTUSE.
86281         (putc): Define.
86282
86283 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86284
86285         * lib/alloca.c [defined emacs]: Include "lisp.h".
86286         (xalloc_die) [defined emacs]: New macro.
86287         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86288         [! defined emacs]: Include <xalloc.h>.
86289         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86290         (pointer): Typedef to POINTER_TYPE *.
86291         (malloc): Remove decl; we now always use xmalloc.
86292         (alloca): Use old-style definition, since Emacs needs this.
86293         Check for arithmetic overflow when computing combined size.
86294
86295 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86296
86297         Do not generate unlocked-io.h automatically, since it's easier to
86298         maintain it by hand.
86299
86300         * lib/unlocked-io.h: New file, from GNU diffutils,
86301         but with proper copyright notice and attribution.
86302         * lib/gen-uio: Remove.
86303         * lib/Makefile.am: Add copyright notice.
86304         (libfetish_a_SOURCES): Add unlocked-io.h.
86305         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86306         (DISTCLEANFILES, io_functions): Remove macros.
86307         (EXTRA_DIST): Remove gen_uio.
86308         (unlocked-io.h): Remove rule.
86309
86310 2002-12-04  Jim Meyering  <jim@meyering.net>
86311
86312         Reflect the fact that stat.c and lstat.c are no longer generated.
86313         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86314         (DISTCLEANFILES): Likewise.
86315         (EXTRA_DIST): Likewise.
86316         (all_local): Don't depend on stat.c or lstat.c.
86317         (stat.c, lstat.c): Remove rules.
86318         (EXTRA_DIST): Remove xstat.in.
86319
86320         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86321         * lib/stat.c: New file.  Contents mostly from xstat.in.
86322         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86323         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86324
86325         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86326         too.
86327         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86328
86329 2002-12-03  Jim Meyering  <jim@meyering.net>
86330
86331         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86332         but not semantics, to minimize the differences between these two files.
86333         (safe_read): Change comment to mention SAFE_READ_ERROR.
86334
86335         * lib/safe-read.c (IS_EINTR): Define.
86336         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86337
86338 2002-12-02  Jim Meyering  <jim@meyering.net>
86339
86340         * lib/safe-read.c (EINTR): Define.
86341         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86342         (INT_MAX): Provide fallback.
86343         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86344
86345         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86346
86347 2002-12-02  Bruno Haible  <bruno@clisp.org>
86348
86349         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86350         Define, taken from safe-read.c.
86351         (INT_MAX): Provide fallback.
86352         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86353         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86354
86355         * lib/safe-read.c (EINTR): Remove definition.
86356         (safe_read): Don't use EINTR if it is absent.
86357
86358 2002-12-01  Jim Meyering  <jim@meyering.net>
86359
86360         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86361         zero.
86362         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86363
86364 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86365
86366         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86367         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86368         with `if (! (value < limit)) abort ();', for readability.
86369
86370 2002-11-26  Karl Berry  <karl@gnu.org>
86371
86372         * lib/strdup.c: copy from libc again, with jim's ok.
86373         * lib/.cppi-disable: re-add strdup.c
86374
86375 2002-11-25  Karl Berry  <karl@gnu.org>
86376
86377         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86378         instead of "strtol.c".
86379
86380 2002-11-25  Karl Berry  <karl@gnu.org>
86381
86382         * config/install-sh: update from automake for variable quoting, $0 in
86383         error msgs, etc.
86384
86385         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86386         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86387         entry.
86388
86389 2002-11-25  Jim Meyering  <jim@meyering.net>
86390
86391         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86392
86393 2002-11-24  Karl Berry  <karl@gnu.org>
86394
86395         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86396         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86397
86398 2002-11-24  Jim Meyering  <jim@meyering.net>
86399
86400         Update from coreutils:
86401
86402         * lib/mktime.c: Merge in changes from libc.
86403
86404         Avoid a link-time failure on some Linux systems.
86405         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86406         (otherwise).
86407         (__mon_yday): Declare with the STATIC attribute.
86408         (__mktime_internal): Likewise.
86409         Based on a report from Greg Schafer.
86410
86411 2002-11-23  Jim Meyering  <jim@meyering.net>
86412
86413         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86414         Use `unsigned', not `int', as type of index.
86415
86416         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86417
86418         * lib/fsusage.c: Remove unneeded parentheses around operands of
86419         `defined'.
86420
86421 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86422
86423         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86424         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86425         so that we can be included first.
86426         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86427         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86428         No need to include stddef.h or sys/types.h any more.
86429         Surround local include files with "", not "<>".
86430         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86431         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86432         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86433         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86434         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86435         (ISPRINT): Remove; no longer needed now that we assume C89.
86436
86437         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86438         Preserve errno.
86439
86440         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86441         quotearg_char): Use SIZE_MAX rather than
86442         (size_t) -1 when we are talking about "infinity".
86443
86444         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86445
86446 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86447
86448         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86449         hint that one should use `if (! x) abort ();' rather than `assert
86450         (x);', and anyway it's one less thing to worry about configuring.
86451         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86452         hash_rehash, hash_insert): Use abort rather than assert.
86453
86454 2002-11-22  Bruno Haible  <bruno@clisp.org>
86455
86456         * lib/safe-read.h: Assume C89. Add comments.
86457         (safe_read): Change return type to size_t.
86458         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86459         byte counts > SSIZE_MAX correctly.
86460         * lib/safe-write.h: New file.
86461         * lib/safe-write.c: New file.
86462         * lib/full-read.h: New file.
86463         * lib/full-read.c: New file.
86464         * lib/full-write.h: Assume C89. Add comments.
86465         * lib/full-write.c: Include safe-write.h.
86466         (full_write): Rewritten to use safe_write.
86467         Suggested by Jim Meyering and Paul Eggert.
86468
86469 2002-11-21  Jim Meyering  <jim@meyering.net>
86470
86471         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86472
86473         Merge in changes from the coreutils.
86474
86475         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86476         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86477         <stdint.h>.
86478         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86479         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86480         int.  Work more efficiently if X is the same width as uintmax_t.
86481         Do not compare X to -1, to avoid bogus compiler warning.
86482         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86483         Don't assume that f_frsize and f_bsize are the same type.
86484
86485         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86486         warning on FreeBSD.
86487
86488         * lib/makepath.c (make_path): Restore umask *before* creating the final
86489         component.
86490         (make_path): Minor reformatting.
86491
86492         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86493         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86494         HAVE_MALLOC/HAVE_REALLOC.
86495
86496         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86497         dummy ones.  At least on GNU/Linux systems, `auto' means something
86498         else.
86499         From Michael Stone.
86500
86501 2002-11-21  Bruno Haible  <bruno@clisp.org>
86502
86503         Remove case insensitive option matching.
86504         * lib/argmatch.h (argcasematch): Remove declaration.
86505         (ARGCASEMATCH): Remove macro.
86506         (__xargmatch_internal): Remove case_sensitive argument.
86507         (XARGMATCH): Update.
86508         (XARGCASEMATCH): Remove macro.
86509         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86510         case_sensitive argument.
86511         (argcasematch): Remove function.
86512         (__xargmatch_internal): Remove case_sensitive argument.
86513         (main): Use XARGMATCH instead of XARGCASEMATCH.
86514
86515         * lib/xmalloc.c: Change compile-time error message. Add comment about
86516         required autoconf version.
86517
86518 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86519
86520         Merge argmatch cleanups from Bison.  Assume C89.
86521
86522         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86523         Include stdlib.h, for EXIT_FAILURE.
86524         Always include <string.h>, since we assume C89.
86525         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86526         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86527         Include <stddef.h> instead, since it's all we need for size_t.
86528         (PARAMS): Remove.  All uses removed.
86529         (ARRAY_CARDINALITY): Do not bother to #undef.
86530         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86531         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86532         Remove unnecessary parentheses.
86533         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86534         Insert necessary parentheses.
86535         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86536         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86537
86538 2002-11-19  Bruno Haible  <bruno@clisp.org>
86539
86540         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86541         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86542
86543         * lib/mbswidth.h (PARAMS): Remove macro.
86544         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86545         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86546
86547         * lib/gcd.h (PARAMS): Remove macro.
86548         (gcd): Use ANSI C function declarations.
86549         * lib/gcd.c (gcd): Likewise.
86550
86551 2002-11-15  Bruno Haible  <bruno@clisp.org>
86552
86553         * lib/strcspn.c: Include <stddef.h>.
86554         (strcspn): Use ANSI C function declaration. Change return type to
86555         size_t. Use NULL.
86556         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86557         (strpbrk): Use NULL.
86558         * lib/strpbrk.h (PARAMS): Remove macro.
86559         (strpbrk): Use ANSI C function declaration.
86560         * lib/strstr.c: Don't include <sys/types.h>.
86561         * lib/strstr.h (PARAMS): Remove macro.
86562         (strstr): Use ANSI C function declarations.
86563
86564 2002-11-14  Karl Berry  <karl@gnu.org>
86565
86566         * config/mkinstalldirs: `do' on separate line, instead of
86567         `for var; do'.
86568
86569 2002-11-06  Bruno Haible  <bruno@clisp.org>
86570
86571         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86572         * lib/gcd.c (gcd): Likewise.
86573
86574 2002-11-05  Bruno Haible  <bruno@clisp.org>
86575
86576         * lib/gcd.h: New file, from gettext-0.11.5.
86577         * lib/gcd.c: New file, from gettext-0.11.5.
86578
86579 2002-11-05  Bruno Haible  <bruno@clisp.org>
86580
86581         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86582         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86583         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86584         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86585
86586         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86587         <libintl.h>.
86588         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86589         <libintl.h>.
86590
86591         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86592         * lib/human.c: Include gettext.h instead of <libintl.h>.
86593         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86594         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86595         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86596         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86597         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86598         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86599         (textdomain): Remove definition.
86600         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86601
86602         * lib/long-options.c: Remove include of <libintl.h> and definition of
86603         _.
86604         * lib/same.c: Remove include of <libintl.h> and definition of _.
86605
86606 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86607
86608         * lib/config.charset: A few additions for Solaris.
86609
86610 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86611
86612         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86613         * lib/localcharset.c (locale_charset): Declare as extern "C".
86614
86615 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86616
86617         * lib/config.charset: msdos in uk_UA uses CP1125.
86618
86619 2002-11-04  Bruno Haible  <bruno@clisp.org>
86620
86621         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86622         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86623         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86624         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86625         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86626
86627 2002-11-04  Bruno Haible  <bruno@clisp.org>
86628
86629         * lib/localcharset.c (locale_charset): Don't return an empty string.
86630
86631 2002-11-04  Bruno Haible  <bruno@clisp.org>
86632
86633         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86634         aliases.
86635
86636 2002-11-04  Bruno Haible  <bruno@clisp.org>
86637
86638         * lib/config.charset: Update for newest glibc. Add canonical names
86639         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86640
86641 2002-11-04  Bruno Haible  <bruno@clisp.org>
86642
86643         * lib/config.charset: Add support for NetBSD.
86644
86645 2002-11-04  Bruno Haible  <bruno@clisp.org>
86646
86647         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86648
86649 2002-11-01  Bruno Haible  <bruno@clisp.org>
86650
86651         * configure.in: Add AC_CONFIG_AUX_DIR call.
86652         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86653         test/Makefile.
86654         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86655
86656 2002-09-28  Karl Berry  <karl@gnu.org>
86657
86658         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86659         installed automake until the next release, since changes have been
86660         made.
86661
86662 2002-09-25  Karl Berry  <karl@gnu.org>
86663
86664         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86665         * lib/getopt*: copy from libc/posix.
86666         * lib/gettext.h: copy from gettext.
86667         * lib/.cppi-disable: add strdup.c, gettext.h.
86668
86669 2002-09-25  Karl Berry  <karl@gnu.org>
86670
86671         * config/srclist.txt: enable gettext.h check.
86672         * config/config.{guess,sub}: update from prep.
86673         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86674                 from automake 1.6.3.
86675         See srclist*.
86676
86677 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86678
86679         * regex.c (PATFETCH): Remove the translating fetch.
86680         (PATFETCH_RAW): Rename to PATFETCH.
86681         (set_image_of_range): New fun.
86682         (SET_RANGE_TABLE_WORK_AREA): Use it.
86683         (regex_compile): Don't translate the pattern chars so eagerly.
86684         Only do it when inserting an `exactn' bytecode or when handling
86685         a char-range.
86686         (mutually_exclusive_p): Avoid empty statement.
86687
86688 2002-07-06  Jim Meyering  <meyering@lucent.com>
86689
86690         * m4/README: Don't mention Makefile.am.in.
86691         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86692
86693 2002-07-01  Jim Meyering  <meyering@lucent.com>
86694
86695         * lib/c-stack.c: Include sys/time.h.
86696         From Volker Borchert.
86697
86698 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86699
86700         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86701
86702 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86703
86704         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86705         New macro.  Use it uniformly instead of
86706         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86707         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86708         reported by Vin Shelton.
86709
86710 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86711
86712         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86713         Do not assume SA_SIGINFO behavior.
86714         Bug reported by Jim Meyering on NetBSD 1.5.2.
86715
86716 2002-06-22  Jim Meyering  <meyering@lucent.com>
86717
86718         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86719         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86720
86721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86722         now that configure.ac uses AC_GNU_SOURCE.
86723         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86724         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86725
86726         Update to latest tools.  Suggestions from Paul Eggert.
86727         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86728         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86729         * m4/fnmatch.m4: Likewise.
86730         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86731         to AC_HEADER_STDBOOL
86732
86733 2002-06-22  Jim Meyering  <meyering@lucent.com>
86734
86735         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86736         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86737
86738 2002-06-22  Jim Meyering  <meyering@lucent.com>
86739
86740         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86741
86742         * lib/exitfail.c, exitfail.h: Likewise.
86743         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86744
86745         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86746         of fnmatch.h.
86747         (EXTRA_DIST): Add fnmatch_loop.c.
86748         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86749
86750         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86751         * lib/fnmatch.c: Update from diffutils-2.8.2.
86752         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86753         * lib/fnmatch.h: Remove file.
86754
86755 2002-06-21  Jim Meyering  <meyering@lucent.com>
86756
86757         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86758         * m4/mbrtowc.m4: Likewise.
86759
86760         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86761         * m4/mbswidth.m4: Reflect name change:
86762         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86763         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86764
86765         * m4/lib-link.m4: Update from gettext-0.11.2.
86766         * m4/gettext.m4: Likewise.
86767
86768         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86769         From Alfred M. Szmidt.
86770
86771 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86772
86773         * lib/file-type.h: Report an error if neither S_ISREG nor
86774         S_IFREG is defined, instead of using a test specific to glibc
86775         2.2.  This should be safe, since POSIX requires S_ISREG and
86776         Unix Version 7 had S_IFREG.  We don't need to check for
86777         <sys/types.h> since we don't use any symbols that it defines.
86778
86779 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86780
86781         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86782         $@-t, so that each temporary file name is unique and valid in the first
86783         8 characters, for operation under DOS.
86784
86785 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86786
86787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86788
86789 2002-06-15  Jim Meyering  <meyering@lucent.com>
86790
86791         Work even with DJGPP 2.03, which lacks support for symlinks.
86792         From Richard Dawe.
86793         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86794         is defined.
86795         * lib/lchown.c (S_ISLNK): Likewise.
86796
86797 2002-06-15  Jim Meyering  <meyering@lucent.com>
86798
86799         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86800         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86801         have been included before this file.
86802
86803 2002-06-14  Jim Meyering  <meyering@lucent.com>
86804
86805         * lib/file-type.h: Use the version from diffutils-2.8.2.
86806         * lib/file-type.c: Likewise.
86807
86808 2002-06-07  Jim Meyering  <meyering@lucent.com>
86809
86810         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86811         They're needed at least for NetBSD 1.5.2.
86812         ($statxfs_includes): Include those same headers.
86813         ($statxfs_includes): Include sys/vfs.h if available.
86814         ($statxfs_includes): Likewise for sys/statvfs.h.
86815         Check for the following members in both structs statfs and statvfs:
86816         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86817
86818 2002-06-01  Jim Meyering  <meyering@lucent.com>
86819
86820         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86821         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86822
86823 2002-05-28  Jim Meyering  <meyering@lucent.com>
86824
86825         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86826         Reported by Volker Borchert.
86827
86828 2002-05-27  Jim Meyering  <meyering@lucent.com>
86829
86830         Fix a problem seen only on nonconforming systems whereby ls.c's
86831         use of localtime, and then of gettimeofday would cause trouble:
86832         the localtime call used to initialize rpl_gettimeofday's save
86833         mechanism would clobber ls's current local time information so
86834         that in any long listing the first file would always be listed
86835         with date 1970-01-01.  Analysis by Volker Borchert.
86836
86837         * lib/gettimeofday.c (localtime): Undefine.
86838         (rpl_localtime): New function.
86839
86840 2002-05-27  Jim Meyering  <meyering@lucent.com>
86841
86842         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86843         localtime.
86844
86845         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86846         use the replacement function; it wouldn't resolve at link time.
86847         Reported by Volker Borchert.
86848
86849 2002-05-22  Jim Meyering  <meyering@lucent.com>
86850
86851         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86852         file-type.h.
86853         * lib/file-type.h: New file.
86854         * lib/file-type.c (file_type): New file/function.  Extracted from
86855         diffutils.
86856
86857 2002-04-30  Jim Meyering  <meyering@lucent.com>
86858
86859         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86860
86861 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86862
86863         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86864
86865 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86866
86867         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86868         Do not check for alloca.h (no longer used) or stdbool.h (was never
86869         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86870
86871 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86872
86873         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86874
86875 2002-04-29  Jim Meyering  <meyering@lucent.com>
86876
86877         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86878         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86879         Use AC_FUNC_STRNLEN here instead.
86880
86881         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86882         With autoconf-2.53a, it's part of AC_PROG_CC.
86883
86884 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86885
86886         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86887         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86888
86889 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86890
86891         * lib/sig2str.h, lib/sig2str.c: New files.
86892         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86893
86894 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86895
86896         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86897         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86898         of 127, since 64 is the largest conceivable number for ancient
86899         nonstandard hosts.
86900         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86901
86902 2002-04-28  Jim Meyering  <meyering@lucent.com>
86903
86904         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86905
86906 2002-04-24  Jim Meyering  <meyering@lucent.com>
86907
86908         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86909         (jm_PREREQ): Use it.
86910
86911         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86912         mach/mach.h fcntl.h.
86913         Check for this function: setlocale.
86914
86915 2002-04-24  Jim Meyering  <meyering@lucent.com>
86916
86917         * lib/gettext.h: New file, from Gettext.
86918         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86919         (libfetish_a_SOURCES): Add gettext.h.
86920
86921 2002-04-16  Jim Meyering  <meyering@lucent.com>
86922
86923         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86924         ut_pid, ut_id, ut_exit.
86925
86926 2002-04-16  Jim Meyering  <meyering@lucent.com>
86927
86928         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86929         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86930         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86931
86932 2002-04-12  Jim Meyering  <meyering@lucent.com>
86933
86934         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86935         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86936         existence of the getmntinfo function.  Needed for Darwin 5.3.
86937
86938         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86939         This is necessary at least on Darwin 5.3.
86940
86941         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86942         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86943         strnlen.o in the library, and that makes some versions of ranlib
86944         object.
86945
86946 2002-04-12  Jim Meyering  <meyering@lucent.com>
86947
86948         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86949
86950 2002-04-09  Jim Meyering  <meyering@lucent.com>
86951
86952         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86953         to be more precise.  Rather than saying we're checking whether the
86954         function `works', say what we're testing.
86955         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86956         Reported by Bruno Haible.
86957
86958 2002-03-10  Jim Meyering  <meyering@lucent.com>
86959
86960         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86961         Suggestion from Santiago Vila.
86962
86963 2002-03-08  Jim Meyering  <meyering@lucent.com>
86964
86965         * lib/rename.c: Mention that this wrapper is needed also on
86966         mips-dec-ultrix4.4 systems.
86967
86968 2002-03-02  Jim Meyering  <meyering@lucent.com>
86969
86970         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86971         not HAVE_CLOCK_SETTIME.
86972
86973 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86974
86975         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86976         Check for clock_settime.
86977
86978 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86979
86980         * lib/nanosleep.h: Rename to....
86981         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86982
86983         * lib/gettime.c: New file.
86984         * lib/settime.c: New file.
86985         * lib/stime.c: Remove.
86986
86987         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86988         timespec.h.  Remove nanosleep.h.
86989
86990 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86991
86992         * m4/acl.m4: New file.
86993         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86994         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86995
86996 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86997
86998         * lib/acl.c, lib/acl.h: New files.
86999         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87000
87001 2002-02-24  Jim Meyering  <meyering@lucent.com>
87002
87003         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87004         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87005         cause trouble.  Reported by Nelson Beebe.
87006
87007 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87008
87009         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87010         compilers that don't know that xalloc_die never returns.
87011
87012 2002-02-20  Jim Meyering  <meyering@lucent.com>
87013
87014         * lib/getdate.c: Regenerate using bison-1.33.
87015
87016 2002-02-17  Jim Meyering  <meyering@lucent.com>
87017
87018         * config/config.guess (main): Don't use `head -1'; it's no longer
87019         portable. Use `sed 1q' instead.
87020
87021 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87022
87023         * m4/codeset.m4: Upgrade to gettext-0.11.
87024         * m4/gettext.m4: Upgrade to gettext-0.11.
87025         * m4/glibc21.m4: Upgrade to gettext-0.11.
87026         * m4/iconv.m4: Upgrade to gettext-0.11.
87027         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87028         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87029         * m4/lib-ld.m4: New file, from gettext-0.11.
87030         * m4/lib-link.m4: New file, from gettext-0.11.
87031         * m4/lib-prefix.m4: New file, from gettext-0.11.
87032         * m4/progtest.m4: Upgrade to gettext-0.11.
87033
87034 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87035
87036         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87037         (jm_PREREQ): Use it.
87038
87039 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87040
87041         * lib/posixver.c, lib/posixver.h: New files.
87042         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87043
87044 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87045             Bruno Haible  <bruno@clisp.org>
87046
87047         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87048         (fwrite_success_callback): New declaration.
87049         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87050         print_unicode_char. Call failure callback instead of error.
87051         (fwrite_success_callback): New function.
87052         (exit_failure_callback): New function.
87053         (fallback_failure_callback): New function.
87054         (print_unicode_char): Call unicode_to_mb.
87055
87056 2002-01-26  Jim Meyering  <meyering@lucent.com>
87057
87058         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87059         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87060
87061 2002-01-26  Jim Meyering  <meyering@lucent.com>
87062
87063         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87064
87065 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87066
87067         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87068
87069 2002-01-22  Jim Meyering  <meyering@lucent.com>
87070
87071         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87072         Otherwise, some versions of automake would omit the rule that makes
87073         Makefile from Makefile.in.
87074
87075 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87076
87077         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87078         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87079         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87080         (memcoll): Set errno to zero if there is no error.
87081
87082         * lib/quotearg.c (quotearg_buffer_restyled):
87083         Fix bug with quoting buffers containing NUL when backslashing escapes.
87084         This bug was exposed by the other changes in this patch.
87085         (quotearg_n_options): New arg ARGSIZE.
87086         All callers changed.
87087         (quoting_options_from_style): New function.
87088         (quotearg_n_style): Use it.
87089         (quotearg_n_style_mem): New function.
87090
87091         * lib/quotearg.h (quotearg_n_style_mem): New function.
87092
87093 2002-01-19  Jim Meyering  <meyering@lucent.com>
87094
87095         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87096         Remove useless quotes: DF_PROG="df".
87097         * m4/strnlen.m4: New file.
87098
87099 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87100
87101         * lib/backupfile.c (ISDIGIT): Comment fix.
87102         * lib/getdate.y (ISDIGIT): Likewise.
87103         * lib/posixtm.c (ISDIGIT, year): Likewise.
87104         * lib/strverscmp.c (ISDIGIT): Likewise.
87105         * lib/userspec.c (ISDIGIT): Likewise.
87106
87107 2002-01-16  Jim Meyering  <meyering@lucent.com>
87108
87109         * lib/getdate.y: Add three semicolons, each just before a closing
87110         brace. Bison (as of version 1.31) no longer papers over that mistake.
87111
87112 2002-01-05  Jim Meyering  <meyering@lucent.com>
87113
87114         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87115
87116 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87117
87118         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87119         not silently exit merely because the output buffer happens to
87120         have nothing pending.
87121
87122 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87123
87124         See the big note in ../ChangeLog.
87125         * lib/human.c (suffixes): Prefer K to k for 1024.
87126         (generate_suffix_backwards): New function.
87127         (human_readable_inexact): Use it.
87128         * lib/xstrtol.c (__xstrtol): If there is no number but there
87129         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87130         Accept 'K' as well as 'k'.
87131
87132 2001-12-15  Jim Meyering  <meyering@lucent.com>
87133
87134         * lib/regex.h (__restrict_arr): Update from libc.
87135
87136         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87137         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87138         (STREQ): Define.
87139
87140 2001-12-14  Jim Meyering  <meyering@lucent.com>
87141
87142         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87143         Suggestion from Bruno Haible.
87144
87145 2001-12-10  Jim Meyering  <meyering@lucent.com>
87146
87147         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87148         xrealloc, Instead, include "xalloc.h".
87149         (initbuffer): Don't cast xmalloc return value to char*.
87150         (readline): Reword comment.
87151         Don't cast xrealloc return value to char*
87152         Return NULL, not 0.
87153
87154 2001-12-09  Jim Meyering  <meyering@lucent.com>
87155
87156         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87157         about `signed and unsigned type in conditional expression'.
87158         * lib/posixtm.c (posix_time_parse): Likewise.
87159
87160         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87161
87162         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87163         to avoid a pedantic warning.
87164
87165         * lib/getstr.c: Don't include assert.h.
87166         (getstr): Remove warning-evoking assertions.
87167         Return -1 if offset parameter is out of bounds.
87168         Change the type of a local from int to size_t.
87169
87170         * lib/strftime.c (my_strftime_localtime_r): Include this function
87171         definition in the `#if ! HAVE_TM_GMTOFF' block.
87172
87173         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87174         Include xalloc.h instead.
87175
87176 2001-12-02  Jim Meyering  <meyering@lucent.com>
87177
87178         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87179         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87180         included.
87181
87182         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87183         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87184
87185 2001-11-30  Akim Demaille  <akim@epita.fr>
87186
87187         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87188         before being defined.
87189
87190 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87191
87192         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87193         First arg is int, not unsigned.
87194         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87195         (SIZE_MAX, UINT_MAX): New macros.
87196         (quotearg_n_options): Abort if N is negative.
87197         Avoid overflow check on hosts where size_t is 64 bits and int
87198         is 32 bits, as overflow is impossible there.
87199         Fix off-by-one typo that caused unnecessary reallocation.
87200
87201 2001-11-27  Jim Meyering  <meyering@lucent.com>
87202
87203         * lib/tempname.c: Merge with version from libc.
87204         * lib/regex.c: Likewise.
87205
87206         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87207         systems for which STDC_HEADERS is 0, it was not included, resulting in
87208         a warning about an integer-to-pointer conversion problem with getenv.
87209         Reported by Volker Borchert.
87210
87211 2001-11-26  Jim Meyering  <meyering@lucent.com>
87212
87213         * lib/gtod.h: Remove file.
87214         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87215         * lib/gettimeofday.c: Don't include gtod.h.
87216         (GTOD_init): Remove function.
87217         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87218         Suggestion from Volker Borchert.
87219
87220 2001-11-23  Jim Meyering  <meyering@lucent.com>
87221
87222         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87223         it.
87224         * lib/hash.c (struct hash_table): Define it here instead.
87225
87226 2001-11-22  Jim Meyering  <meyering@lucent.com>
87227
87228         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87229
87230 2001-11-20  Jim Meyering  <meyering@lucent.com>
87231
87232         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87233         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87234
87235 2001-11-19  Jim Meyering  <meyering@lucent.com>
87236
87237         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87238         directory.  Use "conftestXXXXXX" as the template.
87239         Suggestion from Paul Eggert.
87240
87241         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87242         immediately, so the test doesn't mistakenly hit the max-open-files
87243         limit.
87244
87245 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87246
87247         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87248         (TEMPORARIES): New macro.
87249         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87250         removes an artificial limitation (e.g. HP-UX 10.20, where
87251         TMP_MAX is 17576).
87252
87253 2001-11-18  Jim Meyering  <meyering@lucent.com>
87254
87255         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87256
87257 2001-11-18  Jim Meyering  <meyering@lucent.com>
87258
87259         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87260         on SunOS 4.
87261
87262         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87263         files will be created before anything else.
87264
87265 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87266
87267         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87268         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87269
87270 2001-11-17  Jim Meyering  <meyering@lucent.com>
87271
87272         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87273         Prompted by a report from Bob Proulx.
87274
87275         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87276         Instead, require UTILS_FUNC_MKSTEMP.
87277
87278 2001-11-17  Jim Meyering  <meyering@lucent.com>
87279
87280         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87281         Now, that's done as part of AC_FUNC_STRTOD.
87282
87283 2001-11-17  Jim Meyering  <meyering@lucent.com>
87284
87285         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87286         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87287         rather than group writable.  Patch by Juan F. Codagnone.
87288
87289         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87290         xrealloc, Instead, include "xalloc.h".
87291
87292         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87293         Remove explicit declarations of xmalloc, xrealloc,
87294         and xstrdup.  Instead, include "xalloc.h".
87295
87296         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87297         unlocked-io.h.
87298         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87299         Likewise.
87300         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87301
87302         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87303         Reported by Padraig Brady.
87304
87305         * lib/mkstemp.c: #undef mkstemp.
87306         Include config.h.
87307         (rpl_mkstemp): Rename from mkstemp.
87308         Protoize.
87309
87310 2001-11-16  Jim Meyering  <meyering@lucent.com>
87311
87312         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87313         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87314         determine the amount of total physical memory, use pstat_getstatic.
87315         HPUX-11 doesn't define _SC_PHYS_PAGES.
87316         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87317         If sysconf couldn't be used to determine the amount of available
87318         physical memory, use both pstat_getstatic and pstat_getdynamic.
87319         Based on a patch from Bob Proulx.
87320
87321 2001-11-10  Jim Meyering  <meyering@lucent.com>
87322
87323         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87324         (jm_PREREQ): Use it.
87325
87326 2001-11-09  Jim Meyering  <meyering@lucent.com>
87327
87328         * m4/jm-macros.m4: Require autoconf-2.52f.
87329         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87330         Use these AC_-prefixed names, not the AM_-prefixed ones.
87331
87332         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87333
87334 2001-11-05  Jim Meyering  <meyering@lucent.com>
87335
87336         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87337
87338 2001-11-04  Jim Meyering  <meyering@lucent.com>
87339
87340         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87341         $DEFS.
87342
87343 2001-11-03  Jim Meyering  <meyering@lucent.com>
87344
87345         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87346         of AC_DEFUN.
87347
87348         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87349         know the name of the variable in the macro definition.
87350
87351 2001-11-03  Jim Meyering  <meyering@lucent.com>
87352
87353         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87354         in argmatch_to_argument call.
87355
87356         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87357         argument.
87358
87359         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87360         e.g., a fault due to an attempt to free a NULL pointer.
87361
87362 2001-11-01  Jim Meyering  <meyering@lucent.com>
87363
87364         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87365         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87366
87367 2001-11-01  Jim Meyering  <meyering@lucent.com>
87368
87369         * lib/dirfd.c, lib/dirfd.h: New files.
87370         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87371
87372         * lib/hash.c (hash_print) [TESTING]: Clean up.
87373
87374 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87375
87376         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87377         to avoid a warning if -Wall.
87378
87379 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87380
87381         * README: New file
87382         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87383         (per RMS's instructions, this is now the canonical source)
87384         * lgpl/, gpl/: New directories.
87385
87386 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87387
87388         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87389
87390 2001-10-21  Jim Meyering  <meyering@lucent.com>
87391
87392         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87393         this code would end up calling gettext even in packages built
87394         with --disable-nls.
87395         * lib/getopt.c (_): Likewise.
87396         * lib/regex.c (_): Likewise.
87397
87398 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87399
87400         * m4/error.m4 (jm_PREREQ_ERROR):
87401         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87402         AC_FUNC_STRERROR_R does that.
87403         Check for strerror declaration.
87404
87405         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87406         are supposed to have them these days.
87407         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87408         Merge changes from latest Autoconf CVS.
87409         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87410         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87411         POSIX decided to standardize on the int flavor of strerror_r.
87412
87413 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87414
87415         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87416         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87417         Use strerror_r that is only a macro, even if it is not a function.
87418         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87419         (private_strerror): Use prototypes, not old-style function definition.
87420         (print_errno_message): New function.
87421         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87422         char*-flavored one.
87423         (error_tail, error, error_at_line): Use it.
87424
87425 2001-10-11  Jim Meyering  <meyering@lucent.com>
87426
87427         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87428         and quote_n (1, ... to avoid clobbering a buffer.
87429
87430 2001-10-05  Jim Meyering  <meyering@lucent.com>
87431
87432         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87433         hash-pjw.h.
87434         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87435         * lib/hash-pjw.h: New file.
87436
87437 2001-09-30  Jim Meyering  <meyering@lucent.com>
87438
87439         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87440         `struct fsstat' has the `f_fstypename' member.
87441         Use that to define FS_TYPE, which is now used to make
87442         the getfsstat link test tighter.
87443
87444 2001-09-30  Jim Meyering  <meyering@lucent.com>
87445
87446         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87447         Include <sys/ucred.h>, for Apple Darwin.
87448         Include sys/mount.h and sys/fs_types.h only if available.
87449         (FS_TYPE): Define.
87450         (read_filesystem_list): Use FS_TYPE.
87451
87452 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87453
87454         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87455         a boolean context.
87456
87457 2001-09-29  Jim Meyering  <meyering@lucent.com>
87458
87459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87460         [one-argument getmntent function]): Include stdio.h before mntent.h.
87461         SunOS 4.1.x needs it for the declaration of `FILE'.
87462         Patch by Volker Borchert.
87463
87464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87465         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87466         sys/fs_types.h, and make the link-test for getfsstat guard #include
87467         directives with appropriate #if HAVE_*_H tests so that we can
87468         detect getfsstat on Apple Darwin1.3.7 systems.
87469         Reported by Nelson Beebe.
87470         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87471
87472 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87473
87474         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87475         #defines strtoimax.  Also treat the other strto* functions
87476         like strtoimax.
87477
87478         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87479         Check for strtoul and strtoumax,
87480         as those declarations are made even in the signed case.
87481         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87482         Likewise, for strtol and strtoimax.
87483
87484 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87485
87486         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87487         #defines strtoimax.  Also treat the other strto* functions
87488         like strtoimax.
87489
87490         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87491         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87492         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87493
87494 2001-09-26  Jim Meyering  <meyering@lucent.com>
87495
87496         Most macros in unlocked-io.h had the wrong number of arguments.
87497         * lib/gen-uio: New script.
87498         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87499         * lib/unlocked-io.hin: Remove file.
87500         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87501         rather than trying to embed it here.
87502         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87503         Reported by Padraig Brady.
87504
87505 2001-09-25  Volker Borchert  <bt@teknon.de>
87506
87507         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87508         `result'.
87509
87510 2001-09-24  Jim Meyering  <meyering@lucent.com>
87511
87512         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87513
87514 2001-09-23  Jim Meyering  <meyering@lucent.com>
87515
87516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87517         instead of the mere test for existence of mntent.h.  The latter
87518         would get a false-positive on AIX 3.4 systems.
87519         In the outer getmntent if-block, don't die if neither of the getmntent
87520         tests succeeds.  Instead, just fall through and continue with the
87521         remaining tests.
87522
87523 2001-09-23  Jim Meyering  <meyering@lucent.com>
87524
87525         * lib/mountlist.c: Remove useless parentheses in #if directives.
87526         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87527         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87528
87529 2001-09-22  Jim Meyering  <meyering@lucent.com>
87530
87531         * m4/gettext.m4: New file.  From gettext.
87532         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87533         * m4/progtest.m4: Likewise
87534         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87535         * m4/glibc21.m4: Likewise.
87536
87537         * m4/libintl.m4: Remove.  No longer used.
87538
87539 2001-09-22  Jim Meyering  <meyering@lucent.com>
87540
87541         * lib/localcharset.c: Update from latest gettext.
87542         * lib/config.charset: Likewise.
87543
87544 2001-09-20  Jim Meyering  <meyering@lucent.com>
87545
87546         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87547         strtoimax.
87548         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87549         strtoumax.
87550
87551 2001-09-20  Jim Meyering  <meyering@lucent.com>
87552
87553         * lib/xstrtol.c (strtoimax): Guard declaration with
87554         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87555         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87556         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87557         (strtoumax): Likewise, for completeness (it wasn't necessary).
87558
87559 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87560
87561         * lib/strtoimax.c (HAVE_LONG_LONG):
87562         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87563         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87564         to work around bug in IBM C compiler.
87565
87566 2001-09-17  Jim Meyering  <meyering@lucent.com>
87567
87568         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87569         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87570         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87571         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87572         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87573         whenever the right hand side need not be expanded by the shell.
87574
87575 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87576
87577         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87578         library.  It's not correct, as some older glibcs are buggy.
87579         fnmatch wasn't fixed until glibc 2.2.
87580
87581         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87582         special shell magic here.
87583
87584 2001-09-16  Jim Meyering  <meyering@lucent.com>
87585
87586         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87587         * m4/jm-macros.m4: Require it.
87588
87589 2001-09-16  Jim Meyering  <meyering@lucent.com>
87590
87591         * lib/mkdir.c: New file.
87592
87593 2001-09-15  Jim Meyering  <meyering@lucent.com>
87594
87595         * m4/jm-macros.m4: Check for help2man.
87596
87597 2001-09-11  Jim Meyering  <meyering@lucent.com>
87598
87599         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87600         The body, by Paul Eggert, was moved here from configure.in.
87601         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87602
87603 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87604
87605         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87606         (jm_PREREQ): Use it.
87607
87608 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87609
87610         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87611         Use ssize_t, not int, to store result of readlink.
87612         Check for ssize_t overflow as well as size_t overflow,
87613         as POSIX says the result of readlink is implementation-defined
87614         when ssize_t overflows.
87615         Remove unnecessary cast to char*.
87616         Use free+malloc instead of realloc, as the storage doesn't need
87617         to be preserved and it's clearer and can be more efficient that way.
87618         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87619         * lib/xreadlink.h (xreadlink): Update prototype.
87620
87621 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87622
87623         * lib/xgetcwd.c: Revert some of the previous change; intead,
87624         fix the HAVE_GETCWD_NULL code to behave more like the
87625         !HAVE_GETCWD_NULL code used to.
87626
87627         Include "xalloc.h".
87628         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87629         invoke xalloc_die.
87630
87631 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87632
87633         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87634         sys/param.h, as pathmax.h includes them.
87635
87636 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87637
87638         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87639         (jm_PREREQ_XGETCWD): New macro.
87640
87641         * m4/getcwd.m4: New file.
87642
87643 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87644
87645         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87646         like the HAVE_GETCWD_NULL code.
87647         Include pathmax.h if not HAVE_GETCWD.
87648         Do not include xalloc.h.
87649         (INITIAL_BUFFER_SIZE): New symbol.
87650         Do not use xmalloc / xrealloc, since the caller is responsible for
87651         handling errors.  Preserve errno around `free' during failure.
87652         Do not overrun buffer when using getwd.
87653
87654 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87655
87656         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87657         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87658         getcwd (NULL, 0).
87659
87660 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87661
87662         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87663         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87664         spotted by Jim Meyering.
87665
87666 2001-09-03  Jim Meyering  <meyering@lucent.com>
87667
87668         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87669         failure.
87670
87671 2001-09-02  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/error.c: Update from GNU libc.
87674
87675 2001-09-01  Jim Meyering  <meyering@lucent.com>
87676
87677         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87678         Used by df.
87679
87680 2001-09-01  Jim Meyering  <meyering@lucent.com>
87681
87682         * lib/xreadlink.c: New file.
87683         * lib/xreadlink.h: New file.
87684         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87685         xreadlink.h.
87686
87687         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87688         doesn't conflict with sparc Solaris 7's definition in
87689         /usr/include/sys/int_types.h.
87690
87691         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87692         files.
87693         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87694         and strncasecmp as r-values.  Unixware didn't have declarations.
87695
87696 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87697
87698         * lib/xstrtol.h: Add copyright notice.
87699         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87700         LONGINT_INVALID_SUFFIX_CHAR.
87701
87702 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87703
87704         * lib/xstrtol.c (strtoimax): New decl.
87705
87706 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87707
87708         * lib/xgetcwd.c: Don't include pathmax.h.
87709         Include stdlib.h and unistd.h if available.
87710         Include xalloc.h.
87711         (xmalloc, xstrdup, free): Remove decls.
87712         (xgetcwd): Don't assume sizes fit in unsigned.
87713         Check for overflow when computing sizes.
87714         Simplify reallocation code.
87715
87716 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87717
87718         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87719         a directory's st_size can have an arbitrary value, so the old
87720         usage could waste an arbitrary amount of memory.  All uses
87721         changed.
87722         * lib/savedir.h: Update prototype.
87723
87724 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87725
87726         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87727
87728         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87729         old strtoimax.c.
87730
87731         Also, make the following further changes to make this file's
87732         configuration more similar to that of strtol.c:
87733         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87734         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87735         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87736         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87737         changed to signed values.
87738
87739         And make the following changes as well:
87740         Fix copyright notice, as 1999 was missing.
87741         (verify): New macro.
87742         (strtoimax): Check sizes at compile-time, not run-time.
87743         Prefer strtol to strtoll if both work.
87744         (main): Remove; it was not that useful and was a pain to maintain.
87745
87746         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87747
87748 2001-08-31  Jim Meyering  <meyering@lucent.com>
87749
87750         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87751         Use an initial, malloc'd, buffer of length 128 rather than
87752         a statically allocated one of length 1024.
87753
87754 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87755
87756         Simplify code, partly by assuming autoconf 2.52 semantics.
87757
87758         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87759
87760         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87761         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87762         All uses removed.
87763         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87764         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87765         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87766         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87767         jm_AC_HEADER_INTTYPES_H.
87768         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87769
87770         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87771
87772         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87773         Quote first arg of AC_DEFUN.
87774         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87775         since they are needed to parse the include file even if we need
87776         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87777         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87778         but with opposite signedness.
87779
87780 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87781
87782         Merge 'exclude' changes from tar 1.13.22.
87783         This fixes one or two unlikely storage allocation overflow bugs,
87784         but doesn't change user-visible behavior otherwise.
87785
87786 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87787
87788         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87789         (jm_PREREQ_EXCLUDE): New macro.
87790
87791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87792
87793         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87794         tm to be declared.
87795
87796 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87797
87798         * lib/hash.c: Remove '2001' from copyright notice.
87799
87800 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87801
87802         * lib/full-write.h: New file.
87803         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87804         * lib/full-write.c: Correct credits, as cccp.c no longer
87805         exists and anyway it was so heavily changed from the old cccp
87806         code as to be unrecognizable.  Include full-write.h.
87807         (full_write): Return size_t, with short writes meaning failure.
87808         All callers changed.  This fixes a bug with large buffers
87809         on 64-bit hosts.
87810         * lib/utime.c: Include full-write.h.
87811
87812 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87813
87814         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87815         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87816         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87817         Include if available.
87818         (<xalloc.h>): Include
87819         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87820         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87821         collide with FNM macros.
87822         (struct patopts): New struct.
87823         (struct exclude): Use it, as exclude patterns now come with options.
87824         (new_exclude): Support above changes.
87825         (new_exclude, add_exclude_file):
87826         Initial size must now be a power of two to simplify overflow checking.
87827         (free_exclude, fnmatch_no_wildcards): New function.
87828         (excluded_filename): No longer requires options arg, as the options
87829         are determined by add_exclude.  Now returns bool, not int.
87830         (excluded_filename, add_exclude):
87831         Add support for the fancy new exclusion options.
87832         (add_exclude, add_exclude_file): Now takes int options arg.
87833         Check for arithmetic overflow when computing sizes.
87834         (add_exclude_file): xrealloc might modify errno, so don't
87835         realloc until after errno might be used.
87836
87837         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87838         New macros.
87839         (free_exclude): New decl.
87840         (add_exclude, add_exclude_file): Now takes int options arg.
87841         (excluded_filename): No longer requires options arg, as the options
87842         are determined by add_exclude.  Now returns bool, not int.
87843
87844 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87845
87846         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87847
87848 2001-08-27  Jim Meyering  <meyering@lucent.com>
87849
87850         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87851
87852         * lib/version-etc.c (N_): Remove definition.
87853         Revert most of last change.
87854         Instead, simply don't mark the `Copyright...' string for translation.
87855         Based on advice from Paul Eggert.
87856
87857         * lib/strtoxmax.c: Tweak comment.
87858
87859 2001-08-26  Jim Meyering  <meyering@lucent.com>
87860
87861         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87862
87863         * m4/xstrtoimax.m4: New file.
87864         * m4/xstrtoumax.m4: Add comments explaining why we
87865         AC_REPLACE_FUNCS(strtol).
87866
87867 2001-08-26  Jim Meyering  <meyering@lucent.com>
87868
87869         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87870         of copyright with `%s' so translators don't get an untranslated
87871         message in 2002.
87872         (COPYRIGHT_YEAR): Define.
87873         (version_etc): Use fprintf rather than fputs.
87874         Suggestion from Ulrich Drepper.
87875
87876         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87877
87878         * lib/strtoll.c: New file, from GNU libc.
87879         * lib/xstrtoimax.c: New file.
87880
87881         * lib/xstrtol.h: Add xstrtoimax.
87882         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87883         * lib/strtoimax.c: New file.  Likewise, but first define
87884         STRTOUXMAX_SIGNED.
87885
87886         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87887         ...
87888         * lib/strtoxmax.c: ... then renamed to this.
87889
87890 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87891
87892         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87893         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87894         (jm_AC_TYPE_INTMAX_T): New macro.
87895         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87896
87897         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87898
87899         * m4/longlong.m4: Renamed from ulonglong.m4.
87900         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87901         * m4/uintmax_t.m4: Removed.
87902
87903 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87904
87905         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87906         Port to Solaris 8, where 'sed' requires a space after the 'r'
87907         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87908         Redirect output to $tmp just once.
87909
87910 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87911
87912         * lib/addext.c (<errno.h>): Include.
87913         (errno): Declare if not defined.
87914         (addext): Work correctly when pathconf returns -1 and leaves
87915         errno alone because there is no limit.  Also, work even if
87916         pathconf returns a value greater than SIZE_MAX.
87917
87918 2001-08-12  Jim Meyering  <meyering@lucent.com>
87919
87920         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87921         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87922         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87923         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87924         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87925         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87926         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87927         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87928         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87929         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87930         utime.m4, utimes.m4, xstrtoumax.m4:
87931         Quote the first argument in each use of AC_DEFUN.
87932
87933 2001-08-12  Jim Meyering  <meyering@lucent.com>
87934
87935         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87936         Simply `return getcwd (NULL, 0);'.
87937         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87938         Use 1300 as initial value for length, not PATH_MAX.
87939
87940         * lib/pathmax.h: Clean up cpp syntax.
87941
87942 2001-08-12  Jim Meyering  <meyering@lucent.com>
87943
87944         * lib/gettimeofday.c: New file.
87945         * lib/gtod.h: New file.
87946         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87947
87948 2001-08-05  Jim Meyering  <meyering@lucent.com>
87949
87950         * m4/jm-macros.m4: Require autoconf-2.52.
87951
87952 2001-08-04  Jim Meyering  <meyering@lucent.com>
87953
87954         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87955         stmt, to get in sync with glibc.
87956
87957 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87958
87959         The following changes are from gettext 0.10.39 as maintained by
87960         Bruno Haible.
87961
87962         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87963         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87964         with inverted sense.  All uses changed.
87965
87966         * lib/mbswidth.c: Don't include <limits.h>.
87967         Include <stdlib.h> and <string.h> unconditionally.
87968         (iswcntrl, mbsinit, ISCNTRL): New macros.
87969         (mbsnwidth): Use K&R style function declarations.
87970         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87971         can optimize it when MB_CUR_MAX == 1.
87972         The width of control characters is zero, not 1.
87973
87974 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87975
87976         The following changes are from gettext 0.10.39 as maintained by
87977         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87978
87979         * m4/codeset.m4: Upgrade to serial AM1.
87980         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87981         all uses changed.  Quote first arg of AC_DEFUN.
87982         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87983
87984         * m4/iconv.m4: Upgrade to serial AM2.
87985         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87986         Add --with-libconv-prefix.
87987         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87988         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87989         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87990         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87991         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87992
87993         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87994         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87995         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87996         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87997         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87998         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87999         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88000         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88001         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88002
88003         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88004         string.h any more.
88005
88006         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88007         not the default value.
88008
88009         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88010         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88011         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88012         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88013         Also check for iswcntrl, used for wcwidth fallback.
88014         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88015         to Autoconf 2.13.
88016
88017 2001-08-03  Jim Meyering  <meyering@lucent.com>
88018
88019         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88020         as it was in the original.  Reported by Paul Eggert.
88021
88022 2001-07-16  Jim Meyering  <meyering@lucent.com>
88023
88024         * m4/gettimeofday.m4: New file.
88025         Prompted by a report from Bernhard Baehr.
88026
88027 2001-07-15  Jim Meyering  <meyering@lucent.com>
88028
88029         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88030         stuff. Now it's in ../Makefile.cfg.
88031
88032 2001-07-15  Jim Meyering  <meyering@lucent.com>
88033
88034         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88035         (BUILT_SOURCES): Add unlocked-io.h.
88036         (io_functions): Define.
88037         (unlocked-io.h): New rule.
88038         (DISTCLEANFILES): Add unlocked-io.h.
88039         (all-local): Depend on unlocked-io.h, to ensure it is created.
88040
88041         * lib/unlocked-io.hin: New file
88042
88043         * lib/regex.c: Update from glibc.
88044
88045 2001-07-05  Jim Meyering  <meyering@lucent.com>
88046
88047         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88048         recommendation.
88049         (libfetish_a_SOURCES): Put all .h files here instead.
88050         Remove a thus-exposed (better checks in automake) duplicate and
88051         two unnecessary .h files.
88052
88053 2001-07-04  Jim Meyering  <meyering@lucent.com>
88054
88055         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88056         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88057         distcheck failure.
88058
88059 2001-07-02  Jim Meyering  <meyering@lucent.com>
88060
88061         The following changes were prompted by suggestions from Bruno Haible.
88062
88063         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88064         is now generated.
88065         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88066         definition of EXTRA_DIST.
88067         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88068         ensure that the generated file is created/updated whenever the list
88069         of $(unlocked_functions) is changed.
88070         (jm-glibc-io.m4): New rule.
88071         (unlocked-io.h): New rule -- currently unused.
88072
88073 2001-06-24  Jim Meyering  <meyering@lucent.com>
88074
88075         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88076         unmatched right bracket, rather than kludging it with an extra,
88077         falsely-matching quote in a comment.  Patch by Akim Demaille.
88078
88079 2001-06-11  Jim Meyering  <meyering@lucent.com>
88080
88081         * lib/regex.c: Update from GNU libc.
88082
88083 2001-05-27  Jim Meyering  <meyering@lucent.com>
88084
88085         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88086         Check for ut_type in struct utmp.
88087
88088 2001-05-27  Jim Meyering  <meyering@lucent.com>
88089
88090         * lib/readutmp.h (UT_TYPE): Define.
88091
88092 2001-05-24  Jim Meyering  <meyering@lucent.com>
88093
88094         * lib/argmatch.c: Include "quote.h".
88095         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88096         quote function.  Reported by Göran Uddeborg.
88097
88098 2001-05-22  Jim Meyering  <meyering@lucent.com>
88099
88100         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88101         now that we use the package-supplied version unconditionally.
88102         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88103
88104 2001-05-21  Jim Meyering  <meyering@lucent.com>
88105
88106         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88107         shell syntax errors.
88108
88109 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88110
88111         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88112
88113 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88114
88115         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88116         Don't bother to check library strftime, since
88117         we'll be using our own my_strftime function anyway.
88118         Define my_strftime instead of strftime.
88119
88120 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88121
88122         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88123         which is not yet declared.
88124
88125 2001-05-15  Jim Meyering  <meyering@lucent.com>
88126
88127         * m4/regex.m4: Use proper quoting so brackets appear in the test
88128         program.
88129         Reported by, and with help from, Bruno Haible.
88130
88131 2001-05-13  Jim Meyering  <meyering@lucent.com>
88132
88133         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88134         undefined.
88135
88136 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88137
88138         dirname code cleanup.  base_name now behaves more compatibly
88139         with POSIX basename when given file names that have trailing
88140         slashes, and similarly for dir_name.  Add new primitives
88141         base_len and dir_len.  Put the directory-name-related decls
88142         into dirname.h.
88143
88144         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88145         * lib/backupfile.c (base_name): Likewise.
88146         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88147         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88148         * lib/makepath.c (strip_trailing_slashes): Likewise.
88149         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88150         ISSLASH): Likewise.
88151         * lib/rename.c (strip_trailing_slashes): Likewise.
88152         * lib/same.c (base_name): Likewise.
88153         * lib/stripslash.c (ISSLASH): Likewise.
88154
88155         * lib/addext.c: Include <dirname.h> after size_t is defined.
88156         * lib/backupfile.c: Likewise.
88157
88158         * lib/addext.c (addext): Use base_len to trim redundant
88159         trailing slashes instead of doing it ourselves.
88160         But do not trim the last slash if it is not redundant.
88161
88162         * lib/backupfile.c (find_backup_file_name,
88163         max_backup_version): Use base_len instead of rolling it ourselves.
88164         Handle the case of "" and (on DOS) "C:" correctly.
88165
88166         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88167         needed. Include <string.h>, <dirname.h>.
88168         (base_name): Allow file names ending in slashes, other than names
88169         that are all slashes.  In this case, return the basename followed
88170         by the slashes.  This is more general, and can be used in places
88171         where the original base_name purposely had an assertion failure.
88172         (base_len): New function.
88173
88174         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88175         Do not include <assert.h>; no longer needed.
88176         Include xalloc.h.
88177         (memrchr): Remove decl.
88178         (dir_name_r): Remove.
88179         (dir_len): Renamed from dirlen.  All callers changed.
88180         Rewrite in terms of base_name, for simplicity and consistency.
88181         (dir_name): Never return NULL.  All callers changed.
88182         Do not include <stdlib.h> in test program; no longer needed.
88183         return 0; is fine for test program.
88184
88185         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88186         New macros.
88187         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88188
88189         * lib/path-concat.c (path_concat): Use base_len to compute
88190         base length, not strlen; this means we cannot rely on memcpy
88191         to null-terminate.
88192
88193         * lib/same.c (STREQ): Remove.
88194         (same_name): Handle the case where the basename ends in trailing '/'.
88195
88196         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88197         a slash was stripped.  Do not strip the last slash after a
88198         file system prefix.
88199
88200 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88201
88202         * lib/Makefile.am (libfetish_a_SOURCES):
88203         Add strftime.c, since we now compile it on all hosts.
88204
88205         * lib/strftime.c (my_strftime):
88206         Define to nstrftime if emacs, but only if my_strftime is not defined.
88207         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88208         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88209         Add one more extra argument: a nanoseconds value.
88210         All uses changed.
88211         (ns): New macro.
88212         (my_strftime function): Add %N format.
88213         (emacs_strftimeu): Renamed from emacs_strftime,
88214         with extra ut argument.
88215
88216 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88217
88218         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88219
88220 2001-04-21  Jim Meyering  <meyering@lucent.com>
88221
88222         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88223         doesn't interfere.
88224
88225 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88226
88227         * m4/ftruncate.m4: Check for chsize.
88228         Link with ftruncate.o unconditionally if ftruncate is missing.
88229         This was required when cross-compiling to i586-mingw32msvc.
88230
88231 2001-04-08  Jim Meyering  <meyering@lucent.com>
88232
88233         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88234         recomputed; that's necessary when the offset spans a DST transition.
88235         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88236
88237 2001-04-02  Jim Meyering  <meyering@lucent.com>
88238
88239         * lib/regex.h, regex.c: Update from GNU libc.
88240
88241 2001-03-24  Jim Meyering  <meyering@lucent.com>
88242
88243         * m4/jm-macros.m4: Require autoconf-2.49d.
88244
88245 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88246
88247         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88248
88249 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88250
88251         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88252
88253 2001-03-17  Jim Meyering  <meyering@lucent.com>
88254
88255         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88256         now that the version in autoconf is equivalent.
88257         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88258
88259         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88260         Suggestion from Akim Demaille.
88261
88262         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88263         (jm_PREREQ_TEMPNAME): New function.
88264
88265 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88266
88267         * lib/tempname.c (uint64_t): Define to uintmax_t if
88268         not defined, and if UINT64_MAX is not defined.
88269         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88270         Reported by John David Anglin.
88271
88272 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88273
88274         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88275         resolve alias if codeset is empty.
88276         * lib/config.charset (BeOS): Use wildcard syntax.
88277
88278 2001-03-13  Jim Meyering  <meyering@lucent.com>
88279
88280         * lib/path-concat.c (path_concat)
88281         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88282         concatenating e.g., `C:' and `foo'.
88283         From Bruno Haible.
88284
88285 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88286
88287         * lib/localcharset.c (locale_charset): Don't use
88288         setlocale(LC_CTYPE,NULL). Don't return NULL.
88289         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88290
88291 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88292
88293         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88294         support for DOS/DJGPP.
88295
88296 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88297
88298         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88299         lacks mkstemp.  Compile our own tempname.c if we compile our own
88300         mkstemp.c, as mkstemp relies on tempname.
88301
88302 2001-03-01  Jim Meyering  <meyering@lucent.com>
88303
88304         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88305         AH_VERBATIM really does output its argument verbatim.
88306
88307 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88308
88309         * lib/Makefile.am (libfetish_a_SOURCES):
88310         Add dup-safer.c, fopen-safer.c.
88311         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88312
88313         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88314         * lib/unistd-safer.h: New files.
88315
88316 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88317
88318         The mkstemp replacement is taken from glibc 2.2.2, with some
88319         portability fixes for use outside glibc, as follows:
88320
88321         * lib/tempname.c (struct_stat64): New macro.
88322         (direxists, __gen_tempname): Use it.
88323         This avoids a portability problem with Solaris 8.
88324
88325         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88326         (<stddef.h>, <stdint.h>, <string.h>):
88327         Include only if STDC_HEADERS || _LIBC.
88328         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88329         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88330         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88331         (__set_errno): Define this macro if <errno.h> doesn't.
88332         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88333         Define these macros if <stdio.h> doesn't.
88334         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88335         Define these macros if <sys/stat.h>
88336         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88337         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88338         __xstat64): Define if not _LIBC.
88339         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88340         (__gen_tempname): Invoke gettimeofday only if
88341         HAVE_GETTIMEOFDAY || _LIBC;
88342         otherwise, fall back on plain "time".
88343         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88344
88345         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88346
88347         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88348
88349 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88350
88351         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88352
88353 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88354
88355         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88356         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88357         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88358         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88359
88360 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88361
88362         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88363         Remove workaround macros for hosts that have mbrtowc but not
88364         mbstate_t, as we now insist on proper declarations for both
88365         before using mbrtowc.
88366
88367 2001-02-17  Jim Meyering  <meyering@lucent.com>
88368
88369         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88370         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88371         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88372         UnixWare 7.1.1.
88373
88374         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88375         rather than AC_CACHE_VAL.
88376
88377 2001-02-17  Jim Meyering  <meyering@lucent.com>
88378
88379         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88380         around included file name.
88381
88382         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88383
88384         * lib/strftime.c: Update from GNU libc (the only changes were to
88385         comments).
88386
88387 2001-02-17  Jim Meyering  <meyering@lucent.com>
88388
88389         * lib/regex.c: Update from libc.
88390
88391 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88392
88393         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88394         clash.
88395
88396 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88397
88398         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88399         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88400         Reported by Mark Hounschell via Paul Eggert.
88401
88402 2001-02-07  Jim Meyering  <meyering@lucent.com>
88403
88404         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88405
88406 2001-02-05  Jim Meyering  <meyering@lucent.com>
88407
88408         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88409         it includes the patch required for `large file' support with at least
88410         HP-UX's 10.20 /bin/cc.
88411
88412 2001-02-03  Jim Meyering  <meyering@lucent.com>
88413
88414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88415         AS_IF, now that it works once again (mysteriously).
88416         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88417
88418 2001-01-30  Jim Meyering  <meyering@lucent.com>
88419
88420         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88421         * m4/chown.m4: Rename conftestchown to conftest.chown.
88422         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88423         s/conftestdir2/conftest.d2/.
88424         * m4/utimes.m4: s/conftestdata/conftest.data/
88425         Inspired by Pavel Roskin's change in autoconf.
88426
88427 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88428
88429         * lib/config.charset: Update for FreeBSD 4.2.
88430
88431 2001-01-27  Jim Meyering  <meyering@lucent.com>
88432
88433         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88434         a use of AS_IF.
88435         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88436
88437 2001-01-26  Jim Meyering  <meyering@lucent.com>
88438
88439         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88440         quotearg.c includes it.
88441
88442 2001-01-26  Jim Meyering  <meyering@lucent.com>
88443
88444         * lib/quotearg.c: Include stddef.h.
88445         * lib/quote.c: Include stddef.h.
88446         Reported by Axel Kittenberger.
88447
88448         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88449         line in double quotes so that it evokes a better diagnostic.
88450         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88451         Reported by Axel Kittenberger.
88452
88453 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88454
88455         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88456         as if it was a `charset'.
88457
88458 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88459
88460         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88461         has const.
88462
88463 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88464
88465         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88466         to avoid a warning.  Add back 'const' to inptr.
88467
88468 2001-01-20  Jim Meyering  <meyering@lucent.com>
88469
88470         Be sure that headers are checked before used in code compiled
88471         for the type checks.
88472         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88473         In place of that, invoke jm_CHECK_ALL_TYPES.
88474         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88475         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88476         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88477         The check for ssize_t was mistakenly run before the test for unistd.h.
88478
88479         The configure-time check for stdbool.h was missing.
88480         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88481         (jm_PREREQ_HASH): New function.
88482
88483 2001-01-17  Jim Meyering  <meyering@lucent.com>
88484
88485         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88486         for autoconf-2.49c.
88487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88488
88489 2001-01-16  Jim Meyering  <meyering@lucent.com>
88490
88491         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88492         From Bruno Haible.
88493
88494 2001-01-14  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88497         foo and bar.  Create conftestdir/ in the script, not in the C code.
88498         Remove directories in the script, not in the C code.
88499         Remove conftestdir{,2} before trying to create the directory.
88500         Make the entire configure script fail if the mkdir fails.
88501
88502 2001-01-14  Jim Meyering  <meyering@lucent.com>
88503
88504         * lib/rename.c: New file.  From Volker Borchert.
88505         Include stdlib.h, string.h or strings.h, and xalloc.h.
88506         Use strip_trailing_slashes rather than open-coding it.
88507
88508 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88509
88510         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88511
88512 2001-01-03  Jim Meyering  <meyering@lucent.com>
88513
88514         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88515         of local `inptr' to avoid warning with some system declarations of
88516         iconv.
88517
88518 2001-01-02  Volker Borchert  <bt@teknon.de>
88519
88520         * m4/rename.m4: New file.
88521         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88522
88523 2001-01-01  Jim Meyering  <meyering@lucent.com>
88524
88525         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88526         even on systems with utmpx.h.  It's necessary for the declaration of
88527         utmp's ut_user member.  Reported by Andreas Jaeger.
88528
88529         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88530         available. They are required for the declarations of getgrgid and
88531         getpwuid resp.
88532         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88533         Reported by Andreas Jaeger.
88534
88535 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88536
88537         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88538         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88539         so `make install' also works in VPATH builds.
88540
88541 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88542
88543         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88544         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88545         can be used in subdirectories.
88546
88547 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88548
88549         * lib/modechange.c: Do not assume that mode_t uses the
88550         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88551         the other-execute bit of FOO even if S_IXOTH != 1.
88552
88553         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88554         WOTH, XOTH, ALLM): New macros.
88555         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88556          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88557         Use them.
88558         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88559         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88560         (mode_compile):
88561         No need to use uintmax_t; unsigned long is long enough.
88562         Don't bother to get suffix since we don't use it.
88563
88564 2000-12-26  Jim Meyering  <meyering@lucent.com>
88565
88566         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88567         better with autoheader.
88568
88569 2000-12-24  Jim Meyering  <meyering@lucent.com>
88570
88571         * lib/hash.c (is_prime): Return explicit boolean values.
88572         (hash_get_first): Return NULL to appease Irix5.6's 89.
88573         Reported by Nelson Beebe.
88574
88575 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88576
88577         * lib/localcharset.c (locale_charset): Add support for Win32.
88578
88579 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88580
88581         * lib/physmem.h, lib/physmem.c: New files.
88582
88583         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88584         (noinst_HEADERS): Add physmem.h.
88585
88586         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88587         't' for compatibility with Solaris 8 sort.
88588
88589 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88590
88591         * lib/config.charset: Add support for BeOS.
88592
88593 2000-12-17  Jim Meyering  <meyering@lucent.com>
88594
88595         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88596         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88597
88598 2000-12-16  Jim Meyering  <meyering@lucent.com>
88599
88600         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88601         N and M) would have treated it like `chown N:N FILE'.
88602
88603         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88604
88605 2000-12-16  Jim Meyering  <meyering@lucent.com>
88606
88607         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88608         SHELLS_FILE to a file name that's useful on djgpp systems.
88609         Include stdlib.h.
88610         (ADDITIONAL_DEFAULT_SHELLS): Define.
88611         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88612         Based mostly on a patch from Prashant TR.
88613
88614 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88615
88616         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88617         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88618         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88619
88620 2000-12-08  Andreas Schwab  <schwab@suse.de>
88621
88622         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88623         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88624
88625 2000-12-07  Jim Meyering  <meyering@lucent.com>
88626
88627         * lib/stripslash.c (ISSLASH): Define.
88628         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88629         `/'.
88630         From Prashant TR.
88631
88632         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88633         (dir_name_r): Declare this function as static.
88634         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88635         manifest itself on a name containing a mix of slashes and
88636         backslashes.
88637         Make this function work with names starting with a DOS-style
88638         drive letter and colon prefix.
88639         (dir_name): Append `.' if necessary.
88640         Based mostly on patches from Prashant TR and Eli Zaretskii.
88641
88642         * lib/dirname.h (dir_name_r): Remove prototype.
88643
88644 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88645
88646         * m4/off_t-format.m4: Remove this file.
88647         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88648
88649 2000-12-06  Jim Meyering  <meyering@lucent.com>
88650
88651         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88652         replacement strtoull, we may well need the replacement strtoul, too.
88653         Check for declarations of strtoul and strtoull.
88654         Check for strtol.  Mainly as a cue to cause automake to include
88655         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88656         Check for limits.h -- strtol.c needs it.
88657
88658 2000-12-05  Jim Meyering  <meyering@lucent.com>
88659
88660         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88661
88662 2000-12-04  Jim Meyering  <meyering@lucent.com>
88663
88664         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88665         Also include memory.h, stdlib.h, unistd.h if appropriate.
88666         Reported by Andreas Jaeger (conflicting declaration of malloc).
88667
88668 2000-12-02  Jim Meyering  <meyering@lucent.com>
88669
88670         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88671         * m4/jm-macros.m4 (jm_MACROS): require it.
88672
88673 2000-12-02  Jim Meyering  <meyering@lucent.com>
88674
88675         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88676
88677 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88678
88679         * lib/memrchr.c: Include <config.h> before any system include file.
88680
88681 2000-11-30  Jim Meyering  <meyering@lucent.com>
88682
88683         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88684
88685 2000-11-30  Jim Meyering  <meyering@lucent.com>
88686
88687         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88688
88689 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88690
88691         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88692
88693 2000-11-26  Jim Meyering  <meyering@lucent.com>
88694
88695         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88696
88697 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88698
88699         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88700         size of (size_t) -1; it's not portable.
88701
88702 2000-11-17  Jim Meyering  <meyering@lucent.com>
88703
88704         * lib/strstr.c: Update from GNU libc.
88705
88706 2000-11-17  Akim Demaille  <akim@epita.fr>
88707
88708         * lib/obstack.h: Formatting changes.
88709         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88710         prevent type checking.
88711         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88712         cast the value to (void *): assigning a `foo *' to a `void *'
88713         variable is valid.
88714         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88715
88716 2000-11-16  Jim Meyering  <meyering@lucent.com>
88717
88718         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88719
88720 2000-11-11  Jim Meyering  <meyering@lucent.com>
88721
88722         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88723
88724 2000-11-10  Jim Meyering  <meyering@lucent.com>
88725
88726         * lib/obstack.h: Update from GNU libc.
88727         * lib/obstack.c: Likewise.
88728
88729 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88730
88731         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88732
88733 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88734
88735         * lib/getusershell.c (setusershell): Use rewind rather than
88736         fseek/fseeko, to avoid configuration hassles with fseeko.
88737         Don't bother opening SHELLS_FILE if shellstream is NULL;
88738         it's not necessary.
88739
88740 2000-11-05  Jim Meyering  <meyering@lucent.com>
88741
88742         * lib/makepath.h (make_dir): Declare.
88743         * lib/makepath.c (make_dir): Remove `static' attribute.
88744         Tweak a comment.
88745
88746 2000-11-04  Jim Meyering  <meyering@lucent.com>
88747
88748         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88749
88750 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88751
88752         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88753         last one in a bucket, advance to the next bucket.
88754
88755 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88756
88757         * lib/fnmatch.c: Do not comment out all the code if we are using
88758         the GNU C library, because in some cases we are replacing buggy
88759         code in the GNU C library itself.
88760
88761 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88762
88763         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88764         (regex_compile): Catch bogus \(\1\).
88765
88766 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88767
88768         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88769         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88770         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88771
88772 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88773
88774         * lib/error.h, getline.h, modechange.h:
88775         Remove "2000" from Copyright line, as the file hasn't been
88776         changed this year other than in the copyright notice.
88777
88778         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88779         was changed this year.
88780
88781 2000-10-29  Jim Meyering  <meyering@lucent.com>
88782
88783         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88784         renaming.
88785         * m4/ls-mntd-fs.m4: Likewise
88786
88787 2000-10-29  Jim Meyering  <meyering@lucent.com>
88788
88789         * lib/xstat.in: Fix grammar in comment.
88790
88791 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88792
88793         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88794         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88795         doesn't define __restrict_arr.
88796
88797 2000-10-28  Jim Meyering  <meyering@lucent.com>
88798
88799         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88800         (jm_PREREQ_MEMCHR): New function.
88801
88802 2000-10-28  Jim Meyering  <meyering@lucent.com>
88803
88804         * lib/memchr.c: Update from libc.
88805         Adjust for portability:
88806         [HAVE_STDLIB_H]: Include stdlib.h.
88807         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88808         Undef __memchr, too.
88809         [!weak_alias]: Define __memchr to memchr.
88810
88811         * lib/regex.c: Update from libc.
88812         * lib/regex.h: Likewise.
88813         * lib/getopt1.c: Likewise.
88814         * lib/memcmp.c: Likewise.
88815
88816         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88817         Avoid using fseek, when possible -- it's broken by design.
88818         Patch by Ulrich Drepper.
88819
88820 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88821
88822         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88823         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88824         Giving in to popular pressure to shut up the compiler with casts.
88825
88826 2000-10-26  Jim Meyering  <meyering@lucent.com>
88827
88828         * lib/strftime.c: Update from libc.
88829
88830 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88831
88832         * regex.c: More `unsigned char' -> `re_char' changes.
88833         Also change several `int' into `re_wchar_t'.
88834         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88835         (PUSH_FAILURE_POINTER): Don't cast any more.
88836         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88837         We want GCC to complain, since this piece of code makes
88838         re_match non-reentrant, which *should* be fixed.
88839         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88840         (EXTEND_BUFFER): Use RETALLOC.
88841         (SET_LIST_BIT): Don't cast.
88842         (re_wchar_t): New type.
88843         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88844         that those two functions will always properly return.
88845         (IMMEDIATE_QUIT_CHECK): Cast to void.
88846         (analyse_first): Use recursion rather than an explicit stack.
88847         (re_compile_fastmap): Can't fail anymore.
88848         (re_search_2): Don't check re_compile_fastmap for failure.
88849         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88850         Now also sets the new value (passed in a new argument).
88851         (re_match_2_internal): Use it.
88852         Also, use a new var `reg' of type size_t when looping through regs
88853         rather than reuse the inappropriate `mcnt'.
88854
88855 2000-10-25  Jim Meyering  <meyering@lucent.com>
88856
88857         * lib/obstack.c: Update from libc.
88858
88859 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88860
88861         * regex.c (regex_compile): Change the way of handling a range from
88862         a char less than 256 to a char not less than 256.
88863
88864 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88865
88866         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88867         NT-Emacs only.
88868         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88869         so that re_search functions only quit when callers expect them to.
88870
88871 2000-10-23  Jim Meyering  <meyering@lucent.com>
88872
88873         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88874         wrong.  That set_locale call must not have any side effects.
88875         From Paul Eggert.
88876
88877 2000-10-22  Jim Meyering  <meyering@lucent.com>
88878
88879         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88880         [CYCLIC]: Remove now-unused definition.
88881
88882         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88883         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88884         Suggestion from Ulrich Drepper.
88885
88886 2000-10-21  Jim Meyering  <meyering@lucent.com>
88887
88888         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88889         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88890         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88891
88892 2000-10-21  Jim Meyering  <meyering@lucent.com>
88893
88894         * lib/dirname.c (memrchr): Declare if necessary.
88895         (dir_name): Remove the restriction that there be no
88896         trailing slashes.  Now, this code skips past them, effectively
88897         ignoring them.
88898         [TEST_DIRNAME] (main): New unit tests.
88899
88900         * lib/memrchr.c: New file from GNU libc.
88901         Undef __memrchr, too.
88902         [!weak_alias]: Define __memrchr to memrchr.
88903         Guard weak_alias use with `#ifdef weak_alias'.
88904
88905 2000-10-21  Jim Meyering  <meyering@lucent.com>
88906
88907         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88908         (dir_name): Use dir_name_r.
88909         * lib/dirname.h (dir_name_r): Declare it.
88910
88911 2000-10-17  Jim Meyering  <meyering@lucent.com>
88912
88913         * lib/quote.h (PARAMS): Define and use.
88914         Reported by Akim Demaille.
88915
88916         * lib/getopt.c: Update from libc.
88917
88918 2000-10-16  Jim Meyering  <meyering@lucent.com>
88919
88920         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88921         setlocale.
88922         From Jan Fedak.
88923
88924 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88925
88926         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88927
88928 2000-09-25  Jim Meyering  <meyering@lucent.com>
88929
88930         * lib/md5.h (rol): Define (from GnuPG).
88931
88932         * lib/sha.c: Give credit (GnuPG) where due.
88933         (M): Use rol rather than open-coding it.
88934         Add a FIXME comment.
88935
88936 2000-09-21  Jim Meyering  <meyering@lucent.com>
88937
88938         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88939         Reported by Michael Stone.
88940
88941 2000-09-20  Jim Meyering  <meyering@lucent.com>
88942
88943         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88944         (noinst_HEADERS): Add sha.h.
88945         Based on code from Scott G. Miller and from GnuPG.
88946
88947 2000-09-18  Jim Meyering  <meyering@lucent.com>
88948
88949         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88950         LIBS. Otherwise, everyone ends up linking with -lelf for some
88951         configurations.
88952         Reported by Mike Stone.
88953
88954 2000-09-15  Jim Meyering  <meyering@lucent.com>
88955
88956         * lib/regex.c: Update from libc.
88957
88958 2000-09-10  Jim Meyering  <meyering@lucent.com>
88959
88960         * lib/getopt.c (_getopt_internal): Update from glibc.
88961
88962 2000-09-09  Jim Meyering  <meyering@lucent.com>
88963
88964         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88965         think it should be used as a general replacement for isascii.
88966         * lib/fnmatch.c: Likewise.
88967         * lib/mbswidth.c: Likewise
88968         * lib/regex.c: Likewise.
88969
88970         Don't use atoi.
88971         * lib/userspec.c: Include sys/param.h and limits.h.
88972         Include xstrtol.h.
88973         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88974         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88975         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88976         UID, GID.  Check range.
88977
88978 2000-09-06  Jim Meyering  <meyering@lucent.com>
88979
88980         * lib/getopt.c (_getopt_internal): Update from glibc.
88981
88982 2000-08-30  Jim Meyering  <meyering@lucent.com>
88983
88984         * lib/strftime.c: Merge in changes from GNU libc.
88985
88986 2000-08-26  Jim Meyering  <meyering@lucent.com>
88987
88988         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88989         * m4/fpending.m4: New file.
88990
88991 2000-08-26  Jim Meyering  <meyering@lucent.com>
88992
88993         * lib/closeout.c: Include "__fpending.h".
88994         (close_stdout_status): Return right away if there's nothing to flush.
88995
88996         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88997         * lib/__fpending.c: New file.
88998         * lib/__fpending.h: New file.
88999
89000 2000-08-20  Jim Meyering  <meyering@lucent.com>
89001
89002         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89003         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89004         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89005
89006 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89007
89008         Improve fileutils installation on systems where running
89009         programs (like install) can't be unlinked.
89010         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89011         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89012
89013 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89014
89015         Standardize on "memory exhausted" instead of "Memory exhausted"
89016         or "virtual memory exhausted".
89017         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89018         "virtual memory exhausted".
89019         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89020         our own message.
89021         * lib/userspec.c (parse_user_spec): Likewise.
89022         * lib/bumpalloc.h: comment fix
89023         * lib/same.c, userspec.c: Include xalloc.h.
89024
89025         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89026         not char *const and pointing to a constant array.
89027         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89028         (xrealloc): Comment fix.
89029
89030         * lib/userspec.c (parse_user_spec):
89031         Don't translate a message until just before returning,
89032         to avoid unnecessary translation.
89033
89034 2000-08-07  Jim Meyering  <meyering@lucent.com>
89035
89036         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89037         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89038         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89039         getgroups.c, gethostname.c, getopt.h, group-member.c,
89040         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89041         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89042         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89043         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89044         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89045         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89046         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89047         yesno.c: Back out Copyright date changes for each file with no change
89048         this year.  This eases coordination with other programs using the same
89049         source code modules.  From Paul Eggert.
89050
89051 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89052
89053         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89054         not char, for compatibility with glibc 2.1.3 strftime.c.
89055
89056 2000-08-03  Greg McGary  <greg@mcgary.org>
89057
89058         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89059         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89060         (EXTEND_BUFFER): Use them.
89061
89062 2000-08-01  Jim Meyering  <meyering@lucent.com>
89063
89064         * lib/dirname.c (ISSLASH): Define.
89065         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89066         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89067         both `\' and `/' may be use as path separators.
89068         Based on a patch from Prashant TR.
89069
89070 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89071
89072         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89073         slot vector a constant, since it might get modified.
89074
89075 2000-07-31  Jim Meyering  <meyering@lucent.com>
89076
89077         * lib/xmalloc.c: Use `virtual memory exhausted', not
89078         `Memory exhausted'.
89079         * lib/obstack.c (print_and_abort): Likewise.
89080
89081 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89082
89083         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89084         buffer, so that the caller can always quote one small
89085         component of a "memory exhausted" message in slot 0.
89086         From a suggestion by Jim Meyering.
89087
89088 2000-07-30  Jim Meyering  <meyering@lucent.com>
89089
89090         * lib/makepath.c (make_path): Quote the other instance, too.
89091
89092         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89093         (STATIC_BUF_SIZE): Define.
89094         (quotearg_n_options): Use only statically allocated storage when
89095         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89096         than STATIC_BUF_SIZE.
89097
89098 2000-07-29  Jim Meyering  <meyering@lucent.com>
89099
89100         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89101         * lib/dirname.c (dir_name): Likewise.
89102
89103         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89104         `/'.
89105
89106         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89107         (dir_name): Assert that there are no trailing slashes.
89108
89109 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89110
89111         * lib/mbswidth.h (mbswidth): Add a flags argument.
89112         (mbswidth): New declaration.
89113         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89114         * lib/mbswidth.c (mbswidth): Add a flags argument.
89115         (mbsnwidth): New function.
89116
89117 2000-07-24  Jim Meyering  <meyering@lucent.com>
89118
89119         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89120
89121 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89122
89123         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89124
89125 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89126
89127         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89128         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89129         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89130         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89131         invoke multibyte primitives.
89132
89133 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89134
89135         * lib/quotearg.c:
89136         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89137         so that mbstate_t is always defined.
89138
89139         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89140         be 1 in at least one GCC installation, and this configuration
89141         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89142         performance on hosts that have mbrtowc but have only unibyte
89143         locales, but I assume these hosts are rare.
89144
89145 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89146
89147         * lib/mbswidth.c (_XOPEN_SOURCE):
89148         Don't define; this causes problems on Solaris 7.
89149         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89150
89151 2000-07-23  Jim Meyering  <meyering@lucent.com>
89152
89153         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89154         too: getgrgid, getpwuid, getuid.
89155
89156 2000-07-23  Jim Meyering  <meyering@lucent.com>
89157
89158         * lib/basename.c (base_name): Add an assertion.
89159
89160 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89161
89162         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89163         shadow its mbsinit function.
89164
89165 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89166
89167         * lib/mbswidth.h: New file.
89168         * lib/mbswidth.c: New file.
89169         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89170         (noinst_HEADERS): Add mbswidth.h.
89171
89172 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89173
89174         * lib/config.charset: Add support for FreeBSD. Improve support for
89175         HP-UX and IRIX 6.
89176
89177 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89178
89179         * m4/mbswidth.m4: New file.
89180         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89181
89182 2000-07-15  Jim Meyering  <meyering@lucent.com>
89183
89184         * lib/makepath.c: Include quote.h.
89185         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89186         corresponding argument in a `quote (...)' call.
89187         Give better diagnostics.
89188
89189         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89190         (noinst_HEADERS): Add quote.h.
89191
89192         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89193         from tar's src/misc.c.
89194         * lib/quote.h: New file.  Prototypes for same.
89195
89196 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89197
89198         From a suggestion by Bruno Haible.
89199         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89200         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89201         to decide whether to define the BeOS workaround macro;
89202         this adjusts to the change to AC_MBSTATE_T.
89203
89204 2000-07-14  Jim Meyering  <meyering@lucent.com>
89205
89206         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89207         jm_AC_TYPE_UINTMAX_T.
89208
89209 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89210
89211         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89212
89213         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89214         quotearg_buffer_restyled): Add support for
89215         clocale_quoting_style.  Undo previous change to
89216         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89217         and "{RIGHT QUOTATION MARK}" msgids.
89218
89219 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89220
89221         From a suggestion by Bruno Haible.
89222         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89223         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89224         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89225         and mbstate_t, to a single-part test that simply defines mbstate_t.
89226         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89227         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89228
89229 2000-07-10  Jim Meyering  <meyering@lucent.com>
89230
89231         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89232
89233         * m4/gnu-source.m4: Output to confdefs.h directly.
89234         Suggestion from Akim Demaille.
89235
89236 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89237
89238         The old behavior of quoting `like this' doesn't look good with
89239         newer, ISO-style fonts.  See:
89240         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89241
89242         Instead, quote "like this" by default.  Let the translator
89243         tailor the locale-specific quoting behavior by providing
89244         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89245
89246         * lib/quotearg.c (N_): New macro.
89247         (gettext_default): New function.
89248         (quotearg_buffer_restyled): Use
89249         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89250         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89251
89252 2000-07-09  Jim Meyering  <meyering@lucent.com>
89253
89254         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89255         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89256
89257         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89259
89260 2000-07-09  Jim Meyering  <meyering@lucent.com>
89261
89262         * lib/Most files: Update copyright dates to include 2000.
89263
89264 2000-07-08  Jim Meyering  <meyering@lucent.com>
89265
89266         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89267         if not defined.
89268         (xgethostname): Remove now-unnecessary #ifdef.
89269         Move declaration of `err' into loop where it's used.
89270
89271 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89272         and Bruno Haible  <haible@clisp.cons.org>
89273
89274         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89275         only if the test for an object-type mbstate_t fails.  This
89276         prevents us from mistakenly reporting that mbstate_t is a
89277         system object type after we "#define mbstate_t int" to work
89278         around its lack.
89279
89280 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89281         and Bruno Haible  <haible@clisp.cons.org>
89282
89283         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89284
89285 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89286
89287         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89288         to strerror_r.
89289         Include <ctype.h> for use of isalpha.
89290
89291 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89292
89293         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89294         by allocating a larger buffer. Test the gethostname return value for
89295         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89296         returns an error and ENAMETOOLONG isn't defined.
89297
89298 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89299
89300         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89301         dimension.
89302
89303 2000-07-04  Jim Meyering  <meyering@lucent.com>
89304
89305         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89306         of the deprecated AC_CHECKING.
89307
89308 2000-07-04  Jim Meyering  <meyering@lucent.com>
89309
89310         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89311         Reported by Bruno Haible.
89312
89313 2000-07-04  Jim Meyering  <meyering@lucent.com>
89314
89315         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89316         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89317         lacks mbrtowc.
89318
89319 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89320
89321         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89322         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89323
89324 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89325         and Bruno Haible  <haible@clisp.cons.org>
89326
89327         * lib/quotearg.c (mbrtowc):
89328         Assign to *pwc, and return 1 only if result is nonzero.
89329         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89330
89331 2000-07-03  Jim Meyering  <meyering@lucent.com>
89332
89333         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89334
89335 2000-07-03  Jim Meyering  <meyering@lucent.com>
89336
89337         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89338         This is necessary to get a definition of e.g., UTMP_FILE on
89339         HP-UX 10.20.
89340         From Bob Proulx.
89341
89342 2000-07-02  Jim Meyering  <meyering@lucent.com>
89343
89344         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89345
89346         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89347         AC_LIBOBJ(function_name).
89348         * m4/chown.m4: Likewise.
89349         * m4/fnmatch.m4: Likewise.
89350         * m4/ftruncate.m4: Likewise.
89351         * m4/getgroups.m4: Likewise.
89352         * m4/getline.m4: Likewise.
89353         * m4/group-member.m4: Likewise.
89354         * m4/jm-macros.m4: Likewise.
89355         * m4/lstat.m4: Likewise.
89356         * m4/malloc.m4: Likewise.
89357         * m4/memcmp.m4: Likewise.
89358         * m4/nanosleep.m4: Likewise.
89359         * m4/putenv.m4: Likewise.
89360         * m4/realloc.m4: Likewise.
89361         * m4/regex.m4: Likewise.
89362         * m4/stat.m4: Likewise.
89363         * m4/strftime.m4: Likewise.
89364
89365 2000-07-02  Jim Meyering  <meyering@lucent.com>
89366
89367         * lib/quotearg.c (mbstate_t): Don't define here.
89368
89369 2000-07-02  Jim Meyering  <meyering@lucent.com>
89370
89371         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89372
89373 2000-07-01  Jim Meyering  <meyering@lucent.com>
89374
89375         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89376
89377 2000-07-01  Jim Meyering  <meyering@lucent.com>
89378
89379         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89380         problem.
89381
89382 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89383
89384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89385         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89386
89387 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89388
89389         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89390         per change in ../m4/ls-mntd-fs.m4.
89391         (read_filesystem_list): Ignore symbolic links.
89392
89393 2000-06-29  Jim Meyering  <meyering@lucent.com>
89394
89395         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89396         for declaration of strcmp.
89397
89398         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89399
89400         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89401         Avoid warning by casting result to `char *' to remove `const'.
89402
89403 2000-06-28  Jim Meyering  <meyering@lucent.com>
89404
89405         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89406         included by quotearg.c, for which we perform this test.  From
89407         Bruno Haible.
89408
89409 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89410
89411         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89412         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89413         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89414
89415 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89416
89417         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89418
89419 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89420
89421         savedir now sets errno on failure and invokes xmalloc to get memory.
89422         Fix a couple of other minor bugs while we're at it.
89423
89424         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89425         (NAMLEN): Remove macro.
89426         (malloc, realloc): Remove decls.
89427         (stpcpy): Likewise.
89428         ("xalloc.h"): Include.
89429         (NAME_SIZE_DEFAULT): New macro.
89430         (savedir): Use xmalloc / xrealloc to allocate memory.
89431         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89432         Skip "" directory entries.
89433         Use strlen to calculate directory entry length, since the old method
89434         is rarely used these days and isn't worth supporting.
89435         Don't use a pointer after freeing it.
89436         Check for integer overflow when calculating allocation size.
89437         Use memcpy to copy entries, instead of stpcpy.
89438         Set errno properly when returning NULL.
89439         Check for readdir error.
89440
89441 2000-06-26  Jim Meyering  <meyering@lucent.com>
89442
89443         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89444
89445 2000-06-25  Jim Meyering  <meyering@lucent.com>
89446
89447         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89448         Linux header bug when _XOPEN_SOURCE is defined to 500.
89449
89450 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89451
89452         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89453         deficiency.
89454
89455 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89456
89457         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89458         Include xalloc.h.
89459         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89460
89461 2000-06-24  Jim Meyering  <meyering@lucent.com>
89462
89463         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89464         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89465         for which strerror does return char*, but which lacks a conveniently
89466         accessible declaration of the function.  If the compile-test says
89467         strerror_r doesn't work, then resort to a `run'-test that works on
89468         BeOS and segfaults on DEC Unix.
89469
89470 2000-06-24  Jim Meyering  <meyering@lucent.com>
89471
89472         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89473
89474 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89475
89476         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89477         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89478
89479 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89480
89481         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89482         (mbrtowc, mbstate_t): Define substitutes if
89483         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89484         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89485         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89486
89487 2000-06-23  Jim Meyering  <meyering@lucent.com>
89488
89489         * m4/afs.m4: Add missing AC_MSG_RESULT.
89490         Reported by Bruno Haible.
89491
89492         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89493         Suggestion from Bruno Haible.
89494
89495 2000-06-23  Jim Meyering  <meyering@lucent.com>
89496
89497         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89498
89499 2000-06-21  Jim Meyering  <meyering@lucent.com>
89500
89501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89502
89503 2000-06-21  Jim Meyering  <meyering@lucent.com>
89504
89505         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89506         (noinst_HEADERS): Add getstr.h.
89507
89508         * lib/getline.c (getstr): Move into a separate file.
89509         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89510         the following changes: new parameter, delim2; both delim[12]
89511         parameters have type `int', not `char'.  The latter would lose
89512         with 8-bit delimiters.
89513         * lib/getstr.h: New file.
89514
89515 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89516
89517         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89518         than 1024, return a memory chunk of least possible size, instead
89519         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89520         Use free/xmalloc instead of xrealloc to avoid copying for very long
89521         paths.
89522
89523 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89524
89525         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89526         the empty string.
89527
89528 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89529
89530         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89531         address, not strdup.  Include <stdlib.h> and don't declare free().
89532
89533 2000-06-19  Jim Meyering  <meyering@lucent.com>
89534
89535         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89536
89537 2000-06-18  Jim Meyering  <meyering@lucent.com>
89538
89539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89540
89541         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89542         `checking whether...' message to be consistent with that of the
89543         lstat test.
89544
89545 2000-06-18  Jim Meyering  <meyering@lucent.com>
89546
89547         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89548         Besides, these days every porting target provides a mkdir function.
89549
89550         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89551         needed. (this snippet comes from src/system.h).
89552
89553 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89554
89555         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89556
89557 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89558
89559         * lib/human.c (adjust_value): New function.
89560         (human_readable_inexact): Apply rounding style even when
89561         printing approximate values.
89562
89563 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89564
89565         * lib/human.c (human_readable_inexact): Allow an input block
89566         size that is not a multiple of the output block size, and vice versa.
89567         Reported by Piergiorgio Sartor.
89568
89569 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89570
89571         * lib/getdate.y (get_date): Apply relative times after time
89572         zone indicator, not before.  Reported by Todd A. Jacobs.
89573
89574 2000-06-13  Jim Meyering  <meyering@lucent.com>
89575
89576         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89577
89578         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89579
89580 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89581
89582         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89583
89584 2000-06-12  Jim Meyering  <meyering@lucent.com>
89585
89586         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89587         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89588         optional argument.
89589         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89590         the optional argument, `lib'.
89591
89592 2000-06-08  Jim Meyering  <meyering@lucent.com>
89593
89594         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89595
89596 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89597
89598         Rewrite largefile configuration so that we don't need to run
89599         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89600         AC_CANONICAL_HOST in configure.in -- jmm]
89601
89602         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89603         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89604         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89605         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89606         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89607         All uses changed.
89608         Instead of inspecting the output of getconf, try to compile the
89609         test program without and with the macro definition.
89610         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89611         for getconf.  Instead, check for the needed flags by compiling
89612         test programs.
89613
89614 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89615
89616         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89617
89618 2000-06-04  Jim Meyering  <meyering@lucent.com>
89619
89620         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89621         SunOS 4.1.4 for which gid_t is an unsigned type.
89622
89623 2000-06-03  Jim Meyering  <meyering@lucent.com>
89624
89625         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89626         now that autoconf requires that.
89627
89628         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89629         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89630         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89631
89632 2000-06-03  Jim Meyering  <meyering@lucent.com>
89633
89634         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89635
89636 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89637
89638         * m4/glibc21.m4: New file.
89639         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89640
89641 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89642
89643         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89644         newer, don't install charset.alias.
89645         * lib/config.charset: Change the Linux/glibc rules so they become empty
89646         on glibc-2.1 or newer.
89647
89648 2000-06-02  Jim Meyering  <meyering@lucent.com>
89649
89650         * lib/mountlist.c: Back out last change.  Instead, do this...
89651         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89652         me_dummy member using the same `ignore'-testing code.
89653         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89654         fs_type strings.
89655         From Mark D. Roth.
89656
89657 2000-05-29  Jim Meyering  <meyering@lucent.com>
89658
89659         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89660         mounts with the `ignore' attribute.  Based on a patch from
89661         Mark D. Roth.
89662
89663 2000-05-28  Jim Meyering  <meyering@lucent.com>
89664
89665         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89666         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89667         * m4/stat.m4: Likewise.
89668         * m4/lstat.m4: Likewise.
89669         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89670
89671         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89672         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89673
89674 2000-05-26  Jim Meyering  <meyering@lucent.com>
89675
89676         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89677
89678 2000-05-24  Jim Meyering  <meyering@lucent.com>
89679
89680         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89681         autoconf requires that.
89682         * m4/lib-check.m4: Likewise.
89683         * m4/jm-macros.m4: Likewise.
89684         * m4/strftime.m4: Likewise.
89685
89686         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89687         AC_CHECK_DECLS, now that autoconf requires that.
89688
89689 2000-05-22  Jim Meyering  <meyering@lucent.com>
89690
89691         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89692         * m4/lstat.m4: Likewise.
89693
89694 2000-05-22  Jim Meyering  <meyering@lucent.com>
89695
89696         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89697
89698 2000-05-20  Jim Meyering  <meyering@lucent.com>
89699
89700         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89701         (jm_PREREQ): Use it.
89702
89703 2000-05-18  Jim Meyering  <meyering@lucent.com>
89704
89705         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89706         back, too, since it may have been modified by allocate_entry.
89707         (hash_delete): Rewrite to use neither the assignment operator
89708         nor the comma operator in an if-expression.
89709
89710 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89711
89712         * lib/closeout.c:
89713         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89714         Remove; no longer needed.
89715         "quotearg.h": Add include.
89716         (file_name): Do not bother to explicitly initialize to NULL; it's less
89717         efficient on some hosts.
89718         (close_stdout_status): Remove test as to whether stdout was already
89719         closed; it breaks for the case "echo x | sort >&-".
89720         Quote file name colons.
89721         Do not assume that _("write error") lacks format strings.
89722
89723 2000-05-15  Jim Meyering  <meyering@lucent.com>
89724
89725         * lib/version-etc.c (version_etc_copyright): Update the copyright
89726         string used in all --version output.
89727
89728 2000-05-14  Jim Meyering  <meyering@lucent.com>
89729
89730         * lib/closeout.c (close_stdout_set_file_name): New function.
89731         (close_stdout_status): Use new file-scoped global.
89732         Return right away if fstat says the stdout file descriptor is invalid.
89733         * lib/closeout.h (close_stdout_set_file_name): Declare.
89734
89735 2000-05-10  Jim Meyering  <meyering@lucent.com>
89736
89737         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89738         (close_stdout_set_status): New function.
89739         * lib/closeout.h (close_stdout_set_status): Declare.
89740
89741 2000-05-09  Jim Meyering  <meyering@lucent.com>
89742
89743         * m4/gettext.m4: Rename this...
89744         * m4/libintl.m4: ...to this.
89745
89746 2000-05-08  Jim Meyering  <meyering@lucent.com>
89747
89748         * lib/long-options.c: Don't include closeout.h.
89749         (parse_long_options): Don't call close_stdout for --version.
89750
89751 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89752
89753         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89754         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89755         2.1.3 bug.  This avoids a clash when files like regex.c define
89756         _GNU_SOURCE.
89757
89758 2000-05-06  Jim Meyering  <meyering@lucent.com>
89759
89760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89761         (AC_REPLACE_FUNCS): Add strnlen.
89762
89763         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89764         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89765
89766         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89767         AC_SEARCH_LIBS call for nanosleep.
89768         (LIB_NANOSLEEP): Set and AC_SUBST.
89769
89770 2000-05-06  Jim Meyering  <meyering@lucent.com>
89771
89772         * lib/strnlen.c: Undefine __strnlen and strnlen.
89773         [!weak_alias]: Define __strnlen to strnlen.
89774
89775         * lib/atexit.c: New file, from libiberty.
89776
89777 2000-05-06  Jim Meyering  <meyering@lucent.com>
89778
89779         * lib/closeout.c (close_stdout_status): Also check for errors on the
89780         stderr stream.
89781
89782 2000-05-05  Jim Meyering  <meyering@lucent.com>
89783
89784         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89785         AC_SEARCH_LIBS call for clock_gettime.
89786         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89787
89788         * m4/search-libs.m4: Update from autoconf.
89789
89790         su doesn't work on Solaris 2.6.
89791         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89792         <shadow.h>.  Reported by Dragos Harabor.
89793
89794 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89795
89796         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89797         memcpy instead of xmalloc, xrealloc, path_concat.
89798         (locale_charset): Treat empty environment variables as absent.
89799         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89800
89801 2000-05-04  Jim Meyering  <meyering@lucent.com>
89802
89803         * lib/getopt.c: Update from glibc.
89804         * lib/obstack.c: Likewise.
89805         * lib/obstack.h: Likewise.
89806         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89807         file
89808
89809         * lib/regex.h: Likewise.
89810         * lib/strndup.c: Likewise.
89811         * lib/strnlen.c: New file, from glibc.
89812
89813 2000-05-03  Jim Meyering  <meyering@lucent.com>
89814
89815         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89816
89817 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89818
89819         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89820         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89821         compile-time test, rather than inspecting host and OS, to
89822         decide whether to define _LARGEFILE_SOURCE.
89823
89824 2000-05-01  Jim Meyering  <meyering@lucent.com>
89825
89826         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89827
89828         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89829         Based on a patch from Bruno Haible.
89830
89831 2000-05-01  Jim Meyering  <meyering@lucent.com>
89832
89833         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89834
89835 2000-04-29  Jim Meyering  <meyering@lucent.com>
89836
89837         * lib/path-concat.c: Declare strdup only if it's not defined.
89838         * lib/canon-host.c: Likewise.
89839
89840 2000-04-28  Jim Meyering  <meyering@lucent.com>
89841
89842         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89843         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89844         is included first, then limits.h is included by locale.h by libintl.h.
89845         From John David Anglin.
89846
89847 2000-04-25  Jim Meyering  <meyering@lucent.com>
89848
89849         * lib/makepath.c (S_IRWXUGO): Define.
89850         (make_path): Always perform explicit chmod if MODE specifies any
89851         of the `special' permission bits.  Prompted by a bug report against
89852         install from Mate Wierdl and Joost van Baal.
89853
89854 2000-04-18  Jim Meyering  <meyering@lucent.com>
89855
89856         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89857         (jm_PREREQ): Use it.
89858
89859 2000-04-18  Jim Meyering  <meyering@lucent.com>
89860
89861         * lib/README: New file.
89862
89863         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89864         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89865
89866 2000-04-17  Jim Meyering  <meyering@lucent.com>
89867
89868         Get it right :-)
89869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89870         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89871         Suggestion from Akim Demaille.
89872
89873 2000-04-17  Jim Meyering  <meyering@lucent.com>
89874
89875         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89876         the definition of it to rpl_strftime also defined-away the system's
89877         declaration.
89878
89879 2000-04-15  Jim Meyering  <meyering@lucent.com>
89880
89881         Use `C' to denote so-called `contiguous' files, the same way
89882         that tar does.
89883         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89884         (ftypelet): Use S_ISCTG.
89885         From Michael Deutschmann.
89886
89887 2000-04-14  Jim Meyering  <meyering@lucent.com>
89888
89889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89890         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89891         clobbered.
89892
89893 2000-04-14  Jim Meyering  <meyering@lucent.com>
89894
89895         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89896
89897 2000-04-13  Jim Meyering  <meyering@lucent.com>
89898
89899         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89900         AH_VERBATIM to insert required #ifndef into config.h.in.
89901         Suggestion from Akim Demaille.
89902
89903 2000-04-12  Jim Meyering  <meyering@lucent.com>
89904
89905         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89906         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89907         Christian Krackowizer.
89908
89909         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89910         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89911         (AC_SYS_LARGEFILE): Require.
89912         (AM_C_PROTOTYPES): Require.
89913
89914 2000-04-08  Jim Meyering  <meyering@lucent.com>
89915
89916         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89917         names don't conflict.  Reported by Eli Zaretskii.
89918
89919 2000-04-07  Jim Meyering  <meyering@lucent.com>
89920
89921         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89922         sys/types.h, to work around system header problems on AIX 3.2.5.
89923         From Bruno Haible.
89924
89925 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89926
89927         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89928         bug.  Deal with the different error behavior of Irix iconv.
89929
89930 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89931
89932         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89933         IRIX if the installer said otherwise.
89934
89935 2000-04-05  Jim Meyering  <meyering@lucent.com>
89936
89937         Portability tweaks required for ultrix4.3.
89938         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89939         (jm_CHECK_DECLS): Add getutent to the list of functions.
89940         (_jm_DECL_HEADERS): Add utmpx.h.
89941         From John David Anglin.
89942
89943         * m4/strftime.m4: Back out the 2000-04-02 change.
89944         Instead of that change, simply undefine putenv in the test program.
89945
89946 2000-04-05  Jim Meyering  <meyering@lucent.com>
89947
89948         Portability tweaks required for ultrix4.3.
89949         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89950         getutent.
89951         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89952         * lib/canon-host.c: Declare strdup.
89953         * lib/path-concat.c: Likewise.
89954         From John David Anglin.
89955
89956 2000-04-04  Jim Meyering  <meyering@lucent.com>
89957
89958         Be more DOS 8.3-friendly.
89959         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89960         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89961         * lib/Makefile.am: Reflect renaming.
89962         Reported by Eli Zaretskii.
89963
89964         Use a temporary file name that won't clash with `charset.alias'
89965         in the DOS 8.3 name space.
89966         * lib/Makefile.am (charset_tmp): Define.
89967         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89968         (uninstall-local): Likewise.
89969         Reported by Eli Zaretskii.
89970
89971 2000-04-03  Jim Meyering  <meyering@lucent.com>
89972
89973         * m4/gettext.m4: Fix typo in comment.
89974
89975         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89976         textutils/configure.in).  Suggestion from Paul Eggert.
89977         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89978
89979 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89980
89981         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89982         variable in the shell rather than using putenv, which isn't
89983         portable.  This avoids the configure-time inter-test dependency
89984         on the potentially-renamed putenv function.
89985
89986 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89987
89988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89989         before checking struct stat.st_blksize, so that
89990         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89991
89992 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89993
89994         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89995         since strftime.c uses HAVE_STRFTIME to decide whether to use
89996         the underlying strftime.
89997
89998 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89999
90000         * lib/time/strftime.c (my_strftime): Make sure we call the system
90001         strftime, not ourselves, when invoking the underlying strftime.
90002
90003 2000-03-24  Jim Meyering  <meyering@lucent.com>
90004
90005         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90006         (charset_alias): Define.
90007         (install-exec-local): Factor out common code.
90008         (uninstall-local): Split lines longer than 80.
90009         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90010         (SUFFIXES): Define.
90011         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90012         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90013
90014 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90015
90016         * lib/config.charset: Output a line containing "Packages using this
90017         file".
90018         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90019         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90020         ref-del.sed): New rules.
90021
90022 2000-03-17  Jim Meyering  <meyering@lucent.com>
90023
90024         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90025         Otherwise, include <strings.h>
90026
90027 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90028
90029         * lib/unicodeio.c (utf8_wctomb): New function.
90030         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90031         format instead of in UCS-4 with platform dependent endianness.
90032
90033 2000-03-10  Jim Meyering  <meyering@lucent.com>
90034
90035         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90036         From Marco Franzen.
90037
90038 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90039
90040         * lib/savedir.c (savedir): Work even if directory size is
90041         negative; this can happen with some screwy NFS configurations.
90042
90043 2000-03-06  Jim Meyering  <meyering@lucent.com>
90044
90045         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90046         if it's NULL (because we ran out of memory).  From Bruno Haible.
90047
90048 2000-03-05  Jim Meyering  <meyering@lucent.com>
90049
90050         * lib/localcharset.c ("path-concat.h"): Include.
90051         (get_charset_aliases): Use path_concat instead of ANSI string
90052         concatenation.
90053
90054         * lib/unicodeio.h (PARAMS): Define.
90055         Use it to guard prototype.
90056
90057 2000-03-04  Jim Meyering  <meyering@lucent.com>
90058
90059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90060         for lib/localcharset.c.
90061
90062 2000-03-04  Jim Meyering  <meyering@lucent.com>
90063
90064         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90065         installing into it.
90066         (uninstall-local): Uncomment this rule so `make distcheck' works
90067         once again.
90068
90069         * lib/unicodeio.c (<errno.h>): Include it.
90070         (errno): Declare if not defined.
90071
90072         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90073
90074         * lib/config.charset: New version, incorporating remarks from a linux
90075         i18n mailing list.  From Bruno Haible.
90076
90077 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90078
90079         * m4/codeset.m4: New file.
90080         * m4/iconv.m4: New file.
90081         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90082
90083 2000-03-03  Jim Meyering  <meyering@lucent.com>
90084
90085         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90086
90087 2000-03-02  Jim Meyering  <meyering@lucent.com>
90088
90089         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90090         the messages come out on separate lines.
90091
90092         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90093         rather than jm_CHECK_DECLARATIONS.
90094         * m4/decl.m4: Remove now-unused file.
90095
90096         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90097         geteuid.
90098
90099 2000-03-02  Jim Meyering  <meyering@lucent.com>
90100
90101         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90102
90103 2000-03-01  Jim Meyering  <meyering@lucent.com>
90104
90105         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90106         * lib/unicodeio.c: Likewise.
90107
90108 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90109
90110         * lib/config.charset: New file.
90111         * lib/localcharset.c: New file.
90112         * lib/unicodeio.h, lib/unicodeio.c: New files.
90113         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90114         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90115         (noinst_HEADERS): Add unicodeio.h.
90116         (all-local, install-exec-local, charset.alias): New targets.
90117
90118 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90119
90120         * lib/quotearg.c (ALERT_CHAR): New macro.
90121         (quotearg_buffer_restyled): Use it.
90122
90123 2000-02-27  Jim Meyering  <meyering@lucent.com>
90124
90125         * m4/check-decl.m4: Add getenv to the list.
90126
90127 2000-02-27  Jim Meyering  <meyering@lucent.com>
90128
90129         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90130         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90131
90132         * lib/backupfile.c: Guard inclusion of stdlib.h with
90133         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90134         Declare malloc if needed.
90135
90136         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90137         `#ifndef HAVE_DECL..'
90138         now that autoconf always defines the HAVE_DECL_ symbols.
90139         * lib/human.c: Likewise.
90140         * lib/same.c: Likewise.
90141         * lib/strtoumax.c: Likewise.
90142
90143         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90144         declaration check was not run.
90145         * lib/hash.c: Likewise.
90146         * lib/human.c: Likewise.
90147         * lib/same.c: Likewise.
90148         * lib/strtoumax.c: Likewise.
90149
90150         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90151         `.', then first look up the entire `.'-containing string as a login
90152         name.
90153
90154 2000-02-23  Jim Meyering  <meyering@lucent.com>
90155
90156         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90157         in place of my hack.
90158
90159 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90160
90161         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90162         (textint): New typedef.
90163         (parser_control): Member year changed from int to textint.
90164         All uses changed.
90165         (YYSTYPE): Removed; replaced by %union with int and textint members.
90166         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90167         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90168         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90169         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90170         (date, number, to_year): Use width of number in digits, not its value,
90171         to determine whether it's a 2-digit year, or a 2-digit time.
90172         (yylex): Store number of digits of numeric tokens.
90173         Reported by John Kendall.
90174
90175         (parser_control): Changed from struct parser_control to typedef (for
90176         consistency).  All uses changed.
90177
90178         (tID): Removed; not used.
90179         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90180
90181 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90182
90183         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90184         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90185
90186 2000-02-12  Jim Meyering  <meyering@lucent.com>
90187
90188         * lib/userspec.c (ISDIGIT): Define it.
90189         (isdigit): Remove definition.
90190         (is_number): Use ISDIGIT, not isdigit.
90191         <libintl.h>: Include.
90192         (_ and N_): Define.
90193         (parse_user_spec): Mark translatable strings.
90194
90195 2000-02-10  Jim Meyering  <meyering@lucent.com>
90196
90197         With these changes, nanosleep.[ch] are finally enough like the other
90198         lib/* replacement files to compile on a few more losing systems.
90199
90200         * lib/nanosleep.h: Don't include config.h.
90201         Remove prototype from declaration of nanosleep.
90202         (PARAMS): Remove now-unneeded definition.
90203         * lib/nanosleep.c: #undef nanosleep.
90204         (rpl_nanosleep): Rename from nanosleep.
90205
90206 2000-02-10  Jim Meyering  <meyering@lucent.com>
90207
90208         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90209         gnu_nanosleep to rpl_nanosleep.
90210
90211 2000-02-09  Jim Meyering  <meyering@lucent.com>
90212
90213         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90214         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90215
90216 2000-02-08  Akim Demaille  <akim@epita.fr>
90217
90218         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90219         `[' and `]' and remove uses of `changequote'.
90220         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90221         (AC_SYS_LARGEFILE): Likewise.
90222         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90223         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90224         of changequote.
90225         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90226         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90227         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90228         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90229
90230 2000-02-05  Jim Meyering  <meyering@lucent.com>
90231
90232         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90233         Remove explicit use of AC_HEADER_TIME.  It is required by
90234         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90235         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90236         in autoconf whereby the expansion of the latter ended up preceding
90237         the expansion of its prerequisite, AC_HEADER_TIME.
90238         Reported by Volker Borchert.
90239
90240 2000-02-03  Jim Meyering  <meyering@lucent.com>
90241
90242         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90243
90244 2000-02-03  Jim Meyering  <meyering@lucent.com>
90245
90246         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90247         rather than with `#if HAVE_UTMPNAME'.
90248
90249 2000-02-02  Jim Meyering  <meyering@lucent.com>
90250
90251         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90252         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90253         Reported by Eli Zaretskii.
90254
90255 2000-02-01  Jim Meyering  <meyering@lucent.com>
90256
90257         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90258
90259 2000-01-31  Jim Meyering  <meyering@lucent.com>
90260
90261         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90262         functions.  Add the time.h and sys/time.h headers along with the
90263         AC_REQUIRE'ment of AC_HEADER_TIME.
90264
90265 2000-01-31  Jim Meyering  <meyering@lucent.com>
90266
90267         * lib/nanosleep.h (nanosleep): Guard declaration with
90268         `#if ! HAVE_DECL_NANOSLEEP'.
90269         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90270         the declaration in that vendor's sys/timers.h.
90271         Reported by Christian Krackowizer.
90272
90273         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90274         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90275         (ISPRINT): Likewise.
90276         Reported by Tom Tromey.
90277
90278 2000-01-30  Jim Meyering  <meyering@lucent.com>
90279
90280         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90281
90282         * m4/prereq.m4 (utmp_includes): Define.
90283         Check for ut_user and ut_name members in both struct utmpx
90284         and struct utmp.
90285
90286 2000-01-30  Jim Meyering  <meyering@lucent.com>
90287
90288         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90289         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90290         header files where only utmpx.ut_user is declared.
90291
90292         * lib/readutmp.h (UT_USER): Define.
90293
90294 2000-01-29  Jim Meyering  <meyering@lucent.com>
90295
90296         * m4/lib-check.m4: New file containing library-related checks from
90297         fileutils and sh-utils (textutils had none).
90298
90299 2000-01-28  Jim Meyering  <meyering@lucent.com>
90300
90301         * m4/perl.m4: Change format of warning message to look more like that
90302         from the missing script.  Suggestion from François Pinard.
90303
90304 2000-01-25  Jim Meyering  <meyering@lucent.com>
90305
90306         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90307         well as time.h in the compile check.
90308         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90309         Fix typo in cross-compiling case: s/yes/no/.
90310
90311 2000-01-23  Jim Meyering  <meyering@lucent.com>
90312
90313         * m4/jm-macros.m4: Move df-related tests here from
90314         fileutils/configure.in
90315
90316         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90317         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90318
90319         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90320         s/space/ac_fsusage_space/.
90321         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90322
90323         * m4/ftruncate.m4: New file (derived from part of
90324         fileutils/configure.in).
90325         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90326         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90327
90328         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90329         AC_SUBST these here, rather than just in sh-util/configure.in, so
90330         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90331         all the same.
90332         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90333         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90334         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90335         (AC_SUBST(POW_LIBM)): Likewise.
90336         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90337
90338 2000-01-23  Jim Meyering  <meyering@lucent.com>
90339
90340         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90341         obstack.c.
90342
90343 2000-01-22  Jim Meyering  <meyering@lucent.com>
90344
90345         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90346
90347         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90348
90349         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90350         configure.in
90351         (AC_CHECK_HEADERS): Likewise for sh-utils.
90352         (AC_CHECK_HEADERS): Likewise for textutils.
90353         Merge the three lists of headers.
90354
90355         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90356         from fileutils' configure.in.
90357
90358         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90359         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90360         check-decl.m4.
90361
90362         * m4/check-decl.m4: Use #if rather than #ifdef.
90363         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90364         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90365         (_jm_DECL_HEADERS): Define new function.
90366         (jm_CHECK_DECLARATIONS): Require it.
90367
90368 2000-01-22  Jim Meyering  <meyering@lucent.com>
90369
90370         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90371         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90372         Required for some AIX systems.  Reported by Christian Krackowizer.
90373         [TESTING] (main): New function.
90374
90375         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90376         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90377         letters.
90378
90379         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90380         iswprint.
90381
90382         * lib/strverscmp.c (ISDIGIT): Define.
90383         (strverscmp): Use ISDIGIT, not isdigit.
90384
90385 2000-01-19  Jim Meyering  <meyering@lucent.com>
90386
90387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90388         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90389         defines `struct timespec' in <sys/time.h>
90390
90391         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90392         Thanks to Akim for explaining.
90393
90394 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90395
90396         * lib/nanosleep.c (nanosleep):
90397         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90398         POSIX.1 doesn't require SA_INTERRUPT and some systems
90399         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90400         it's been part of POSIX.1 since day 1 (in 1988).
90401
90402 2000-01-17  Jim Meyering  <meyering@lucent.com>
90403
90404         * lib/interlock: Remove unused file.  Reported by François Pinard.
90405
90406 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90407
90408         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90409         alert, backslash, formfeed, and vertical tab unnecessarily in
90410         shell quoting style.
90411
90412 2000-01-16  Jim Meyering  <meyering@lucent.com>
90413
90414         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90415         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90416         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90417         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90418
90419 2000-01-16  Jim Meyering  <meyering@lucent.com>
90420
90421         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90422         because the latter didn't work.
90423
90424 2000-01-15  Jim Meyering  <meyering@lucent.com>
90425
90426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90427         (AC_REPLACE_FUNCS): Add memcpy and memset.
90428         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90429         Add strpbrk.
90430         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90431
90432 2000-01-12  Jim Meyering  <meyering@lucent.com>
90433
90434         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90435         (jm_PREREQ): Use it.
90436         (jm_PREREQ_READUTMP): New macro.
90437         (jm_PREREQ): Use it.
90438
90439 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90440
90441         Quote multibyte characters correctly.
90442         * m4/c-bs-a.m4: New file.
90443         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90444         (jm_PREREQ): Use it.
90445
90446 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90447
90448         * m4/uintmax_t.m4: Port to autoconf 2.13.
90449
90450 2000-01-08  Jim Meyering  <meyering@ascend.com>
90451
90452         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90453         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90454
90455 2000-01-04  Jim Meyering  <meyering@ascend.com>
90456
90457         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90458         jm_STRUCT_DIRENT_D_TYPE.
90459         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90460         jm_STRUCT_DIRENT_D_INO.
90461         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90462         jm_STRUCT_UTIMBUF.
90463         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90464         renamings.
90465         * m4/utime.m4: Likewise.
90466
90467         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90468         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90469
90470 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90471
90472         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90473         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90474
90475 2000-01-02  Jim Meyering  <meyering@ascend.com>
90476
90477         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90478         remember if this is necessary.
90479
90480 1999-12-26  Jim Meyering  <meyering@ascend.com>
90481
90482         * m4/jm-macros.m4: Use it here.
90483         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90484
90485 1999-12-23  Jim Meyering  <meyering@ascend.com>
90486
90487         * m4/jm-macros.m4: Check for clock_gettime (moved from
90488         fileutils/configure.in)
90489         Check for gettimeofday.
90490
90491 1999-12-20  Jim Meyering  <meyering@ascend.com>
90492
90493         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90494         autoconf-2.14a-1999-12-20.
90495
90496 1999-12-19  Jim Meyering  <meyering@ascend.com>
90497
90498         * m4/lstat-slash.m4: New file.
90499         * m4/jm-macros.m4: Use the new macro:
90500         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90501
90502 1999-12-07  Jim Meyering  <meyering@ascend.com>
90503
90504         * m4/perl.m4: Require that File::Compare be available, too.
90505         Too many systems seem to lack it.
90506
90507         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90508         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90509
90510 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90511
90512         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90513         problem with the QNX 4.25 shell, which doesn't propagate exit
90514         status of failed commands inside shell assignments.
90515
90516 1999-11-17  Jim Meyering  <meyering@ascend.com>
90517
90518         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90519
90520 1999-11-07  Jim Meyering  <meyering@ascend.com>
90521
90522         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90523
90524 1999-11-06  Jim Meyering  <meyering@ascend.com>
90525
90526         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90527         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90528
90529 1999-11-05  Jim Meyering  <meyering@ascend.com>
90530
90531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90532         configure.in of textutils, fileutils, and sh-utils into this one
90533         (shared between those packages) file.
90534         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90535         AC_STRUCT_ST_BLKSIZE.
90536
90537 1999-11-03  Jim Meyering  <meyering@ascend.com>
90538
90539         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90540         of AC_CHECK_TYPE checks includes unistd.h.
90541         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90542         Suggestion from Akim Demaille.
90543
90544 1999-10-30  Jim Meyering  <meyering@ascend.com>
90545
90546         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90547         m4-quoted string.
90548         * m4/ls-mntd-fs.m4: Likewise.
90549         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90550         * m4/jm-winsz1.m4: Likewise.
90551
90552         * m4/const.m4: Remove file, since the fix made it into the experimental
90553         version of autoconf.
90554         * m4/mktime.m4: Likewise.
90555
90556         * m4/check-type.m4: Remove file, now that the latest version of
90557         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90558
90559         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90560         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90561         AC_CHECK_TYPE.
90562
90563 1999-10-04  Jim Meyering  <meyering@ascend.com>
90564
90565         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90566
90567 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90568
90569         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90570         2.95.1 bug with HP-UX 10.20.
90571
90572 1999-09-17  Jim Meyering  <meyering@ascend.com>
90573
90574         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90575         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90576         due to missing strdup (against sh-utils-2.0).
90577
90578 1999-08-29  Jim Meyering  <meyering@ascend.com>
90579
90580         * m4/jm-macros.m4: Require jm_BISON.
90581         * m4/bison.m4: New file.
90582
90583 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90584
90585         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90586         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90587
90588 1999-08-05  Jim Meyering  <meyering@ascend.com>
90589
90590         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90591         to avoid conflicts with `conftest' on 8+3 filesystems.
90592         Suggestion from Eli Zaretskii.
90593
90594 1999-08-04  Jim Meyering  <meyering@ascend.com>
90595
90596         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90597         fileutils and sh-utils (textutils's getline test was inadequate).
90598         (AM_FUNC_GETLINE): Run this test.
90599         (AC_CHECK_FUNCS): Check for getdelim.
90600         Reported by Bob Proulx.
90601
90602 1999-08-02  Jim Meyering  <meyering@ascend.com>
90603
90604         * m4/jm-macros.m4: Add a comment.
90605
90606 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90607
90608         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90609         <inttypes.h> defines strtoumax as a macro (and not as a
90610         function).
90611
90612 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90613
90614         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90615         that we can shift, multiply and divide unsigned long long
90616         values; Ultrix cc can't do it.
90617
90618 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90619
90620         * m4/mktime.m4: New file, which is a preview of what should appear
90621         in the next public autoconf release.
90622
90623 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90624
90625         * m4/lfs.m4: Remove this file.
90626         * m4/largefile.m4: New file.  It contains the old contents of
90627         lfs.m4, except that all names with prefix AC_LFS have been
90628         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90629         compatible with future autoconf versions.  Also, some minor m4
90630         quoting problems have been fixed.
90631
90632 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90633
90634         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90635         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90636         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90637         and simplify the shell code.
90638
90639 1999-08-01  Jim Meyering  <meyering@ascend.com>
90640
90641         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90642         m4.
90643
90644 1999-07-20  Jim Meyering  <meyering@ascend.com>
90645
90646         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90647
90648 1999-07-15  Jim Meyering  <meyering@ascend.com>
90649
90650         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90651
90652 1999-05-22  Jim Meyering  <meyering@ascend.com>
90653
90654         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90655
90656 1999-05-20  Jim Meyering  <meyering@ascend.com>
90657
90658         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90659         Add a colon after each `then' in case $4 is empty.
90660
90661 1999-05-16  Jim Meyering  <meyering@ascend.com>
90662
90663         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90664
90665 1999-05-10  Jim Meyering  <meyering@ascend.com>
90666
90667         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90668
90669         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90670         AC_FUNC_MKTIME.
90671
90672 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90673
90674         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90675
90676 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90677
90678         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90679         not CPPFLAGS, so that linking works correctly in IRIX.
90680
90681 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90682
90683         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90684
90685 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90686
90687         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90688         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90689         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90690         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90691         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90692
90693         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90694
90695 1999-04-20  Jim Meyering  <meyering@ascend.com>
90696
90697         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90698         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90699         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90700
90701 1999-04-18  Jim Meyering  <meyering@ascend.com>
90702
90703         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90704         * m4/jm-macros.m4: Use it.
90705
90706 1999-04-06  Jim Meyering  <meyering@ascend.com>
90707
90708         * m4/strftime.m4: Remove test for %f.
90709
90710 1999-03-29  Jim Meyering  <meyering@ascend.com>
90711
90712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90713         superset of the AC_TYPE_* checks in the textutils, fileutils,
90714         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90715         AC_TYPE_PID_T.
90716
90717 1999-03-28  Jim Meyering  <meyering@ascend.com>
90718
90719         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90720         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90721         replaced e.g., in the *.sh files of the sh-utils.
90722
90723 1999-03-20  Jim Meyering  <meyering@ascend.com>
90724
90725         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90726         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90727         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90728
90729 1999-03-19  Jim Meyering  <meyering@ascend.com>
90730
90731         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90732
90733 1999-03-12  Jim Meyering  <meyering@ascend.com>
90734
90735         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90736
90737 1999-03-07  Jim Meyering  <meyering@ascend.com>
90738
90739         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90740         declared.
90741
90742 1999-02-17  Jim Meyering  <meyering@ascend.com>
90743
90744         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90745         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90746
90747 1999-02-07  Jim Meyering  <meyering@ascend.com>
90748
90749         * m4/group-member.m4: New file -- extracted from sh-utils'
90750         configure.in.
90751
90752         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90753         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90754
90755 1999-02-06  Jim Meyering  <meyering@ascend.com>
90756
90757         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90758         * m4/fnmatch.m4: Likewise.
90759         * m4/getgroups.m4: Likewise.
90760         * m4/lstat.m4: Likewise.
90761         * m4/malloc.m4: Likewise.
90762         * m4/putenv.m4: Likewise.
90763         * m4/realloc.m4: Likewise.
90764         * m4/regex.m4: Likewise.
90765         * m4/stat.m4: Likewise.
90766         * m4/strftime.m4: Likewise.
90767         Suggestion from Alain Magloire.
90768
90769         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90770         * m4/fnmatch.m4: Likewise.
90771         * m4/getgroups.m4: Likewise.
90772         * m4/getline.m4: Likewise.
90773         * m4/lstat.m4: Likewise.
90774         * m4/malloc.m4: Likewise.
90775         * m4/memcmp.m4: Likewise.
90776         * m4/putenv.m4: Likewise.
90777         * m4/realloc.m4: Likewise.
90778         * m4/regex.m4: Likewise.
90779         * m4/stat.m4: Likewise.
90780         * m4/strftime.m4: Likewise.
90781         Suggestion from Alain Magloire.
90782
90783         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90784         an argument.
90785
90786         * m4/regex.m4: Add a run-time Test for proper operation of
90787         re_compile_pattern.
90788
90789 1999-01-31  Jim Meyering  <meyering@ascend.com>
90790
90791         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90792
90793 1999-01-30  Jim Meyering  <meyering@ascend.com>
90794
90795         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90796
90797         * m4/jm-mktime.m4: Make this a wrapper around the official
90798         AM_FUNC_MKTIME rather than my private copy, now that the official one
90799         is up to date.
90800         * m4/mktime.m4: Remove file.
90801
90802         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90803         * m4/uptime.m4: Likewise.
90804         * m4/uintmax_t.m4: Likewise.
90805
90806 1999-01-28  Jim Meyering  <meyering@ascend.com>
90807
90808         * m4/jm-macros.m4: Use jm_AFS.
90809         * m4/afs.m4: New file (from fileutils' configure.in).
90810
90811         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90812         * m4/chown.m4: Likewise.
90813         * m4/d-ino.m4: Likewise.
90814         * m4/d-type.m4: Likewise.
90815         * m4/fnmatch.m4: Likewise.
90816         * m4/getgroups.m4: Likewise.
90817         * m4/gettext.m4: Likewise.
90818         * m4/jm-mktime.m4: Likewise.
90819         * m4/jm-winsz2.m4: Likewise.
90820         * m4/lcmessage.m4: Likewise.
90821         * m4/ls-mntd-fs.m4: Likewise.
90822         * m4/malloc.m4: Likewise.
90823         * m4/memcmp.m4: Likewise.
90824         * m4/putenv.m4: Likewise.
90825         * m4/realloc.m4: Likewise.
90826         * m4/st_mtim.m4: Likewise.
90827         * m4/strftime.m4: Likewise.
90828
90829 1999-01-16  Jim Meyering  <meyering@ascend.com>
90830
90831         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90832         (ARGMATCH_DIE_DECL): Define.
90833
90834 1999-01-12  Jim Meyering  <meyering@ascend.com>
90835
90836         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90837         Reported by Lars Hecking.
90838
90839 1999-01-10  Jim Meyering  <meyering@ascend.com>
90840
90841         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90842         gross kludge.
90843         * m4/inttypes_h.m4: Likewise.
90844         * m4/lstat.m4: Likewise.
90845         * m4/malloc.m4: Likewise.
90846         * m4/readdir.m4: Likewise.
90847         * m4/realloc.m4: Likewise.
90848         * m4/st_dm_mode.m4: Likewise.
90849         * m4/stat.m4: Likewise.
90850         * m4/utimbuf.m4: Likewise.
90851         * m4/utimes.m4: Likewise.
90852
90853         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90854         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90855         comments in config.h.in are meaningful.
90856
90857         * m4/jm-macros.m4: Require autoconf-2.13 here.
90858
90859         * m4/regex.m4: By default, don't use the included regex.c on systems
90860         with glibc 2.  Suggestion from Uli Drepper.
90861
90862 1999-01-02  Jim Meyering  <meyering@ascend.com>
90863
90864         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90865
90866 1998-12-18  Jim Meyering  <meyering@ascend.com>
90867
90868         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90869         Based on a suggestion from Lars Hecking.
90870
90871 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90872
90873         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90874
90875 1998-11-16  Jim Meyering  <meyering@ascend.com>
90876
90877         * m4/lfs.m4: Double-quote the `uname...` expression.
90878
90879 1998-11-14  Jim Meyering  <meyering@ascend.com>
90880
90881         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90882         * m4/stat.m4: Likewise.
90883
90884 1998-11-03  Jim Meyering  <meyering@ascend.com>
90885
90886         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90887         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90888
90889 1998-10-18  Jim Meyering  <meyering@ascend.com>
90890
90891         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90892
90893 1998-10-17  Jim Meyering  <meyering@ascend.com>
90894
90895         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90896         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90897         calls for those previously hard-coded headers.  Instead, take a new
90898         parameter.
90899         (jm_CHECK_DECLARATIONS): Reflect interface change.
90900         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90901         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90902
90903         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90904
90905 1998-10-14  Jim Meyering  <meyering@ascend.com>
90906
90907         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90908         instead of "TZ=America/Vancouver".  From Paul Eggert.
90909
90910 1998-10-11  Jim Meyering  <meyering@ascend.com>
90911
90912         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90913         This adds a test for a recently added compatibility fix for mktime.c.
90914         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90915
90916 1998-09-27  Jim Meyering  <meyering@ascend.com>
90917
90918         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90919
90920         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90921         ../configure.in, including a change from Gordon Matzigkeit to allow
90922         cross-compiling for the Hurd.
90923
90924         * m4/glibc.m4: New file/macro to test for the GNU C Library
90925         versions 1 and 2.  From Gordon Matzigkeit.
90926         Indent.
90927
90928 1998-09-21  Jim Meyering  <meyering@ascend.com>
90929
90930         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90931
90932 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90933
90934         Port nanosecond-resolution times to UnixWare 2.1.2 and
90935         pedantic Solaris 2.6.
90936
90937         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90938         AC_STRUCT_ST_MTIM.
90939         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90940         Generate name of ns member, instead of just 1 or undef.
90941         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90942
90943 1998-08-15  Jim Meyering  <meyering@ascend.com>
90944
90945         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90946         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90947         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90948         instead of jm_TYPE_SSIZE_T.
90949
90950 1998-08-12  Jim Meyering  <meyering@ascend.com>
90951
90952         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90953
90954 1998-08-02  Jim Meyering  <meyering@ascend.com>
90955
90956         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90957         in acconfig.h manually.
90958
90959 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90960
90961         * m4/st_mtim.m4: New file.
90962
90963 1998-07-28  Jim Meyering  <meyering@ascend.com>
90964
90965         * m4/utimes.m4: Undef stat.
90966
90967 1998-07-25  Jim Meyering  <meyering@ascend.com>
90968
90969         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90970         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90971
90972 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90973
90974         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90975         uid and gid actually remain unchanged.
90976
90977 1998-07-07  Jim Meyering  <meyering@ascend.com>
90978
90979         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90980
90981 1998-07-04  Jim Meyering  <meyering@ascend.com>
90982
90983         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90984         to prove that this macro can be used in packages without regex.c.
90985
90986 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90987
90988         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90989         is to be used.
90990
90991 1998-07-03  Jim Meyering  <meyering@ascend.com>
90992
90993         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90994
90995         * m4/gettext.m4: New file -- from gettext-0.10.35.
90996         * m4/lcmessage.m4: Likewise.
90997         * m4/progtest.m4: Likewise.
90998
90999         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91000         * m4/jm-macros.m4: Require the new macro.
91001
91002 1998-06-29  Jim Meyering  <meyering@ascend.com>
91003
91004         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91005         for the definition of NGROUPS (used in a system header included
91006         by sys/mount.h).
91007
91008 1998-06-28  Jim Meyering  <meyering@ascend.com>
91009
91010         * m4/ls-mntd-fs.m4: New file.
91011         * m4/fstypename.m4: New file.
91012
91013         * m4/jm-macros.m4: Require the new macro.
91014         * m4/jm-glibc-io.m4: New file.
91015
91016 1998-05-19  Jim Meyering  <meyering@ascend.com>
91017
91018         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91019         * m4/lchown.m4: New file.
91020
91021         * m4/Makefile.am.in: New file.
91022         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91023
91024 1998-05-14  Jim Meyering  <meyering@ascend.com>
91025
91026         * m4/Makefile.am (EXTRA_DIST): Add them.
91027         * m4/jm-macros.m4: New file.
91028         * m4/utimbuf.m4: New file.
91029
91030 1998-05-12  Jim Meyering  <meyering@ascend.com>
91031
91032         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91033
91034 1998-05-11  Jim Meyering  <meyering@ascend.com>
91035
91036         * m4/isc-posix.m4: New file.
91037
91038 1998-05-10  Jim Meyering  <meyering@ascend.com>
91039
91040         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91041
91042 1998-05-09  Jim Meyering  <meyering@ascend.com>
91043
91044         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91045         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91046         with automake.
91047
91048         * m4/ssize_t.m4: New file.
91049         * m4/mktime.m4: Remove file -- the new automake has this now.
91050
91051 1998-04-26  Jim Meyering  <meyering@ascend.com>
91052
91053         * m4/assert.m4: New file.
91054         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91055
91056 1998-04-05  Jim Meyering  <meyering@ascend.com>
91057
91058         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91059         (jm_PREREQ): Use it here.
91060
91061 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91062
91063         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91064         in acconfig.h.
91065
91066 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91067
91068         * m4/prereq.m4: New file.
91069         * m4/error.m4: New file.
91070         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91071
91072 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91073
91074         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91075         cache-check for the same variable -- that defeated the purpose of
91076         the test; the test program was never run.  This was a problem only
91077         on systems with losing getline functions -- HP-UX 10.20 is one.
91078         Reported by Bjorn Helgaas.
91079
91080 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91081
91082         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91083
91084 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91085
91086         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91087
91088         * m4/const.m4: New file.  Use an initializer in this declaration
91089         typedef int charset[2]; const charset x;
91090         Reported by Bob Glickstein.
91091
91092 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91093
91094         * m4/chown.m4: Fix reversed types on -1 args to chown.
91095         From Kaveh Ghazi.
91096
91097 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91098
91099         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91100         Add lseek and memchr.
91101
91102         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91103         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91104         have a 20-character limit on names.
91105
91106 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91107
91108         * m4/inttypes_h.m4: New file.
91109         * m4/uintmax_t.m4: New file.
91110         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91111
91112
91113         -----
91114
91115         Local Variables:
91116         coding: utf-8
91117         End:
91118
91119         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91120
91121         Copying and distribution of this file, with or without
91122         modification, are permitted provided the copyright notice
91123         and this notice are preserved.